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
cde9bb9e8bf228a09813f23ccb13b25c5361461d
c703b8ac3b5545857f6c95efa2d61eaf7a664021
/iPERCore/data/transforms.py
2ef2438baab8db1db4502e0b62c08df90e55ffaf
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license", "Apache-2.0", "BSD-2-Clause" ]
permissive
iPERDance/iPERCore
d29681d229b3098b3517b1abf4f7ea65f579de73
fcf9a18ffd66bf3fdd3eea4153a3bc4785131848
refs/heads/main
2023-07-30T15:04:15.835396
2023-04-12T14:21:23
2023-04-12T14:21:23
313,664,064
2,520
339
Apache-2.0
2023-05-12T03:26:52
2020-11-17T15:36:25
Python
UTF-8
Python
false
false
1,980
py
transforms.py
# Copyright (c) 2020-2021 impersonator.org authors (Wen Liu and Zhixin Piao). All rights reserved. import cv2 import numpy as np import torch import torchvision.transforms.functional as TF class ImageTransformer(object): """ Rescale the image in a sample to a given size. """ def __init__(self, outpu...
353a450e857defa04f3564c343ed0da47811f9a2
a41e1498e3c080f47abd8e8e57157548df3ebbf1
/scripts/use_pd_array_in_core.py
c9e14dece44e4de9ca307a5141247cf4a34e87a2
[ "BSD-3-Clause" ]
permissive
pandas-dev/pandas
e7e639454a298bebc272622e66faa9829ea393bb
c7325d7e7e77ecb4a4e57b48bc25265277c75712
refs/heads/main
2023-09-01T12:42:07.927176
2023-09-01T11:14:10
2023-09-01T11:14:10
858,127
36,166
18,728
BSD-3-Clause
2023-09-14T21:18:41
2010-08-24T01:37:33
Python
UTF-8
Python
false
false
2,170
py
use_pd_array_in_core.py
""" Check that pandas/core imports pandas.array as pd_array. This makes it easier to grep for usage of pandas array. This is meant to be run as a pre-commit hook - to run it manually, you can do: pre-commit run use-pd_array-in-core --all-files """ from __future__ import annotations import argparse import ast ...
15d86ae81197f23a15f954af8cdf9493fe5981dd
96c3c5d015c5338c4b54c78187be9f75ffb1dd8f
/tests/data/test_transforms.py
6787a8b6bd845c42f8c1db0e5b2379032c2c4971
[ "MIT" ]
permissive
atomistic-machine-learning/schnetpack
4cbf304fc067143aa0c53723c56d57952cef77ac
2ed8d1a3b773f4ed2dbd50623d43d578ff0146f6
refs/heads/master
2023-08-20T08:01:12.951583
2023-08-17T11:11:14
2023-08-17T11:11:14
147,224,878
653
221
NOASSERTION
2023-09-07T09:03:41
2018-09-03T15:44:35
Python
UTF-8
Python
false
false
4,775
py
test_transforms.py
import schnetpack.properties as structure import pytest import torch from ase.data import atomic_masses from schnetpack.transform import * def assert_consistent(orig, transformed): for k, v in orig.items(): assert (v == transformed[k]).all(), f"Changed value: {k}" @pytest.fixture(params=[0, 1]) def neig...
91d0fe06e301c93ef6f47061344ec538aeeb1510
c475cd8531a94ffae69cc92371d41531dbbddb6c
/Projects/bullet3-2.89/examples/pybullet/gym/pybullet_envs/deep_mimic/env/quadruped_stable_pd.py
66f2f70b2f7a322f0500e57560765c4eac904b00
[ "Apache-2.0", "LicenseRef-scancode-free-unknown", "Zlib" ]
permissive
WolfireGames/overgrowth
72d3dd29cbd7254337265c29f8de3e5c32400114
594a2a4f9da0855304ee8cd5335d042f8e954ce1
refs/heads/main
2023-08-15T19:36:56.156578
2023-05-17T08:17:53
2023-05-17T08:20:36
467,448,492
2,264
245
Apache-2.0
2023-05-09T07:29:58
2022-03-08T09:38:54
C++
UTF-8
Python
false
false
33,860
py
quadruped_stable_pd.py
from pybullet_utils import pd_controller_stable from pybullet_envs.deep_mimic.env import quadruped_pose_interpolator import math class QuadrupedStablePD(object): def __init__(self, pybullet_client, mocap_data, timeStep, useFixedBase=True): self._pybullet_client = pybullet_client self._mocap_data = mocap_da...
47feaf98477619619da4c4d6f58034a02230e448
5a361fd402b330189792b592465c1fc48c6a5fb4
/application/flicket/views/edit.py
887df9510cde74aac802fc2b312fdbd841be7510
[ "MIT" ]
permissive
evereux/flicket
a807e4a3cabce45b42cf02acceee1deb023b0487
ef1330dca9bcc75cedd9fb68a0ecb4de67f2e6cc
refs/heads/master
2023-05-10T17:14:05.116769
2023-05-01T11:20:23
2023-05-01T11:20:23
74,390,774
120
64
MIT
2023-05-02T00:13:00
2016-11-21T17:58:26
Python
UTF-8
Python
false
false
6,926
py
edit.py
#! usr/bin/python3 # -*- coding: utf-8 -*- # # Flicket - copyright Paul Bourne: evereux@gmail.com import datetime import os from flask import redirect, url_for, flash, render_template, g, request from flask_babel import gettext from flask_login import login_required from . import flicket_bp from application import a...
e6b8ae3903ca4024ec2bad5d05950d0c3e3e609c
17ba81961cfa9b46300edd85f21fb592b43d94f1
/test_numerize.py
9636adc756282769523ecc07ae78ff8192c5191f
[ "MIT" ]
permissive
jaidevd/numerizer
b83ca9bb09d9d312290682b6074b23ddb8cca8f4
ab0e9a6971e65f7cc21c3a5ca7f375064a496a98
refs/heads/master
2023-05-10T22:01:08.472657
2023-05-01T07:50:02
2023-05-01T07:50:02
225,307,066
214
25
MIT
2023-04-20T15:21:53
2019-12-02T07:00:34
Python
UTF-8
Python
false
false
10,753
py
test_numerize.py
from unittest import TestCase, skipUnless from numerizer import numerizer as num from spacy import load from spacy.tokens import Token numerize = num.numerize try: nlp = load("en_core_web_sm") SPACY_MODEL_INSTALLED = True except OSError: SPACY_MODEL_INSTALLED = False def test_init(): assert numerize...
b8cd1aab49f18d38ba410db55f00035067d9e5e3
dcc7dd6c65cb13d3619689b2c794b450e503b100
/src/poetry/mixology/solutions/solutions/python_requirement_solution.py
b625e124610e765b839ee88a092490e8dab234e4
[ "MIT" ]
permissive
python-poetry/poetry
6b83f8db6a15b132fd252b68ed3bbee51b4e64f0
02448cf7f184dea204156f7dcb620a4f01a0068e
refs/heads/master
2023-09-04T12:23:02.700442
2023-09-02T10:46:06
2023-09-02T10:46:06
123,303,402
20,127
2,081
MIT
2023-09-12T09:41:09
2018-02-28T15:23:47
Python
UTF-8
Python
false
false
2,281
py
python_requirement_solution.py
from __future__ import annotations from typing import TYPE_CHECKING from crashtest.contracts.solution import Solution if TYPE_CHECKING: from poetry.mixology.failure import SolveFailure from poetry.puzzle.exceptions import SolverProblemError class PythonRequirementSolution(Solution): def __init__(self,...
ac967a94fbd29ed146ba6bfd0e51db7e5536aa84
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/ONNX-ARM/lambda-onnx-arm-3.8/numpy/lib/type_check.pyi
7da02bb9f196edc70b23c267e74ec5e5f34589e0
[ "BSD-3-Clause", "GPL-3.0-or-later", "BSD-3-Clause-Open-MPI", "GPL-3.0-only", "GCC-exception-3.1", "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
461
pyi
type_check.pyi
from typing import List __all__: List[str] def mintypecode(typechars, typeset=..., default=...): ... def asfarray(a, dtype = ...): ... def real(val): ... def imag(val): ... def iscomplex(x): ... def isreal(x): ... def iscomplexobj(x): ... def isrealobj(x): ... def nan_to_num(x, copy=..., nan=..., posinf=..., neginf=....
442d76594af50f7a60c071b15919b4d9d19197a5
7491ceb405287660538e876317d3f69328757651
/aydin/nn/models/test/test_jinet.py
7b27cd9abf8c4cedd10cb5ae29eefa61bea10d08
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license" ]
permissive
royerlab/aydin
4d0bd5cb1a3786cf32f1d8661d3a3aa13ec7cab1
9312f227605be26fce960373c1f29a71323da914
refs/heads/master
2023-04-29T20:45:42.515226
2023-02-16T22:21:07
2023-02-16T22:21:07
188,953,977
125
14
BSD-3-Clause
2023-03-15T01:04:16
2019-05-28T04:30:19
Python
UTF-8
Python
false
false
501
py
test_jinet.py
import pytest import torch from aydin.nn.models.jinet import JINetModel @pytest.mark.parametrize( "input_array_shape, spacetime_ndim", [ ((1, 1, 64, 64), 2), ((1, 1, 128, 128, 128), 3), ], ) def test_forward(input_array_shape, spacetime_ndim): input_array = torch.zeros(input_array_sha...
94d676d943a031abaab72eab6b11af7db3affa6a
0a4a2f4b5a1f6cd86572a43dc533e39b040997ba
/modelpc.py
b94244e5a93f403ded2e095b9e7014911c1cfcd4
[ "MIT" ]
permissive
czq142857/NDC
2607778185cdaa3640805a6604c29c59aeaf4cae
9054e20f55013d031af9e3a2c91f5cab75837bc4
refs/heads/main
2023-06-01T03:01:37.242051
2022-08-25T01:13:23
2022-08-25T01:13:23
393,793,612
181
28
null
null
null
null
UTF-8
Python
false
false
19,317
py
modelpc.py
import torch import torch.nn as nn import torch.nn.functional as F #number of local pointnet input points, gathered via K nearest neighbors KNN_num = 8 class pc_conv_first(nn.Module): def __init__(self, ef_dim): super(pc_conv_first, self).__init__() self.ef_dim = ef_dim self.linear_1 = n...
b233f13e404a5cbe6816f1543fb6744586c84027
bfbbd351035633143247719ec683b57ec4668287
/Traffic Modeling Real Vision Based/graphs.py
d6291f4ebd27883d5362a42c0aab918370fb711c
[ "MIT" ]
permissive
Ujwal2910/Smart-Traffic-Signals-in-India-using-Deep-Reinforcement-Learning-and-Advanced-Computer-Vision
68656335ebaf02987b4e1e01afab6a9de8ecf10e
511746246434f4c199df8118c66d318ac39a02c8
refs/heads/master
2020-03-19T06:17:34.284907
2019-05-24T14:44:40
2019-05-24T14:44:40
136,007,907
177
53
null
null
null
null
UTF-8
Python
false
false
670,332
py
graphs.py
# delay_data_time_30_91_baseline = [16.0, 24.0, 32.0, 40.0, 48.0, 56.0, 64.0, 72.0, 80.0, 88.0, 96.0, 104.0, 112.0, 120.0, 128.0, 136.0, 144.0, 152.0, 160.0, 168.0, 176.0, 184.0, 192.0, 200.0, 208.0, 216.0, 224.0, 232.0, 240.0, 248.0, 256.0, 264.0, 272.0, 280.0, 288.0, 296.0, 304.0, 312.0, 320.0, 328.0, 336.0, 344.0, 3...
9218730e80d0c03a91df9b1a5d4d5d3a955568d9
0d6e9c15edafe14b5d373f2180809b94786cdb88
/tests/training/test_scheduler.py
a84a6e5268f283d8904b20be8aeffb0306e58bdc
[ "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
2,975
py
test_scheduler.py
import torch.nn as nn import torch.optim as optim import pytest from torch_mimicry.training import scheduler, metric_log class TestLRScheduler: def setup(self): self.netD = nn.Linear(10, 10) self.netG = nn.Linear(10, 10) self.num_steps = 10 self.lr_D = 2e-4 self.lr_G = 2e...
66dd4fa58744a7fa90e1a6b0c829b11fb10e11eb
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/checkov/arm/checks/resource/MariaDBSSLEnforcementEnabled.py
fb03994b8b3ec5ba61fb23ec1d1046d5561207b3
[ "Apache-2.0" ]
permissive
bridgecrewio/checkov
aeb8febed2ed90e61d5755f8f9d80b125362644d
e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d
refs/heads/main
2023-08-31T06:57:21.990147
2023-08-30T23:01:47
2023-08-30T23:01:47
224,386,599
5,929
1,056
Apache-2.0
2023-09-14T20:10:23
2019-11-27T08:55:14
Python
UTF-8
Python
false
false
778
py
MariaDBSSLEnforcementEnabled.py
from typing import Any from checkov.arm.base_resource_value_check import BaseResourceValueCheck from checkov.common.models.enums import CheckCategories class MariaDBSSLEnforcementEnabled(BaseResourceValueCheck): def __init__(self) -> None: name = "Ensure 'Enforce SSL connection' is set to 'ENABLED' for M...
df55f731b3939766eba75fbc418a2d1ef852c875
2b9f0e11bca4cbaad224654884cac1e50667d7d5
/tests/version_consistency/dummy_test.py
1b621598273d195cbf33f7c5e6710979cf0a4b2d
[ "MIT" ]
permissive
asteroid-team/asteroid
6dcfe6bc1571c7cc92dbab49962b002bab195c25
cd5b35d84381f325ad5f4bee861d8cb26ba7dae9
refs/heads/master
2023-08-22T19:18:14.649055
2023-07-19T11:38:26
2023-07-19T11:38:26
215,969,476
1,284
278
MIT
2023-09-12T07:09:36
2019-10-18T07:48:15
Python
UTF-8
Python
false
false
27
py
dummy_test.py
def dummy_test(): pass
5a922af2da847227d811d11fb17dab767814d70c
a41e1498e3c080f47abd8e8e57157548df3ebbf1
/pandas/tests/frame/methods/test_set_axis.py
8d249bc7b7fa471db401ed44e50fdb514cf85a51
[ "BSD-3-Clause" ]
permissive
pandas-dev/pandas
e7e639454a298bebc272622e66faa9829ea393bb
c7325d7e7e77ecb4a4e57b48bc25265277c75712
refs/heads/main
2023-09-01T12:42:07.927176
2023-09-01T11:14:10
2023-09-01T11:14:10
858,127
36,166
18,728
BSD-3-Clause
2023-09-14T21:18:41
2010-08-24T01:37:33
Python
UTF-8
Python
false
false
4,608
py
test_set_axis.py
import numpy as np import pytest from pandas import ( DataFrame, Series, ) import pandas._testing as tm class SharedSetAxisTests: @pytest.fixture def obj(self): raise NotImplementedError("Implemented by subclasses") def test_set_axis(self, obj): # GH14636; this tests setting inde...
9bae3f921077e78cadb75d8dd200734c0c0d19b4
7554d7dcbf08a73c12cc6a55fbd3d2eb66e3336c
/Apis/Fitbit/gather_keys_oauth2.py
39a19f843ab1d92a4aa6db217908f42c166f982a
[ "MIT" ]
permissive
mGalarnyk/Python_Tutorials
ae772f6867258d55660410f593aac8955cb65e02
0dcde1b293bf29cf053273b3973ed89b4f7df592
refs/heads/master
2022-12-07T13:20:20.443442
2022-11-30T17:24:18
2022-11-30T17:24:18
48,483,481
1,220
1,215
MIT
2022-04-26T03:21:25
2015-12-23T10:00:50
Jupyter Notebook
UTF-8
Python
false
false
3,441
py
gather_keys_oauth2.py
#!/usr/bin/env python import cherrypy import os import sys import threading import traceback import webbrowser from urllib.parse import urlparse from base64 import b64encode from fitbit.api import Fitbit from oauthlib.oauth2.rfc6749.errors import MismatchingStateError, MissingTokenError class OAuth2Server: def _...
f7c4b0e6fd9ad759debf89961982e0cb384edcbb
1efd2de8bf77ec00eb2fcaf5749278495946d920
/src/tests/ftest/container/label.py
27894b18bcf44179250f60c37bedea4b1a2fb57f
[ "BSD-2-Clause", "BSD-2-Clause-Patent" ]
permissive
daos-stack/daos
6f55bf3061fd830d5b8d28506e1295e2d3a27c38
ed5eed5df43a68571afe123132a743824c02637a
refs/heads/master
2023-08-31T21:43:37.606145
2023-08-31T16:38:00
2023-08-31T16:38:00
69,390,670
631
300
NOASSERTION
2023-09-14T18:55:15
2016-09-27T19:21:29
C
UTF-8
Python
false
false
7,180
py
label.py
""" (C) Copyright 2023 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ import string import uuid from avocado.core.exceptions import TestFail from apricot import TestWithServers from general_utils import report_errors, get_random_string from exception_utils import CommandFailure class Conta...
ba50059373924f1f0cc24950b25215bfdb9ce036
3f6075d481b133342e8d10eb5ff1cbf3f6e1bd2c
/Synthesis.py
3601c51b434a6f731c8e028aa2950f96d2089bd5
[ "MIT" ]
permissive
KinglittleQ/GST-Tacotron
9f038cb648d56f7b1702d51d39148309560565fc
58e3499e7d728e9de67afdbf72529d1b221ece1a
refs/heads/master
2022-12-09T19:25:57.697645
2022-09-01T12:00:36
2022-09-01T12:00:36
134,970,863
332
82
MIT
2022-12-08T02:12:31
2018-05-26T15:01:39
Python
UTF-8
Python
false
false
1,741
py
Synthesis.py
from utils import * from Data import get_eval_data from Hyperparameters import Hyperparameters as hp import torch from scipy.io.wavfile import write from Network import * import sys import os # import cv2 device = torch.device(hp.device) def synthesis(log_number, epoch): log_dir = hp.log_dir.format(log_number)...
f9885a85193e92b9957bd5a1d1fff7e621f584ac
b25e0126f671c6ddca46a4329e388e14d99c2220
/iotdb-client/client-py/iotdb/dbapi/Connection.py
aee5520e9af9283827681bfa78baa3f6f21cc452
[ "Apache-2.0", "BSD-3-Clause", "EPL-1.0", "CDDL-1.1", "MIT", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
apache/iotdb
fd59940125c905537ffedad3b0963f7170ba67d9
d5450a1e5648699409e1c793035204989d78cfbb
refs/heads/master
2023-09-01T01:15:59.527322
2023-08-31T11:43:29
2023-08-31T11:43:29
158,975,124
2,882
893
Apache-2.0
2023-09-14T14:16:58
2018-11-24T21:29:17
Java
UTF-8
Python
false
false
2,569
py
Connection.py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
82c588cdd4940286969d435c482734ab65135923
4506d81df5ae98078e5cbe79f613514ad12b1c83
/nipype/utils/subprocess.py
acd6b632568e837b1c12ea5b87ff0454a9b577f0
[ "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
5,896
py
subprocess.py
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """Miscellaneous utility functions """ import os import sys import gc import errno import select import locale import datetime from pathlib import Path from subprocess import Popen, STDOUT, PIPE from .filem...
26bebd5f4cf96c8a6396bb86e31e881baafb437b
1311696a180047135c825ffa283f9ac9750d4236
/tests/data/stub_merge/micropython-v1_18-esp32/_thread.pyi
e3d030ff284f38f16374680a1b32e63587b92574
[ "MIT" ]
permissive
Josverl/micropython-stubber
71103afa842da02d5ad074b541d9bff7243ce23f
68fe9113f4b4e611bb4c3d19f79c8ba0e7111f5e
refs/heads/main
2023-08-31T00:51:22.200348
2023-05-31T07:48:54
2023-05-31T07:48:54
177,823,007
135
8
NOASSERTION
2023-09-11T21:25:19
2019-03-26T16:00:53
Python
UTF-8
Python
false
false
468
pyi
_thread.pyi
from typing import Any class LockType: def __init__(self, *argv, **kwargs) -> None: ... def acquire(self, *args, **kwargs) -> Any: ... def locked(self, *args, **kwargs) -> Any: ... def release(self, *args, **kwargs) -> Any: ... def allocate_lock(*args, **kwargs) -> Any: ... def exit(*args, **kwargs) -...
7b655865dd2f054054cc78da2f3d9e9d52e99bea
25e99a0af5751865bce1702ee85cc5c080b0715c
/python/src/pyprogbook/第二版(博碩)課本範例程式/ch7/E_7_3.py
761bb46b0f5e49ddb5b4f49637de844ca2df5ca6
[]
no_license
jasonblog/note
215837f6a08d07abe3e3d2be2e1f183e14aa4a30
4471f95736c60969a718d854cab929f06726280a
refs/heads/master
2023-05-31T13:02:27.451743
2022-04-04T11:28:06
2022-04-04T11:28:06
35,311,001
130
67
null
2023-02-10T21:26:36
2015-05-09T02:04:40
C
UTF-8
Python
false
false
362
py
E_7_3.py
#E_7_3.py功能: 讀取每股價格乘以1000寫回另一個文字檔 with open('./file/s3008_read.txt', 'r') as fin: with open('./file/s3008_write.txt', 'w') as fout: for line in fin: data=float(line)*1000 print('每股價格:%5.0f, 每張價格:%8.0f' %(float(line), data)) fout.write(str(data)+'\n')
f49bd718553492684b8a4945f0ab037aebbebd05
807438e6974bf68762208ec24cf824dd0e5fabd6
/libcloud/test/backup/test_dimensiondata_v2_3.py
46110ed7d7db3fb9874e0cee8c0b32f541324984
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
apache/libcloud
019c5bd839dedd2423f9604936886eaff252e04b
abba8c1719a8bda6db8efde2d46fd1b423ae4304
refs/heads/trunk
2023-08-31T20:14:22.369970
2023-08-21T20:17:57
2023-08-21T20:17:57
419,555
1,644
968
Apache-2.0
2023-09-13T19:34:44
2009-12-11T09:00:14
Python
UTF-8
Python
false
false
23,972
py
test_dimensiondata_v2_3.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 use ...
bf0d23a635ad809061d0d7d958a400cb7eef0874
4c8ce1a65c1543d8411b990340b0ccb84bfcf18a
/tests/test_nodesel.py
665ac07ee537eb0e789ac214becc937600bece9a
[ "MIT" ]
permissive
scipopt/PySCIPOpt
e7b92c39ea1cdc32a123669614e4c06bee4b73eb
c6329760618a88e43e32d164e363ed233499de91
refs/heads/master
2023-09-03T13:35:16.769766
2023-07-03T08:33:49
2023-07-03T08:33:49
59,214,089
390
92
MIT
2023-08-07T10:44:19
2016-05-19T14:29:21
Cython
UTF-8
Python
false
false
1,244
py
test_nodesel.py
from pyscipopt import Model from pyscipopt.scip import Nodesel class FiFo(Nodesel): def nodeselect(self): '''first method called in each iteration in the main solving loop. ''' leaves, children, siblings = self.model.getOpenNodes() nodes = leaves + children + siblings return {"selnode" : nodes[0]}...
7a0d356aaccea51732ec43b1002c095d3fcc19e5
b08798b5b9b1aefa557fcf5aae2d7fcfc8310f32
/test/test_lyrics.py
a5197182a874759f7fe6befca3a8ca72c6b62d7c
[ "MIT" ]
permissive
beetbox/beets
f0f361fafd57977497e1981f27946fd52d428b27
0e5ade4f711dbf563d35c290affb0254eee41235
refs/heads/master
2023-09-01T20:50:06.125904
2023-08-27T19:07:13
2023-08-27T19:07:13
827,590
8,977
1,768
MIT
2023-09-13T02:33:14
2010-08-09T23:17:20
Python
UTF-8
Python
false
false
25,750
py
test_lyrics.py
# This file is part of beets. # Copyright 2016, Fabrice Laporte. # # 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, copy,...
bd4641c0dd60232268e8ecbb4588d711e87c83c8
2066e9e86a81291ef25029a37719a10d519c6545
/tests/unit_tests/test_parallel_state.py
552c0acdf96c8a1046d91ab2d56ee6f96e575355
[ "MIT", "Apache-2.0" ]
permissive
NVIDIA/Megatron-LM
143cd64258191390a369442b705d5b348083c685
99b044bff07f8e5d48b45223ed4bb11bd4e884e6
refs/heads/main
2023-09-04T05:57:16.169810
2023-08-30T18:25:58
2023-08-30T18:25:58
176,982,014
6,315
1,136
NOASSERTION
2023-09-14T11:34:29
2019-03-21T16:15:52
Python
UTF-8
Python
false
false
4,598
py
test_parallel_state.py
import torch import megatron.core.parallel_state as ps import pytest from tests.unit_tests.test_utilities import Utils import os rank = Utils.rank world_size = Utils.world_size def test_initialize__and_destroy_model_parallel(): with pytest.raises(AssertionError): assert(ps.initialize_model_parallel()) ...
606241843bc882587805fd69d265117eee5d429c
8a85eb9b50864626cd2674f15b07df3d5dbe0b73
/neo/test/rawiotest/rawio_compliance.py
a40cb5d275597f8d320fcef7b2cf2ea9706e9e37
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
NeuralEnsemble/python-neo
287d3457a44c45f4dcbee0e9f9a2a5d83142de69
354c8d9d5fbc4daad3547773d2f281f8c163d208
refs/heads/master
2023-09-06T03:29:34.835053
2023-09-01T09:17:14
2023-09-01T09:17:14
3,949,530
265
213
BSD-3-Clause
2023-09-14T19:09:24
2012-04-06T12:48:48
Python
UTF-8
Python
false
false
16,432
py
rawio_compliance.py
""" Here a list for testing neo.rawio API compliance. This is called automatically by `BaseTestRawIO` All rules are listed as function so it should be easier to: * identify the rawio API * debug * discuss rules """ import time if not hasattr(time, 'perf_counter'): time.perf_counter = time.time import loggi...
1d083202bd232b6a101f12dd9a78d992d3b559aa
7710556b1211d47cf87241b6b75e14acc24d3f26
/linguist/tests/test_cache.py
7a3051412d0d9635a32493789ce0fdf3347219b1
[ "MIT" ]
permissive
ulule/django-linguist
ae4123290219e382d0968a3855a6e3d9b005e6d4
10cbcfd2692b36a231a9742808c563d2feb1c8d4
refs/heads/master
2022-03-13T01:08:11.644589
2022-03-01T13:51:40
2022-03-01T13:51:40
27,492,508
140
11
MIT
2019-06-25T09:01:01
2014-12-03T15:04:52
Python
UTF-8
Python
false
false
2,045
py
test_cache.py
# -*- coding: utf-8 -*- from ..cache import CachedTranslation from ..models import Translation from .base import BaseTestCase from .models import FooModel class CachedTranslationTest(BaseTestCase): """ Tests CachedTranslation class. """ def test_attributes(self): fields = [f for f in Transla...
0c86e772a82d159c2de4860d0704e0da4ce9f288
c33e5b0d8182b5aa05bd31fa052f4d23e83ec6a7
/parakeet/datasets/am_batch_fn.py
42d5babd0c6bb9e3567d5dd914f1b38ad0580e7f
[ "Apache-2.0" ]
permissive
PaddlePaddle/Parakeet
baad66e2ca4f89cc996b865fcb0cb814f7ae4f7f
8705a2a8405e3c63f2174d69880d2b5525a6c9fd
refs/heads/develop
2021-11-27T20:22:08.102845
2021-11-19T02:21:01
2021-11-19T02:21:01
243,677,660
609
92
NOASSERTION
2022-01-27T02:27:56
2020-02-28T04:24:13
Python
UTF-8
Python
false
false
6,145
py
am_batch_fn.py
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
e5c3ab43933676adc9bdb9139aca4f3c9e3d0670
dcbef06d5a00f07756339b9e62c684dec2fee425
/nuitka/utils/ReExecute.py
7e1086bf68ef6ee3f7e95ba2c874438787450ecb
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Nuitka/Nuitka
f9543d8d95bfa0b81d4e60af0dfad99fb72893a4
d87faf2f7e1d6ed9bfe4cf8c1d648f34307e33f2
refs/heads/develop
2023-08-28T14:00:32.861328
2023-08-27T09:16:45
2023-08-27T09:16:45
9,626,741
8,573
599
Apache-2.0
2023-09-13T02:49:41
2013-04-23T15:40:33
Python
UTF-8
Python
false
false
4,309
py
ReExecute.py
# Copyright 2023, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
7ad42dc23e99a46873a97c3c8a655cc17b3f1562
5e601244fbf32ee5190fb5210a0cd334473a0abe
/functions/system/command/pyRunPowershellCommand.py
c55cc1477f59a1039d9fcf096cb36c4c99b62297
[]
no_license
DingGuodong/LinuxBashShellScriptForOps
69ebe45cf3f92b741a078b9b78c2600328ce9b9e
b2ca1e4c870626dd078d447e2d1479b08602bdf6
refs/heads/master
2023-08-21T20:53:40.617397
2023-07-17T01:41:05
2023-07-17T01:41:05
57,015,255
453
343
null
2023-02-16T01:29:23
2016-04-25T05:55:28
Python
UTF-8
Python
false
false
3,501
py
pyRunPowershellCommand.py
#!/usr/bin/python # encoding: utf-8 # -*- coding: utf-8 -*- """ Created by PyCharm. File Name: LinuxBashShellScriptForOps:pyRunPowershellCommand.py Version: 0.0.1 Author: Guodong Author Email: dgdenterprise@gmail.com URL: https://github.com/DingGu...
4f08a2036786a50fd4a37e8dda034578f1634262
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Configuration/Geometry/python/GeometryTrackerOnly_cff.py
1384f62d4a5d554625f24ec3112b4545f4ea09a8
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
282
py
GeometryTrackerOnly_cff.py
import FWCore.ParameterSet.Config as cms # # Geometry master configuration # # Ideal Tracker only geometry, needed for simulation from Configuration.Geometry.GeometrySimTracker_cff import * # Reco Tracker only geometry from Configuration.Geometry.GeometryRecoTracker_cff import *
0afc25fe3c07d04e86f8be3b5eb345cc0411ba09
5b6ba0f288b1e2ac236af846a9bf546a63228476
/mmtbx/geometry_restraints/tst_reference_coordinate2.py
fca39e97624e0194ea38d3587bd8e903ac22e258
[ "BSD-3-Clause-LBNL" ]
permissive
cctbx/cctbx_project
5b547b416cadbdf95cca21dace9f54272a08d98a
7f4dfb6c873fd560920f697cbfd8a5ff6eed82fa
refs/heads/master
2023-08-17T17:44:05.077010
2023-08-16T22:40:22
2023-08-16T22:40:22
39,508,026
206
131
NOASSERTION
2023-09-14T17:12:55
2015-07-22T13:36:27
Python
UTF-8
Python
false
false
13,357
py
tst_reference_coordinate2.py
from __future__ import absolute_import, division, print_function import iotbx.pdb from cctbx.array_family import flex from cctbx import adp_restraints # import dependency import random from libtbx import group_args from mmtbx.refinement.real_space import individual_sites from mmtbx.rotamer.rotamer_eval import RotamerE...
e82fd1c94d46e5edcce7a7515616fe9a24a062f6
6e7491436965fcf7586c80d69db3b07b7e415d6f
/iridiumtk/reassembler/stats.py
5d01549f9c0f1abcba39e6adae63bd94d9f136de
[ "BSD-2-Clause" ]
permissive
muccc/iridium-toolkit
47c03aa797c3ea2b458a13b57fff7e054f709c75
0598b80abf6e1c5644813f726e9c96425d5fdee7
refs/heads/master
2023-08-16T14:16:01.108485
2023-08-05T07:42:34
2023-08-05T08:00:11
28,563,517
433
126
null
2023-08-05T08:01:58
2014-12-28T14:19:34
Python
UTF-8
Python
false
false
3,104
py
stats.py
#!/usr/bin/env python3 # vim: set ts=4 sw=4 tw=0 et pm=: import re import datetime from .base import * from ..config import config, outfile, state ft=['IBC', 'IDA', 'IIP', 'IIQ', 'IIR', 'IIU', 'IMS', 'IRA', 'IRI', 'ISY', 'ITL', 'IU3', 'I36', 'I38', 'MSG', 'VDA', 'VO6', 'VOC', 'VOD', 'MS3', 'VOZ', 'IAQ'] class Stats...
fcb11561d27e05b37dc5dc83b44b690cc5a0f952
bb1977851e40ee4c0ff124437515c5f21148b820
/bioframe/core/stringops.py
4918b8c44b345c0fa4088012917db9cb31505d15
[ "MIT" ]
permissive
open2c/bioframe
135df8f94599817f7f5434850d6108651268a80a
f208fe63e0d93c9e35a233bd02d07b1fc3545954
refs/heads/main
2023-07-06T09:57:54.209112
2023-07-03T18:12:13
2023-07-03T18:12:13
69,901,992
108
10
MIT
2023-06-30T23:48:44
2016-10-03T19:09:54
Python
UTF-8
Python
false
false
7,009
py
stringops.py
import re from typing import Optional, Tuple, Union import pandas as pd __all__ = [ "parse_region", "parse_region_string", "is_complete_ucsc_string", "to_ucsc_string", ] NUMERIC_REGEX = re.compile("([0-9,.]+)") RANGE_TOKEN_SPEC = [ ("HYPHEN", r"-"), ("COORD", r"[0-9,]+(\.[0-9]*)?(?:[a-z]+)?"...
47ebfe6aa3e31176886dfbcf280345fc1bb24316
2066e9e86a81291ef25029a37719a10d519c6545
/tasks/eval_utils.py
6b29db345f56496a9995e38c5980077ddce922a2
[ "MIT", "Apache-2.0" ]
permissive
NVIDIA/Megatron-LM
143cd64258191390a369442b705d5b348083c685
99b044bff07f8e5d48b45223ed4bb11bd4e884e6
refs/heads/main
2023-09-04T05:57:16.169810
2023-08-30T18:25:58
2023-08-30T18:25:58
176,982,014
6,315
1,136
NOASSERTION
2023-09-14T11:34:29
2019-03-21T16:15:52
Python
UTF-8
Python
false
false
7,162
py
eval_utils.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. """Evaluation utilities.""" import os import time from functools import partial import torch from megatron import get_args from megatron import print_rank_last, is_last_rank from megatron.core import mpu from megatron.schedules import get_forward_backwa...
70126f8b3a032799d2eb05912644df98a5f5a8fd
bbf0c3294b8aac4cbabf255c2904556144c85610
/modoboa/dmarc/views.py
45dad11618a03393d9a356c09510c55c76da67f7
[ "ISC" ]
permissive
modoboa/modoboa
4a170fabcb15b892fe627795b02a02d4c16783d6
df699aab0799ec1725b6b89be38e56285821c889
refs/heads/master
2023-08-30T12:58:51.313642
2023-08-29T13:22:14
2023-08-29T13:22:14
9,469,271
2,201
370
ISC
2023-09-13T12:47:28
2013-04-16T09:43:55
Python
UTF-8
Python
false
false
5,605
py
views.py
"""DMARC views.""" import concurrent.futures import datetime import tldextract from dns import resolver, reversename from django.db.models import Q from django.utils import timezone from django.views import generic from django.contrib.auth import mixins as auth_mixins from django.utils.translation import gettext_la...
6f533599f614a9b80727696f2df706f5d558dbf3
060c559cdfe39e3ff37bcc4f5113f30901a605d7
/tests/tfhub/tfhub_resnet_v1_101.py
ccea57b858c0c42b6ff807964cc30f6437da9881
[ "Apache-2.0" ]
permissive
onnx/tensorflow-onnx
4402bc3416b1e191b122120aafcce5a5f396b160
d5b7f39de66f3b4ff8731fd23b3f379ae731e601
refs/heads/main
2023-09-01T08:47:00.417130
2023-08-29T03:57:16
2023-08-29T03:57:16
125,098,252
2,068
454
Apache-2.0
2023-08-29T03:57:18
2018-03-13T18:39:56
Jupyter Notebook
UTF-8
Python
false
false
519
py
tfhub_resnet_v1_101.py
# SPDX-License-Identifier: Apache-2.0 import os import numpy from _tools import generate_random_images, benchmark def main(opset=13): url = "https://tfhub.dev/google/imagenet/resnet_v1_101/feature_vector/5?tf-hub-format=compressed" dest = "tf-resnet_v1_101" name = "resnet_v1_101" onnx_name = os.path.j...
c50e0e14af144b0dbc2f5c7c26ac617ee9d43d24
05b0c763ab92086e69a8d00ae6465009c596f6bc
/intel_extension_for_pytorch/_inductor/decomposition.py
6b41a474aee5da2914f6257fd1a93b0f7a61510f
[ "Apache-2.0" ]
permissive
intel/intel-extension-for-pytorch
60ce2af2ec3a1dacae0d0db13dd51a5b44512e61
7f9266789de7ca9d8bcf55606f3204f1a3640640
refs/heads/master
2023-09-01T09:13:16.866410
2023-08-31T08:00:37
2023-08-31T08:00:37
256,061,008
991
144
Apache-2.0
2023-08-13T13:56:07
2020-04-15T23:35:29
Python
UTF-8
Python
false
false
591
py
decomposition.py
import logging import torch._decomp as decomp log = logging.getLogger(__name__) decomposition_overrides = {} def register_decomposition(ops): for op in [ops] if callable(ops) else ops: if op in decomposition_overrides: log.warning(f"duplicate decomp: {ops}") return decomp.register_decompo...
e01a671f70ea70ae8f366b5365f858a86fccd27f
9ed3b16b3da72e4c47a04f2f2e3ef395e9fd9f20
/main/python-scour/template.py
42317fb7b879297079594f5209a8633a1e856e51
[ "BSD-2-Clause" ]
permissive
chimera-linux/cports
fdae59dc25856942be3041e10e3533dbf8f883c3
714680161cd719dd047452c95fbb9b447bc23a86
refs/heads/master
2023-09-03T19:30:40.720670
2023-09-03T15:07:40
2023-09-03T15:07:40
374,000,317
118
37
BSD-2-Clause
2023-09-14T20:31:08
2021-06-05T02:07:34
Python
UTF-8
Python
false
false
476
py
template.py
pkgname = "python-scour" pkgver = "0.38.2" pkgrel = 0 build_style = "python_module" hostmakedepends = ["python-setuptools"] depends = ["python-setuptools", "python-six"] checkdepends = ["python-six"] pkgdesc = "Python SVG scrubber" maintainer = "q66 <q66@chimera-linux.org>" license = "Apache-2.0" url = "https://github....
aca4187ffa8bb1455eaab5e040140185a910d373
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Sklearn_scipy_numpy/source/numpy/distutils/tests/test_misc_util.py
c50b9480b8b761ec34d309d3ad766d2d5f1a5be5
[ "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
3,165
py
test_misc_util.py
#!/usr/bin/env python from __future__ import division, absolute_import, print_function from os.path import join, sep, dirname from numpy.distutils.misc_util import ( appendpath, minrelpath, gpaths, get_shared_lib_extension ) from numpy.testing import ( TestCase, run_module_suite, assert_, assert_equal ) ajoi...
dc72394dc280f180826bcfd802b8e5c424577ec4
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/contrib/python/ipykernel/py2/ipykernel/inprocess/manager.py
ccdaccadf47b9213fe2e6cf60b486eaefd5f5364
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
catboost/catboost
854c1a1f439a96f1ae6b48e16644be20aa04dba2
f5042e35b945aded77b23470ead62d7eacefde92
refs/heads/master
2023-09-01T12:14:14.174108
2023-09-01T10:01:01
2023-09-01T10:22:12
97,556,265
8,012
1,425
Apache-2.0
2023-09-11T03:32:32
2017-07-18T05:29:04
Python
UTF-8
Python
false
false
2,764
py
manager.py
"""A kernel manager for in-process kernels.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from traitlets import Instance, DottedObjectName, default from jupyter_client.managerabc import KernelManagerABC from jupyter_client.manager import KernelManager from jup...
00eff249c4727ed13682809bf740f909159bba4e
5f1a3d7f36425a52049f3bf14f7a8cee66fb23d5
/timeflux/__init__.py
b03a9e4685d0da6a5bd660084d847f80ec28f544
[ "MIT" ]
permissive
timeflux/timeflux
1d6fdae7ec6e26f6a07c36efa068f57f713c13e2
55ccae74b5eb99504b3aa715ffa394b7716884b2
refs/heads/master
2023-06-07T16:42:35.337451
2023-06-01T15:04:27
2023-06-01T15:04:27
164,121,626
163
23
MIT
2023-02-23T05:12:57
2019-01-04T15:09:03
Python
UTF-8
Python
false
false
368
py
__init__.py
""" Timeflux """ # Fix Ctrl-C handling in Windows import os os.environ["FOR_DISABLE_CONSOLE_CTRL_HANDLER"] = "1" # Versioning try: from setuptools_scm import get_version __version__ = get_version(root="..", relative_to=__file__) except: try: from .version import version __version__ = ve...
f1156e5042bda900f747d87d250dde58a6896a89
783bcccb13591e80b439e29782ecb977ae67c1f1
/binderhub/metrics.py
2d33d19665930c695f4988fc3e581d52e16c06eb
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
jupyterhub/binderhub
3ff86c5e896e68c17c6fd000f1426837237cb186
84b1db907335d5e0307222fbfcb6de77a98db8a2
refs/heads/main
2023-08-29T14:10:35.419954
2023-08-02T08:28:21
2023-08-02T08:28:21
89,419,368
2,422
420
BSD-3-Clause
2023-09-05T09:08:40
2017-04-26T00:28:26
Python
UTF-8
Python
false
false
360
py
metrics.py
from prometheus_client import CONTENT_TYPE_LATEST, REGISTRY, generate_latest from .base import BaseHandler class MetricsHandler(BaseHandler): # demote logging of 200 responses to debug-level log_success_debug = True async def get(self): self.set_header("Content-Type", CONTENT_TYPE_LATEST) ...
a57c578b53c379641982e5c5ad6c0473a8d36915
9c5abcac18a8bdac74b5ba1658fd3d36a13fe419
/src/estimagic/batch_evaluators.py
c66aa3f93defddd9237b7b28f459ef4ff808c48d
[ "MIT" ]
permissive
OpenSourceEconomics/estimagic
60a793dc0b08aba47f86e29ce16063d1160d6e3e
0db0e163dbd622a2a4ffb86a6a1fcac7ddced18f
refs/heads/main
2023-08-17T08:02:17.051564
2023-08-13T10:38:41
2023-08-13T10:38:41
166,381,699
202
28
MIT
2023-09-04T23:23:28
2019-01-18T09:43:04
Python
UTF-8
Python
false
false
6,130
py
batch_evaluators.py
"""A collection of batch evaluators for process based parallelism. All batch evaluators have the same interface and any function with the same interface can be used used as batch evaluator in estimagic. """ from joblib import Parallel, delayed try: from pathos.pools import ProcessPool pathos_is_available = ...
ecc98958e07490ef034ca2fe97f553a156bb73ff
e196fe807b2720eb7f08ad9ca914887341bd9b44
/tests/plugins/test_albavision.py
a84f69ebfb4123a4b1213d20567f7c6a2f7bdbe2
[ "BSD-2-Clause" ]
permissive
streamlink/streamlink
ab2ce4a8d71d2abd67f300628f04ce960e7696d0
561f7ef854e3ec076e5bd3efb3e7f8efe5df32df
refs/heads/master
2023-08-29T15:03:17.008502
2023-08-26T19:24:39
2023-08-27T11:02:30
68,402,336
9,529
1,385
BSD-2-Clause
2023-09-13T13:37:33
2016-09-16T17:52:50
Python
UTF-8
Python
false
false
2,617
py
test_albavision.py
from streamlink.plugins.albavision import Albavision from tests.plugins import PluginCanHandleUrl class TestPluginCanHandleUrlAlbavision(PluginCanHandleUrl): __plugin__ = Albavision should_match = [ "http://antena7.com.do/envivo-canal-7/", "http://www.antena7.com.do/envivo-canal-7/", ...
cbe972c00881ab96a7f94246c63a452729fe25f9
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/media_player/test_async_helpers.py
cf71b52c046cf4007d35f4db06f290f419869481
[ "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
5,803
py
test_async_helpers.py
"""The tests for the Async Media player helper functions.""" import pytest import homeassistant.components.media_player as mp from homeassistant.const import ( STATE_IDLE, STATE_OFF, STATE_ON, STATE_PAUSED, STATE_PLAYING, STATE_STANDBY, ) class ExtendedMediaPlayer(mp.MediaPlayerEntity): "...
02390270bbe4daa25035b6fcdee646306f4b9a93
a838c711a218bbdb661132eaf252fa417ca8f273
/influxdb_client/client/util/__init__.py
f9a83206cfd76569f579592fa248f5049e2a523d
[ "MIT" ]
permissive
influxdata/influxdb-client-python
9ae84038c1145466dd40c3a9096a74983f29bedb
1ec64b7e1039c891ac3a667ee6697731c61ddbaf
refs/heads/master
2023-08-23T09:14:38.727662
2023-08-09T03:59:54
2023-08-09T03:59:54
192,689,401
623
215
MIT
2023-09-11T05:46:26
2019-06-19T08:17:20
Python
UTF-8
Python
false
false
21
py
__init__.py
"""Utils package."""
12721ca1c6baeaef59befc4bf16ff2c7f30433ac
323897ae1b6a1afadb8fe8a35da25c9260bfb778
/setup.py
7c5545d87d2a72dccc3274224c102f3d57d59d6a
[ "MIT" ]
permissive
koaning/doubtlab
33c7a95a6cf3f5f551be880982b6a8107c0ed8db
0dd59d4e1168b08db7bd08f9b0934133c7e6c33c
refs/heads/main
2022-12-05T21:23:28.519902
2022-11-25T16:06:50
2022-11-25T16:06:50
425,039,785
473
22
MIT
2022-11-25T16:06:51
2021-11-05T17:57:54
Python
UTF-8
Python
false
false
1,690
py
setup.py
import pathlib from setuptools import setup, find_packages base_packages = ["scikit-learn>=1.0.0", "cleanlab>=2.0", "pandas>=1.3.3"] docs_packages = [ "mkdocs==1.3.0", "mkdocs-material==4.6.3", "mkdocstrings==0.18.1", "mktestdocs==0.1.2", "mkdocstrings-python==0.6.6", ] test_packages = [ "in...
6a5c4fc7034d58d144d85feb9ca484828f0e7464
3ef70fe63acaa665e2b163f30f1abd0a592231c1
/stackoverflow/venv/lib/python3.6/site-packages/hyperlink/_url.py
50e8535e28dce91d691035c1670dfd39d16325be
[ "MIT" ]
permissive
wistbean/learn_python3_spider
14914b63691ac032955ba1adc29ad64976d80e15
40861791ec4ed3bbd14b07875af25cc740f76920
refs/heads/master
2023-08-16T05:42:27.208302
2023-03-30T17:03:58
2023-03-30T17:03:58
179,152,420
14,403
3,556
MIT
2022-05-20T14:08:34
2019-04-02T20:19:54
Python
UTF-8
Python
false
false
72,479
py
_url.py
# -*- coding: utf-8 -*- u"""Hyperlink provides Pythonic URL parsing, construction, and rendering. Usage is straightforward:: >>> from hyperlink import URL >>> url = URL.from_text(u'http://github.com/mahmoud/hyperlink?utm_source=docs') >>> url.host u'github.com' >>> secure_url = url.replace(scheme=u'htt...
f8001f2de7449380f8cb0023b6bf870ccd36a490
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/AvatarInputHandler/AimingSystems/steady_vehicle_matrix.py
18f3541a05968b9a5ee5fb3341ccdfaae5961077
[]
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
1,568
py
steady_vehicle_matrix.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/AvatarInputHandler/AimingSystems/steady_vehicle_matrix.py import math_utils import BigWorld import Math from cgf_obsolete_script.py_component import Component class SteadyVehicleMatrixCalculator(Component): outputMProv = proper...
e814666b204400133423ef14c33b7c445686cb59
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/DQMOffline/RecoB/python/bTagMiniDQMDeepCSV.py
4b4aa01dbd32745626b4fe4bc6cc3b6c20934d49
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
1,589
py
bTagMiniDQMDeepCSV.py
import FWCore.ParameterSet.Config as cms from DQMOffline.RecoB.bTagGenericAnalysis_cff import bTagGenericAnalysisBlock from DQMOffline.RecoB.cTagGenericAnalysis_cff import cTagGenericAnalysisBlock # recommendation for UL18: https://twiki.cern.ch/twiki/bin/view/CMS/BtagRecommendation106XUL18 deepCSVWP = { 'BvsAll...
cf3fbce40aa55aeb4af44c450869d6a7ddf0f594
fcbf4b35f4246f37e0a6033c6de672a679599501
/example/keepalive/client.py
3f4b75ff1a89f2919ce425ab9b31424781b6fc11
[ "MIT" ]
permissive
lega911/ijson
62d939edaa8759ca24eb9da1d9d5812e34a9f81c
63166e7c5e557b098295bdd477abb330d0339f44
refs/heads/master
2022-01-30T21:23:35.979591
2022-01-07T07:57:54
2022-01-09T03:12:19
184,943,623
144
13
MIT
2019-09-09T21:42:07
2019-05-04T20:56:18
C++
UTF-8
Python
false
false
116
py
client.py
import requests r = requests.post('http://127.0.0.1:8001/test/command', json={'params': 'Hello'}) print(r.json())
a9a0c9b901d5e14b36f1064c5912d3e5422a56ae
091e97bcfe5acc0635bd601aa8497e377b74d41a
/openshift/installer/vendored/openshift-ansible-3.11.28-1/roles/lib_utils/src/test/unit/test_repoquery.py
325f41dab99f445851b1721eb4f923ad589cc3ce
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
openshift/openshift-tools
d59b63778f25cb8fb3c7a0253afe22a173e72f9d
e342f6659a4ef1a188ff403e2fc6b06ac6d119c7
refs/heads/prod
2023-08-30T01:52:04.108978
2022-03-23T21:07:28
2022-03-23T21:07:28
36,827,699
170
254
Apache-2.0
2022-06-16T12:11:51
2015-06-03T20:09:22
Python
UTF-8
Python
false
false
2,643
py
test_repoquery.py
''' Unit tests for repoquery ''' import os import sys import unittest import mock # Removing invalid variable names for tests so that I can # keep them brief # pylint: disable=invalid-name,no-name-in-module # Disable import-error b/c our libraries aren't loaded in jenkins # pylint: disable=import-error,wrong-import-...
21fc19aad082386cb62ea376fc369ac98e1237bc
e8846f706a428a91659ac6e24974dc696089fe4a
/pandapower/networks/kerber_extreme_networks.py
6b797c2bc795e37637af7fbfa98f9801e8b846a3
[ "BSD-3-Clause" ]
permissive
e2nIEE/pandapower
3e434bf81b29e9c88905abbd82fd0309e2191ffb
5592ba1f6fcd727053a37dcf246b9bf36874c24a
refs/heads/develop
2023-09-03T23:21:25.979973
2023-08-31T11:00:17
2023-08-31T11:00:17
78,748,060
608
481
NOASSERTION
2023-09-14T18:22:08
2017-01-12T13:27:53
Python
UTF-8
Python
false
false
10,396
py
kerber_extreme_networks.py
# -*- coding: utf-8 -*- # Copyright (c) 2016-2023 by University of Kassel and Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel. All rights reserved. from pandapower.networks.kerber_networks import _create_branched_loads_network, _create_branch_network # The Kerber extre...
0b8ae10f592a62697b86fa4ab804924790708e93
29dfa1deefc72493d1b1eecf1a8df62e24599a77
/dfvfs/vfs/ntfs_file_entry.py
89121656fa300b0fb837e0cb3f9d97d2ee07743f
[ "Apache-2.0" ]
permissive
log2timeline/dfvfs
fd301eaf721a9945641a44ff722aec963158a6b3
28756d910e951a22c5f0b2bcf5184f055a19d544
refs/heads/main
2023-08-07T22:45:45.432668
2023-07-30T12:17:56
2023-07-30T12:17:56
23,820,144
197
65
Apache-2.0
2023-07-30T12:17:58
2014-09-09T05:06:44
Python
UTF-8
Python
false
false
12,181
py
ntfs_file_entry.py
# -*- coding: utf-8 -*- """The NTFS file entry implementation.""" import copy import pyfsntfs import pyfwnt from dfdatetime import filetime as dfdatetime_filetime from dfvfs.lib import definitions from dfvfs.lib import errors from dfvfs.path import ntfs_path_spec from dfvfs.resolver import resolver from dfvfs.vfs i...
e299516a96e8ce5e37b79de4567e0cd0d16fe15e
0621aabcfeac5e4a08d49aa3f791fe46f366a734
/doc/Programs/LecturePrograms/programs/RandomWalks/python/program2.py
4d8db51117dbe882dfad97186c066ee1ba464005
[ "CC0-1.0" ]
permissive
CompPhysics/ComputationalPhysics
16341df05a7094ea6442c98466a704249c7085dc
be73eb8bbb989a69fb27e87d7d2686451e7e81f9
refs/heads/master
2022-03-20T17:41:39.981703
2022-03-04T17:36:23
2022-03-04T17:36:23
48,985,734
287
146
CC0-1.0
2020-12-04T12:55:37
2016-01-04T09:01:24
null
UTF-8
Python
false
false
3,741
py
program2.py
# coding=utf-8 # # 2D-randomwalk: A walker makes several steps, # with a given number of walks pr. trial # #Translated to Python by Kyrre Ness Sjøbæk import numpy, sys #import math def mc_trial(number_walks,move_probability,\ walk_cum_x,walk_cum_y,walk2_cum_x,walk2_cum_y): """ Do a MonteCarlo tri...
ff4be4b2223dc52ae11d45e83fa87a7c7b1561a0
e17660bcf07fe3221a18dc3da68f06c85c40cbf9
/src/py2app/bootstrap/reset_sys_path.py
b8663d6f18f652e11c73d291dcd79d1637c0ea1f
[ "MIT", "Python-2.0" ]
permissive
ronaldoussoren/py2app
bca832cab41b9a365342d400aed4ebbbe80bed0c
e9c7a88f34d79c41a3a344ccc14cd97c24904b9f
refs/heads/master
2023-09-01T05:14:53.388393
2023-04-16T08:34:06
2023-04-16T08:34:06
233,826,136
292
34
NOASSERTION
2023-08-30T17:54:44
2020-01-14T11:27:41
Python
UTF-8
Python
false
false
216
py
reset_sys_path.py
def _reset_sys_path() -> None: # Clear generic sys.path[0] import os import sys resources = os.environ["RESOURCEPATH"] while sys.path[0] == resources: del sys.path[0] _reset_sys_path()
1bb3f49f38cdb12307c01a8ecddb0dc50bf3400c
ecaba173879f92f24e3c951866fda23c0a4fc426
/tests/linux_benchmarks/fio_benchmark_test.py
174f0865c1fc57a888111fd9c388e7e66b82e715
[ "Classpath-exception-2.0", "BSD-3-Clause", "AGPL-3.0-only", "MIT", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
GoogleCloudPlatform/PerfKitBenchmarker
2f4917fd796db4eb90822c557d8fa08a497fbd48
d0699f32998898757b036704fba39e5471641f01
refs/heads/master
2023-09-02T08:14:54.110308
2023-09-01T20:28:01
2023-09-01T20:28:38
21,950,910
1,923
567
Apache-2.0
2023-09-13T22:37:42
2014-07-17T17:23:26
Python
UTF-8
Python
false
false
10,376
py
fio_benchmark_test.py
# Copyright 2018 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
0dc121b0fa05fa6a6529b6a7e0f3a2376c4a9c90
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoLocalMuon/DTRecHit/python/dt1DRecHits_LinearDrift_cfi.py
034beb703eb42958b1b54c91b980e5400a34e54a
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
903
py
dt1DRecHits_LinearDrift_cfi.py
import FWCore.ParameterSet.Config as cms # Module for rechit building of simulated digis using the constant # drift velocity over the entire cell # The reconstruction algo and its parameter set from RecoLocalMuon.DTRecHit.DTLinearDriftAlgo_cfi import * dt1DRecHits = cms.EDProducer("DTRecHitProducer", # The recons...
92dbf5a34bd3923a7b00acad23a190c3c56a565d
e2e34d01afc5b6bc6923a721ef92e8ffa8884f86
/azure_functions_worker/bindings/meta.py
3f52f8d0f1c24bd0112fae299e1ec92adff49213
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/azure-functions-python-worker
094340eeb0c4728e3202749027f01ab75e908bd8
d4bdf7edc544b6c15e541930f890da790b180ebd
refs/heads/dev
2023-08-22T22:48:01.645722
2023-08-14T14:52:42
2023-08-14T14:52:42
117,730,503
329
122
MIT
2023-09-01T16:54:58
2018-01-16T19:23:54
Python
UTF-8
Python
false
false
6,506
py
meta.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import sys import typing from .. import protos from . import datumdef from . import generic from .shared_memory_data_transfer import SharedMemoryManager PB_TYPE = 'rpc_data' PB_TYPE_DATA = 'data' PB_TYPE_RPC_SHARED_MEMORY =...
6db64a8f3fe84340d5277ea8bc8a54d8cdc02079
6416b746ee71d897789eab1e450000831674dbd0
/src/otx/algorithms/detection/adapters/mmdet/utils/exporter.py
2d82c980fbfcde0ccd51bbe57d0ade3b4f1bde83
[ "Apache-2.0" ]
permissive
openvinotoolkit/training_extensions
c921f83ad52311af96ff45ae0b88d0aecddd855b
80454808b38727e358e8b880043eeac0f18152fb
refs/heads/develop
2023-08-31T06:29:07.229339
2023-08-31T01:57:26
2023-08-31T01:57:26
154,843,614
397
230
Apache-2.0
2023-09-14T06:17:01
2018-10-26T14:02:29
Python
UTF-8
Python
false
false
2,389
py
exporter.py
"""Exporter for OTX Detection task with MMDETECTION training backend.""" # Copyright (C) 2023 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # import numpy as np from otx.algorithms.common.adapters.mmcv.tasks.exporter import Exporter from otx.algorithms.common.adapters.mmdeploy.utils.utils import ( sync_...
67f5ba905ddf77321b5060f5329e1b5848e01f10
620323fc090cebaf7aca456ff3f7fbbe1e210394
/for_games/Dark Souls/graph_ds2_locations__graphviz__DOT/ds2_locations.py
5ee289a96c478964daecc70074cea6bd9eb42da1
[ "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
3,201
py
ds2_locations.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" # pip install graphviz from graphviz import Graph g = Graph("g", filename="ds2_locations.gv", comment="Locations Dark Souls") # SOURCE: https://github.com/gil9red/SimplePyScripts/blob/45852f0541644dfb0478e98e2df530c1bb93eeae/Dark%20Souls/gener...
1dc38cda94fc4bafd242cbd535f93ba3bcb702d0
9837a28c9eb0d4a26f98e8cfe28360ad0fe47059
/src/python/chap01/SparkSecondarySort.py
5b24774478c5398a23f6efedd5f3efc7ad2b3812
[ "Apache-2.0" ]
permissive
mahmoudparsian/data-algorithms-book
2ab1ca468b0b15fa8d1e022ec2033b79711f0ec4
7d38f463f507a6b58da9751cf17d9970bec5e083
refs/heads/master
2023-09-06T04:33:07.342804
2021-12-28T10:20:12
2021-12-28T10:20:12
22,690,513
1,103
732
NOASSERTION
2023-04-21T20:47:22
2014-08-06T16:48:22
Java
UTF-8
Python
false
false
522
py
SparkSecondarySort.py
from pyspark import SparkContext import sys if __name__ == "__main__": if len(sys.argv) != 3: print "Usage: SparkSecondarySort [sparkmaster] [file]" sys.exit(-1) master = sys.argv[1] sc = SparkContext(master, "SparkSecondarySort") lines = sc.textFile(sys.argv[2]) pairs = lines.map...
e18af92482a1c9489c05469e6992d6dc7bf2ea06
a133a7c64f6e08def0f936898466990d1fd1b31f
/atomate/feff/firetasks/tests/test_tasks.py
d3ff9798a22972e25cd44fa586922c5f8baaaadd
[ "LicenseRef-scancode-hdf5", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
hackingmaterials/atomate
a6458f9323b8f14d7b4ebb6558fb578d50a3f1ed
f4060e55ae3a22289fde9516ff0e8e4ac1d22190
refs/heads/main
2023-08-07T21:53:24.701157
2023-07-25T22:28:06
2023-07-25T22:28:06
43,023,379
217
173
NOASSERTION
2023-08-25T22:09:48
2015-09-23T19:53:55
Python
UTF-8
Python
false
false
1,547
py
test_tasks.py
import os import unittest from glob import glob from pymatgen.core import Structure from pymatgen.io.feff.inputs import Paths from pymatgen.io.feff.sets import MPEXAFSSet from atomate.feff.firetasks.glue_tasks import CopyFeffOutputs from atomate.feff.firetasks.write_inputs import WriteEXAFSPaths from atomate.utils.te...
4432112d3668850c7094a05a8b10438043f6872e
d2e218a5949039544b0bc068dca2c0388753cdb9
/src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/resolver.py
a4dcc99823209e7b013afa9e93b2af1de45e1310
[ "MIT-0", "Apache-2.0" ]
permissive
awslabs/aws-deployment-framework
572e12acdb79ad598a1c306c3e919555ad94c28c
d8087374a066cae0a563e92997b93f417a9a2683
refs/heads/master
2023-09-01T07:12:09.846936
2023-08-09T14:37:44
2023-08-09T14:37:44
171,725,612
608
257
Apache-2.0
2023-08-29T14:15:23
2019-02-20T18:16:35
Python
UTF-8
Python
false
false
2,147
py
resolver.py
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 """ This file is pulled into CodeBuild containers and used to resolve values from Parameter Store and CloudFormation """ from typing import Optional from parameter_store import ParameterStore from base_resolver i...
d96f5aa0592dea6147cb62302d05335ee5fb75ce
b7163b44b679e082fe97cf7fcd0c73b2fcdb38eb
/modules/dbnd/src/targets/providers/matplotlib/matplotlib_marshallers.py
33477914fd388da067bf1ad3af01d066e506f114
[ "Apache-2.0" ]
permissive
databand-ai/dbnd
70c95d95e12bfb8ab471a6dce27691ed658cb92d
d59c99dcdcd280d7eec36a693dd80f8c8c831ea2
refs/heads/develop
2023-06-24T18:07:56.524526
2023-05-28T07:57:36
2023-05-28T07:57:36
231,361,064
257
33
Apache-2.0
2023-08-06T08:30:28
2020-01-02T10:42:47
Python
UTF-8
Python
false
false
534
py
matplotlib_marshallers.py
# © Copyright Databand.ai, an IBM Company 2022 from __future__ import absolute_import import io from matplotlib import figure from targets.marshalling.marshaller import Marshaller from targets.target_config import FileFormat class MatplotlibFigureMarshaller(Marshaller): type = figure.Figure file_format = ...
c76d33aeaddd2630ea7c1ccfc9d126a008b2043e
279f415dd1e06c594c6c87deda57e201c73c4542
/egs2/TEMPLATE/asr1/steps/libs/nnet3/train/common.py
eac376f165de33c176cb970d57857b5e1bbb4d1c
[ "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
50,414
py
common.py
# Copyright 2016 Vijayaditya Peddinti. # 2016 Vimal Manohar # Apache 2.0 """This module contains classes and methods common to training of nnet3 neural networks. """ from __future__ import division import argparse import glob import logging import os import math import re import shutil import libs....
29653e1cdfe00e0bebb85f31279113c68afb3da8
40ca168bbb9c865a13c83ef479838981c5b7a1c0
/packages/hagrid/hagrid/__init__.py
eabd22f9f19ebb1fd56b86ae8e07e50c4d7d385c
[ "Apache-2.0", "Python-2.0" ]
permissive
OpenMined/PySyft
6907171bc35062d04c1b6320097c3bcafb65ae68
1833278212d89e66853f28a7ca365261550bbe4f
refs/heads/dev
2023-09-05T05:50:48.773703
2023-09-05T04:00:44
2023-09-05T04:00:44
97,641,933
9,473
2,530
Apache-2.0
2023-09-14T12:50:53
2017-07-18T20:41:16
Python
UTF-8
Python
false
false
1,094
py
__init__.py
from .git_check import verify_git_installation # noqa # stdlib import sys from typing import Any # relative from .cli import check_status as check # noqa: F401 from .quickstart_ui import QuickstartUI from .version import __version__ # noqa: F401 from .wizard_ui import WizardUI from .orchestra import Orchestra # ...
dd95f6722c067a4363ea13eab4c7be1cc6a8a5ac
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/checkov/cloudformation/checks/resource/aws/ElasticsearchDomainLogging.py
c9474540d095beeed33fc262dc1569e90d0e5fdf
[ "Apache-2.0" ]
permissive
bridgecrewio/checkov
aeb8febed2ed90e61d5755f8f9d80b125362644d
e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d
refs/heads/main
2023-08-31T06:57:21.990147
2023-08-30T23:01:47
2023-08-30T23:01:47
224,386,599
5,929
1,056
Apache-2.0
2023-09-14T20:10:23
2019-11-27T08:55:14
Python
UTF-8
Python
false
false
1,130
py
ElasticsearchDomainLogging.py
from __future__ import annotations from typing import Any from checkov.common.models.enums import CheckCategories, CheckResult from checkov.cloudformation.checks.resource.base_resource_check import BaseResourceCheck class ElasticsearchDomainLogging(BaseResourceCheck): def __init__(self) -> None: name = ...
c50029d291c6f00c52c737ffd8cb4442750ff842
c1fe9e7e94df1816004659579f52dcae4744994d
/src/xdoctest/demo.pyi
2846a559d54db9330f89e7af864c82c44edd848b
[ "Apache-2.0" ]
permissive
Erotemic/xdoctest
60ec105c7305b2f72c2ee183e62fbe3a35e010e2
20b998eb5e5d05795292972b267ea7407cea771c
refs/heads/main
2023-08-19T07:29:18.258737
2023-08-04T22:12:23
2023-08-04T22:44:45
104,611,526
196
9
Apache-2.0
2023-08-04T22:44:47
2017-09-24T01:59:02
Python
UTF-8
Python
false
false
271
pyi
demo.pyi
from _typeshed import Incomplete def myfunc(): ... class MyClass: data: Incomplete def __init__(self, *args, **kw) -> None: ... @classmethod def demo(cls, **kw): ... @staticmethod def always_fails() -> None: ...
5e5e95bcd4c6f9a4875d506ec1dd25a6ea6a3ec0
8b564541cbd170c0684445460dde6a231c5fc54e
/splunk_eventgen/lib/eventgensamples.py
f0ab74a278da19a004675e283bcb5d15a4671406
[ "BSD-3-Clause", "MIT", "Apache-2.0", "BSD-2-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
splunk/eventgen
2b5de540517dae75bbadafc786f0ffa25c4565f2
52542a6565ab75d7f1ad7debbdf75cfa9b79d226
refs/heads/develop
2023-08-21T03:08:51.920328
2021-01-11T18:05:48
2021-01-11T18:05:48
5,445,179
354
204
Apache-2.0
2023-08-01T23:22:59
2012-08-16T22:08:05
Python
UTF-8
Python
false
false
21,123
py
eventgensamples.py
# TODO Move config settings to plugins import csv import datetime import os import pprint import re import sys import six.moves.urllib.error import six.moves.urllib.parse import six.moves.urllib.request from splunk_eventgen.lib.logging_config import logger from splunk_eventgen.lib.timeparser import timeParser class...
db51ad13c6adb1aaff72f25c6fee146639ff28ab
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoMET/METProducers/python/CSCHaloData_cfi.py
e5a48b2528010c039a387673fffd7b2e426bb4c3
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
4,893
py
CSCHaloData_cfi.py
import FWCore.ParameterSet.Config as cms # File: CSCHaloData_cfi.py # Original Author: R. Remington, The University of Florida # Description: Module to build CSCHaloData and put into the event # Date: Oct. 15, 2009 CSCHaloData = cms.EDProducer("CSCHaloDataProducer", ...
bc85ecd5283960e867b0edcb71e1c8e03285a674
091e97bcfe5acc0635bd601aa8497e377b74d41a
/openshift/installer/vendored/openshift-ansible-3.9.14-1/roles/lib_vendored_deps/library/oc_route.py
b6e92e7d75c6e4a736cc339bef0df6a87adb3625
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
openshift/openshift-tools
d59b63778f25cb8fb3c7a0253afe22a173e72f9d
e342f6659a4ef1a188ff403e2fc6b06ac6d119c7
refs/heads/prod
2023-08-30T01:52:04.108978
2022-03-23T21:07:28
2022-03-23T21:07:28
36,827,699
170
254
Apache-2.0
2022-06-16T12:11:51
2015-06-03T20:09:22
Python
UTF-8
Python
false
false
39
py
oc_route.py
../../lib_openshift/library/oc_route.py
a90482ba8a65e61101da1b8599a249bfc87d4fa2
a7957955624002dab86de5f081028a4eedefe816
/lib/models/online/layers/normalization.py
9f14cbcbc533c6095640202667333083dbacbcf6
[ "MIT" ]
permissive
researchmm/TracKit
2652366f0d9430cdc13598bf7997979e1a9eeb2d
e351e5bff8071aa14f333d5975a8f408a3e264c6
refs/heads/master
2023-09-04T03:37:53.098346
2023-08-07T23:50:10
2023-08-07T23:50:10
223,065,925
639
121
MIT
2021-09-02T13:07:46
2019-11-21T01:57:48
Python
UTF-8
Python
false
false
764
py
normalization.py
import torch import torch.nn as nn import torch.nn.functional as F class InstanceL2Norm(nn.Module): """Instance L2 normalization. """ def __init__(self, size_average=True, eps=1e-5, scale=1.0): super().__init__() self.size_average = size_average self.eps = eps self.scale = ...
edeb13eab689b12ae706ca390d0da820ac27a716
7b0e640938ce09c65a35f1e8ada71f0e02a2200f
/adapter.py
85cf62e0b592010375fdf510d0bd21bee593d11b
[]
no_license
jamesbowman/cuflow
c4b7acfeaa0cbea72fcf4e20d36c0c5989e695c9
98929b94b64f368c8cd1681e7aa3156aeb6d351b
refs/heads/master
2023-03-13T01:38:17.230988
2023-02-17T21:20:57
2023-02-17T21:20:57
245,690,624
194
17
null
null
null
null
UTF-8
Python
false
false
1,326
py
adapter.py
import sys from PIL import Image, ImageDraw, ImageFont import math import cuflow as cu from dip import DIP8 __VERSION__ = "0.1.0" class WSON8L(cu.Part): family = "U" def place(self, dc): self.chamfered(dc, 8, 6) self.chamfered(dc, 6, 5, False) e = 1.27 for _ in range(2): ...
0d98197b1966b026da90f27776a13b9244504301
231a6e79e408ec2851a558f0864a67f62028fb65
/examples/pvtol-lqr.py
8a9ff55d904a812545284bde60ab894befb93283
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
python-control/python-control
d917bc7d1ba61d3182d41bf98debcacad0f7f5ff
42c6fb1498aa9f5d542113da288c7c4e3547c117
refs/heads/main
2023-08-24T21:31:48.990585
2023-07-13T13:48:08
2023-07-13T13:48:08
22,791,752
1,447
441
BSD-3-Clause
2023-09-10T22:24:38
2014-08-09T17:48:36
Python
UTF-8
Python
false
false
6,697
py
pvtol-lqr.py
# pvtol_lqr.m - LQR design for vectored thrust aircraft # RMM, 14 Jan 03 # # This file works through an LQR based design problem, using the # planar vertical takeoff and landing (PVTOL) aircraft example from # Astrom and Murray, Chapter 5. It is intended to demonstrate the # basic functionality of the python-control p...
f1bdd746da709b68c8997564f169bf4ef03359c9
444a9480bce2035565332d4d4654244c0b5cd47b
/research/nlp/atae_lstm/create_dataset.py
4d13c0582b35234ac63d623fffb1ecd590fb0375
[ "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,226
py
create_dataset.py
# Copyright 2021-2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
fbee04f59b315dfde90d506a2a995ab2319216e2
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/contrib/python/Pygments/py3/pygments/lexers/_tsql_builtins.py
96b16bf4a4ea4f58683f4800f3e1f666f8504f29
[ "BSD-2-Clause", "Apache-2.0" ]
permissive
catboost/catboost
854c1a1f439a96f1ae6b48e16644be20aa04dba2
f5042e35b945aded77b23470ead62d7eacefde92
refs/heads/master
2023-09-01T12:14:14.174108
2023-09-01T10:01:01
2023-09-01T10:22:12
97,556,265
8,012
1,425
Apache-2.0
2023-09-11T03:32:32
2017-07-18T05:29:04
Python
UTF-8
Python
false
false
15,460
py
_tsql_builtins.py
""" pygments.lexers._tsql_builtins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ These are manually translated lists from https://msdn.microsoft.com. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ # See https://msdn.microsoft.com/en-us/library/ms17...
5387feefdd5e732f94a181ba0403c740cfcf1e5e
6bb45c5892b4c9692dcc44116fb73dc9e7ab90ff
/reinforcement_learning/common/sagemaker_rl/orchestrator/utils/cloudwatch_logger.py
afd8b6212d217c64bb483a954149617d77781e21
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
aws/amazon-sagemaker-examples
8359afe544e873662bda5b8d2b07399c437213c9
43dae4b28531cde167598f104f582168b0a4141f
refs/heads/main
2023-08-26T04:42:52.342776
2023-08-25T14:37:19
2023-08-25T14:37:19
107,937,815
4,797
3,519
Apache-2.0
2023-09-14T19:47:03
2017-10-23T05:55:22
Jupyter Notebook
UTF-8
Python
false
false
9,039
py
cloudwatch_logger.py
import json import time class CloudWatchLogger: def __init__(self, cw_client, region_name): self.region_name = region_name self.cw_client = cw_client def get_cloudwatch_dashboard_details(self, experiment_id): # update for non-commercial region cw_dashboard_url = f"https://{sel...
417929c3eedbf9099f7d0159a0632debf0808e49
126884e6916e9d78201527419681c0369bc61e9a
/Python/Youtube_Video_Download/youtube_video_download.py
46556efb6fcabead3825280cba038f2842b54295
[ "MIT" ]
permissive
HarshCasper/Rotten-Scripts
adb9d9b707958f0353f7f7dda44f406da123e64a
31fd3fb1233f39ea2252a7a44160ff8a2140f7bd
refs/heads/master
2023-08-27T20:10:27.180869
2023-05-07T19:14:31
2023-07-25T11:59:06
240,786,294
1,474
754
MIT
2023-07-25T11:59:08
2020-02-15T20:53:36
Python
UTF-8
Python
false
false
1,126
py
youtube_video_download.py
# import pytube from pytube import YouTube # Asking for all the video links n = int(input("Enter the number of youtube videos to download: ")) links = [] print("\nEnter all the links one per line:") for i in range(0, n): temp = input() links.append(temp) # Showing all details for videos and downloading the...
34938844b7f87d295c507ed1dd94c75585ef741e
7c5fb33929116bb77b438de3ead93b3978b5af71
/alf/examples/ppo_procgen/base_conf.py
20b351a4068bea5225a8708a4d44818ddbd723cb
[ "Apache-2.0" ]
permissive
HorizonRobotics/alf
d6dac891322a81ccb7e2a9749139627b1eda28cb
b00ff2fa5e660de31020338ba340263183fbeaa4
refs/heads/pytorch
2023-08-21T18:51:41.370566
2023-08-16T00:07:22
2023-08-16T00:07:22
178,459,453
288
57
Apache-2.0
2023-09-14T20:40:20
2019-03-29T18:44:07
Python
UTF-8
Python
false
false
3,076
py
base_conf.py
# Copyright (c) 2021 Horizon Robotics and ALF Contributors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
75f5df174a2a1e313abb6bfea37fcba24980df2d
518bf342bc4138982af3e2724e75f1d9ca3ba56c
/solutions/1184. Distance Between Bus Stops/1184.py
2b4d42a32a6505790e1f209bdb8a7689a39d1951
[ "MIT" ]
permissive
walkccc/LeetCode
dae85af7cc689882a84ee5011f0a13a19ad97f18
a27be41c174565d365cbfe785f0633f634a01b2a
refs/heads/main
2023-08-28T01:32:43.384999
2023-08-20T19:00:45
2023-08-20T19:00:45
172,231,974
692
302
MIT
2023-08-13T14:48:42
2019-02-23T15:46:23
C++
UTF-8
Python
false
false
418
py
1184.py
class Solution: def distanceBetweenBusStops(self, distance: List[int], start: int, destination: int) -> int: clockwise = 0 counterclockwise = 0 if start > destination: start, destination = destination, start for i, d in enumerate(distance): if i >= start and i < destination: cloc...
870f7b6d302e165e7ba783809342df898c17f300
bba20d50bcbaa6133417230a80fea993064b69c1
/tools/localization_analysis/scripts/groundtruth_sweep.py
4f824cf5b0d7a483ae4e44a98b8cf199f263c4b8
[ "BSD-3-Clause", "LGPL-2.0-or-later", "LicenseRef-scancode-philippe-de-muyter", "MIT", "MPL-2.0", "MPL-1.0", "LGPL-2.1-or-later", "Apache-2.0", "LGPL-2.1-only", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-generic-cla", "GPL-3.0-only", "LGPL-3.0-only", "LicenseRef-scancode-pro...
permissive
nasa/astrobee
ecd2d941b5fb3dc72af9eb6ff0cb3e50b5281874
ea41de975fd3ed5320cc474c061ad6305ae6b646
refs/heads/master
2023-08-28T08:21:00.219849
2023-04-04T21:56:03
2023-04-04T21:56:03
101,815,284
914
320
Apache-2.0
2023-08-09T17:01:14
2017-08-29T23:16:13
C++
UTF-8
Python
false
false
5,623
py
groundtruth_sweep.py
#!/usr/bin/python # # Copyright (c) 2017, United States Government, as represented by the # Administrator of the National Aeronautics and Space Administration. # # All rights reserved. # # The Astrobee platform is licensed under the Apache License, Version 2.0 # (the "License"); you may not use this file except in comp...
5a67cad6fbdd5fb248b4ea009252d50027b531bc
181e46c0ee758b0207968edf2326b1d27f13948a
/tests/test_scss.py
9dea01e736e7dd03c55d19cc4fb7e3994b23886e
[ "MIT" ]
permissive
andreyfedoseev/django-static-precompiler
a8dc25f6385c93eee7a683fbece45af53bd06a71
26fab45478edbe7d001fb4cd5694157d96ee6f9d
refs/heads/main
2023-07-15T11:54:58.283879
2022-12-28T13:14:47
2022-12-28T13:41:56
13,348,441
174
65
NOASSERTION
2023-08-22T15:11:55
2013-10-05T16:34:19
Python
UTF-8
Python
false
false
13,083
py
test_scss.py
import json import os import re import pretend import pytest from static_precompiler import exceptions, utils from static_precompiler.compilers import dart_sass, libsass, ruby_scss @pytest.fixture(scope="module", params=(libsass, ruby_scss, dart_sass)) def compiler_factory(request): compiler_module = request.pa...
5743141bee55c17aaee84c979d140f48c4ab942b
fbdc48c28e54fb33ae4842ef95ff63893902c99a
/scripts/libraries/tb6612.py
322234ac17215052af9134a23739376ad9a3960d
[ "MIT" ]
permissive
openmv/openmv
44d4b79fc8693950a2e330e5e0fd95b5c36e230f
8a90e070a88b7fc14c87a00351b9c4a213278419
refs/heads/master
2023-08-30T20:59:57.227603
2023-08-23T16:50:55
2023-08-23T16:50:55
14,360,940
2,150
1,226
MIT
2023-09-14T07:18:15
2013-11-13T10:23:44
C
UTF-8
Python
false
false
2,321
py
tb6612.py
import pyb class Motor: def __init__(self, channel): if channel == 1: self.pin1 = pyb.Pin("P3", pyb.Pin.OUT_PP, pyb.Pin.PULL_NONE) self.pin2 = pyb.Pin("P2", pyb.Pin.OUT_PP, pyb.Pin.PULL_NONE) tim = pyb.Timer(4, freq=1000) self.power = tim.channel(1, pyb.Time...
dc1708d2de34b04c990ea8009c312e5e420656b9
d793e2bbd0960b15725e7752f98e70a1f24c7c77
/dataflows/processors/printer.py
8be3fb8bd83effb9d3dba19501f8b8643346ad5c
[ "MIT" ]
permissive
datahq/dataflows
f932a4d1dad12468428313ac636d5b704e9b49ff
9e604805accb6147cf2b1772d848d1a5e02de616
refs/heads/master
2023-07-21T04:14:09.523089
2023-07-19T16:45:30
2023-07-19T16:45:30
135,416,665
172
46
MIT
2023-07-19T16:45:32
2018-05-30T09:01:58
Python
UTF-8
Python
false
false
2,342
py
printer.py
from tabulate import tabulate from ..helpers.resource_matcher import ResourceMatcher try: from IPython.core.display import display, HTML get_ipython def display_html(data): display(HTML(data)) except (NameError, ImportError): def display_html(data): print(data) def _header_print(head...
7f6704e2df2824743be212778d801c4063a5894c
b8bbdfc593b6d816e67a344f720f90ec05236778
/airflow/providers/google/cloud/hooks/dataprep.py
c01a48d5ae4215204f76aeccdf384480de83d667
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
apache/airflow
ed78db0a8bab7e096990e143926e52f518e288ab
1b122c15030e99cef9d4ff26d3781a7a9d6949bc
refs/heads/main
2023-09-01T08:37:34.556097
2023-09-01T06:49:05
2023-09-01T06:49:05
33,884,891
22,756
11,558
Apache-2.0
2023-09-14T20:12:36
2015-04-13T18:04:58
Python
UTF-8
Python
false
false
8,220
py
dataprep.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...
44c0c5fceaf43f150a7a3ed66b943ebdd9272517
9eed6e1f35c278e0c6e5b86288cba2d790977d2d
/setup.py
943b9372c04ad1d067a93c7cf315d60d7360381b
[ "MIT" ]
permissive
natasha/ipymarkup
5b7ffe7b7366e5f019ea88e3ab97fa97520f8f7e
f08801a8222ce269002afcc48e2aca31031aff1c
refs/heads/master
2023-08-03T04:36:44.082743
2023-07-24T09:23:53
2023-07-24T09:23:53
138,894,720
128
28
MIT
2021-04-22T15:50:57
2018-06-27T14:42:38
Jupyter Notebook
UTF-8
Python
false
false
948
py
setup.py
from setuptools import setup, find_packages import io with io.open('README.md', encoding='utf8') as file: description = file.read() setup( name='ipymarkup', version='0.9.0', description='NER, syntax tree markup visualisations for Jupyter Notebook', long_description=description, long_descrip...
c144c1da87b0c51d15f00d00e60d18a5dd3e0d2f
92bcfa254c96bdb4434e13832c09527c535dc845
/goturn/loader/loader_alov.py
01173b43e5c9e423acb74fb415ba898ae9fd4801
[ "MIT" ]
permissive
nrupatunga/PY-GOTURN
f2c8c3d074c85e4161c57ba2b05375e5e2cf3a65
6ffe378b12156d9c79f09d9cb9c5fd5e361988df
refs/heads/goturn-dev
2022-12-17T14:42:51.886791
2020-09-23T06:19:46
2020-09-23T06:19:46
93,523,778
237
91
MIT
2020-06-26T06:38:37
2017-06-06T13:49:44
Python
UTF-8
Python
false
false
4,433
py
loader_alov.py
# Date: Nrupatunga: Wednesday 05 July 2017 # Email: nrupatunga@whodat.com # Name: Nrupatunga # Description: loading Alov dataset import os import glob from video import video from video import frame from ..logger.logger import setup_logger from ..helper.BoundingBox import BoundingBox class loader_alov: """Docst...
5da5ea21f228a702c21d3daf899bed01afc15621
0ba2e5061577f6286ff9265ef1df9aca96769445
/backtracking/climbing_staircase/Python/ClimbingStaircase.py
9346d531d5af0129332848cbf467b6c8e1446c7e
[ "CC0-1.0" ]
permissive
ZoranPandovski/al-go-rithms
68d5d02f80a61de9baf8e50a81a52e7d0b3983a0
4ae6ba54e90af14af236e03e435eb0402dcac787
refs/heads/master
2023-09-04T16:04:04.321676
2023-06-06T15:22:16
2023-06-06T15:22:16
93,438,176
1,421
2,445
CC0-1.0
2023-06-15T14:24:28
2017-06-05T19:20:20
Jupyter Notebook
UTF-8
Python
false
false
410
py
ClimbingStaircase.py
def climbingStaircase(n, k): output = [] steps = [] helper(output, steps, k, n) return output def helper(output, steps, k, left): if left == 0: output.append(list(steps)) # notice hard copy here else: for i in range(1, k+1): if i <= left: ste...
953f2bc1828729be1973669ff8bd79dfb2410507
dc11194dc4a5e5ee4027351452977413c79e4652
/scripts/srctx/dune-lib
87f762f093c1aefaad00a51a44a5cd874b6e7709
[ "MIT" ]
permissive
EasyCrypt/easycrypt
d68e3987cf5b353261f73a8863b570ecf901fd0a
35e3849e4142db656d100bd53a059e528499bc86
refs/heads/main
2023-09-03T16:02:05.900401
2023-08-23T18:24:43
2023-08-30T11:43:29
34,845,890
252
62
MIT
2023-09-14T11:17:03
2015-04-30T09:21:39
OCaml
UTF-8
Python
false
false
969
dune-lib
#! /usr/bin/env python3 # -------------------------------------------------------------------- import sys, os # -------------------------------------------------------------------- def _main(): if len(sys.argv)-1 != 1: print(f'Usage: {sys.argv[0]} [theory directory]') exit(1) thdir = sys.arg...
691b89e2f667f2d8d74abed0cdd46b50875f3bef
262af3a61864ba2aec01247075162a886551a439
/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py
f0d02729e3cb18693cd5d62bceaa7274f5903a3a
[ "Apache-2.0" ]
permissive
thingsboard/thingsboard-gateway
1331e58013afd0872ce28120229237a886af4d0f
0e3996bb29c60a784d990fbcdf0fcbb69a4a82ae
refs/heads/master
2023-08-31T07:30:03.340388
2023-08-25T05:01:08
2023-08-25T05:01:08
78,083,065
1,484
836
Apache-2.0
2023-09-12T07:50:51
2017-01-05T05:41:03
Python
UTF-8
Python
false
false
16,303
py
tb_gateway_remote_configurator.py
# Copyright 2022. ThingsBoard # # 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 ...
22ba38873a21b2db2352b6ffd77f5275b956dd04
e5de2ffedee3707197d991803b3931b7b498e097
/samples/snippets/get_metadata_by_property_id.py
6950ced2cab59225c1e947a4410c9ba3974add4e
[ "Apache-2.0" ]
permissive
googleapis/python-analytics-data
4598618bf79fcd5a2fa8caba6ecd81bf84f98b7c
7e623fc87a0cee7ceb4da739576bf03d7804b110
refs/heads/main
2023-08-10T06:16:47.897576
2023-08-09T16:34:46
2023-08-09T16:34:46
295,544,284
148
41
Apache-2.0
2023-09-08T20:39:48
2020-09-14T21:35:59
Python
UTF-8
Python
false
false
1,977
py
get_metadata_by_property_id.py
#!/usr/bin/env python # Copyright 2021 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
6a89ff1fc202351ba082ebadd8873ebcf3b05257
60ba5cc2f817471dd0ff84a15996b46b1dbfa6ba
/park/envs/circuit/simulator/circuit/__init__.py
ade0cce85078924facf2e75c3fcf2cc2085affbe
[ "MIT" ]
permissive
park-project/park
dd15d27e5859fe421c878a90627716623892b6f9
08f8f7f0dea14e011af2d5ce2a72410084eb8713
refs/heads/master
2023-06-28T11:38:30.359938
2022-04-07T14:42:21
2022-04-07T14:42:21
184,142,889
216
55
MIT
2023-06-14T16:10:38
2019-04-29T20:55:25
Python
UTF-8
Python
false
false
151
py
__init__.py
from .context import * from .circuit import * from .transimpedance import * from .rater import * del circuit del context del transimpedance del rater
994c67ecfc4bc44301b63cee80a4526b43af619c
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/L1Trigger/GlobalCaloTrigger/test/writeGctDigis_cfg.py
c65eb390a9ca5c6e865c3e51072f6dfd43bf866b
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
1,814
py
writeGctDigis_cfg.py
# writeGctDigis_cfg.py # # J Brooke 9/07/07 # # Python translation 15/07/08 # # Create RCT/GCT digis from trigger primitive digis and write to file # Recommended for use with a RelVal file as input # import FWCore.ParameterSet.Config as cms # The top-level process process = cms.Process("TEST") process.load("FWCore.M...
f2ed98dd97581c3638e8be679e6b28f9a3f3190d
3750387e046dfd287d02decc846860fae874bf3e
/hydra/core/override_parser/overrides_visitor.py
db7a16f869b213ad3fa97cdc2f39d6cbc45a5265
[ "MIT" ]
permissive
facebookresearch/hydra
baf152caa30cd1d8a7e76ba2111fb9a49ecbe18c
b5ff66134f268164a20712d18b1230f4dd737444
refs/heads/main
2023-08-28T02:33:18.063795
2023-07-25T17:58:43
2023-07-25T17:58:43
191,632,914
7,667
692
MIT
2023-09-11T15:38:52
2019-06-12T19:33:15
Python
UTF-8
Python
false
false
15,549
py
overrides_visitor.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import sys import warnings from typing import Any, Dict, List, Optional, Tuple, Union from antlr4 import ParserRuleContext, TerminalNode, Token from antlr4.error.ErrorListener import ErrorListener from antlr4.tree.Tree import TerminalNodeImpl from...
62eabeaf7e238d27eab1cc6ce8be2f18cc4491fb
a0e9f75c1681f4052f53433fa84e948c0c0f4d9f
/rssant_scheduler/actors/scheduler.py
e9d7c0b14f69670db1420a5d83e0012c27b69348
[ "BSD-3-Clause" ]
permissive
anyant/rssant
01a4f07c1e5c9922f05eb5f9781922d7349aef8c
03d23db5caaaba6888ce7b9b03513d0d6cc97050
refs/heads/master
2023-08-05T07:42:57.041899
2023-07-26T15:50:47
2023-07-26T15:50:47
229,764,065
1,543
146
BSD-3-Clause
2023-07-27T07:16:57
2019-12-23T14:05:07
Python
UTF-8
Python
false
false
3,385
py
scheduler.py
import asyncio import logging import time from collections import defaultdict from validr import T from actorlib import actor, ActorContext from rssant_common.dns_service import DNS_SERVICE from rssant_config import MAX_FEED_COUNT LOG = logging.getLogger(__name__) @actor('scheduler.healthcheck', timer='60s') asyn...
0fda070232ab79dbe8c04060516375c5be3e5609
d2b23f7eb0f179c6631c6ecef7179fc4ca13666f
/impyute/imputation/cs/fast_knn.py
0411f5c14384efab784f2049dc431594756ba5b0
[ "MIT" ]
permissive
eltonlaw/impyute
db861bd534a7901527ae6ff1584d733bc079377c
b76a6b4bd3da36515d5f1fa87f35d0c3f4209c83
refs/heads/master
2023-07-11T01:49:04.899550
2021-11-06T21:15:04
2021-11-06T21:15:04
79,635,757
346
53
MIT
2021-11-06T21:15:05
2017-01-21T09:16:27
Python
UTF-8
Python
false
false
6,232
py
fast_knn.py
import numpy as np from scipy.spatial import KDTree from impyute.ops import matrix from impyute.ops import wrapper from impyute.ops import inverse_distance_weighting as idw from . import mean # pylint: disable=too-many-arguments @wrapper.wrappers @wrapper.checks def fast_knn(data, k=3, eps=0, p=2, distance_upper_boun...
725ef272efd885751d01005c61216b219fa3b2fd
a5b66100762c0ca7076de26645ef1b732e0ee2d8
/test_python_toolbox/test_temp_value_setting/test_temp_value_setter.py
dd801d90cee6fe9d5e63d6160fe65a333107d181
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
cool-RR/python_toolbox
63400bbc004c63b32fe421b668a64bede4928e90
cb9ef64b48f1d03275484d707dc5079b6701ad0c
refs/heads/master
2022-01-26T14:41:29.194288
2021-12-25T06:49:40
2021-12-25T06:49:40
3,066,283
130
15
NOASSERTION
2021-12-25T06:49:41
2011-12-29T01:39:51
Python
UTF-8
Python
false
false
1,885
py
test_temp_value_setter.py
# Copyright 2009-2017 Ram Rachum. # This program is distributed under the MIT license. '''Testing module for `python_toolbox.temp_value_setting.TempValueSetter`.''' from python_toolbox import misc_tools from python_toolbox import cute_testing from python_toolbox.temp_value_setting import TempValueSetter class Obje...