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
4f7bc440daaf0071cd36ab38b7510b2c1e30ea80
b4a05dc50de2d5a2278ef5cfa875edf190e1f389
/cresi/04_skeletonize.py
87edd6df45429d9d8fbd44c5954a3b51b8e110c9
[ "Apache-2.0" ]
permissive
avanetten/cresi
178ef271ed61b1d44371b52628b8fbca6d59a3bb
b996f2d0b6bbbd2438e8f855c0ff0e3c33d6a122
refs/heads/main
2022-08-29T01:23:54.047750
2022-08-25T03:38:57
2022-08-25T03:38:57
195,729,087
164
42
Apache-2.0
2020-05-29T09:35:15
2019-07-08T03:18:55
Jupyter Notebook
UTF-8
Python
false
false
43,313
py
04_skeletonize.py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sun May 6 08:51:36 2018 @author: avanetten Inspired by: https://github.com/SpaceNetChallenge/RoadDetector/blob/master/albu-solution/src/skeleton.py """ from skimage.morphology import skeletonize, remove_small_objects, remove_small_holes, medial_axis ...
75345a538c5ab52c197e6d26588b35d731183bc6
9fd680d1a569fc8e76ba869db522ceebbce49109
/schedule-priority/src/core.py
e0a33c4cc2b736269d9b4edf76781e7a0b933db5
[]
no_license
ssricardo/anki-plugins
8bdb60228a7052a2a18f48cde48e176835c26bf3
d79ed453e3e73921be03f20f708462ff683e7111
refs/heads/master
2023-05-12T06:58:29.514918
2023-05-11T21:13:27
2023-05-11T21:13:27
138,677,820
105
27
null
2023-05-03T18:09:32
2018-06-26T03:04:54
Python
UTF-8
Python
false
false
2,503
py
core.py
# -*- coding: utf-8 -*- # # This files is part of schedule-priority addon # @author ricardo saturnino import math # Constants for schedule-priority class AppHolder: """Application reference. Must be bound on startup""" app = None class Priority: """Refer to the existing Priorities registry. Hol...
25938a85c3e5209063b202890ef1eaf0187585f9
68cf1b0ac8b4c5484d21a951ebd86e9d4f8a98b7
/workers_requirements.py
72cca5a2cf12e77f5208bb754c3b381bd5c6e073
[ "MIT" ]
permissive
zewelor/bt-mqtt-gateway
f65e333e4873ff5fd16a159c4fa72a18f7e1fc3f
1fc40ced1eee460ec1becff87440bac1bebd3fe4
refs/heads/master
2023-08-29T17:54:59.717515
2022-11-28T07:02:37
2022-11-28T07:02:39
111,714,643
563
144
MIT
2023-09-11T06:46:17
2017-11-22T17:40:26
Python
UTF-8
Python
false
false
1,888
py
workers_requirements.py
import importlib from pathlib import Path import pkg_resources import re import os import logger _LOGGER = logger.get(__name__) def configured_workers(): from config import settings workers = settings['manager']['workers'] return _get_requirements(workers) def all_workers(): workers = map(lambda ...
906014ab126d058d1d9ce6130c3d83e6b43c3b34
bdf6cee486fdac82b76fc77553a5001d978cbed2
/test/_functions/common/event-recorder/python/event_recorder.py
123dc12eea09eff0a168e442c8cd4a437da8e675
[ "Apache-2.0" ]
permissive
nuclio/nuclio
c07fce75dd971d7c34c698fb145ca5fd0439b70d
05050ed33f70b92371c596893fd3eb4344fa20e2
refs/heads/development
2023-08-31T21:19:00.844756
2023-08-30T22:26:37
2023-08-30T22:26:37
91,797,088
5,133
598
Apache-2.0
2023-09-14T11:05:06
2017-05-19T10:55:09
Go
UTF-8
Python
false
false
2,416
py
event_recorder.py
# Copyright 2023 The Nuclio Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
3b6694b6752a9d1cb437b5294a802d82349235f4
6958f617af0c5a76304ceb1006c77bc70ca0e195
/python/taichi/examples/features/sparse/tutorial.py
129de6ccd772de5a3ac3e04cad180227ae07b4f6
[ "Apache-2.0" ]
permissive
taichi-dev/taichi
3fae315a494f1c97392d5b931c939abbbfba1bdc
b30b511f55e3d0ebff765ee048d0aaa4ba9e7667
refs/heads/master
2023-09-02T13:28:18.208792
2023-08-23T23:22:43
2023-08-23T23:22:43
74,660,642
17,231
1,841
Apache-2.0
2023-09-14T11:29:32
2016-11-24T10:00:05
C++
UTF-8
Python
false
false
495
py
tutorial.py
import taichi as ti use_bitmask = False ti.init() x = ti.field(dtype=ti.i32) block = ti.root.pointer(ti.ij, (4, 4)) if use_bitmask: pixel = block.bitmasked(ti.ij, (2, 2)) else: pixel = block.dense(ti.ij, (2, 2)) pixel.place(x) @ti.kernel def sparse_struct_for(): x[2, 3] = 2 x[5, 6] = 3 for i, ...
ebec926555f334bbec50f5d9425b2a974d04ce61
fb14d12a2dcd5ab11be3c0b91762895709e2968a
/todoist/managers/user_settings.py
c988e9de40bf692294e518c42bb0aae55a20358f
[ "MIT" ]
permissive
Doist/todoist-python
627e45483cca1ef32ec03993cdf0199741b3d85b
7b85de81619146d3d54fececda068010ae73775b
refs/heads/main
2023-01-24T03:53:20.706753
2022-02-15T15:34:23
2022-02-15T15:34:23
25,685,836
627
122
MIT
2022-02-15T15:34:24
2014-10-24T11:44:05
Python
UTF-8
Python
false
false
359
py
user_settings.py
# -*- coding: utf-8 -*- from .generic import Manager class UserSettingsManager(Manager): def update(self, **kwargs): """ Updates the user's settings. """ cmd = { "type": "user_settings_update", "uuid": self.api.generate_uuid(), "args": kwargs, ...
8e2b58dac27e4a880564f936668e07227d313322
ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb
/python_modules/dagster/dagster/_core/execution/context/logger.py
d6fd7157cb1b207073f40cc047433f91e6eb5cdf
[ "Apache-2.0" ]
permissive
dagster-io/dagster
6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a
fe21995e0402878437a828c6a4244025eac8c43b
refs/heads/master
2023-09-05T20:46:08.203794
2023-09-05T19:54:52
2023-09-05T19:54:52
131,619,646
8,565
1,154
Apache-2.0
2023-09-14T21:57:37
2018-04-30T16:30:04
Python
UTF-8
Python
false
false
3,164
py
logger.py
from typing import Any, Optional import dagster._check as check from dagster._annotations import public from dagster._core.definitions.job_definition import JobDefinition from dagster._core.definitions.logger_definition import LoggerDefinition from dagster._core.errors import DagsterInvariantViolationError from .outp...
c995fdb79754f92ee4c7cf01e459ada394bc7e3f
057a475216e9beed41983481aafcaf109bbf58da
/tests/integration/test_parallel_replicas_custom_key/test.py
baac266150698bc79d4a1471e3ba9266acfd8232
[ "Apache-2.0" ]
permissive
ClickHouse/ClickHouse
fece5204263a5b4d693854b6039699265f1bb27f
6649328db809d51a694c358571539bc5820464be
refs/heads/master
2023-08-31T18:48:36.615225
2023-08-31T17:51:24
2023-08-31T17:51:24
60,246,359
23,878
5,449
Apache-2.0
2023-09-14T20:10:52
2016-06-02T08:28:18
C++
UTF-8
Python
false
false
2,754
py
test.py
import pytest from helpers.cluster import ClickHouseCluster cluster = ClickHouseCluster(__file__) nodes = [ cluster.add_instance( f"n{i}", main_configs=["configs/remote_servers.xml"], with_zookeeper=True ) for i in range(1, 5) ] @pytest.fixture(scope="module", autouse=True) def start_cluster(): ...
a286d0a0301c7898070e41f2fe62019a2f1ff996
8ed15d43652dbcab332c78923da416b91b139323
/python/fedml/cli/model_deployment/modelops_configs.py
7888adf220f657134386abab85c27608540577bf
[ "Apache-2.0" ]
permissive
FedML-AI/FedML
74d144038c9de4a0621eb328d00987abac35e2d1
b436fbd95cbb62f6c58d2233d7affa0f62cb1817
refs/heads/master
2023-08-31T22:15:39.786371
2023-08-24T03:41:58
2023-08-24T03:41:58
281,519,510
3,197
807
Apache-2.0
2023-09-14T02:14:20
2020-07-21T22:41:25
Python
UTF-8
Python
false
false
8,771
py
modelops_configs.py
import os import time import certifi import requests from fedml.core.mlops import MLOpsUtils class Singleton(object): def __new__(cls): if not hasattr(cls, "_instance"): orig = super(Singleton, cls) cls._instance = orig.__new__(cls) return cls._instance class ModelOpsCo...
7cc269962fb71d4a5e7e7c99fcda4175f7c36124
9ed4d46aedd4d4acadb48d610e940594b5b7b3fd
/maths/line_length.py
ed2efc31e96e0f43603158b014c6a86d8b54ca89
[ "MIT" ]
permissive
TheAlgorithms/Python
7596a0e236ed12a61f9db19a7ea68309779cc85b
421ace81edb0d9af3a173f4ca7e66cc900078c1d
refs/heads/master
2023-09-01T17:32:20.190949
2023-08-29T13:18:10
2023-08-29T13:18:10
63,476,337
184,217
48,615
MIT
2023-09-14T02:05:29
2016-07-16T09:44:01
Python
UTF-8
Python
false
false
1,662
py
line_length.py
from __future__ import annotations import math from collections.abc import Callable def line_length( fnc: Callable[[float], float], x_start: float, x_end: float, steps: int = 100, ) -> float: """ Approximates the arc length of a line segment by treating the curve as a sequence of linear l...
5bf95b548bd018196c88cc2de083ff0d136e9e42
b71a6e7050b0a4368007350d91ee078288a7318c
/examples/seps.py
d5741b68c5f618503dd40cacbb64fd30846fc9fc
[ "Apache-2.0" ]
permissive
jarvisteach/appJar
2dfd0da6cb85ea3535379ed000efd97fb42fe4f8
0b59ce041da2197dcff3410e20f298676f1f7266
refs/heads/appJar
2023-08-29T09:42:01.812005
2019-09-28T18:34:06
2019-09-28T18:34:06
39,996,518
696
103
NOASSERTION
2023-02-20T01:01:16
2015-07-31T08:59:20
Python
UTF-8
Python
false
false
587
py
seps.py
from appJar import gui app=gui("Seps", "400x400") app.setBg("lightblue") app.addVerticalSeparator(0, 1, 0,3, colour="red") app.addLabel("l1", "a", 0, 0, 0,3) app.setLabelBg("l1", "red") app.addVerticalSeparator(0, 6, 0,3, colour="red") app.setSticky("nsew") # should make a horizontal separator app.addSeparator(0, 1,...
c481a071723b99cca9c62e472ad1c047b2a9c5f3
b9c01a2ae09be278f1b71fdcd7dcf2ed0b8f0add
/tests/integration/test_bincount.py
c57f8958442edcaa4f2ced11d1f5f13bda14ff8d
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
nv-legate/cunumeric
aae3e9232edef915e5bcb84f3f216fcc99b648e4
8dddd18022055374f51e1728e81a49958908e04a
refs/heads/branch-23.09
2023-09-03T21:17:13.274085
2023-09-01T01:07:21
2023-09-01T01:07:21
356,975,888
447
56
Apache-2.0
2023-09-12T20:41:20
2021-04-11T20:46:50
Python
UTF-8
Python
false
false
5,691
py
test_bincount.py
# Copyright 2021-2022 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 agreed to ...
40d3686e40c911740de35c28f3d8156fd64bdde0
d1c2d00078520cd556f60b7213c27856f8b3460d
/sdks/python/apache_beam/dataframe/doctests_test.py
df24213c8716a2b1b84b5b926def2fa5b7972fa8
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-protobuf", "Apache-2.0", "Python-2.0" ]
permissive
apache/beam
ed11b9e043465c720659eac20ac71b5b171bfa88
6d5048e05087ea54abc889ce402ae2a0abb9252b
refs/heads/master
2023-09-04T07:41:07.002653
2023-09-01T23:01:05
2023-09-01T23:01:05
50,904,245
7,061
4,522
Apache-2.0
2023-09-14T21:43:38
2016-02-02T08:00:06
Java
UTF-8
Python
false
false
6,816
py
doctests_test.py
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
c816772683b0781ea84b5378d0aeb61574e2d411
172e6199e708725707ec7c017f8a917f286b83fa
/setup.py
2bb82ce576b4c2122b1019f740b334770da4bbde
[ "Apache-2.0" ]
permissive
google/vroom
6e0ad2afd66d5f51f79008a44b1af46a89b5a46e
ac8374aca80973bb2267246231e121b14ebd5ac7
refs/heads/main
2023-08-24T10:51:32.328462
2022-12-02T03:37:09
2022-12-02T03:37:09
17,150,568
148
31
Apache-2.0
2023-04-10T00:07:05
2014-02-24T21:00:11
Python
UTF-8
Python
false
false
1,319
py
setup.py
"""Distribution for vroom.""" import codecs from distutils.core import setup import os.path import sys # Don't even try to run under python 2 or earlier. It will seem to work but fail # in corner cases with strange encoding errors. if sys.version_info[0] < 3: sys.exit('ERROR: Python < 3 is unsupported.') version_...
17b49f6294755a73610223cf78f97696d9faa828
771c1e2011a85a287c766b1a3d299ced2e6f799f
/src/electionguard_gui/components/key_ceremony_details_component.py
59c270581d09ddc27c4a961f166ef4284c11d11b
[ "MIT" ]
permissive
microsoft/electionguard-python
f50f64a473a8d77984a2faf4aa8db40cebb5c201
b3ddc2a732f6c5f078a3afbe05b00d632a2ff5e0
refs/heads/main
2023-08-03T12:44:35.322716
2022-10-28T12:47:18
2022-10-28T12:47:18
246,392,956
143
117
MIT
2023-08-02T00:24:32
2020-03-10T19:46:06
Python
UTF-8
Python
false
false
5,695
py
key_ceremony_details_component.py
import traceback from typing import List import eel from pymongo.database import Database from electionguard_gui.eel_utils import eel_fail, eel_success from electionguard_gui.services.key_ceremony_stages import ( KeyCeremonyStageBase, KeyCeremonyS1JoinService, KeyCeremonyS2AnnounceService, KeyCeremony...
a260303aa9d43f72c430824eb0cfb91da9a743fe
ecaba173879f92f24e3c951866fda23c0a4fc426
/tests/linux_benchmarks/multichase_benchmark_test.py
4e96171189880cb8ca21e0c55fad1c35b433863c
[ "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
2,814
py
multichase_benchmark_test.py
# Copyright 2016 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...
81fad1e4c2b60882dbc152fc9a84fb1b97286613
2e1c1558f6fcb12a57449f9f6f0db6f1cbf38dd6
/src/masonite/broadcasting/controllers/BroadcastingController.py
f78cdc382c723fd8f484e019613bf7a7416c5adc
[ "MIT" ]
permissive
MasoniteFramework/masonite
ca51bf3d0e4777e624b3a9e94d1360936fb8006d
e8e55e5fdced9f28cc8acb1577457a490e5b4b74
refs/heads/4.0
2023-09-01T18:59:01.331411
2022-11-05T01:29:29
2022-11-05T01:29:29
113,248,605
2,173
185
MIT
2023-04-02T02:29:18
2017-12-06T00:30:22
Python
UTF-8
Python
false
false
345
py
BroadcastingController.py
from ..Broadcast import Broadcast from ...request import Request from ...controllers import Controller class BroadcastingController(Controller): def authorize(self, request: Request, broadcast: Broadcast): return broadcast.driver("pusher").authorize( request.input("channel_name"), request.inpu...
2b7bc793b073ec326df54f68bb2f11d69f1ec9c9
dcc7dd6c65cb13d3619689b2c794b450e503b100
/tests/puzzle/test_provider.py
38504c412cc2927a56ff184cc6137f180d60a1e0
[ "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
27,456
py
test_provider.py
from __future__ import annotations from subprocess import CalledProcessError from typing import TYPE_CHECKING from typing import Any import pytest from cleo.io.null_io import NullIO from packaging.utils import canonicalize_name from poetry.core.packages.dependency import Dependency from poetry.core.packages.director...
31aed03d1e1a41c43bd87b0176b23f67f5500c78
b74320ad439e37dfa48cd8db38dab3b7a20a36ff
/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py
7676809b4bdb8359997963e2a3fe8643327189f6
[ "Apache-2.0" ]
permissive
huggingface/diffusers
c82beba1ec5f0aba01b6744040a5accc41ec2493
5eeedd9e3336882d598091e191559f67433b6427
refs/heads/main
2023-08-29T01:22:52.237910
2023-08-28T18:16:27
2023-08-28T18:16:27
498,011,141
17,308
3,158
Apache-2.0
2023-09-14T20:57:44
2022-05-30T16:04:02
Python
UTF-8
Python
false
false
40,734
py
pipeline_kandinsky_combined.py
# Copyright 2023 The HuggingFace Team. 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 applicabl...
a035126bf4c78ef8cd72764420f2d26d26178229
e6fc93c3b7663b8f4220aa024a9acf41eef9fd3b
/openapi_client/openapi_streaming.py
7ddd77f9e27638852b87dcbe360d1b062d6c35ba
[ "Unlicense" ]
permissive
Awethon/open-api-python-client
3e9f15911f1f73a768d4cf5c08333287b0ff559c
bc9839dfc6e84365425489c800fab0cb66aeafa3
refs/heads/master
2022-08-14T18:05:34.154323
2022-07-28T10:27:26
2022-07-28T10:27:26
211,303,290
103
23
Unlicense
2020-12-24T12:27:42
2019-09-27T11:22:41
Python
UTF-8
Python
false
false
3,069
py
openapi_streaming.py
#!/usr/bin/python3.6 import websocket import json from six import print_ def do_nothing(event, time): pass def print_event(event, time): print_(event) def to_candle_subscribe_json(figi, interval): return '''{ "event": "candle:subscribe", "figi": "%s", "interval": "%s" }''' % (figi, interval) def to_orderbo...
a6af5e939264427fa9f568b0f1a907f86ab9f8e3
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/CertificatePrepareInfo.py
beb38c928accb3a440b6929c28b5761b449f632d
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
4,122
py
CertificatePrepareInfo.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.CertificateInstanceAmountInfo import CertificateInstanceAmountInfo from alipay.aop.api.domain.CertificateSkuInfo import CertificateSkuInfo class CertificatePrepareInfo(object): ...
fc8f5bc16b03846971908e1581e0862fd0afcea0
8ca98d2c7226f3fd7801665837a06758cbbf7903
/verde/tests/utils.py
dedb8898f2afd61c44440f3de19a7d612f784a3f
[ "BSD-3-Clause" ]
permissive
fatiando/verde
d30f70acb1aaf38ef0b1efaa8e651a9d8f874d60
ec5509464bf1b4cb72b53a0e8e2c5d5ab4e87a1e
refs/heads/main
2023-08-29T00:06:04.990472
2023-05-08T13:41:22
2023-05-08T13:41:22
131,073,898
532
79
BSD-3-Clause
2023-05-08T13:41:24
2018-04-25T23:21:08
Python
UTF-8
Python
false
false
525
py
utils.py
# Copyright (c) 2017 The Verde Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause # # This code is part of the Fatiando a Terra project (https://www.fatiando.org) # """ Testing utilities. """ import pytest try: import numba except ImportError: numba =...
19fe37f873257511ebeede5d5c15d9767e3b8bbb
76fb0a3cfc9d9362ab29174bd1d55e888ea4d7f6
/tfx/utils/dependency_utils.py
b8d62ab7b8b35468f2480f7ffca2e84c0a441058
[ "Apache-2.0" ]
permissive
tensorflow/tfx
0cfc9c55171352ecc98c9dfa8ffe976c689d7073
1b328504fa08a70388691e4072df76f143631325
refs/heads/master
2023-08-30T11:56:50.894497
2023-08-29T22:47:19
2023-08-29T22:48:26
169,116,405
2,116
899
Apache-2.0
2023-09-14T21:51:42
2019-02-04T17:14:36
Python
UTF-8
Python
false
false
4,930
py
dependency_utils.py
# Copyright 2019 Google LLC. 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 a...
c0a9d8adc528cb8fdf605757b8e7f5035da077e4
2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5
/src/bindings/python/tests/test_graph/test_ops_fused.py
bf4b9286795b04b0c785b80c938be94a664158b4
[ "Apache-2.0" ]
permissive
openvinotoolkit/openvino
38ea745a247887a4e14580dbc9fc68005e2149f9
e4bed7a31c9f00d8afbfcabee3f64f55496ae56a
refs/heads/master
2023-08-18T03:47:44.572979
2023-08-17T21:24:59
2023-08-17T21:24:59
153,097,643
3,953
1,492
Apache-2.0
2023-09-14T21:42:24
2018-10-15T10:54:40
C++
UTF-8
Python
false
false
12,099
py
test_ops_fused.py
# -*- coding: utf-8 -*- # Copyright (C) 2018-2023 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import openvino.runtime as ov_runtime import openvino.runtime.opset8 as ov def test_elu_operator_with_scalar_and_array(): data_value = ov.parameter((2, 2), name="data_value"...
44abcc3f1c19198b46a0811a40b7279bc4920bd2
da769d44cfb931914ff51c0f1f302b056837c388
/elpis/endpoints/dataset.py
057ed226a3452ec43e348f6f40d1dcadc0953650
[ "Apache-2.0" ]
permissive
CoEDL/elpis
d7ef5d8c5daf450df10ca57371291d953555eaa7
9a019483b4440a96f80486142fb53c7b95c8f983
refs/heads/master
2023-07-08T05:06:13.276450
2023-03-09T00:17:37
2023-03-09T00:17:37
154,595,187
142
40
Apache-2.0
2023-09-05T09:41:13
2018-10-25T02:00:37
Python
UTF-8
Python
false
false
5,355
py
dataset.py
from flask import Blueprint, current_app as app, jsonify, request from elpis.engines import Interface from elpis.engines.common.objects.dataset import Dataset from elpis.engines.common.errors import InterfaceError import os bp = Blueprint("dataset", __name__, url_prefix="/dataset") @bp.route("/new", methods=["POST"]...
be1d72c802763caec9ce4855205d91423a173dc2
5b9b8a526984a986b527cf300b059bb2f220c386
/internal-enrichment/virustotal/src/virustotal/client.py
4fa56d5ef586723fcdd29f1749a25101159f46f9
[ "Apache-2.0" ]
permissive
OpenCTI-Platform/connectors
59f2260bff6a89d64c7ba08c15c905bd83d238a3
d00a0243946ded25b5d06bdefd9b40015dea9b80
refs/heads/master
2023-08-31T09:26:19.551741
2023-08-26T20:02:51
2023-08-26T20:02:51
192,614,260
254
368
Apache-2.0
2023-09-12T20:03:10
2019-06-18T21:22:05
Python
UTF-8
Python
false
false
10,423
py
client.py
# -*- coding: utf-8 -*- """Virustotal client module.""" import asyncio import base64 import hashlib import json import urllib.parse import requests from pycti import OpenCTIConnectorHelper from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry class VirusTotalClient: """...
330fd07c3a370592d78eb68fdc573f569bc0cb42
9ab581e6232f95fdcb40241d8a68a05b7c207631
/msaf/pymf/sivm.py
2557a1b7981368637e19d081f327f2286b961503
[ "MIT" ]
permissive
urinieto/msaf
825edf4a119d898e54534448555a3f4806169dcc
5581db79499a7a2067038527c8e1f19e501395df
refs/heads/main
2023-09-03T15:11:10.756197
2023-08-17T20:43:06
2023-08-17T20:43:06
23,265,960
447
94
MIT
2023-09-14T18:35:06
2014-08-23T20:47:57
Python
UTF-8
Python
false
false
7,669
py
sivm.py
#!/usr/bin/python # # Copyright (C) Christian Thurau, 2010. # Licensed under the GNU General Public License (GPL). # http://www.gnu.org/licenses/gpl.txt """ PyMF Simplex Volume Maximization [1] SIVM: class for SiVM [1] C. Thurau, K. Kersting, and C. Bauckhage. Yes We Can - Simplex Volume Maximization for Descript...
4e5ca132540232a31e255c7e6d196970f53b643e
c5fd7e938e80a43d3b3c32fbb7de4922a5124fbf
/apiserver/apiserver/web/leaderboard.py
599243b1f1ba55929871a5c25965e0785910521a
[ "MIT" ]
permissive
HaliteChallenge/Halite-II
fd00be71c74a07fe48d758ed745a005985879712
5cf95b4aef38621a44a503f90399af598fb51214
refs/heads/master
2021-06-07T03:09:11.322659
2021-04-19T16:43:58
2021-04-19T21:32:19
103,137,223
238
153
MIT
2021-09-23T18:04:04
2017-09-11T13:08:45
JavaScript
UTF-8
Python
false
false
6,215
py
leaderboard.py
""" Leaderboard API endpoints - get/sort/filter the leaderboard """ import operator import flask import sqlalchemy from .. import config, model, util from . import util as api_util from .blueprint import web_api _COUNT_KEY = 'count' _LEADERBOARD_ALIAS = 'full_leaderboard' def _count_leaderboard_query(where_clause...
3e88c6e896d637229938b44e4a355dfda2c0b3cf
51b4e2ec3e8005d5cc17a4c96a83626a964bc336
/slimta/lookup/policy.py
837e2f990a3f0fcc1a1afb55fbbaed6f0a80b878
[ "MIT" ]
permissive
slimta/python-slimta
8748af6d0086cfe37ebaf95204d6801eb8a747ef
1afc5a37ff105719179b81b764f4746da623e3aa
refs/heads/main
2023-07-10T16:11:28.393323
2023-04-24T01:18:08
2023-04-24T01:18:08
7,116,161
152
47
MIT
2023-07-04T06:46:59
2012-12-11T17:28:45
Python
UTF-8
Python
false
false
4,435
py
policy.py
# Copyright (c) 2014 Ian C. Good # # 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, modify, merge, publish, distrib...
cfce97282061d13e40ca75c417bda4f77e3d8fde
31a29a74b81a79d6e98402f4cdbbe50ae8f306d3
/config.py
528e559a221002907add7b00692c8ae528226e07
[ "Apache-2.0" ]
permissive
mgsky1/FG
d722c75bcf16fb49ebc6e9c414df5539a88533f3
34df9ff90997fc2964a09492cd662d361c0e8fcf
refs/heads/mirai
2023-02-19T07:44:14.319046
2022-01-29T12:44:06
2022-01-29T12:44:06
253,424,855
103
12
Apache-2.0
2023-02-16T02:05:02
2020-04-06T07:24:43
Python
UTF-8
Python
false
false
445
py
config.py
''' @desc: @author: Martin Huang @time: created on 2020/4/4 14:57 @修改记录: 2020/04/07 => 增加从配置文件中获取信息 ''' from nonebot.default_config import * from Utils.JsonUtils import JsonUtils import os configuration = JsonUtils.json2Dict(os.path.join(os.getcwd(),'cn','acmsmu','FG','data','config.json')) API_ROOT_URL = 'http...
0d4c582353150ad87cdc92ae9775f9a06a9cc434
bb2545a0c7fc0ed02da32a0883d0c25691c35d34
/tbx/core/migrations/0093_wagtail19_upgrade.py
2390037dd1e8c281da88b720c038deaf136800aa
[ "MIT" ]
permissive
torchbox/wagtail-torchbox
ce67592fccf5f4349970e48f1178a9142b916d8f
79d9629f47de46276df7695778dcd8d44784d9df
refs/heads/main
2023-09-01T13:46:49.564559
2023-08-31T12:38:29
2023-08-31T12:38:29
16,944,327
124
66
MIT
2023-09-04T11:22:15
2014-02-18T09:56:47
Python
UTF-8
Python
false
false
505
py
0093_wagtail19_upgrade.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2017-03-20 08:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("torchbox", "0092_servicepage_add_logos"), ] operations = [ migrations.AlterField( model_name="torchboxr...
efc1a177ce395c1f82e0b80a27d97fc4c3370096
9efca95a55cb4df52d895d42f1ec10331516a734
/tools/c7n_gcp/c7n_gcp/actions/iampolicy.py
65ecf5be70114d03d5990d935809fd54d7fff452
[ "Apache-2.0" ]
permissive
cloud-custodian/cloud-custodian
519e602abe00c642786441b64cc40857ef5bc9de
27563cf4571040f923124e1acb2463f11e372225
refs/heads/main
2023-09-04T10:54:55.963703
2023-09-01T17:40:17
2023-09-01T17:40:17
52,837,350
3,327
1,096
Apache-2.0
2023-09-14T14:03:30
2016-03-01T01:11:20
Python
UTF-8
Python
false
false
11,155
py
iampolicy.py
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 from c7n.utils import local_session, type_schema from c7n_gcp.actions import MethodAction class SetIamPolicy(MethodAction): """ Sets IAM policy. It works with bindings only. The action supports two lists for modifying the exi...
4350d3d7a3c5c3dce589678ad8455d8abb0765ce
e8b04bef9aa1ac8e2c109dd315f133c8f4d28ae6
/projects/samples/robotbenchmark/highway_driving/controllers/sensors_visualization/sensors_visualization.py
d0e97144fb42418ca6ad7ea72c8795ef21f33757
[ "Apache-2.0" ]
permissive
cyberbotics/webots
f075dacf4067e8dcebbfd89e8690df8525f6d745
8aba6eaae76989facf3442305c8089d3cc366bcf
refs/heads/master
2023-08-31T09:41:13.205940
2023-08-18T10:48:30
2023-08-18T10:48:30
156,228,018
2,495
1,525
Apache-2.0
2023-08-28T16:30:33
2018-11-05T14:09:10
C++
UTF-8
Python
false
false
1,446
py
sensors_visualization.py
"""Simple supervisor used to change the color of the 'DistanceSensorVisualization'.""" import math from controller import Supervisor TIME_STEP = 50 # name of the available distance sensors sensorsNames = [ 'front', 'front right 0', 'front right 1', 'front right 2', 'front left 0', 'front lef...
878eeee1b5b5e27ff02b3417d592d195a1655d41
2064a7097414208d831693548e52b1337b1e4f1d
/tst/regression/scripts/tests/example.py
4eab5edaa72277b3de0a2eac295e6beff3a705ed
[ "BSD-3-Clause" ]
permissive
PrincetonUniversity/athena
387283d0115154fa7c1d68be82bd3ee78a32baf8
a0a112fa517cf05106837fde51e663ba8774b6a9
refs/heads/master
2023-08-19T04:13:05.880286
2023-08-14T16:26:55
2023-08-14T16:26:55
19,380,617
149
95
BSD-3-Clause
2023-07-16T15:47:20
2014-05-02T16:11:56
C++
UTF-8
Python
false
false
9,066
py
example.py
""" Example test script. This is a complete, working example that can be run as part of the test suite. It does a simple test of a relativistic shock tube using the GR framework. There are many comments in order to make this file self-explanatory, but the actual working code is only 28 lines long. There are three fun...
e6330e97272a8cb06e3deb8d50c19c050ea01a39
01184c7098e40569dd48219fbe3012321cf31244
/rdflib/tools/rdfpipe.py
f931384233c36b9c290b433e685811687e226ae3
[ "BSD-3-Clause" ]
permissive
RDFLib/rdflib
1c81136f2656207042f81374540d8e1f02be28f5
077f4ac3abb3038b266f40dc95a8ccf9f4e9a84c
refs/heads/main
2023-08-30T11:22:00.041615
2023-08-29T21:31:43
2023-08-29T21:31:43
3,342,046
1,754
562
BSD-3-Clause
2023-09-12T14:58:35
2012-02-03T05:49:13
Python
UTF-8
Python
false
false
5,428
py
rdfpipe.py
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ A commandline tool for parsing RDF in different formats and serializing the resulting graph to a chosen format. """ import logging import sys from optparse import OptionParser import rdflib from rdflib import plugin from rdflib.graph import ConjunctiveGraph from rdfli...
f964a2eddb733c6c84ce7cd8eca0f55d7aa2f809
b43e0384ec4bfacec2571a2bb41ce563267db449
/jesse/modes/import_candles_mode/drivers/Bitget/bitget_spot_utils.py
275515346a89ebacc4d4275276603ac15251fdb2
[ "MIT" ]
permissive
jesse-ai/jesse
55b73448b767492a20f8bc56c28306a1a24f8599
fadb03b5fcc06f0655c6a5d877435fb872a97c5e
refs/heads/master
2023-08-24T15:28:52.875208
2023-08-24T13:53:31
2023-08-24T13:53:31
156,847,937
5,259
722
MIT
2023-09-10T13:51:26
2018-11-09T10:38:44
Python
UTF-8
Python
false
false
1,269
py
bitget_spot_utils.py
from jesse.enums import timeframes def timeframe_to_interval(timeframe: str) -> str: if timeframe == timeframes.MINUTE_1: return '1min' elif timeframe == timeframes.MINUTE_5: return '5min' elif timeframe == timeframes.MINUTE_15: return '15min' elif timeframe == timeframes.MINUT...
ed46b5406f59f324d2bbeb561840472b956066c8
b26c41926fa3a7c2c061132d80e91a2750f2f468
/tensorflow_probability/python/util/deferred_tensor.py
7b0f9f52fe602b8d053285e69eca9e92dad55da4
[ "Apache-2.0" ]
permissive
tensorflow/probability
22e679a4a883e408f8ef237cda56e3e3dfa42b17
42a64ba0d9e0973b1707fcd9b8bd8d14b2d4e3e5
refs/heads/main
2023-09-04T02:06:08.174935
2023-08-31T20:30:00
2023-08-31T20:31:33
108,053,674
4,055
1,269
Apache-2.0
2023-09-13T21:49:49
2017-10-23T23:50:54
Jupyter Notebook
UTF-8
Python
false
false
37,367
py
deferred_tensor.py
# Copyright 2019 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
2b91adea8cceb1aad703cd02af6c1612122e3362
c3e0a6919caf85c35239ef23084df9bbf8dd61c3
/pypeit/spec2dobj.py
41c3500b3588c86dacd6675c1ed263518fb62881
[ "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
29,272
py
spec2dobj.py
""" Module for the Spec2DObj class .. include common links, assuming primary doc root is up one directory .. include:: ../include/links.rst """ from pathlib import Path import os import inspect import datetime from copy import deepcopy import numpy as np from astropy.io import fits from astropy.stats import mad_st...
d1c7598f35f7d4140f2bc414db6711298d57eda7
bb4e12f9155e7f67cb3974c8405253a0a5ffa516
/tests/midifiles/test_tracks.py
1dae1aa8e792f0b5a2e2dd9c61a9d2bbf8aa9a28
[ "MIT", "CC-BY-4.0" ]
permissive
mido/mido
80c5c05e3eb38051253ccf40caf6ac7b917cc066
6970e045f1e66314ee266e8fb16432df75f6e87e
refs/heads/main
2023-08-15T09:47:38.967908
2023-08-07T18:46:25
2023-08-07T18:47:14
10,889,417
937
160
MIT
2023-08-08T07:11:05
2013-06-23T18:11:38
Python
UTF-8
Python
false
false
949
py
test_tracks.py
# SPDX-FileCopyrightText: 2017 Ole Martin Bjorndalen <ombdalen@gmail.com> # # SPDX-License-Identifier: MIT import itertools from mido.messages import Message from mido.midifiles.meta import MetaMessage from mido.midifiles.tracks import MidiTrack zip = getattr(itertools, 'izip', zip) def test_track_slice(): trac...
a489ee576d08c17afed2ff998227554d0d794c42
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/api/datahub/databus/queue_sdk_views.py
a8edd1fe71d5cac064c82735ec3fc7ca8affd5de
[ "MIT" ]
permissive
Tencent/bk-base
a38461072811667dc2880a13a5232004fe771a4b
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
refs/heads/master
2022-07-30T04:24:53.370661
2022-04-02T10:30:55
2022-04-02T10:30:55
381,257,882
101
51
NOASSERTION
2022-04-02T10:30:56
2021-06-29T06:10:01
Python
UTF-8
Python
false
false
6,427
py
queue_sdk_views.py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
76dc0a4c6f911ce0b678ba99f0929a50b8d8ecac
52245910f830dbfb2b1432ad2a967df7321ee6de
/panel/tests/io/test_document.py
05178bb4166dccbf434b4f75b23fb20b89cca889
[ "BSD-3-Clause" ]
permissive
holoviz/panel
92c19f979353d456512abbce5a027dff6ddb3a5c
2c6e165e2bba96c0cb97947aa072d4429133cf7a
refs/heads/main
2023-08-17T11:28:06.581979
2023-08-17T11:23:09
2023-08-17T11:23:09
145,848,899
2,544
373
BSD-3-Clause
2023-09-14T17:13:31
2018-08-23T12:14:24
Python
UTF-8
Python
false
false
576
py
test_document.py
import time import requests from panel.io.document import unlocked from panel.io.server import serve from panel.io.state import set_curdoc from panel.widgets import IntSlider def test_document_hold(port): slider = IntSlider() serve(slider, port=port, threaded=True, show=False) # Wait for server to sta...
de3252571b6f0aa9cdb7a565f773a6dc22c69ed2
795984ca2c91f62ac5bc3d07ef759e202b688969
/pages/test_runner.py
141f7c472a55b7e00bc94d927e7f757a238c962d
[ "BSD-3-Clause" ]
permissive
batiste/django-page-cms
914b615c0ab3dc9ebc5aa2dfa718569484918c23
cde7eab82a69dd5d4bd3da22b583d2de5eb7afdd
refs/heads/master
2023-09-03T00:04:45.855102
2023-08-01T06:50:10
2023-08-01T06:50:10
403,432
154
71
BSD-3-Clause
2023-08-01T06:50:11
2009-12-07T11:59:13
Python
UTF-8
Python
false
false
784
py
test_runner.py
import os import sys os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pages.testproj.test_settings") current_dirname = os.path.dirname(__file__) sys.path.insert(0, os.path.join(current_dirname, '..')) import django django.setup() from django.test.runner import DiscoverRunner from django.core.management import call_c...
a2211b0b2bd6cfb4961cec8b8c736bbf69d06629
2d6d5424e881252898b898fbfbc47fe1487371cf
/examples/02-plot/movie_glyphs.py
9ad7113581ac06abc784f745c8df882fbe8db7e4
[ "MIT" ]
permissive
pyvista/pyvista
333e55bfaa6b8bcdb47e2df04c823d35f05db364
1b450b23340f367315fc914075d551e0a4df8cc3
refs/heads/main
2023-08-20T08:04:27.146062
2023-08-20T01:14:03
2023-08-20T01:14:03
92,974,124
1,885
389
MIT
2023-09-14T21:09:28
2017-05-31T18:01:42
Python
UTF-8
Python
false
false
1,707
py
movie_glyphs.py
""" .. _movie_glyph_example: Save a Movie Using Glyphs ~~~~~~~~~~~~~~~~~~~~~~~~~ Create an animated GIF by generating glyphs using :func:`glyph() <pyvista.DataSetFilters.glyph>` using :func:`pyvista.Sphere`. """ # sphinx_gallery_thumbnail_number = 1 import numpy as np import pyvista as pv ########################...
a933b430e98aa1ef071b1ac076044aeba1413058
60d6b8501d0be546437b26a6ee1f9fab97ec3897
/platypush/plugins/inspect/_serialize.py
a9b75258b88c17967c3e06f6b42e04cf8daa5eca
[ "MIT" ]
permissive
BlackLight/platypush
68284a85b2f9eef303d26b04530f075927b5834a
446bc2f67493d3554c5422242ff91d5b5c76d78a
refs/heads/master
2023-08-31T21:01:53.519960
2023-08-29T22:05:38
2023-08-29T22:05:38
109,421,017
265
25
MIT
2023-09-01T23:15:49
2017-11-03T16:56:24
Python
UTF-8
Python
false
false
578
py
_serialize.py
import inspect import json class ProcedureEncoder(json.JSONEncoder): """ Encoder for the Procedure model. """ def default(self, o): if callable(o): return { 'type': 'native_function', 'module': o.__module__, 'source': inspect.getsour...
4c3e0c4b8b760a72d784c5451b3100618805df54
d5e1591a6b96ec0e35ea223269da38b15fffe600
/circuits/app/daemon.py
e5b4e91c7099ca244edc1011bcc748dfdd20be1b
[ "MIT" ]
permissive
circuits/circuits
630cfa0fa13b19f84bfb96705912f3f6a26c69e1
87fb5a3380069d907d2ac500d13418b1abdeb2f2
refs/heads/master
2023-07-31T07:17:06.706151
2023-02-07T19:39:20
2023-02-07T19:39:20
12,450,349
310
80
NOASSERTION
2023-01-06T00:08:37
2013-08-29T03:05:42
Python
UTF-8
Python
false
false
3,202
py
daemon.py
""" Daemon Component Component to daemonize a system into the background and detach it from its controlling PTY. Supports PID file writing, logging stdin, stdout and stderr and changing the current working directory. """ from os import ( _exit, chdir, closerange, dup2, fork, getpid, remove, setsid, umask, ) from o...
035be27ed76720b19b8dc4bf7d3463e70f016f07
4207698ab3d15c6d81bb205264b7de8297ba47e3
/deep_learning/softmax.py
16d111dbf71395fa2de909bd262132888e7d8f22
[ "MIT", "Python-2.0" ]
permissive
ethen8181/machine-learning
f86c52389ea41d3da2f66720dc3459eee4aebcf6
efbc9b8d5c56b2ce4780d8b10ab62cb884352122
refs/heads/master
2023-08-31T00:35:57.532536
2023-08-23T22:19:48
2023-08-23T22:19:48
39,610,055
2,704
657
MIT
2023-07-10T04:39:36
2015-07-24T03:35:49
HTML
UTF-8
Python
false
false
4,332
py
softmax.py
import numpy as np class SoftmaxRegression: """ Softmax regression classifier Parameters ------------ eta : float learning rate, or so called step size (between 0.0 and 1.0) epochs : int number of passes over the training dataset (iterations), prior to each epoch, the...
6d36acf851742be6d71c744dbde689bf8b1b2fb1
d0aade2edd6ba5750d70c70198a4bfe16356355e
/maskrcnn_benchmark/data/datasets/__init__.py
e3e2987c2ce4351a47c29bad57ac24533c824827
[ "MIT" ]
permissive
mjq11302010044/RRPN_pytorch
ca3a6b781d49b80323671581ea0a5c13ca500a7a
a966f6f238c03498514742cde5cd98e51efb440c
refs/heads/master
2022-08-29T07:29:20.311262
2020-10-16T02:29:19
2020-10-16T02:29:19
184,703,273
305
68
MIT
2020-04-30T06:37:19
2019-05-03T05:28:03
Python
UTF-8
Python
false
false
512
py
__init__.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from .coco import COCODataset from .voc import PascalVOCDataset from .concat_dataset import ConcatDataset from .icdar_series import ICDAR2013Dataset from .rotation_series import RotationDataset from .rrpn_e2e_series import SpottingDataset from .rot...
41106cc07fabfd8fad072a72f7f6fa65a8c96009
741246f9e697830a0d7c5750b6e93d7eb3ae8ef9
/openpyscad/transformations.py
cf5bdfeaf3d75af7dc511a80c9395eec1fd92086
[ "MIT" ]
permissive
taxpon/openpyscad
329c3d3c443b06f07e73ed3d755e6dc48886b3ce
8eab739da1efe21793c259dee2f4fab2946a1c66
refs/heads/develop
2022-09-29T22:25:43.337280
2021-06-24T13:56:44
2021-06-24T13:56:44
51,843,932
114
23
MIT
2022-09-20T23:46:56
2016-02-16T14:52:39
Python
UTF-8
Python
false
false
1,314
py
transformations.py
# -*- coding: utf-8 -*- import openpyscad.base as base __all__ = ['Translate', 'Rotate', 'Scale', 'Resize', 'Mirror', 'Color', 'Offset', 'Hull', 'Minkowski', 'Linear_Extrude', 'Rotate_Extrude'] class _Transformation(base.BaseObject): pass Transformation = _Transformation # Transformations class Translate(_Tr...
c55c530ad19b3ac37e3e884bd1f0afa63f64dbaf
d4412fbe37540e2c4cbe59ed6503d3661ccb7d9c
/colossalai/auto_parallel/meta_profiler/meta_registry/non_spmd.py
12874810b13e252c0597e2adf124ab7875e992a3
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "BSD-2-Clause", "MIT" ]
permissive
hpcaitech/ColossalAI
a082ed08a3807b53c49d1f86835b9808590d9042
c7b60f75470f067d1342705708810a660eabd684
refs/heads/main
2023-09-01T04:13:13.834565
2023-08-30T15:07:21
2023-08-30T15:07:21
422,274,596
32,044
4,084
Apache-2.0
2023-09-14T15:19:54
2021-10-28T16:19:44
Python
UTF-8
Python
false
false
1,047
py
non_spmd.py
import operator from typing import List, Tuple import torch from colossalai.auto_parallel.tensor_shard.sharding_strategy import MemoryCost, OperationDataType, TrainCycleItem from ..registry import meta_register __all__ = ["non_spmd_meta_info"] @meta_register.register(torch.Size) @meta_register.register(torch.Tens...
0ac533ececa50a0f486e7c0b9629788443c3e5fc
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/8_heap/分类/事后诸葛/871. 最低加油次数.py
7fa2d36bd728fa2ea89816ca1533fcadae7418ae
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
1,305
py
871. 最低加油次数.py
from functools import lru_cache from heapq import heappop, heappush from typing import List # 为了到达目的地,汽车所必要的最低加油次数是多少? # 如果无法到达目的地,则返回 -1 。 # 事后诸葛 class Solution: def minRefuelStops(self, target: int, startFuel: int, stations: List[List[int]]) -> int: stations.append([target, 0]) re...
fa516dd7f558dbda943a65f39acc7c7854f19b64
8d402df39c18eba7e1c86c762f205c944357c5df
/www/gallery/music/drum_score.py
002840013211bab34db73a1d046e6a811baf41ac
[ "BSD-3-Clause" ]
permissive
brython-dev/brython
87cc023e25550dec9ce459ba68774189f33712b6
b33958bff0e8c7a280babc30232dc389a2500a7a
refs/heads/master
2023-09-04T04:49:29.156209
2023-09-01T06:36:08
2023-09-01T06:36:08
24,046,239
6,569
625
BSD-3-Clause
2023-07-05T06:13:32
2014-09-15T06:58:21
Python
UTF-8
Python
false
false
6,189
py
drum_score.py
from browser import document, console, html, timer from browser.widgets.dialog import InfoDialog class PatternError(Exception): def __init__(self, message): super().__init__(message) InfoDialog('Pattern error', message) class NoteStyle: checked = '#666' unchecked = '#ddd' class NoteCe...
3cbdf95b8142df93d39591ad7d12a8ffba28eea0
70fec09ceb625608d561937955c285c0c39f6d95
/tomodachi/options/__init__.py
c7c58564239cae46a6a3361f04c5997bffe1a29e
[ "MIT" ]
permissive
kalaspuff/tomodachi
b285e2c73696d14e3c84a479745e00824fba7190
deca849ec2b4cdc3d27f06e9ce0056fac0146a1a
refs/heads/master
2023-08-31T00:32:12.042486
2023-08-21T13:02:24
2023-08-21T13:02:24
62,165,703
191
28
MIT
2023-09-11T23:32:51
2016-06-28T18:43:51
Python
UTF-8
Python
false
false
151
py
__init__.py
from .definitions import DEFAULT, Options from .interface import OptionsInterface __all__ = [ "OptionsInterface", "Options", "DEFAULT", ]
0bf4b9f5cf6a8ec6912df9952e9614388eb50e09
6e56e6b4bb562cd1db6e38b5f089b863b77e087f
/dragonfly/nn/unittest_nn_gp.py
edb3e4125a8b5e3cfa13a95a81803b43021f352d
[ "MIT" ]
permissive
dragonfly/dragonfly
aa5f3a64bfe7800c44c32e58b487b5733c40035d
3eef7d30bcc2e56f2221a624bd8ec7f933f81e40
refs/heads/master
2023-08-06T08:34:29.317771
2022-10-01T22:21:50
2022-10-01T22:21:50
130,418,835
868
374
MIT
2023-06-19T20:23:17
2018-04-20T22:19:50
Python
UTF-8
Python
false
false
11,753
py
unittest_nn_gp.py
""" Test cases for nn_gpy.py -- kandasamy@cs.cmu.edu """ # pylint: disable=no-member # pylint: disable=invalid-name import numpy as np import unittest # Local imports from .syn_nn_functions import syn_func1_common, cnn_syn_func1, mlp_syn_func1 from .nn_examples import generate_cnn_architectures, generate_mlp_arch...
77a6ccfb6584ec8042c0497dd3abd6177eb9e6c5
ae61e50cf2c37590abca8207bd89bc4593841fb1
/tests/long_lines_example.py
d17d223cff49cc87691cded22f762505c83433e7
[ "MIT" ]
permissive
MatthieuDartiailh/bytecode
2a0a96e92f2776d90c49285ede9b400eda0d6c17
987b00efb1043396a8b2d9cb293fa7a22b236dc3
refs/heads/main
2023-08-17T23:18:00.458687
2023-05-25T19:08:35
2023-05-25T19:08:35
52,368,046
111
18
MIT
2023-09-11T10:01:07
2016-02-23T15:14:29
Python
UTF-8
Python
false
false
2,813
py
long_lines_example.py
# flake8: noqa # fmt: off def long_lines(): a = 1 b = 1 if a > 1 else 2 if a > 0 else 3 if a > 4 else 23 if a > 1 else 2 if a > 0 else 3 if a > 4 else 23 if a > 1 else 2 if a > 0 else 3 if a > 4 else 23 if a > 1 else 2 if a > 0 else 3 if a > 4 else 23 if a > 1 else 2 if a > 0 else 3 if a > 4 else 23 if a > 1 el...
c1aa94c77379454e1458b2fd4280fd8d00e30085
fdb647eff7d4c842bc6ef7af974eb9b9f09307b2
/Codes/flownet2/corr.py
3301d8ca02c480dd8ad567b0a1b935a8d8ac73cc
[ "MIT" ]
permissive
StevenLiuWen/ano_pred_cvpr2018
9e979d2b43f245cb81438cad75f1a71f6a59c1aa
f3043d00c64b83b1ae6ffd4a5e0f4d4a9bda91ac
refs/heads/master
2022-08-28T16:20:05.706148
2022-04-15T15:40:44
2022-04-15T15:40:44
125,003,361
446
143
null
2022-06-21T21:16:04
2018-03-13T06:30:09
Python
UTF-8
Python
false
false
1,516
py
corr.py
import tensorflow as tf import numpy as np import math BATCH_SIZE = 8 HEIGHT = 30 WIDTH = 60 CHANNELS = 3 NEIGHBORHOOD_SIZE = 41 MAX_DISPLACEMENT = int(math.ceil(NEIGHBORHOOD_SIZE / 2.0)) STRIDE_2 = 2 assert(STRIDE_2 <= NEIGHBORHOOD_SIZE) # Define two feature maps fmA = tf.ones((BATCH_SIZE, HEIGHT, WIDTH, CHANNELS)...
dfbe1e5f2e33f05253a517383afaad4b97e858cc
6d54a7b26d0eb82152a549a6a9dfde656687752c
/third_party/silabs/slc_gen/run_slc.py
4ec7f59b9ae6007deaa7da7aab851baaf4fb28ea
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
project-chip/connectedhomeip
81a123d675cf527773f70047d1ed1c43be5ffe6d
ea3970a7f11cd227ac55917edaa835a2a9bc4fc8
refs/heads/master
2023-09-01T11:43:37.546040
2023-09-01T08:01:32
2023-09-01T08:01:32
244,694,174
6,409
1,789
Apache-2.0
2023-09-14T20:56:31
2020-03-03T17:05:10
C++
UTF-8
Python
false
false
2,979
py
run_slc.py
# Importing required module import glob import os import subprocess import sys if len(sys.argv) != 9: print("wrong number of arguments") sys.exit(1) def asBoolean(valueToTest): return ("true" == valueToTest) def isMG24(partnumber): if "EFR32MG24" in partnumber or "MGM240" in partnumber: ret...
4d05c42336c1843e2037d320489dd37ef4a8270c
0529610da235bac1490c4f0b28a58258f05f116c
/ambari-common/src/main/python/resource_management/libraries/providers/properties_file.py
283cc3f55442c73bcad95713d713bbeb8910f2fa
[ "GPL-1.0-or-later", "GPL-2.0-or-later", "OFL-1.1", "MS-PL", "AFL-2.1", "GPL-2.0-only", "Python-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
apache/ambari
be1616f332615ef55fc1a47e84353f3e5a45732d
23881f23577a65de396238998e8672d6c4c5a250
refs/heads/trunk
2023-08-31T23:01:31.954106
2023-08-28T06:29:01
2023-08-28T06:29:01
2,442,457
2,078
1,957
Apache-2.0
2023-09-14T16:56:03
2011-09-23T07:00:08
Java
UTF-8
Python
false
false
2,225
py
properties_file.py
#!/usr/bin/env python """ 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");...
c6f74d3049774ad7a65db1fe9a85fd719e7e1565
c07074638db53fbfd31ee761e243b970664c0646
/steam/package.py
7ca48780e350db29066b12c8987bd87a09816270
[ "MIT" ]
permissive
Gobot1234/steam.py
4bdd66004d29b0283fb150a2eb910915dbf1d878
3075c6065babcd8a67052593d4b31d10c20edabe
refs/heads/main
2023-08-30T03:59:06.001118
2023-08-28T14:18:46
2023-08-28T14:18:53
233,127,732
144
40
NOASSERTION
2023-09-14T13:38:41
2020-01-10T20:47:06
Python
UTF-8
Python
false
false
13,935
py
package.py
"""Licensed under The MIT License (MIT) - Copyright (c) 2020-present James H-B. See LICENSE""" from __future__ import annotations import re import sys from dataclasses import dataclass from datetime import datetime, timedelta from typing import TYPE_CHECKING, Generic from typing_extensions import TypeVar from ._con...
b2cb04ebaed250a6a7a8c2eed9355df3cf3caa2d
11cd362cdd78c2fc48042ed203614b201ac94aa6
/desktop/core/ext-py3/boto-2.49.0/boto/glacier/vault.py
45d276cadb56347130133e509f98c00359e6ce3a
[ "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
17,601
py
vault.py
# -*- coding: utf-8 -*- # Copyright (c) 2012 Thomas Parslow http://almostobsolete.net/ # Copyright (c) 2012 Robie Basak <robie@justgohome.co.uk> # # 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 Softw...
8ebfe132881c9e2071c24ba40623b4593496dfe2
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Pandas_numpy/source/pandas/core/indexes/interval.py
9619f5403b761e0b5a94f413c02a029a5b70cf14
[ "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
44,670
py
interval.py
""" define the IntervalIndex """ import numpy as np from pandas.core.dtypes.missing import notna, isna from pandas.core.dtypes.generic import ABCPeriodIndex from pandas.core.dtypes.dtypes import IntervalDtype from pandas.core.dtypes.common import ( _ensure_platform_int, is_list_like, is_datetime_or_timede...
d6ef25da42ded4577c1582409fb05186a14c8cfb
b1a6c925f0d570463e46e7331ae95fdc0ef49211
/spacecutter/callbacks.py
26b38c8a9012642512aff5d2b357e05219eadebd
[ "MIT" ]
permissive
EthanRosenthal/spacecutter
e35c55bb416bdaaae1e89fdb2fb360e7469e28c7
063fe875f5122063e6f616512cffd9ffa4df1974
refs/heads/master
2022-05-01T04:30:43.120191
2022-03-23T02:13:52
2022-03-23T02:13:52
160,105,172
112
13
MIT
2022-03-23T02:13:53
2018-12-02T23:05:01
Python
UTF-8
Python
false
false
1,523
py
callbacks.py
from skorch.callbacks import Callback from torch.nn import Module from spacecutter.models import LogisticCumulativeLink class AscensionCallback(Callback): """ Ensure that each cutpoint is ordered in ascending value. e.g. .. < cutpoint[i - 1] < cutpoint[i] < cutpoint[i + 1] < ... This is done by...
f39f889059eb6e26cb18de636a30af41a406de75
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/ZhimaCreditPayafteruseCreditbizorderFinishModel.py
53ff8f578ce4bcf10977b09e36e052eb71687b8e
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
2,613
py
ZhimaCreditPayafteruseCreditbizorderFinishModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class ZhimaCreditPayafteruseCreditbizorderFinishModel(object): def __init__(self): self._credit_biz_order_id = None self._is_fulfilled = None self._out_request_no = None ...
2b504564c621b4a3243bcef7d697c51b3064783b
518bf342bc4138982af3e2724e75f1d9ca3ba56c
/solutions/1936. Add Minimum Number of Rungs/1936.py
6e1f0cbda4c7e083370a5703e64fd1cd4203fc4b
[ "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
196
py
1936.py
class Solution: def addRungs(self, rungs: List[int], dist: int) -> int: ans = 0 prev = 0 for rung in rungs: ans += (rung - prev - 1) // dist prev = rung return ans
c9bbf76870d3b29814e9845af6123e5d52646817
15f0514701a78e12750f68ba09d68095172493ee
/Python3/951.py
16ff5b493ced31e877333c4649ef0c1089fef958
[ "MIT" ]
permissive
strengthen/LeetCode
5e38c8c9d3e8f27109b9124ae17ef8a4139a1518
3ffa6dcbeb787a6128641402081a4ff70093bb61
refs/heads/master
2022-12-04T21:35:17.872212
2022-11-30T06:23:24
2022-11-30T06:23:24
155,958,163
936
365
MIT
2021-11-15T04:02:45
2018-11-03T06:47:38
null
UTF-8
Python
false
false
1,656
py
951.py
__________________________________________________________________________________________________ sample 24 ms submission class Solution: def flipEquiv(self, root1: TreeNode, root2: TreeNode) -> bool: if not root1 and not root2: return True if not root1 or not root2: ...
4349f6ce55b3f803720514d701576c1a594148de
364774e29ef2474552ea3839de0951e63cbae0a6
/wouso/core/security/sec.py
9a736c392fc798b39c4a9b0ee67de4e42a1d3c32
[ "Apache-2.0" ]
permissive
rosedu/wouso
66c50ef750cf79d6959768f7df93cc08607cc266
ed34c62ac925db719388f27fe5acb40376d8d0c1
refs/heads/master
2022-10-29T14:28:51.818073
2022-09-24T18:54:04
2022-09-24T18:54:04
2,965,476
121
97
NOASSERTION
2019-11-15T09:33:50
2011-12-12T16:15:01
Python
UTF-8
Python
false
false
3,587
py
sec.py
from wouso.core import signals from wouso.core.config.models import BoolSetting from wouso.core.common import App from wouso.core.scoring.models import Coin, Formula from wouso.core.scoring import score class SecurityInspector: """ Global check function dispatcher """ @classmethod def check(cls, rule, **k...
d8c59b6d1955ffc08a9fba23d24d34b56afe5f98
d3e6001c5e0a55862d8101b0bf929f9bf1509aa2
/upsetplot/__init__.py
1dd1ba37ec0c194ac20c7c605d363d5abaa616ea
[ "BSD-3-Clause" ]
permissive
jnothman/UpSetPlot
e0abb224d15cd36d5a64511534da0a4c9bec8ff7
3f6b2e7452e25194bbc5286009ba5b18eabf1072
refs/heads/master
2023-03-15T15:34:00.398282
2023-01-09T21:58:35
2023-01-09T21:58:35
122,333,034
266
53
NOASSERTION
2023-03-10T18:37:49
2018-02-21T12:23:00
Python
UTF-8
Python
false
false
498
py
__init__.py
__version__ = '0.9.dev1' import os if os.environ.get('__in-setup', None) != '1': from .plotting import UpSet, plot from .data import (generate_counts, generate_data, generate_samples, from_memberships, from_contents, from_indicators) from .reformat import query __all__ = ['UpSe...
31466002f111d757d9aec6c5f331f7a04736e74e
5b6ba0f288b1e2ac236af846a9bf546a63228476
/iotbx/regression/tst_mtz_as_cif.py
0440118c2278e3016c4bcf117e2891989ee92e08
[ "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
7,714
py
tst_mtz_as_cif.py
from __future__ import absolute_import, division, print_function import os import libtbx.load_env if (libtbx.env.has_module("ccp4io")): from iotbx import mtz else: mtz = None from libtbx.test_utils import approx_equal import iotbx.cif def get_array_by_label(miller_arrays, label): for ma in miller_arrays: if ...
2169b5a674cffe3aa8572db745344e52b4f96a56
4d616d46c7f9b0ce151f924f6d94e1fff0fd9640
/osbuild/formats/v1.py
76e9d5c817fdb8d2f5bf690e9368816acbce3d86
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
osbuild/osbuild
36d04725fa263a4cbfc683cc466c8327328eac69
e7fb2e11174a9b69b1761a726989f7a9a9e2ce1c
refs/heads/main
2023-08-28T13:28:53.047810
2023-08-25T15:47:30
2023-08-28T11:25:04
165,869,351
150
84
Apache-2.0
2023-09-14T11:02:21
2019-01-15T14:55:29
Python
UTF-8
Python
false
false
10,231
py
v1.py
""" Version 1 of the manifest description This is the first version of the osbuild manifest description, that has a "main" pipeline that consists of zero or more stages to create a tree and optionally one assembler that assembles the created tree into an artefact. The pipeline can have any number of nested build pipel...
b6d54c74dd2f31bc82bb33a7808c9dd7ff6c3e66
7870d90dc0d336f4600b97b1ee2f0348eb8dd3ba
/espresso/modules/speech_attention.py
8bbd46531013a5138d76f340f4300eae9f8fa5b6
[ "MIT" ]
permissive
freewym/espresso
937e3e3c612086c2fc92ad8640d7d22e1df44def
660facf088ded9f084cc1a24a1f00f64ce5f6918
refs/heads/main
2023-08-21T21:08:04.171489
2023-07-20T23:05:26
2023-07-24T00:01:56
160,007,582
975
152
NOASSERTION
2022-12-07T01:42:01
2018-12-02T02:48:48
Python
UTF-8
Python
false
false
4,480
py
speech_attention.py
# Copyright (c) Yiming Wang # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import torch import torch.nn.functional as F from torch import nn from torch.nn import Parameter class BaseAttention(nn.Module): """Base class for...
6462d6240fbb687e2bee06780b831be703309ed8
6b59ea7856d85d329a0f13f6b8995e786065a451
/tacotron/models/modules.py
76ba186182bc5f0ed36a3c5c8c0c4c4c7cebbd95
[ "MIT" ]
permissive
JasonWei512/Tacotron-2-Chinese
7db2081d81b1b075a169eef21938e0453a10c546
deb9add0b6abc27b07b69bf86969a1c6d1a1ca5b
refs/heads/mandarin-biaobei
2022-05-01T02:47:34.446623
2020-01-11T05:06:49
2020-01-11T05:06:49
197,762,781
324
79
MIT
2022-04-11T12:19:28
2019-07-19T11:41:04
Python
UTF-8
Python
false
false
18,452
py
modules.py
import tensorflow as tf class HighwayNet: def __init__(self, units, name=None): self.units = units self.scope = 'HighwayNet' if name is None else name self.H_layer = tf.layers.Dense(units=self.units, activation=tf.nn.relu, name='H') self.T_layer = tf.layers.Dense(units=self.units, activation=tf.nn.sigmoid, ...
f668c60b40cbf92596ed66e2026360bcf92912f9
d110546d747d7e3865ce5742d5fca09f404623c0
/salt/states/composer.py
c21ae515098f168055acc2000b635f4598563ff8
[ "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
8,586
py
composer.py
""" Installation of Composer Packages ================================= These states manage the installed packages for composer for PHP. Note that either composer is installed and accessible via a bin directory or you can pass the location of composer in the state. .. code-block:: yaml get-composer: cmd.ru...
442ff83def0ae7c2dbb4a984a3bc59431b008e04
420e7db695f82c7cf9d29735df956fa86bc0f14f
/tests/test_evaluator.py
dfcaf1a48e120be7a168dc5dc0ecc8691cad247d
[ "BSD-3-Clause" ]
permissive
Kkevsterrr/geneva
bf929e3056dc6215bca079f1fd587866907a1cd5
6b091060ed0946b98a2ff9196dfbf93d85cbb28a
refs/heads/master
2023-08-23T22:30:49.750259
2023-05-18T21:24:14
2023-05-18T21:24:14
221,001,148
1,771
168
BSD-3-Clause
2023-05-26T10:04:58
2019-11-11T14:37:39
Python
UTF-8
Python
false
false
31,842
py
test_evaluator.py
import logging import os import pytest import tempfile import actions.tree import actions.drop import actions.tamper import actions.duplicate import actions.utils import actions.strategy import evaluator import evolve import common import netifaces from scapy.all import IP, TCP from pprint import pprint @pytest.mar...
278f9e1e6362d2dd06428ee6a8fd56f849ea4052
a2b20597759990445081057d35d113434cfcf970
/stubs/integration_test/fixture_stubs/django/contrib/gis/geos/__init__.pyi
013654d7e3a09cb7c84ce642ace749c8821b3129
[ "MIT" ]
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
680
pyi
__init__.pyi
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-unsafe from typing import Optional class GEOSBase: pass class ListMixin: pass class GEOSGeometry(GEOSBase, ListMixin): ...
9be443c3a21ddf1cbf6be8fe518fd55f93874b34
2dd26e031162e75f37ecb1f7dd7f675eeb634c63
/tests/collections/asr/test_ssl_models.py
932dd5760ac8c3b0de31729772240e80af3580ff
[ "Apache-2.0" ]
permissive
NVIDIA/NeMo
1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1
c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7
refs/heads/main
2023-08-21T15:28:04.447838
2023-08-21T00:49:36
2023-08-21T00:49:36
200,722,670
7,957
1,986
Apache-2.0
2023-09-14T18:49:54
2019-08-05T20:16:42
Python
UTF-8
Python
false
false
8,122
py
test_ssl_models.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
47423aa8f3b74abbe1887f5e9572a1c5c3ad4483
14990fe6493928adb17f401895a25a66391f2cef
/test/manual_integration_tests/text_entry_placeholder.py
42cb14533d4b1d7c2b458abc36ef2ca3a71bfcc2
[ "MIT" ]
permissive
TomSchimansky/CustomTkinter
3e9db4d9b7f2f8b2f8dda4c8a5b665b813e5d334
d719950f80eb2768db96bd4cc627523e99603b1b
refs/heads/master
2023-08-27T10:13:43.672181
2023-07-27T12:40:19
2023-07-27T12:40:19
344,554,014
8,506
1,069
MIT
2023-09-11T11:23:31
2021-03-04T17:24:00
Python
UTF-8
Python
false
false
856
py
text_entry_placeholder.py
import customtkinter app = customtkinter.CTk() # create CTk window like you do with the Tk window (you can also use normal tkinter.Tk window) app.geometry("400x400") app.title("test_entry_placeholder.py") str_var = customtkinter.StringVar(value="test") entry_1 = customtkinter.CTkEntry(app, placeholder_text="placeho...
e53f7b3ba21ce052f0b11bae6acbd1e9ebab747c
31cf77b4c0342c6148b35ae2613d5e2501d5e755
/src/encoded/tests/features/browsersteps.py
fa36d5021d8b83956223a76afff700b09523a566
[ "MIT" ]
permissive
ENCODE-DCC/encoded
096de8a6d60c959a783cc9517f1d60bd6c21b71f
80e05610c79b46d0890228555bb03e436b2fef11
refs/heads/dev
2023-08-08T15:45:07.493187
2023-08-03T20:01:24
2023-08-03T20:01:24
7,045,549
110
69
MIT
2023-09-12T23:59:45
2012-12-07T00:52:21
JavaScript
UTF-8
Python
false
false
12,087
py
browsersteps.py
""" Library of splinter browser steps. Adapted for pytest-bdd and pytest-splinter from behaving_ 1.1. .. _behaving: https://pypi.python.org/pypi/behaving """ from pytest_bdd.parsers import parse from pytest_bdd import ( given, then, when, ) try: from urllib.parse import urljoin except ImportError: ...
40fe2cdeddd043f7c638d4fadb45dbad9078b239
01a8afb1692a783e29bc972c9581b480d9d6cdd8
/omegaconf/base.py
77e951058a8bebae52bbbd4af2cab221b5837082
[ "LicenseRef-scancode-free-unknown", "BSD-3-Clause" ]
permissive
omry/omegaconf
366bbda12fde4ee1f92d10b682710c0c9c9e86a2
91a2d7c9e046161f58bf34c3a90778599a566ab5
refs/heads/master
2023-09-05T16:33:16.615064
2023-09-04T07:26:13
2023-09-04T07:26:13
147,219,819
1,598
99
BSD-3-Clause
2023-09-04T07:45:05
2018-09-03T14:59:01
Python
UTF-8
Python
false
false
32,704
py
base.py
import copy import sys from abc import ABC, abstractmethod from collections import defaultdict from dataclasses import dataclass, field from enum import Enum from typing import Any, Dict, Iterator, List, Optional, Set, Tuple, Type, Union from antlr4 import ParserRuleContext from ._utils import ( _DEFAULT_MARKER_,...
b0e9348f3e308917d89c56bf7d609a352a3e8059
530b180c3aade8e67cc61ad2baddff018f7d59a8
/robotframework-ls/tests/robotframework_ls_tests/completions/test_filesystem_completions.py
795cf6cac089d7d2de28aec9e8c539e30295bdab
[ "Apache-2.0" ]
permissive
robocorp/robotframework-lsp
67a1f35b9268d349045eb8fe930ea381c2d94cae
d72e5310ed4a8165d7ee516d79e0accccaf7748c
refs/heads/master
2023-08-17T05:12:43.598270
2023-08-12T12:11:22
2023-08-12T12:13:21
235,202,865
167
72
Apache-2.0
2023-09-13T22:39:09
2020-01-20T21:31:20
Python
UTF-8
Python
false
false
8,964
py
test_filesystem_completions.py
def test_library_completions_basic( data_regression, workspace, cases, libspec_manager, workspace_dir ): from robotframework_ls.impl import filesystem_section_completions from robotframework_ls.impl.completion_context import CompletionContext cases.copy_to("case1", workspace_dir) workspace.set_roo...
8fa44bd896f160f79b061b9cdae81c1c9e0fa149
b9c20797eedb5da2825916ded20965256e508381
/src/6/inverted-pendulum/montecarlo_control_inverted_pendulum.py
3cad2eebc880454c1d20b8a22a8d3820ce4623b2
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
mpatacchiola/dissecting-reinforcement-learning
af4bdb365f9f81ecb4e75d8e26126a469d9c95e9
8b418dfaa091675b2f100814c5543b0f2b10217a
refs/heads/master
2023-05-30T20:51:32.358149
2023-05-02T11:47:23
2023-05-02T11:47:23
76,040,816
633
197
MIT
2023-05-02T11:47:25
2016-12-09T14:09:59
Python
UTF-8
Python
false
false
11,299
py
montecarlo_control_inverted_pendulum.py
#!/usr/bin/env python #MIT License #Copyright (c) 2017 Massimiliano Patacchiola # #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 #t...
bd0d30dc39fb9deb4c94614cccd42e270f41797c
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/chart.py
578f1032340423bbae967a112cb3504298dd4bd7
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
6,770
py
chart.py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class Chart: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
8325f8a7238803a0ad2181e309459c34222f47ce
543f12ee04da6ac19474f01df06a13e843f1d100
/tests/test_use.py
f398665474f7344b1253100653ee73bfd7b6e829
[ "MIT" ]
permissive
hugapi/hug
8cb71f75dd147ac127f33ebcc1ad7a7284753f86
e4a3fa40f98487a67351311d0da659a6c9ce88a6
refs/heads/develop
2023-08-24T23:19:56.787257
2023-06-30T13:14:01
2023-06-30T13:14:01
39,233,228
1,401
139
MIT
2023-06-30T13:14:02
2015-07-17T03:33:50
Python
UTF-8
Python
false
false
9,675
py
test_use.py
"""tests/test_use.py. Tests to ensure hugs service consuming classes, that are the backbone of the seamless micro-service concept, work as intended Copyright (C) 2016 Timothy Edmund Crosley Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation file...
2b4956b8c2a12116d615253d103bc58f7913b1a9
9c7dbf33e00d71b84b0b989208a1531445331a8b
/gin/__init__.py
c951c65d3517fc7ac87a170cbcb53ab8f6a9ff9e
[ "Apache-2.0" ]
permissive
google/gin-config
f5831b7b3d9bdffc955f17c68ab1ccc60ab2f1be
ddd964cebaeaadcb9d1a9b01eaabdfd11dbe03d9
refs/heads/master
2023-09-03T10:06:12.826134
2023-07-31T16:46:09
2023-07-31T16:46:45
138,929,098
1,934
130
Apache-2.0
2023-09-09T23:58:45
2018-06-27T20:21:12
Python
UTF-8
Python
false
false
1,671
py
__init__.py
# coding=utf-8 # Copyright 2020 The Gin-Config Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
9d1239f17c31599e40465606ae6cf17a4c0d1974
b4afb834fc3a3e2c128b1bf825700031e3df519a
/examples/Arctic2/make_bdry_file.py
502dfd846564b6132e755d5515ac1978a3b50b26
[ "BSD-3-Clause" ]
permissive
ESMG/pyroms
e4e5e9d70d66907a992846b06d61db31afcd24f3
5ea501ef904b01036dd2a0909b7bdc61a56e7eff
refs/heads/python3
2023-03-19T11:11:09.143443
2023-03-10T00:22:13
2023-03-10T00:22:13
1,012,779
102
63
NOASSERTION
2023-03-10T00:23:20
2010-10-21T17:22:48
Python
UTF-8
Python
false
false
2,916
py
make_bdry_file.py
import matplotlib matplotlib.use('Agg') import subprocess from multiprocessing import Pool from functools import partial import os import sys import numpy as np import pyroms import pyroms_toolbox from remap_bdry import remap_bdry from remap_bdry_uv import remap_bdry_uv def do_file(file, src_grd, dst_grd): dst_d...
6af86fff80867082746734e58c63efcde0be4140
35b6013c1943f37d1428afd2663c8aba0a02628d
/compute/auth/access_token.py
5080a3b1f1fd2e35d340eb201dd8053ee0bf0314
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/python-docs-samples
d2a251805fbeab15d76ed995cf200727f63f887d
44e819e713c3885e38c99c16dc73b7d7478acfe8
refs/heads/main
2023-08-28T12:52:01.712293
2023-08-28T11:18:28
2023-08-28T11:18:28
35,065,876
7,035
7,593
Apache-2.0
2023-09-14T20:20:56
2015-05-04T23:26:13
Jupyter Notebook
UTF-8
Python
false
false
2,643
py
access_token.py
#!/usr/bin/env python # Copyright 2016 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
fc455cd8748fc6c3ebef66f90b39e95367e65493
7b6c038da851b1d2a3dde5f1158fce03482bc3c1
/luna/full_devices.py
807db49fb073a5f84821ce912cfe9fba1149cbba
[ "BSD-3-Clause", "CERN-OHL-P-2.0" ]
permissive
greatscottgadgets/luna
77b636481a3bef13137c7125de970e86a1fdda22
1d8e9cfa6a3e577f255ff3544384a1442b3b015b
refs/heads/main
2023-09-02T02:32:58.944632
2023-09-01T13:00:54
2023-09-01T13:00:54
215,722,076
842
160
BSD-3-Clause
2023-09-13T14:59:36
2019-10-17T06:45:30
Python
UTF-8
Python
false
false
363
py
full_devices.py
# # This file is part of LUNA. # # Copyright (c) 2020 Great Scott Gadgets <info@greatscottgadgets.com> # SPDX-License-Identifier: BSD-3-Clause """ Import shortcuts for our ready-to-use devices. """ # Create shorthands for the most common parts of the library's usb2 gateware. from .gateware.usb.devices.acm import USBS...
b1474f09b9cd7cf84047a9399d421b833ce7e2e6
e7bf1ff05319acc59bba5af5890041bd82c3e197
/mne/preprocessing/eyetracking/calibration.py
962299f3a840bf813570f5b52f7ad7bda9f209e6
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mne-tools/mne-python
7e8d7e945dfbbee6432a4955cf050fa823f2d34b
f44636f00666b8eb869417960926d01690ff4f42
refs/heads/main
2023-09-04T03:05:37.402100
2023-09-03T14:15:18
2023-09-03T14:15:18
1,301,584
2,437
1,418
BSD-3-Clause
2023-09-14T19:23:38
2011-01-28T03:31:13
Python
UTF-8
Python
false
false
8,088
py
calibration.py
"""Eyetracking Calibration(s) class constructor.""" # Authors: Scott Huberty <seh33@uw.edu> # Eric Larson <larson.eric.d@gmail> # Adapted from: https://github.com/pyeparse/pyeparse # License: BSD-3-Clause from copy import deepcopy import numpy as np from ...io.eyelink._utils import _parse_calibrat...
0a38a2fa4336f94b9f8ec42d8f0910bd594f176c
5f69a6549b8d5e417553d910622e6855b2ae679b
/src/opendr/perception/skeleton_based_action_recognition/algorithm/models/pstgcn.py
49733d0e4e4ec3283cc07fc3389d9c0b3ab67491
[ "Apache-2.0" ]
permissive
opendr-eu/opendr
822219f709613d77c5eb62c5d02808d344239835
b3d6ce670cdf63469fc5766630eb295d67b3d788
refs/heads/master
2023-08-31T07:02:36.375231
2023-08-29T06:39:51
2023-08-29T06:39:51
293,755,225
535
82
Apache-2.0
2023-09-13T16:53:34
2020-09-08T08:55:04
Python
UTF-8
Python
false
false
5,776
py
pstgcn.py
""" Modified based on: https://github.com/open-mmlab/mmskeleton """ import math import numpy as np import torch import torch.nn as nn from torch.autograd import Variable from opendr.perception.skeleton_based_action_recognition.algorithm.graphs.nturgbd import NTUGraph from opendr.perception.skeleton_based_action_recogn...
4babbfd88b12f46c0ca915a21f7fba31614725c6
e4c5238c86c8a114d49b7ba3ecc5ef9d5157e152
/toqito/channel_metrics/__init__.py
79bb56d934d53e7a0772a0ed59a5714ccf867885
[ "MIT" ]
permissive
vprusso/toqito
64a9963c02b73127836b76d886543a0642b93664
7e6869d783f98cb241579ea89e0f9ff61eff9d9b
refs/heads/master
2023-07-22T17:08:18.392204
2023-07-19T07:27:37
2023-07-19T07:27:37
235,493,396
116
53
MIT
2023-09-12T13:35:38
2020-01-22T03:47:16
Python
UTF-8
Python
false
false
456
py
__init__.py
"""Distance metrics for quantum channels.""" from toqito.channel_metrics.channel_fidelity import channel_fidelity from toqito.channel_metrics.diamond_norm import diamond_norm from toqito.channel_metrics.fidelity_of_separability import fidelity_of_separability from toqito.channel_metrics.completely_bounded_trace_norm im...
7129c2c709e6ee13ccbc8044ee17330dad8b3fad
0d7e35ce92ac848b1b5ad4adb8920bd0815a234e
/tests/simple/simple.py
70afd7620637728f5862bc89907422baa29ad443
[ "BSD-3-Clause" ]
permissive
pyecore/pyecore
b9f5f9101bce90d4f409fbb93d9f6d611096a70c
889fdbbf504b70aee87aef7b18b0f7e7398987c1
refs/heads/master
2023-08-23T18:28:08.663783
2023-08-14T20:00:40
2023-08-14T20:00:40
76,406,837
133
45
BSD-3-Clause
2023-08-14T19:57:14
2016-12-13T23:24:58
Python
UTF-8
Python
false
false
677
py
simple.py
from functools import partial import pyecore.ecore as Ecore from pyecore.ecore import EObject, EAttribute, EString, EEnum, EReference, \ MetaEClass, EInteger, abstract name = 'simple' nsPrefix = 'simple' nsURI = 'http://simple/1.0' eClass = Ecore.EPackage(name=name, nsPrefix=nsPrefix, nsURI...
a4f79cd58fc248cdb1905d4d1ccd12712c310014
35b6013c1943f37d1428afd2663c8aba0a02628d
/healthcare/api-client/v1/fhir/fhir_resources.py
8b5c27d74a9853e7fb5e91210dd70d41b64dc468
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/python-docs-samples
d2a251805fbeab15d76ed995cf200727f63f887d
44e819e713c3885e38c99c16dc73b7d7478acfe8
refs/heads/main
2023-08-28T12:52:01.712293
2023-08-28T11:18:28
2023-08-28T11:18:28
35,065,876
7,035
7,593
Apache-2.0
2023-09-14T20:20:56
2015-05-04T23:26:13
Jupyter Notebook
UTF-8
Python
false
false
63,293
py
fhir_resources.py
# Copyright 2018 Google LLC All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
dd7852e595c8738370e3891065552ab47d601717
922915616fb6e6398218a049683537bea0e79cd3
/hc/api/migrations/0007_ping.py
c543b44c88f6f70d62c4f0c1c751996bdbe6b2fb
[ "BSD-3-Clause" ]
permissive
healthchecks/healthchecks
ec9082f17c383877bf40a01c0ada7b90769f2e8a
8472bd5d1e993838f43023f1b8c8f52f4b0c9cb6
refs/heads/master
2023-09-03T15:47:47.234251
2023-09-03T13:16:50
2023-09-03T13:20:22
38,067,078
6,731
866
BSD-3-Clause
2023-08-04T06:56:56
2015-06-25T18:38:33
Python
UTF-8
Python
false
false
1,029
py
0007_ping.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [("api", "0006_check_grace")] operations = [ migrations.CreateModel( name="Ping", fields=[ ( ...
11212bcdea7ad1a8474e44738249fa6f4f509b6b
a00d1c778ac0682a338ddb9fb296065662b6930d
/setup.py
3aadf7745621cfbfcaad5adaa9f8f5217fba33c2
[ "Apache-2.0" ]
permissive
dtmilano/AndroidViewClient
1dfcd24d48e788bc5abcf262978bd82693d9ac26
0fd25a52aad2e3297100ddc70b2329e32951ad58
refs/heads/master
2023-08-31T15:15:26.430712
2023-08-20T03:11:41
2023-08-20T03:11:41
3,332,415
1,369
331
Apache-2.0
2020-12-15T05:07:06
2012-02-02T06:04:40
Python
UTF-8
Python
false
false
1,153
py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='androidviewclient', version='22.5.1', description='''AndroidViewClient is a 100% pure python library and tools that simplifies test script creation providing higher level operations and the ability of obtaining t...
701a1890a8419a7fea032afa7459aee55f63cdc2
05fe579c12f0013ce83a106083ddb66ace5e8f47
/mindinsight/lineagemgr/common/utils.py
526248647077f924ad3b91b4ab8133b741ae082d
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT", "BSD-3-Clause" ]
permissive
mindspore-ai/mindinsight
59d3f47144ada9a12d2c82d9826ad5f5288aed78
a774d893fb2f21dbc3edb5cd89f9e6eec274ebf1
refs/heads/master
2023-07-22T22:46:43.075617
2023-07-17T11:26:58
2023-07-17T11:26:58
250,692,948
224
24
Apache-2.0
2020-12-29T12:22:51
2020-03-28T01:58:56
Python
UTF-8
Python
false
false
1,055
py
utils.py
# Copyright 2019 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...
75387555ec21a7eefb7e717c8221e53faa2583c9
4692f28f86ee84a76abfac8cc8a0dd41fcd402e4
/test/e2e/cws-tests/tests/lib/cws/app.py
534e749d295aefad0532b74093dfaa44dfb057a0
[ "CC0-1.0", "BSD-3-Clause", "Apache-2.0", "GPL-1.0-or-later", "MIT", "0BSD", "Unlicense", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "BSD-2-Clause-Views", "MPL-2.0" ]
permissive
DataDog/datadog-agent
cc4b89839d6031903bf23aa12eccc2a3f3c7f213
d960cdb7de8fa5d1c7138cfe58e754af80cb796a
refs/heads/main
2023-09-04T10:45:08.138748
2023-09-04T09:13:43
2023-09-04T09:13:43
49,970,739
2,388
1,288
Apache-2.0
2023-09-14T20:06:34
2016-01-19T17:40:41
Go
UTF-8
Python
false
false
8,413
py
app.py
import datetime import os import tempfile import lib.common.app as common import requests from datadog_api_client.v2 import ApiClient, ApiException, Configuration from datadog_api_client.v2.api import cloud_workload_security_api, logs_api, security_monitoring_api from datadog_api_client.v2.models import ( CloudWor...
50551a4e87713baa538224b0f16f7e5340b50dec
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/generated_samples/firewalls_create_or_update_maximum_set_gen.py
4300234d1fb2afb8f1362dfad6dc9204593b01bc
[ "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
8,452
py
firewalls_create_or_update_maximum_set_gen.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 ...
a030caf8708c847f231feb466176a7c05aad801c
374b3f27fe3cf032e88eccac5992c83eba0ad1b2
/tutorials/W2D3_BiologicalNeuronModels/solutions/W2D3_Tutorial4_Solution_4e3afedb.py
79fd4c0aa5a9f80a5a4f16f74aa1b8a45fc64bab
[ "CC-BY-4.0", "BSD-3-Clause" ]
permissive
NeuromatchAcademy/course-content
e2fdca96bcbdc78afaa209e4e77438f44a56c82d
3d638d00f02d9fd269fa2aff7d062558afdcb126
refs/heads/main
2023-08-16T16:09:09.314153
2023-08-02T06:21:49
2023-08-02T06:21:49
262,856,980
2,678
1,079
CC-BY-4.0
2023-08-17T00:32:24
2020-05-10T19:09:05
Jupyter Notebook
UTF-8
Python
false
false
911
py
W2D3_Tutorial4_Solution_4e3afedb.py
def generate_P(pars, pre_spike_train_ex): """ track of pre-synaptic spikes Args: pars : parameter dictionary pre_spike_train_ex : binary spike train input from presynaptic excitatory neuron Returns: P : LTP ratio """ # Get parameters A...
ddf2ff21d5bddd575b898631ae0a773657894da5
24db6985a016c3e4767c95ca51190e659d0847cd
/downunderctf2021/deadcode/exploit.py
972841fd0f5ae07905511a852239d13ae6f23c05
[ "MIT" ]
permissive
datajerk/ctf-write-ups
463f53db224410a51df481b9e41b7777a09f3e2c
c33815911de3f4a66cbafbf5f12d7b57239250d9
refs/heads/master
2022-09-30T02:29:44.097435
2022-09-05T02:16:19
2022-09-05T02:16:19
204,361,251
136
36
null
null
null
null
UTF-8
Python
false
false
298
py
exploit.py
#!/usr/bin/env python3 from pwn import * binary = context.binary = ELF('./deadcode') if args.REMOTE: p = remote('pwn-2021.duc.tf', 31916) else: p = process(binary.path) payload = b'' payload += (0x28 - 0x10) * b'A' payload += p64(0xdeadc0de) p.sendlineafter(b'?\n',payload) p.interactive()
04e1241ed209b20ee0c3485e9c5668f0f9e59486
55f6a9b8f90ae308a90739fd8f77f4e7cd10ff19
/spacy/ml/tb_framework.py
e351ad4e570f3d97d07d881d04e1050d585ccc7f
[ "MIT" ]
permissive
explosion/spaCy
cce07ee403aa398de7ba8941a2c11d22aea68021
3e4264899c3b12f8eabc5cd700146177a34824d0
refs/heads/master
2023-08-31T07:18:13.598768
2023-08-30T09:58:14
2023-08-30T09:58:14
21,467,110
26,348
4,983
MIT
2023-09-13T17:56:22
2014-07-03T15:15:40
Python
UTF-8
Python
false
false
1,465
py
tb_framework.py
from thinc.api import Model, noop from ..util import registry from .parser_model import ParserStepModel @registry.layers("spacy.TransitionModel.v1") def TransitionModel( tok2vec, lower, upper, resize_output, dropout=0.2, unseen_classes=set() ): """Set up a stepwise transition-based model""" if upper is N...
8788bf6fd2310f8a3cca5b6e393b0503a2060a91
0c5b9ebee22450c214576f18929436527b26a1b0
/workflows/wdl/iss_published/recipe.py
7f921da2592cdd60b93eb027db347e9ab85c59ec
[ "MIT" ]
permissive
spacetx/starfish
962b4e4a8c0c193acaa84c016a6edaef76c14769
853f56c7c02b15397adb921db5e3bde02fdadb63
refs/heads/master
2023-03-09T13:51:30.772904
2022-09-06T22:16:25
2022-09-06T22:16:25
92,539,237
211
75
MIT
2023-02-11T01:52:25
2017-05-26T18:45:11
Python
UTF-8
Python
false
false
2,264
py
recipe.py
import starfish from starfish import FieldOfView from starfish.image import Filter from starfish.image import ApplyTransform, LearnTransform from starfish.spots import FindSpots, DecodeSpots from starfish.types import Axes, FunctionSource def process_fov(field_num: int, experiment_str: str): """Process a single f...
f6d7cf7d2e4ff4106fc07c81c83506ffd014e148
61673ab9a42f7151de7337608c442fa6247f13bb
/csv/incorrectly-save-csv/main.py
04267ed75335027ac1c51391adc5e2e171dae839
[ "MIT" ]
permissive
furas/python-examples
22d101670ecd667a29376d7c7d7d86f8ec71f6cf
95cb53b664f312e0830f010c0c96be94d4a4db90
refs/heads/master
2022-08-23T23:55:08.313936
2022-08-01T14:48:33
2022-08-01T14:48:33
45,575,296
176
91
MIT
2021-02-17T23:33:37
2015-11-04T23:54:32
Python
UTF-8
Python
false
false
242
py
main.py
import csv import pandas as pd f1 = open('sample.csv') f2 = open('temp.csv', 'w') reader = csv.reader(f1) for row in reader: f2.write(row[0] + '\n') f2.close() f1.close() df = pd.read_csv('temp.csv') print(len(df.columns)) print(df)