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
cf1917ad655de97a826c848306c432e4383e852d
5111b0c881c8d86705f2b237e14024396e34091a
/accounting_pdf_reports/report/report_tax.py
3544579037ada4fc41efa5474cba86ab67c320ed
[]
no_license
odoomates/odooapps
a22fa15346694563733008c42549ebc0da7fc9f6
68061b6fa79818d17727ef620e28fff44b48df72
refs/heads/16.0
2023-08-11T15:25:28.508718
2023-08-10T17:58:45
2023-08-10T17:58:45
173,598,986
182
306
null
2023-08-10T17:58:46
2019-03-03T16:20:23
Python
UTF-8
Python
false
false
3,016
py
report_tax.py
# -*- coding: utf-8 -*- from odoo import api, models, _ from odoo.exceptions import UserError class ReportTax(models.AbstractModel): _name = 'report.accounting_pdf_reports.report_tax' _description = 'Tax Report' @api.model def _get_report_values(self, docids, data=None): if not data.get('for...
8b0ce37ba78d76f9f303f4e7c45fcb7e951ad5d6
1742b6719b988e5519373002305e31d28b8bd691
/sdk/python/pulumi_aws/scheduler/schedule_group.py
e04892b011959d5bc00ab190038d2a7a34ce874b
[ "MPL-2.0", "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-aws
4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a
42b0a0abdf6c14da248da22f8c4530af06e67b98
refs/heads/master
2023-08-03T23:08:34.520280
2023-08-01T18:09:58
2023-08-01T18:09:58
97,484,940
384
171
Apache-2.0
2023-09-14T14:48:40
2017-07-17T14:20:33
Java
UTF-8
Python
false
false
18,493
py
schedule_group.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload fr...
6273a304a0604cfb09558fcc418460ea858c5722
d7b9b490c954c7a9160b69f8ce2c907ef4681ecb
/users/migrations/0012_usergroup.py
b9d7dbbff01814ccdf7e65e173a840d94a4fefdb
[ "Apache-2.0" ]
permissive
python/pythondotorg
00db93a4b1789a4d438806d106d9cee3349ad78c
c4ee749942227ca75c8e670546afe67232d647b2
refs/heads/main
2023-08-28T20:04:24.735314
2023-08-03T19:12:29
2023-08-03T19:12:29
6,127,047
1,131
646
Apache-2.0
2023-08-24T15:57:04
2012-10-08T16:00:15
Python
UTF-8
Python
false
false
993
py
0012_usergroup.py
# Generated by Django 1.11.5 on 2017-11-05 15:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0011_auto_20170902_0930'), ] operations = [ migrations.CreateModel( name='UserGroup', fields=[ ...
397a5acb014bcd1ff72c19ce95f70fe6d5d64b04
c882c16e1c42974f2744a79738bde155acc985b6
/spirit/urls.py
3d7f418b8cc523e110c54f7f4d924f4ae3b7f7d9
[ "MIT" ]
permissive
nitely/Spirit
4e4f1615a990ec8174f71ab66c64de5c4e599107
9a304a57de021108d9225b87f35ad6395d5d56d3
refs/heads/master
2023-06-09T02:09:47.275554
2023-05-24T09:19:48
2023-05-24T09:19:48
19,626,318
1,049
391
MIT
2023-08-20T05:34:25
2014-05-09T21:31:33
Python
UTF-8
Python
false
false
686
py
urls.py
# -*- coding: utf-8 -*- from django.urls import include, re_path import spirit.topic.views import spirit.admin.urls import spirit.user.urls import spirit.search.urls import spirit.category.urls import spirit.topic.urls import spirit.comment.urls app_name = 'spirit' urlpatterns = [ re_path(r'^$', spirit.topic.vi...
d0bd12b263041ac30fedf98b2fe4765a00ea0319
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/ZmAuthParams.py
acc83e9ee7521879974a2f3e0d7e906dce28ad11
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,545
py
ZmAuthParams.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class ZmAuthParams(object): def __init__(self): self._buckle_app_id = None self._buckle_merchant_id = None @property def buckle_app_id(self): return self._buckle_app_id...
2e2b45fcac3a0e888007d7dc9b1038b61ab18813
965e163df916b01d647953f2b1431d265683f6ca
/desktop_local_tests/macos/test_macos_public_ip_disrupt_enable_new_service.py
3333541d8080836c80e8886e85907fbdd6af2b18
[ "MIT" ]
permissive
expressvpn/expressvpn_leak_testing
6505c39228d396caff0c2df3777009c6fbdf3127
9e4cee899ac04f7820ac351fa55efdc0c01370ba
refs/heads/master
2023-08-18T06:33:33.931040
2021-10-11T03:02:50
2021-10-11T03:02:50
112,572,905
244
48
MIT
2021-01-19T16:02:18
2017-11-30T06:18:40
Python
UTF-8
Python
false
false
1,693
py
test_macos_public_ip_disrupt_enable_new_service.py
from desktop_local_tests.public_ip_during_disruption import PublicIPDuringDisruptionTestCase from desktop_local_tests.macos.macos_enable_new_service_disrupter import MacOSEnableNewServiceDisrupter class TestMacOSPublicIPDisruptEnableNewService(PublicIPDuringDisruptionTestCase): '''Summary: Tests whether traf...
82957c445dcf1a0d96164f107b70d8255f469670
5db0fab37c2b8a618d85d3b60fab9f806c416474
/src/python/pants/backend/rust/util_rules/toolchains.py
63bda496260be26e0b4cf49b24d752916791d89f
[ "Apache-2.0" ]
permissive
pantsbuild/pants
4988d1ac5474ec95f94ce2218aeb759401e4b011
98cbda8545f0d58c586ed2daa76fefd729d5e0d5
refs/heads/main
2023-09-05T03:44:17.646899
2023-09-01T19:52:09
2023-09-01T19:52:09
7,209,075
2,708
593
Apache-2.0
2023-09-14T19:33:33
2012-12-17T17:39:04
Python
UTF-8
Python
false
false
4,283
py
toolchains.py
# Copyright 2023 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import dataclasses import os from dataclasses import dataclass from typing import Iterable from pants.backend.rust.subsystems.rust import RustSubsystem ...
15aba30390543aff9d1747c2a7ac110af135d328
fb369693686cbd93799f68bcd0b4fdcf4c65d49a
/zavod/zavod/helpers/identification.py
d487e62fc4a24be1738f813b17fe9f8209720621
[ "MIT", "CC-BY-NC-4.0" ]
permissive
opensanctions/opensanctions
8a43c173bd9c1422b5ca3e2ec35bcac70f8f1573
229b59247e67ad0661abb0a6f7155a61042a32ea
refs/heads/main
2023-09-03T23:59:34.785846
2023-09-03T08:46:14
2023-09-03T08:46:14
47,451,451
155
32
MIT
2023-09-14T05:46:11
2015-12-05T10:19:57
Python
UTF-8
Python
false
false
2,097
py
identification.py
from typing import Optional from zavod.entity import Entity from zavod.context import Context def make_identification( context: Context, entity: Entity, number: Optional[str], doc_type: Optional[str] = None, country: Optional[str] = None, summary: Optional[str] = None, start_date: Optiona...
6d958a230a7ce1cfe7073dd6cf2f15c2dedacfe9
6a017c87a1c3e016de5e1704d23d1d2034fab41c
/src/coffea/lookup_tools/json_converters.py
938818a7b9dad25667841894dfdcb8e7a1fa9b93
[ "BSD-3-Clause" ]
permissive
CoffeaTeam/coffea
53997aefbccf583cc901718b5c639a4b4535dbcd
a33fc173f3bf2be307bac6517e624fc6ce0c4c3e
refs/heads/master
2023-08-10T12:36:49.238010
2023-08-02T02:57:18
2023-08-02T02:57:18
159,673,139
116
100
BSD-3-Clause
2023-09-12T20:32:08
2018-11-29T13:47:57
Jupyter Notebook
UTF-8
Python
false
false
4,170
py
json_converters.py
import json import correctionlib from ..util import numpy def is_gz_file(filename): with open(filename, "rb") as f: return f.read(2) == b"\x1f\x8b" def extract_json_histo_structure(parselevel, axis_names, axes): if "value" in parselevel.keys(): return name = list(parselevel)[0].split("...
3a38f1b113d4f263ddb27230182e1a98e1aff280
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/thermobeacon/__init__.py
1ff1ad20df123f6d19d4a89503438c328325b087
[ "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
713
py
__init__.py
"""Tests for the ThermoBeacon integration.""" from homeassistant.helpers.service_info.bluetooth import BluetoothServiceInfo NOT_THERMOBEACON_SERVICE_INFO = BluetoothServiceInfo( name="Not it", address="61DE521B-F0BF-9F44-64D4-75BBE1738105", rssi=-63, manufacturer_data={3234: b"\x00\x01"}, service...
0281aa4b35334ae8aa1714d962f0c112512f7e97
bf5acb19d44d031e2d8a9e37266acd55c5697863
/tests/unit/test_parameters/test_parameter_sets/test_Ai2020.py
43eee82175f87efbe9aa4c3c092a56d3bd9d3e2e
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
pybamm-team/PyBaMM
82ecf9bebb580aab1a4e67aa7d0297d2698a0b51
b4432b6da7331f992b1831912a9cf89be1f7578f
refs/heads/develop
2023-08-19T04:29:21.151964
2023-08-18T22:43:38
2023-08-18T22:43:38
155,538,761
713
362
BSD-3-Clause
2023-09-14T18:20:04
2018-10-31T10:26:29
Python
UTF-8
Python
false
false
1,921
py
test_Ai2020.py
# # Tests for Ai (2020) Enertech parameter set loads # from tests import TestCase import pybamm import unittest class TestAi2020(TestCase): def test_functions(self): param = pybamm.ParameterValues("Ai2020") sto = pybamm.Scalar(0.5) T = pybamm.Scalar(298.15) c_p_max = param["Maximu...
a206ec660fde649076bf32ea12671e7c99ae7b30
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/python/paddle/distributed/auto_parallel/static/operators/dist_embedding.py
d08cde23ac9ca2f392517e242b0b0e2982efb2c7
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle
b3d2583119082c8e4b74331dacc4d39ed4d7cff0
22a11a60e0e3d10a3cf610077a3d9942a6f964cb
refs/heads/develop
2023-08-17T21:27:30.568889
2023-08-17T12:38:22
2023-08-17T12:38:22
65,711,522
20,414
5,891
Apache-2.0
2023-09-14T19:20:51
2016-08-15T06:59:08
C++
UTF-8
Python
false
false
27,463
py
dist_embedding.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...
b96680b11a149398d5574632b1175eff98812ba4
0d6e9c15edafe14b5d373f2180809b94786cdb88
/torch_mimicry/__init__.py
4c3c2d5a373fb2719225ee155db2276861ac6ebf
[ "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
93
py
__init__.py
from torch_mimicry import nets, training, metrics, datasets, modules __version__ = "0.1.16"
5988c7f420bbdb249eecd78c01a6a1a0e1890e6b
ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb
/python_modules/libraries/dagster-docker/dagster_docker_tests/conftest.py
66d5aa6e2c76089fb9c1d1cfe8e5eac65b720060
[ "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
302
py
conftest.py
import pytest from dagster_aws_tests.aws_credential_test_utils import get_aws_creds @pytest.fixture def aws_env(): aws_creds = get_aws_creds() return [ f"AWS_ACCESS_KEY_ID={aws_creds['aws_access_key_id']}", f"AWS_SECRET_ACCESS_KEY={aws_creds['aws_secret_access_key']}", ]
b419df99065abf7ad603183ead62f1d0c2eb3f05
d46844ac1c4230579d6c87d800e07fb41bc99592
/pwncat/facts/implant.py
709c0905d15dc93675d089c49724fcbe06694726
[ "MIT" ]
permissive
calebstewart/pwncat
14ade3e424fb70ce3e62b8b5c5053959515799e7
37f04d4e16ff47c7fd70e95162f9fccd327cca7e
refs/heads/master
2023-08-14T04:27:04.773361
2022-03-21T20:35:00
2022-03-21T20:35:00
261,925,766
2,177
267
MIT
2023-05-19T04:33:17
2020-05-07T02:02:40
Python
UTF-8
Python
false
false
3,477
py
implant.py
""" Implant modules generate :class:`Implant` facts which provide the ability to interact with the installed implant. Implants can be one or more of spawn, replace or remote types. A spawn implant is used to locally escalate privileges and spawns a new session. A replace implant is also used to local escalation but ins...
66c1e08b1b3239389dcf46e0c2ea546e127ad272
8a049b6dcf9c497a4753488d75e265aed585afd0
/tests/ping.py
92296a9ab5c75272c8ac0751e0a11c2938bf71ea
[ "MIT" ]
permissive
ayeowch/bitnodes
d05901098eec6157f9fbd4a1aa2bcbdb1ce4d168
c73c3e4a07bfce37267708964de37891cab4850c
refs/heads/master
2023-07-05T22:24:15.769017
2023-05-07T06:41:29
2023-05-07T06:41:29
9,957,678
562
295
MIT
2023-06-22T00:41:26
2013-05-09T11:08:52
Python
UTF-8
Python
false
false
10
py
ping.py
../ping.py
e1c90469904d7824f3d37b66f447221602b608ba
9472c7d1608e318e46214f231773fbb3f33de0f1
/kats/detectors/meta_learning/hpt_tuning.py
916abe36c644fc692865c288064ad16df5948371
[ "MIT" ]
permissive
facebookresearch/Kats
16eee984bc1c482bd709cb5d62c226d4ad85f216
00ab9a3db27218b4817eae2e05dc602e437f634f
refs/heads/main
2023-08-30T23:33:12.654847
2023-08-25T16:02:04
2023-08-25T16:02:04
342,388,745
4,514
517
MIT
2023-09-14T15:28:43
2021-02-25T21:51:06
Python
UTF-8
Python
false
false
12,285
py
hpt_tuning.py
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ MetaDetectHptSelect is a meta learner that predict best hyper parameters of chosen detection algorithm given a time series features befo...
5ab4c6c08fe5dc88ba6726e6e4ea186c7a3c5de9
2ac03b8c24df220ea32ea525e1d65aeb294cd1a4
/custom_components/waste_collection_schedule/waste_collection_schedule/__init__.py
e84d688bb8104577207b4f4c70e7ba76226ec236
[ "MIT" ]
permissive
mampfes/hacs_waste_collection_schedule
a7b98319a7483dedc8cf78b724f93932934c1702
1dc9476efef9963a141b9ac987e2708224b9eaaf
refs/heads/master
2023-08-16T21:14:46.088962
2023-08-16T10:05:24
2023-08-16T10:05:24
254,347,436
495
428
MIT
2023-09-12T18:59:07
2020-04-09T11:02:16
Python
UTF-8
Python
false
false
243
py
__init__.py
from .collection import Collection, CollectionBase, CollectionGroup # type: ignore # isort:skip # noqa: F401 from .collection_aggregator import CollectionAggregator # noqa: F401 from .source_shell import Customize, SourceShell # noqa: F401
be0781114deca87c8324c463e734cdd464df9c65
345db7e20f67e0866497e600d061b32455baaf38
/tests/web_sevices/spyne_client.py
9551cd398902dd4a57947301c08df9854881e53d
[]
no_license
defnngj/guest
bc3ddd1216d5811a6ab8355fc335af8d9abf2456
8a9ab9052db716cb9935a87277e3df9784f01544
refs/heads/master
2022-02-17T00:48:38.981152
2022-02-07T03:05:18
2022-02-07T03:05:18
64,735,114
218
197
null
2022-02-07T03:00:45
2016-08-02T07:34:40
JavaScript
UTF-8
Python
false
false
148
py
spyne_client.py
from suds.client import Client url = "http://127.0.0.1:8000/?wsdl" client = Client(url) result = client.service.say_hello("tom", 5) print(result)
4841c7615cbed41199a8f2e05f224105cd72b578
73f69adf4e744751933725075c447e7d2d8df813
/book/src/ch05/src/decorator_function_1.py
f4224407536d9eb69223ce2d8e19a85fe5160bab
[ "MIT" ]
permissive
rmariano/Clean-code-in-Python
5b6c89816e75ac18dfbbeb5210edb57cda9a910b
0cc2e3d79f996dfdda3dfbdf575cb3b9c492cefa
refs/heads/main
2023-08-17T09:23:45.471046
2023-08-15T18:18:01
2023-08-15T18:18:01
63,787,233
156
31
MIT
2023-09-11T11:32:05
2016-07-20T14:17:05
Python
UTF-8
Python
false
false
1,900
py
decorator_function_1.py
"""Clean Code in Python - Chapter 5: Decorators Creating a decorator to be applied over a function. Example for the first section: the decorator doesn't allow parameters. """ from functools import wraps from typing import Type from log import logger class ControlledException(Exception): """A generic exception ...
19d18c32dec4ab19d9212b549c752b83bacb7624
a4ea525e226d6c401fdb87a6e9adfdc5d07e6020
/src/azure-cli/azure/cli/command_modules/cloud/_help.py
c170888f5d479b4ebf9232e570e990654e9d8a03
[ "MIT", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MPL-2.0", "LGPL-2.1-only", "Apache-2.0", "LGPL-2.1-or-later", "BSD-2-Clause" ]
permissive
Azure/azure-cli
13340eeca2e288e66e84d393fa1c8a93d46c8686
a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca
refs/heads/dev
2023-08-17T06:25:37.431463
2023-08-17T06:00:10
2023-08-17T06:00:10
51,040,886
4,018
3,310
MIT
2023-09-14T11:11:05
2016-02-04T00:21:51
Python
UTF-8
Python
false
false
2,410
py
_help.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. # -----------------------------------------------------...
176a547e7a8db0eec421f52a7f65515aa6076765
b68174b4d500eefe9ce5f6684f7ea830e693c8b6
/nsot/models/__init__.py
6b6b0f891fe0603a33c4d35c1e52b409b114a10d
[ "Apache-2.0" ]
permissive
dropbox/nsot
62e7443b8d2dd18165f23df2b2228480c4effd92
941b11f84f5c0d210f638654a6ed34a5610af22a
refs/heads/develop
2023-07-31T14:24:54.328339
2019-10-25T17:50:44
2019-10-25T17:50:44
28,201,627
414
84
NOASSERTION
2022-03-06T15:20:01
2014-12-18T21:06:12
Python
UTF-8
Python
false
false
1,176
py
__init__.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from django.db import models as djmodels from .assignment import Assignment from .attribute import Attribute from .change import Change from .circuit import Circuit from .device import Device from .interface import Interface from .network import Network fr...
81298614696cf81926d8bbf2c440649fb4405aa0
fb369693686cbd93799f68bcd0b4fdcf4c65d49a
/datasets/bg/omnio/crawler.py
f7ba70711df1f9a01c8b0db0d0eb6a7a17632326
[ "MIT", "CC-BY-NC-4.0" ]
permissive
opensanctions/opensanctions
8a43c173bd9c1422b5ca3e2ec35bcac70f8f1573
229b59247e67ad0661abb0a6f7155a61042a32ea
refs/heads/main
2023-09-03T23:59:34.785846
2023-09-03T08:46:14
2023-09-03T08:46:14
47,451,451
155
32
MIT
2023-09-14T05:46:11
2015-12-05T10:19:57
Python
UTF-8
Python
false
false
3,388
py
crawler.py
import csv from typing import Dict from pantomime.types import CSV from zavod import Context from zavod import helpers as h TYPES = { "Person": "Person", "Organization": "Organization", "": "LegalEntity", } def parse_date(date): return h.parse_date(date, ["%d.%m.%Y"]) def crawl_row(context: Contex...
5db22a6884e9008944e3053b856d3a61c6f783d8
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-core/tests/model/service/service_client.py
d88eef65c8090c4f7f94c196bde966c0d4e3d7c8
[ "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
1,449
py
service_client.py
# coding: utf-8 """ 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");...
1016d6d3ef66baf48601660393b7be4f51a231fd
1e8f44db6e7bfcc6d6899db033d4fe35a11cb5b4
/morph_net/network_regularizers/flop_regularizer_test.py
735eb57db30f2b3c5cb88392e81cd7bbc9a3a1f9
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
google-research/morph-net
abb3ab4b655d8e5aea00df975b479181e69584d6
e575a05fb18327312cbf67e870e28af4ccd4a0e4
refs/heads/master
2023-09-01T07:37:36.349243
2023-07-27T11:42:41
2023-07-27T11:43:29
175,291,625
1,101
176
Apache-2.0
2023-07-27T11:43:36
2019-03-12T20:30:12
Python
UTF-8
Python
false
false
34,169
py
flop_regularizer_test.py
"""Tests for network_regularizers.flop_regularizer.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl.testing import parameterized from morph_net.network_regularizers import flop_regularizer from morph_net.network_regularizers import resource_fun...
ccdd5241ded57dbe20f64e2dbcc998dc2589dc58
2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5
/tests/layer_tests/tensorflow_tests/test_tf_While.py
6ca7fc5c195fcfab7510d80e3f1ef4f584f9e39d
[ "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
5,520
py
test_tf_While.py
# Copyright (C) 2018-2023 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestWhile(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'x' in inputs_info, "Test e...
ae993e967be3669f3f6b085f274ea8fd777d7572
9b0f359ac3d9d7deae6e26bf5158399b219a752d
/PyEngine3D/Common/Command.py
0e5ae8d8d973917eb392aaed01b6886ba8a8a69f
[ "BSD-2-Clause" ]
permissive
ubuntunux/PyEngine3D
fe4d0c06b9253b5d0e1b0842e84339bd5204e424
fa8d022726955beff98a7c9f87bd852561f2c3f6
refs/heads/master
2022-12-13T16:08:36.055032
2022-11-11T11:47:52
2022-11-11T11:47:52
47,565,841
164
20
BSD-2-Clause
2022-11-22T10:55:37
2015-12-07T16:52:25
Python
UTF-8
Python
false
false
7,982
py
Command.py
import os import re import traceback from multiprocessing import Queue, Pipe # logger from PyEngine3D.Utilities import AutoEnum, MINOR_INFO from PyEngine3D.Common import logger # UTIL : call stack function for log reTraceStack = re.compile("File \"(.+?)\", line (\d+?), .+") # [0] filename, [1] line number def getT...
abed43a3140d7744bb9782b33453a7bcab4d5be7
e910318d01528d82040507a49eeeb8dade45b31f
/tests/pyb/uart.py
53b0ea6ade4598f29a8b2c4f32174fae3ab60027
[ "MIT" ]
permissive
pfalcon/pycopy
e844480a5e5cd463530328889daed2ba87552b8a
3ac90ae9c3c6bbebfba9cada2d37025e35c62796
refs/heads/pfalcon
2023-08-30T09:39:52.290147
2022-09-08T16:42:38
2022-09-08T16:42:38
15,507,576
753
71
MIT
2021-05-08T04:59:21
2013-12-29T11:38:47
C
UTF-8
Python
false
false
854
py
uart.py
from pyb import UART # test we can correctly create by id for bus in (-1, 0, 1, 2, 5, 6): try: UART(bus, 9600) print("UART", bus) except ValueError: print("ValueError", bus) uart = UART(1) uart = UART(1, 9600) uart = UART(1, 9600, bits=8, parity=None, stop=1) print(uart) uart.init(240...
7e1bc789077975767aeb9c006b0e65dc5e454d68
e8d811c1e44855160f9ce1155a87cc5087e7d09e
/examples/40_advanced/example_multi_objective.py
d61ce8b17a6a97e900373665823f48f7ddcca019
[ "BSD-3-Clause" ]
permissive
automl/auto-sklearn
15bd67c383ab3eb57b2cc5fbdef9585292a0ebd1
673211252ca508b6f5bb92cf5fa87c6455bbad99
refs/heads/development
2023-08-31T23:41:25.046540
2023-04-18T11:08:13
2023-04-18T11:08:13
38,441,254
7,469
1,473
BSD-3-Clause
2023-09-12T14:44:31
2015-07-02T15:38:10
Python
UTF-8
Python
false
false
3,248
py
example_multi_objective.py
# -*- encoding: utf-8 -*- """ ============== Classification ============== The following example shows how to fit *auto-sklearn* to optimize for two competing metrics: `precision` and `recall` (read more on this tradeoff in the `scikit-learn docs <https://scikit-learn.org/stable/auto_examples/model_selection/plot_prec...
778355461a8226ed8aae3b15de925aa0afd706ad
da1721d2783ea4d67ff4e73cee6eee71292f2ef7
/toontown/estate/DistributedGardenPlotAI.py
d29cf2f8335f9f98296972e767763a003e28a942
[ "BSD-3-Clause" ]
permissive
open-toontown/open-toontown
bbdeb1b7bf0fb2861eba2df5483738c0112090ca
464c2d45f60551c31397bd03561582804e760b4a
refs/heads/develop
2023-07-07T01:34:31.959657
2023-05-30T23:49:10
2023-05-30T23:49:10
219,221,570
143
104
BSD-3-Clause
2023-09-11T09:52:34
2019-11-02T22:24:38
Python
UTF-8
Python
false
false
259
py
DistributedGardenPlotAI.py
from direct.directnotify import DirectNotifyGlobal from direct.distributed.DistributedObjectAI import DistributedObjectAI class DistributedGardenPlotAI(DistributedObjectAI): notify = DirectNotifyGlobal.directNotify.newCategory('DistributedGardenPlotAI')
65676eb5d4b4e40b09815bc41c229ba854e24950
e04a5b20f946c5033f24d4dd8acda395a98747c5
/wikipedia-pageviews/python-connectors/wikipedia-pageviews-pagesperday/connector.py
63bb0f8c4a6263f895211f3f7c207e09f45a73dd
[ "LicenseRef-scancode-free-unknown", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-other-permissive" ]
permissive
dataiku/dataiku-contrib
2a2f2fb420d7f2ab49b82d80659cc6f6ec1d8f61
9a9f189e8a544a81c205d8a8b3779d4517b88653
refs/heads/master
2023-09-04T03:33:58.625093
2023-04-26T08:17:34
2023-04-26T08:17:34
45,074,604
103
94
Apache-2.0
2023-06-08T21:29:07
2015-10-27T22:41:00
Python
UTF-8
Python
false
false
1,521
py
connector.py
from dataiku.connector import Connector import datetime import dkuwikipedia import logging logger = logging.getLogger(__name__) class PagePerDayConnector(Connector): def __init__(self, config, plugin_config): Connector.__init__(self, config, plugin_config) def get_read_schema(self): return {...
91d53292b8defa89efedc23c60b3b84185c9f093
15f0514701a78e12750f68ba09d68095172493ee
/Python3/92.py
21aa2ba34caaf1a9981a3ae21b1781c96d54e0b3
[ "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
2,078
py
92.py
__________________________________________________________________________________________________ sample 20 ms submission # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def reverseBetween(self, head: ListNode, m...
0de0ae83e47e4111efc0ad5104500160eb939c42
2ed0210bc41f848a0e67fce3ad6b7a3e85228261
/src/pykeen/metrics/__init__.py
4fb3998355960633138601a36c18d581ddba51e3
[ "MIT" ]
permissive
pykeen/pykeen
f7483445bd99d3a404bc4ff42538550d56702b66
5ff3597b18ab9a220e34361d3c3f262060811df1
refs/heads/master
2023-08-25T20:29:55.021639
2023-08-24T20:05:20
2023-08-24T20:05:20
242,672,435
1,308
199
MIT
2023-09-13T18:18:36
2020-02-24T07:26:03
Python
UTF-8
Python
false
false
442
py
__init__.py
# -*- coding: utf-8 -*- """A module for PyKEEN ranking and classification metrics.""" from .classification import ClassificationMetric, classification_metric_resolver from .ranking import RankBasedMetric, rank_based_metric_resolver from .utils import Metric, ValueRange __all__ = [ "Metric", "ValueRange", ...
7fa5e87b88a17d7230dc19d3857ad2594edcfc56
f20112f340ac7a867a1534776b2635643f1538cc
/auth0/test/management/test_prompts.py
a93f2faa3ca46487089e7b7e87f4965aa7fcbd51
[ "MIT" ]
permissive
auth0/auth0-python
213fe75f8a064ee505066e1343ad997bbcb229ff
8e3e51bc9ff0cb2f5f68eededf5c4d5b9f5ebb00
refs/heads/master
2023-09-04T12:40:21.796991
2023-09-04T09:58:44
2023-09-04T09:58:44
22,433,990
451
180
MIT
2023-09-12T15:39:20
2014-07-30T15:38:33
Python
UTF-8
Python
false
false
2,168
py
test_prompts.py
import unittest from unittest import mock from ...management.prompts import Prompts class TestPrompts(unittest.TestCase): def test_init_with_optionals(self): t = Prompts(domain="domain", token="jwttoken", telemetry=False, timeout=(10, 2)) self.assertEqual(t.client.options.timeout, (10, 2)) ...
79919df873a5cadaf1917e788c6f8f7925ffab70
3dc647cd07a7361ed401e40d2b7cce8c826c8f6c
/crawl_sourcecode.py
2daad4f682ffb461206e11e89c7ccb87f59f954a
[ "CC-BY-4.0", "MIT" ]
permissive
RustPython/RustPython
5ddce4a9848b9de8c041ffd2634f83c0105d3f39
b864e5da1f18897fc884180b7093df5aa170024f
refs/heads/main
2023-09-04T12:38:29.458699
2023-09-03T12:33:42
2023-09-03T12:33:42
135,201,145
15,815
1,302
MIT
2023-09-14T08:11:45
2018-05-28T19:27:01
Rust
UTF-8
Python
false
false
2,211
py
crawl_sourcecode.py
""" This script can be used to test the equivalence in parsing between rustpython and cpython. Usage example: $ python crawl_sourcecode.py crawl_sourcecode.py > cpython.txt $ cargo run crawl_sourcecode.py crawl_sourcecode.py > rustpython.txt $ diff cpython.txt rustpython.txt """ import ast import sys import symtabl...
01ba125fc0b25e17873096458f7c6546655d6147
e2998e424e0c6cefcbda4bfe80f3506f4bd7d172
/tools/report_df/BenchmarkData.py
8d14c9ecc99f20f2f87942b58f25a54207a3f7fc
[]
no_license
HexHive/magma
7319b3ea711b876cbe681a661f78b040dc7d0caf
75d1ae7b180443a778b8830c79176ca5f93642ac
refs/heads/v1.2
2023-08-16T04:43:58.075530
2022-12-07T22:56:11
2022-12-07T22:56:11
197,368,239
236
81
null
2023-08-12T01:10:09
2019-07-17T10:31:42
HTML
UTF-8
Python
false
false
3,101
py
BenchmarkData.py
import pandas as pd from pandas import DataFrame import numpy as np import sys import json from collections import Mapping, Iterable INDEX_NAMES = ['Fuzzer', 'Target','Program','Campaign','Metric','BugID'] #TODO add retrival of experiment infomation (Campaign duration) class BenchmarkData: def __init__(self,file...
c37aee5d1a800e0e46f55d49439ef75af23106f0
f0e43cc1e46ff085c818396b820a70243f2cbd22
/tests/test_aiometer.py
3081998d02529c353b60365e329a54c66f0cd40c
[ "MIT" ]
permissive
florimondmanca/aiometer
30405ae91f59a9ec95581492401adbd3f72b8d92
6fbc90850ee5b63acc8db25acf2f28f2a6d4b6a7
refs/heads/master
2023-01-25T02:13:06.027566
2023-01-19T11:39:51
2023-01-19T11:39:51
248,952,799
261
8
MIT
2023-01-18T21:47:21
2020-03-21T10:26:37
Python
UTF-8
Python
false
false
7,880
py
test_aiometer.py
import random from contextlib import contextmanager from typing import Any, Callable, Iterator, List import anyio import pytest import aiometer from ._utils import pairwise @pytest.mark.anyio class TestRunners: async def test_run_on_each(self) -> None: output = set() async def process(item: st...
d0d5f5ca43aba03ac055ea4d98940b70e6fc28bb
8f3304073735c0aaa98e48370c45cf4b08910a76
/crypto_tutorial/crypto_data_extraction.py
c07aa3174740b2db67b7f88c59c5218d5fd747a0
[ "Apache-2.0" ]
permissive
timescale/examples
b7836adf80e15fd5d140ce54e44f9be8401b7161
fcddc8d152918c11c47fb012a300a351e133c91e
refs/heads/master
2023-09-04T14:50:16.167746
2022-12-05T23:10:00
2022-12-05T23:10:00
192,747,880
120
54
Apache-2.0
2023-02-15T06:54:30
2019-06-19T14:24:59
JavaScript
UTF-8
Python
false
false
7,277
py
crypto_data_extraction.py
################################################################### # crypto_data_extraction.py # Script to construct a CSV data set of historical crypto prices # using data from cryptocompare.com # Author: Avthar Sewrathan # Timescale Inc # 20 August 2019 ###############################################################...
5217e147244ce61c8e48166b658cd3ee5a0a29a6
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/st/high_grad/test_highgrad_train.py
fda2c804dff8f8543097ccd707cd62d785b772f4
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-f...
permissive
mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
2023-07-26T22:31:11
2020-02-11T08:43:48
C++
UTF-8
Python
false
false
5,330
py
test_highgrad_train.py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
8a125494925f32d65eff1bf04d1de2142d773ab1
d77a01e666ff446cdecf164ff62ac7939bc20252
/pypower/t/t_scale_load.py
a5ca7d783b18e031929379bba0861957376717c4
[ "BSD-3-Clause" ]
permissive
rwl/PYPOWER
3b4db237aa6f5762f41802f18fe43cda49cee9d0
977e1a237c5dc4a6c2e8c5ad2038b0c4d5cd64e0
refs/heads/master
2023-07-23T15:59:48.109891
2023-03-29T15:07:00
2023-03-29T15:07:00
207,623
293
126
NOASSERTION
2023-07-06T21:40:30
2009-05-22T12:14:47
Python
UTF-8
Python
false
false
21,996
py
t_scale_load.py
# Copyright (c) 1996-2015 PSERC. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. """Tests for code in C{scale_load}. """ from os.path import dirname, join from numpy import array, zeros, in1d, vstack, flatnonzero as find from pypower.loadcas...
2edeb50d133872336417ed9054fc363d9f129ba1
f270c80be23de78a4320a8e9a9f3d8083784b1f5
/signalrcore/subject.py
6561cc4ded07209f7e219dcab7e7a588a9543dbd
[ "MIT" ]
permissive
mandrewcito/signalrcore
30d25f46093e179e26dc4add6176016885fd67e7
bc4ade21705469fb390581afe32ebd754a7e1173
refs/heads/main
2023-06-22T08:08:06.760520
2022-12-13T17:47:24
2022-12-13T17:47:24
172,356,279
113
53
MIT
2023-06-30T10:47:43
2019-02-24T15:44:14
Python
UTF-8
Python
false
false
2,112
py
subject.py
import uuid import threading from typing import Any from .messages.invocation_message import InvocationClientStreamMessage from .messages.stream_item_message import StreamItemMessage from .messages.completion_message import CompletionClientStreamMessage class Subject(object): """Client to server streaming htt...
3e663b6f661d19fbdb152644accde70de5ed62de
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/iosxe/tests/ShowLispRegistrationHistory/cli/equal/golden_output1_expected.py
1835cf0a465fb7bb8fbf834bc8f9e29c5bf238a7
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genieparser
169c196558f1c1a0f0d10650876096f993224917
b531eff760b2e44cd69d7a2716db6f866907c239
refs/heads/master
2023-09-03T08:56:18.831340
2023-08-29T22:32:02
2023-08-29T22:32:02
131,621,824
247
409
Apache-2.0
2023-08-29T22:32:04
2018-04-30T16:51:50
Python
UTF-8
Python
false
false
1,324
py
golden_output1_expected.py
expected_output = { 'lisp_id': { 0: { 'eid_address': { '192.168.1.71/32': [{ 'time': 'Dec 1 09:34:17.164', 'instance_id': 4100, 'protocol': 'UDP', 'roam': 'No', 'wlc': 'No', ...
c12fb19dfe0ac1a1fd64344ee60a17322c67a34f
f815f48a37a9ba18cfe3892447105a7bcd80e374
/yolo4/models/yolo4_resnet50.py
769a6a0b872a9e97a6fe486355bee3af8f7d79d3
[ "MIT" ]
permissive
david8862/keras-YOLOv3-model-set
63974f8519fdcca3e7fd9f1983ab64b2fdc2f70c
d6a135b098c3e1ee3b2a2f63b7dfeaa11f51fb30
refs/heads/master
2023-08-27T02:38:29.059461
2023-05-19T07:27:45
2023-05-19T07:27:45
202,993,277
673
244
MIT
2022-09-27T01:36:32
2019-08-18T11:14:48
Python
UTF-8
Python
false
false
3,960
py
yolo4_resnet50.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """YOLO_v4 ResNet50 Model Defined in Keras.""" from tensorflow.keras.layers import UpSampling2D, Concatenate from tensorflow.keras.models import Model from tensorflow.keras.applications.resnet import ResNet50 from yolo4.models.layers import yolo4_predictions, yol...
8625542032a481d14b4fba8bf2979020fc3c7a74
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/instance_hanging_infos.py
8ca3e98d68bee3d2784adbd023a6f9255c86e249
[ "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
9,581
py
instance_hanging_infos.py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class InstanceHangingInfos: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribu...
7d36becdff22969cb9f2ae24849a56b039b0b82e
bd9a09a3f1a8b2b5166c540ada93cc5b30591605
/scanner/plugins/cms/dswjcms/dswjcms_p2p_multi_sqli.py
47418ec926eece6eefac2fdd484ec7b991ab0c51
[ "MIT" ]
permissive
iceyhexman/onlinetools
3cb6e349fc30c515f96429abeab5fbcc430ac0cc
61f2df7ff8e6ad97ca7901728c3ab749679a2bd0
refs/heads/master
2023-08-06T19:31:51.328657
2022-10-28T04:01:38
2022-10-28T04:01:38
119,565,769
1,662
358
MIT
2023-03-31T14:34:13
2018-01-30T16:51:46
Python
UTF-8
Python
false
false
1,710
py
dswjcms_p2p_multi_sqli.py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' name: Dswjcms p2p网贷系统前台4处sql注入 referer: http://www.wooyun.org/bugs/wooyun-2015-0141364 author: Lucifer description: SQL injection。 ''' import sys import requests class dswjcms_p2p_multi_sqli_BaseVerify: def __init__(self, url): self.url = url def run...
9871979604cefb080064fbd882420b5d8f7d0901
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/govern/data-meta/OpenMetadata/ingestion/src/metadata/utils/custom_thread_pool.py
f2c92df62b665b6b5b20ef3dbcf0efcc01d2408c
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
Python
false
false
1,847
py
custom_thread_pool.py
# Copyright 2021 Collate # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software...
9ee3cf1ff99d89bb709de1c5bf785c898bd7c4de
a2b3987eb8a50bee311f869e39d1c76e738ba2b8
/authlib/jose/rfc7519/claims.py
6a9877bc18c5fcb1be5274f810cdc49529bc6009
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
lepture/authlib
abb3e14b8ccacef9ade90b28efed827ab65aadce
1846d6ac66e89bdb3268fffe15b7e49289966366
refs/heads/master
2023-09-04T04:27:56.650738
2023-09-02T07:42:47
2023-09-02T07:42:47
108,510,280
4,091
481
BSD-3-Clause
2023-09-13T13:04:38
2017-10-27T06:52:26
Python
UTF-8
Python
false
false
8,709
py
claims.py
import time from authlib.jose.errors import ( MissingClaimError, InvalidClaimError, ExpiredTokenError, InvalidTokenError, ) class BaseClaims(dict): """Payload claims for JWT, which contains a validate interface. :param payload: the payload dict of JWT :param header: the header dict of JWT...
dc0f150e6eb89696490158112cc73e1021e5fc74
0760fb4901a75766921a205b55686d6d6f049b30
/python/ray/train/tests/test_torch_transformers_train.py
b76d1a9def64868414358936c3b7d45281224c93
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
ray-project/ray
a4bb6940b08b59a61ef0b8e755a52d8563a2f867
edba68c3e7cf255d1d6479329f305adb7fa4c3ed
refs/heads/master
2023-08-31T03:36:48.164405
2023-08-31T03:20:38
2023-08-31T03:20:38
71,932,349
29,482
5,669
Apache-2.0
2023-09-14T21:48:14
2016-10-25T19:38:30
Python
UTF-8
Python
false
false
7,742
py
test_torch_transformers_train.py
import pandas as pd import pytest from datasets import Dataset from transformers import ( AutoConfig, AutoModelForCausalLM, Trainer, TrainingArguments, ) import ray.data from ray.train import ScalingConfig, Checkpoint from ray.train.torch import TorchTrainer from ray.train.huggingface.transformers impo...
fa318703f1649caa2e1f6a2a4320afc6cfffae6f
e8a562e13ca47764ba96cb47b9e0c477447a6296
/problem_test.py
8c1869082c88f7cfe455a55cfbc96cf283a222c6
[ "Apache-2.0" ]
permissive
yosupo06/library-checker-problems
0600700ee39a7b32fdec635076d75ee270c0e636
9d8930c908153adc3bd3f50999d782c89f666725
refs/heads/master
2023-08-22T19:59:02.303444
2023-08-10T07:58:08
2023-08-10T07:58:08
189,480,738
440
129
Apache-2.0
2023-09-12T08:39:13
2019-05-30T20:49:42
C++
UTF-8
Python
false
false
717
py
problem_test.py
#!/usr/bin/env python3 import unittest from logging import basicConfig, getLogger from os import getenv from problem import param_to_str logger = getLogger(__name__) class TestParam(unittest.TestCase): # select problem by problem id def test_convert_integer(self): self.assertEqual(param_to_str('A', 1...
931b003028cc680a43dff72a208835272b56833f
c80d0926964a49d9b136f4d591cd220c54a5ef6b
/folium/plugins/geocoder.py
418dcb9d01e4ad4cf1fea570686b97f2d8f2e357
[ "MIT" ]
permissive
python-visualization/folium
ac4e0c62ccc150699ccdc5946c2491a190ed23c0
b4fa788667c0d4b6ced46cbf1b74d37d7c336f6a
refs/heads/main
2023-09-01T12:53:42.809713
2023-08-15T08:38:44
2023-08-15T08:38:44
9,952,134
6,257
2,720
MIT
2023-09-08T13:17:29
2013-05-09T04:21:35
Python
UTF-8
Python
false
false
1,822
py
geocoder.py
from branca.element import MacroElement from jinja2 import Template from folium.elements import JSCSSMixin from folium.utilities import parse_options class Geocoder(JSCSSMixin, MacroElement): """A simple geocoder for Leaflet that by default uses OSM/Nominatim. Please respect the Nominatim usage policy: ...
1ea7f2bc6e8bc90c9451edda8cbca3097f0d1e10
64ab5b65afdf8d950c4b56ad2259133b95fc2fec
/zeus/models/author.py
a7a5b700e4c9507b8289878a38e21476887746bd
[ "Apache-2.0" ]
permissive
getsentry/zeus
3e88895443b23278fdb4c25121422ee214630512
6d4a490c19ebe406b551641a022ca08f26c21fcb
refs/heads/master
2023-09-01T14:20:11.396306
2021-04-30T17:08:33
2021-04-30T17:08:33
96,131,433
222
27
Apache-2.0
2022-06-01T03:17:16
2017-07-03T16:39:35
Python
UTF-8
Python
false
false
739
py
author.py
from zeus.config import db from zeus.db.mixins import RepositoryBoundMixin from zeus.db.types import GUID from zeus.db.utils import model_repr class Author(RepositoryBoundMixin, db.Model): """ The author of a source. Generally used for things like commit authors. This is different than User, which indica...
459118bfe3a778fcfc4e4a1d83222eedd14054a9
afd3f094e63f2e61450ce355a6dfa0b0b478b1fa
/multi-resolution vis-ir image fusion/change_sampling.py
93386fd12239317cfaf2179f1084eb6e87d4d0dd
[]
no_license
hanna-xu/DDcGAN
aedaf88367383a24739f90f0f18f1b3a504abdf3
85eb00e4980260a41fa7579cc3eb01e5bba1eb3b
refs/heads/master
2023-06-15T02:45:48.442941
2023-06-02T09:07:21
2023-06-02T09:07:21
220,001,539
114
33
null
null
null
null
UTF-8
Python
false
false
1,136
py
change_sampling.py
import numpy as np import matplotlib.pyplot as plt import scipy.ndimage import h5py f = h5py.File('Dataset2.h5', 'r') # for key in f.keys(): # print(f[key].name) a = f['data'][:] sources = np.transpose(a, (0, 3, 2, 1)) vis = sources[100, :, :, 0] ir = sources[100, :, :, 1] ir_ds = scipy.ndimage.zoom(...
c9f483e8bc4433fcc70cb432347e4e1ec116de50
44d1936bbc8e256534f3946f100bb0028e92fee5
/backend/src/hatchling/version/source/regex.py
5e0d28c41c0bbc9404e64a4d327d749b78f60250
[ "MIT" ]
permissive
pypa/hatch
aeb72e6a465a39073a020f63a931def16ce90ce8
7dac9856d2545393f7dd96d31fc8620dde0dc12d
refs/heads/master
2023-09-04T04:04:25.079348
2023-09-03T23:48:21
2023-09-03T23:48:21
92,997,800
1,869
125
MIT
2023-09-13T19:39:25
2017-05-31T23:37:53
Python
UTF-8
Python
false
false
1,041
py
regex.py
from hatchling.version.core import VersionFile from hatchling.version.source.plugin.interface import VersionSourceInterface class RegexSource(VersionSourceInterface): PLUGIN_NAME = 'regex' def get_version_data(self) -> dict: relative_path = self.config.get('path', '') if not relative_path: ...
9986eb42acd78860a7ea72de7a5f086032335829
7b93281e9b48ffcd06fdd72ad075398b641806ab
/docs/source/conf.py
86a509621ed55ab5dd12ad3d2ff53774b8f4ba15
[ "MIT" ]
permissive
Teichlab/celltypist
e8c651816ac6b735483588d06e4f69758fecca3e
dd7e6a5c7107a1a070389df7830cc215f89da66c
refs/heads/main
2023-08-18T23:11:56.290561
2023-08-12T07:49:27
2023-08-12T07:49:27
368,993,696
186
35
MIT
2023-08-08T10:56:46
2021-05-19T20:29:20
Python
UTF-8
Python
false
false
2,932
py
conf.py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # If extensions (or modules to document with autodoc) are in another directory, # add t...
e9e36eab3e764cb381777626143833bec4599753
e5e64d2eb4eca819e5a429bbbb9dbfbb886c0e8d
/lang/py/avro/test/test_script.py
6870c021da49435e71285555d9d4e3dc2a42fc81
[ "BSD-3-Clause", "Zlib", "GPL-1.0-or-later", "FSFAP", "MIT", "LicenseRef-scancode-other-permissive", "zlib-acknowledgement", "GPL-2.0-only", "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
apache/avro
89eb929c647959af4693b6b3844a2f317fdf8f2f
7ff2d7a075debbf7e038f0a4f0674cb312d5473a
refs/heads/master
2023-09-04T14:50:34.417161
2023-09-04T06:55:02
2023-09-04T06:55:02
206,459
2,523
1,639
Apache-2.0
2023-09-14T20:21:57
2009-05-21T02:48:37
Java
UTF-8
Python
false
false
7,442
py
test_script.py
#!/usr/bin/env python3 ## # 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 ...
b0676401ecb5b4da415931d2ebac6feba01a9292
9bbd0703aa194388d8b58893ec4021500cffe5c3
/pybaseball/standings.py
e6c1312710191a3b27df788ab3f6f17be6df9f7c
[ "MIT" ]
permissive
jldbc/pybaseball
5dfaa7612c0a3afaac1b994c15195e5ca11e9074
06fa0daa20e1231f15a187337a352377f2c1f766
refs/heads/master
2023-08-31T22:10:36.449414
2023-08-17T12:43:17
2023-08-17T12:43:17
94,890,652
1,000
324
MIT
2023-09-12T17:16:42
2017-06-20T12:50:19
Python
UTF-8
Python
false
false
4,080
py
standings.py
from typing import List, Optional import pandas as pd from bs4 import BeautifulSoup, Comment, PageElement, ResultSet from . import cache from .utils import most_recent_season from .datasources.bref import BRefSession session = BRefSession() def get_soup(year: int) -> BeautifulSoup: url = f'http://www.baseball-r...
bad0755b252bd928179d2020d42878a9fc1e5ea2
e34535efe17f794e6b723e902ed4e1919889bbdb
/tests/objects/test_list.py
cb4e429b741e7b53fdb7cf9714941c7b92e3aaa9
[ "MIT" ]
permissive
fuzeman/trakt.py
668267094b973cb06f8a589a77b3e0d8a5c950c1
751a11c6259caa33e18951fd6c651eee166eab24
refs/heads/master
2023-08-09T20:05:41.124670
2023-05-03T14:43:35
2023-05-03T14:43:35
18,819,363
162
63
MIT
2023-08-08T13:05:57
2014-04-15T23:11:32
Python
UTF-8
Python
false
false
2,206
py
test_list.py
from tests.core import mock from trakt import Trakt from httmock import HTTMock def test_delete(): with HTTMock(mock.list_get, mock.list_delete): with Trakt.configuration.auth('mock', 'mock'): shows = Trakt['users/sean/lists/star-wars-in-machete-order'].get() assert shows is not...
b44b67e3f1fee9b41ed35013f47cf4e1f65a2684
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/commonmark/commonmark/render/html.pyi
b98864128d1159b5b2f734bb87ed58d7b3192802
[ "Apache-2.0", "MIT" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
1,556
pyi
html.pyi
from typing import Any from commonmark.render.renderer import Renderer reUnsafeProtocol: Any reSafeDataProtocol: Any def potentially_unsafe(url): ... class HtmlRenderer(Renderer): disable_tags: int last_out: str options: Any def __init__(self, options=...) -> None: ... def escape(self, text): .....
8f11e66addc4d681e5698e3cb8b3262df2f6d35d
6f0ceee714bccf2a89c34a06aabd3bcb781a2fa4
/tests/python/unittest/test_contrib_optimizer.py
f0fbb7b7aaec570d520e21721ecfa53ee6e07ef7
[ "Apache-2.0", "MIT", "Unlicense", "BSL-1.0", "NCSA", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSD-2-Clause", "OFL-1.0", "BSD-2-Clause-Views", "Zlib" ]
permissive
yajiedesign/mxnet
5a495fd06dd1730c17d2d27d7e46c8a770847f17
8e5a16cf673db5aceb48d2cf7a0fc1abd0ee5e51
refs/heads/master
2021-03-30T22:37:18.603396
2020-10-23T06:40:17
2020-10-23T06:40:17
43,763,550
214
59
Apache-2.0
2020-06-01T23:31:15
2015-10-06T16:36:40
C++
UTF-8
Python
false
false
8,997
py
test_contrib_optimizer.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...
b4217ba4fb975722f6a76d7dc2e3a48bf3a95132
854b94d7be92582bd191a7cb63143a95e5b5c337
/hyfetch/distros/trisquel.py
4ba002287a3b7b871e527a8775aa3abb043f73f4
[ "MIT" ]
permissive
hykilpikonna/hyfetch
673c0c999d0f3f542349824495ad6004f450ebac
98863df16d70b030696f4b94080d114396320f35
refs/heads/master
2023-08-17T10:41:10.289997
2023-08-17T03:37:23
2023-08-17T03:37:23
479,913,941
447
78
MIT
2023-09-14T14:39:18
2022-04-10T04:38:15
Shell
UTF-8
Python
false
false
748
py
trisquel.py
# This file is automatically generated. Please do not modify. from . import AsciiArt trisquel = AsciiArt(match=r'''"Trisquel"*''', color='4 6', ascii=r""" ${c1} ,o$$$o. ,o$$Y"\""Y$$b ,o$$$$$$o. ,$$' , Y$$b ,o$$$$$$$$$$$$o. :$ b Y$$. ,$$"' "Y$...
e4d78cbd10e86fe667fbd4756fd7dfdd806b7d01
af47e1dd1405ebd5267e7f8cf22f7b4429fcef00
/demo_alt_tokenization.py
dbeb2fc125090f3e0a5f4ffc43d3fd239a99bddc
[ "MIT", "CC-BY-NC-SA-4.0", "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
JasonKessler/scattertext
72ce3b35d71af595f7797de845ba93b4bb0091b4
b41e3a875faf6dd886e49e524345202432db1b21
refs/heads/master
2023-05-11T06:42:51.108527
2023-05-06T19:23:59
2023-05-06T19:23:59
63,827,736
2,187
303
Apache-2.0
2023-05-06T19:24:00
2016-07-21T01:47:12
Python
UTF-8
Python
false
false
1,930
py
demo_alt_tokenization.py
import scattertext as st import pandas as pd import re data = [ {'text': "I don't think you'll want to.", 'category': 'a'}, {'text': "You'll have a didn't a-b #dfs .", 'category': 'a'}, {'text': "You'll shoudn't #have a, didn't a-b #dfs .", 'category': 'a'}, {'text': "Can't not get along to didn't.", 'category': ...
1de856cd4d3ac4d8903b245b45b6525ccbabdbf4
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/pytorch/source/caffe2/python/operator_test/tile_op_test.py
a9c5b02837fa29abd8b0f826cd3c46ce1973d4b6
[ "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,969
py
tile_op_test.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np from hypothesis import given import hypothesis.strategies as st import unittest from caffe2.python import core, workspace import caffe2.python.hypoth...
f0cf88e1959032db581d560bd0846e0d24788054
e1bc2fce12d9d14d72765028ee790b7db1390ed5
/cytoolz/tests/test_doctests.py
d9b7277449d22470d747df9fb24c41137b06b5ff
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
pytoolz/cytoolz
a1534b025f77144c69eeef169f97402066a565b4
f402d743934e722e0000bacddbb3fe9ee388915e
refs/heads/master
2023-08-28T21:43:36.292421
2023-07-21T02:20:15
2023-07-21T02:20:15
18,455,514
894
69
NOASSERTION
2023-07-24T18:01:56
2014-04-04T23:24:04
Python
UTF-8
Python
false
false
465
py
test_doctests.py
import doctest import cytoolz import cytoolz.dicttoolz import cytoolz.functoolz import cytoolz.itertoolz import cytoolz.recipes def module_doctest(m, *args, **kwargs): return doctest.testmod(m, *args, **kwargs).failed == 0 def test_doctest(): assert module_doctest(cytoolz) assert module_doctest(cytoolz...
81dfa628b8a2a621b71e13a9852ba4ea660a1352
29f18e8ddde0379cef7fa00b1a50058be3cafa79
/numba/tests/test_array_methods.py
a4dc2d5f707f60ee113c614461907a0854e59f06
[ "LicenseRef-scancode-secret-labs-2011", "BSD-3-Clause", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "MIT", "LicenseRef-scancode-unknown-license-reference", "Python-2.0", "BSD-2-Clause" ]
permissive
numba/numba
9a8345ff5f7d57f0ffec40e39941ebf2684df0d1
46059957ad416e68476d1e5f32ccd59f7d5df2bb
refs/heads/main
2023-08-09T22:29:38.170300
2023-08-07T15:00:27
2023-08-07T15:00:27
3,659,275
8,247
1,151
BSD-2-Clause
2023-09-13T14:43:48
2012-03-08T11:12:43
Python
UTF-8
Python
false
false
64,441
py
test_array_methods.py
from itertools import product, cycle import gc import sys import warnings import numpy as np from numba import jit, typeof from numba.core import types from numba.core.compiler import compile_isolated from numba.core.errors import TypingError, NumbaValueError from numba.np.numpy_support import as_dtype, numpy_version...
9105008c7d6192dcc724dd53b576aa5f96bd9bd6
ea57d267ab31480d8d731b2c095e9da9ad989133
/tests/test_docs/test_multiagent_manager.py
e94d2516543686b8c816de9bbb0352dd80969cb0
[ "Apache-2.0" ]
permissive
fetchai/agents-aea
6d034f1db6f3beacf31dac2f5a1baaa60c8edb7d
bec49adaeba661d8d0f03ac9935dc89f39d95a0d
refs/heads/main
2023-08-08T23:19:06.276643
2023-02-04T10:46:39
2023-02-04T10:46:39
203,558,879
192
58
Apache-2.0
2023-07-19T04:45:26
2019-08-21T10:12:47
Python
UTF-8
Python
false
false
2,208
py
test_multiagent_manager.py
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2023 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
5c7d5e3e2fc1c9d226fd25788655f1454b6b9c81
becf2cde221ca33b165d348203400e3290630f81
/winpython/_vendor/qtpy/tests/test_qtcore.py
6327ec92a97294da8a126b76fa28cb7d646afc95
[ "MIT" ]
permissive
winpython/winpython
620fe3c7aa91e593f614d5806184f28eb6c8f480
323c6fef4100220a84daf964ed0b78058862bc29
refs/heads/master
2023-09-05T00:43:32.719477
2023-08-26T14:59:41
2023-08-26T14:59:41
24,275,324
1,796
373
MIT
2023-08-26T14:59:42
2014-09-20T21:47:26
Python
UTF-8
Python
false
false
3,654
py
test_qtcore.py
"""Test QtCore.""" from datetime import date, datetime, time import sys import pytest from qtpy import ( PYQT5, PYQT6, PYSIDE2, PYSIDE6, PYQT_VERSION, PYSIDE_VERSION, QtCore, ) from qtpy.tests.utils import not_using_conda def test_qtmsghandler(): """Test qtpy.QtMsgHandler""" ass...
3d9a5a7cd26331695131c5837829e118aff274c4
5e9576c368e98927e2965bd2fb23bd35d9993d69
/featuretools/primitives/standard/transform/exponential/exponential_weighted_std.py
5d0f55ef4b480db28bd710fcf53145650de2ccc8
[ "BSD-3-Clause" ]
permissive
alteryx/featuretools
c6e319e063e8e84e7684bf232376f95dc5272160
c284c2d27a95b81e0bae913ac90df2b02c8f3b37
refs/heads/main
2023-08-25T12:21:33.945418
2023-08-23T16:30:25
2023-08-23T16:30:25
102,908,804
1,783
201
BSD-3-Clause
2023-09-07T18:53:19
2017-09-08T22:15:17
Python
UTF-8
Python
false
false
2,549
py
exponential_weighted_std.py
from woodwork.column_schema import ColumnSchema from woodwork.logical_types import Double from featuretools.primitives.base import TransformPrimitive class ExponentialWeightedSTD(TransformPrimitive): """Computes the exponentially weighted moving standard deviation for a series of numbers Description: ...
b9a9d1cf54953059c1d5f68ee27e80c787e1f386
efc378b30e64de28ecd13fd2a281ea5a309e84de
/examples/processing/plot_line_noise.py
99ab9e8ac1314dc3fc95a361ed26bf0e4dffcd94
[ "Apache-2.0" ]
permissive
fooof-tools/fooof
acb0069d3d17055bd7e6a85e062c1d648bf2a9bd
d63aae0bc9251677fbf158190e3802f29e47c53d
refs/heads/main
2023-08-31T04:34:24.796460
2023-08-27T20:33:49
2023-08-27T20:33:49
95,601,569
244
72
Apache-2.0
2023-09-13T12:42:49
2017-06-27T21:16:03
Python
UTF-8
Python
false
false
9,489
py
plot_line_noise.py
""" Dealing with Line Noise ======================= This example covers strategies for dealing with line noise. """ ################################################################################################### # sphinx_gallery_thumbnail_number = 2 # Import the spectral parameterization object and utilities fr...
3a9571d534fe09f5d0eefe72b1b96771bc1096e5
85b402cd9e762b2749c978105ea362b10d335e5c
/188-gridsearch_hyperparam_tuning_activation_opt_weights.py
0be26e8ef563fa449be9f2fd8c0a4802c68ebde0
[]
no_license
bnsreenu/python_for_microscopists
29c08f17461baca95b5161fd4cd905be515605c4
4b8c0bd4274bc4d5e906a4952988c7f3e8db74c5
refs/heads/master
2023-09-04T21:11:25.524753
2023-08-24T18:40:53
2023-08-24T18:40:53
191,218,511
3,010
2,206
null
2023-07-25T07:15:22
2019-06-10T17:53:14
Jupyter Notebook
UTF-8
Python
false
false
4,060
py
188-gridsearch_hyperparam_tuning_activation_opt_weights.py
# https://youtu.be/pU67vp4T8J4 """ @author: Sreenivas Bhattiprolu Grid search hyperparameters - Tuning activation functions ONly trick is to define default activation. Otherwise it throws error due tonot having all required parameters. Use GridSearchCV class from scikit-learn Keras models can be used in ...
2cb098e3549e73e09a252c5c31f73eff8d60a5e5
bba97d00eba0c3de8a081e61ed6711f138d6babd
/pipeline/Serverless/common/get_config.py
a33722182e1a3cca7c3fb6b4bf7409a0a15ad469
[ "Apache-2.0" ]
permissive
keithrozario/Klayers
a6df271a7f72c8b2ae9d2025ff030cff09bd5b75
026ebed4a3de0018418638e37d6453253aa48f0e
refs/heads/master
2023-09-04T12:33:32.454360
2023-09-04T08:44:18
2023-09-04T08:44:18
164,266,648
1,725
276
NOASSERTION
2023-09-04T08:44:19
2019-01-06T01:49:43
Python
UTF-8
Python
false
false
1,198
py
get_config.py
import os import json from aws_requests_auth.boto_utils import BotoAWSRequestsAuth import requests def get_from_common_service( resource: str, method: str = "GET", data: dict = None, headers: dict = None ): """ Args: resource: The resource to get from the common service (e.g. /api/v1/config/pytho...
efd61232c02b77de6899650d413fabe09ddf73c0
0466aed57f6c98ca39582eccdf8cf626ee20681e
/django_mailbox/migrations/0005_auto_20160523_2240.py
f4bdae65012713866d5f4fa08101ec217b90c3df
[ "MIT" ]
permissive
coddingtonbear/django-mailbox
881719d1761a385021e33e96c0aeaa0b7177b23e
462fdd3e496e28cc7c9d99a4f18ce80cb8b6aba6
refs/heads/master
2023-08-22T10:51:21.108201
2023-01-24T14:08:47
2023-01-24T14:08:47
4,810,450
264
164
MIT
2023-08-11T13:35:26
2012-06-27T15:58:50
Python
UTF-8
Python
false
false
455
py
0005_auto_20160523_2240.py
from django.db import migrations, models import django_mailbox.utils class Migration(migrations.Migration): dependencies = [ ('django_mailbox', '0004_bytestring_to_unicode'), ] operations = [ migrations.AlterField( model_name='messageattachment', name='document', ...
1895843c05f809201b1c185b0ac99bc64d28ed83
240bc424e9bf4419c551ea9e0d3624b44838378e
/eval.py
06067f5a34c3b1428b9f9c638a4c1177ca21fb67
[]
no_license
DengPingFan/D3NetBenchmark
13182592d0d2a1cfef9242efbf12c0bd9b0bfcd2
d312f944c8aed19430f8c0c628bfca3d62d9498e
refs/heads/master
2022-06-20T03:08:51.833692
2022-06-09T12:00:58
2022-06-09T12:00:58
197,164,298
139
21
null
null
null
null
UTF-8
Python
false
false
3,029
py
eval.py
#pytorch import torch import torchvision from torch.utils.data import DataLoader #general import os import cv2 import shutil import numpy as np from tqdm import tqdm #mine import utils import my_custom_transforms as mtr from dataloader_rgbdsod import RgbdSodDataset from PIL import Image from model.RgbNet import MyN...
3f01ab05726dbb3add4b57d5a9f2693d5ebb0b2a
a173777f4ba02c1e683d75810fa6932487ba42cc
/2020/whitehat-grandprix-2020/re01/solve3.py
f299c621ded40b1f334ecf77b4d9deb521813e57
[]
no_license
perfectblue/ctf-writeups
ba9454ef06e1004253f004154fba6ae00d88ca09
3f2a8a2c2598d700f33cb3f39ceb515e2ba46312
refs/heads/master
2023-06-25T19:28:05.222110
2022-12-11T04:55:13
2022-12-11T04:55:13
133,306,580
606
75
null
2023-01-20T22:38:17
2018-05-14T04:53:27
Python
UTF-8
Python
false
false
2,152
py
solve3.py
from pwn import * data = open("output.png", "rb").read() shits = [] for i in range(0, len(data), 0x1000): shits.append(map(ord, list(data[i:i+0x1000]))) opts1 = [] for i in range(52, 61+1): for j in range(52, 61+1): for k in range(52, 61+1): if((k*k*k + i*i*i + j*j*j) % 256 == 98): ...
183abde480abb1293619c781167c01e44849de00
428823322eeae0e5441208a9ae32474015287195
/examples/describe_regions.py
04bda45a53375039c6e3aae11e14e3ce355282de
[ "MIT" ]
permissive
aliyun/aliyun-oss-python-sdk
de65ed73ea46754d90045094bef0e26fe1f2af88
45d54c19483b4b6c873f97f153be19a11a9d60fb
refs/heads/master
2023-07-31T14:29:01.240869
2023-07-18T12:49:32
2023-07-18T12:52:47
47,454,460
965
460
MIT
2023-09-06T08:48:16
2015-12-05T12:09:57
Python
UTF-8
Python
false
false
1,733
py
describe_regions.py
import os import oss2 # Specify access information, such as AccessKeyId, AccessKeySecret, and Endpoint. # You can obtain access information from evironment variables or replace sample values in the code, such as <your AccessKeyId> with actual values. # # For example, if your bucket is located in the China (Hangzhou) ...
af4359211ae058f0a3be48fcb3ccbcc8a449cb4d
8355bc4e1ad1a863124c1d80d4a00b28ef587b48
/src/probnum/randprocs/markov/discrete/_linear_gaussian.py
150d095c7ab7ce2fe411943cabd382c68fcc51b1
[ "MIT" ]
permissive
probabilistic-numerics/probnum
af62f04253a08da71174e5c1b7d733deb1914eee
af410278783069542610d16b10ba12d2940a05a6
refs/heads/main
2023-08-31T05:12:08.877238
2023-06-19T20:34:15
2023-06-19T20:34:15
218,856,084
384
56
MIT
2023-09-10T18:52:24
2019-10-31T20:29:11
Python
UTF-8
Python
false
false
10,789
py
_linear_gaussian.py
"""Discrete, linear Gaussian transitions.""" import typing from typing import Callable, Tuple import warnings import numpy as np import scipy.linalg from probnum import config, linops, randvars from probnum.randprocs.markov.discrete import _nonlinear_gaussian from probnum.typing import FloatLike, IntLike, LinearOpera...
f758b8720d282d6ae3d0afb198efb80f85f73088
b39b31269db70d72d57959feaa0b063eb2b37e12
/test/unit/master/test_slave_allocator.py
fcb504fa2106f4f57e42d77a16312501b31d6219
[ "Apache-2.0" ]
permissive
box/ClusterRunner
477a1d1fa02d5cb5819ccdea891ea73ced347ffd
55d18016f2c7d2dbb8aec5879459cae654edb045
refs/heads/master
2023-08-16T21:23:11.232430
2022-02-08T16:28:01
2022-02-09T06:40:51
25,371,175
168
45
Apache-2.0
2022-10-15T03:04:49
2014-10-17T18:20:39
Python
UTF-8
Python
false
false
3,636
py
test_slave_allocator.py
from unittest.mock import Mock from app.master.build import Build from app.master.build_scheduler_pool import BuildSchedulerPool from app.master.slave import Slave from app.master.slave_allocator import SlaveAllocator from test.framework.base_unit_test_case import BaseUnitTestCase class TestSlaveAllocator(BaseUnitTe...
692d0dbf01d6f41de7e1b8d506e2131ed4823ea8
dac12c9178b13d60f401c4febff5569af8aa2719
/cvat/apps/dataset_manager/formats/mots.py
eb9678113c0294fbd3791d5d9dc319279f39131b
[ "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later" ]
permissive
opencv/cvat
39dc66ca20f972ba40b79c44d7ce43590dc0b0b5
899c9fd75146744def061efd7ab1b1c6c9f6942f
refs/heads/develop
2023-08-19T04:27:56.974498
2023-08-18T09:58:25
2023-08-18T09:58:25
139,156,354
6,558
1,887
MIT
2023-09-14T12:44:39
2018-06-29T14:02:45
TypeScript
UTF-8
Python
false
false
4,744
py
mots.py
# Copyright (C) 2019-2022 Intel Corporation # Copyright (C) 2022-2023 CVAT.ai Corporation # # SPDX-License-Identifier: MIT from datumaro.components.annotation import AnnotationType from datumaro.components.dataset import Dataset from datumaro.components.extractor import ItemTransform from pyunpack import Archive from...
4f0e5f9dca31813a8d88a7558d3cc08ed6772845
4ae34a5179d7adf1037eb9a3cb249f9a5c06684e
/sdk/python/v1beta1/kubeflow/katib/constants/constants.py
b99de7b98c6bcd116825f81ee9946a2da49d743e
[ "Apache-2.0" ]
permissive
kubeflow/katib
367373c0452d49a7a115b86893f4dab9e1f278ea
e3e0aa24aeea1edfab0fd42f55392af651d2b3ae
refs/heads/master
2023-09-04T05:02:05.752156
2023-08-24T22:40:54
2023-08-24T22:40:54
127,941,481
1,385
422
Apache-2.0
2023-09-14T13:17:29
2018-04-03T17:07:12
Go
UTF-8
Python
false
false
2,094
py
constants.py
# Copyright 2021 The Kubeflow 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 ...
eebbf2e136bd39dfd53ce2e211686abad6d9ae04
ca98f0332b773f9b1982118daf94ba75ffeaa90d
/tests/test_in_place_semantics.py
9a729f936a5888bc186adf327ae434549018e03f
[ "MIT" ]
permissive
rsokl/MyGrad
f5b745b26a01ddda4ff6ce279746c47cb2f021cf
133072b526966e235d70bbfcf9eb86d43d0fcfa1
refs/heads/master
2023-07-09T01:20:42.314017
2023-07-03T19:13:30
2023-07-03T19:13:30
97,431,804
186
28
MIT
2023-07-03T19:13:32
2017-07-17T03:31:24
Python
UTF-8
Python
false
false
16,161
py
test_in_place_semantics.py
from typing import Callable import hypothesis.strategies as st import numpy as np import pytest from hypothesis import given from numpy.testing import assert_allclose, assert_array_equal import mygrad as mg from mygrad import Tensor from tests.custom_strategies import tensors # Make sure we actually test the correc...
e58381a80e593ecfdbc99838946c05895ff57dcf
d110546d747d7e3865ce5742d5fca09f404623c0
/tests/pytests/integration/ssh/test_py_versions.py
52ab819e808c72a302ba15f1e61a8cb2cc54da34
[ "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
3,471
py
test_py_versions.py
""" Integration tests for salt-ssh py_versions """ import logging import socket import time import pytest from saltfactories.utils import random_string from tests.support.helpers import Keys pytest.importorskip("docker") log = logging.getLogger(__name__) pytestmark = [ pytest.mark.slow_test, pytest.mark.s...
76c2ddc07d2a1da5967d027a715d65f632fa7502
c6759b857e55991fea3ef0b465dbcee53fa38714
/tools/nntool/nntool/generation/generators/general/concat_last_axis.py
6f606743e26745165e664ead244a05e71f5b3f4e
[ "AGPL-3.0-or-later", "AGPL-3.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "Apache-2.0" ]
permissive
GreenWaves-Technologies/gap_sdk
1b343bba97b7a5ce62a24162bd72eef5cc67e269
3fea306d52ee33f923f2423c5a75d9eb1c07e904
refs/heads/master
2023-09-01T14:38:34.270427
2023-08-10T09:04:44
2023-08-10T09:04:44
133,324,605
145
96
Apache-2.0
2023-08-27T19:03:52
2018-05-14T07:50:29
C
UTF-8
Python
false
false
3,469
py
concat_last_axis.py
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
9fef695822dca05bd1d7f8ca2b3a4cb0cd05b677
ad61cc119a42abfd3d64224a753817ae0f9ba058
/tests/functional/test_args.py
e01b543f11fef12aee1eb1a6833160dbc5413f81
[ "Apache-2.0" ]
permissive
aws/aws-cli
30b0e5b0fb6d736f1540990955f0a7351ee7a908
147d16dfdb72dc9cf362b676a57e46a49375afbd
refs/heads/develop
2023-09-03T19:52:07.955543
2023-09-01T20:37:50
2023-09-01T20:37:50
6,780,767
13,038
4,107
NOASSERTION
2023-09-13T19:48:11
2012-11-20T16:07:36
Python
UTF-8
Python
false
false
1,690
py
test_args.py
# Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
b1814e7531345962f3aa487c991a74264bbc4567
aaf572d39319e4400ae0c2655ea2cfa52845a429
/trio/_core/_tests/test_tutil.py
eb16de883fcbea8823e3c3e86ce3754ab3844904
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
python-trio/trio
04cbde76313c26abdea15317cea3980dd5bc475b
e97bcb61b8b02523c82435b5408ff46efca5dfc3
refs/heads/master
2023-08-30T23:22:05.599646
2023-08-30T06:11:28
2023-08-30T06:11:28
79,083,614
5,651
369
NOASSERTION
2023-09-13T14:14:21
2017-01-16T04:45:25
Python
UTF-8
Python
false
false
451
py
test_tutil.py
import pytest from .tutil import check_sequence_matches def test_check_sequence_matches(): check_sequence_matches([1, 2, 3], [1, 2, 3]) with pytest.raises(AssertionError): check_sequence_matches([1, 3, 2], [1, 2, 3]) check_sequence_matches([1, 2, 3, 4], [1, {2, 3}, 4]) check_sequence_matches(...
a0926aa451180ddbb40e7ba188d7daff82e9acfe
b4312f0bd9422be26628b04ddb1c45108c7d94c6
/FSDP_Workshop/policies/wrapping.py
78b896e1150ba62a24c495ad9b1afec65a257aaa
[ "Apache-2.0" ]
permissive
pytorch/workshops
c594c44f28f8bc12a9039f1a084950e2ac4fd565
b7b0206dcb365d815ba7fa8b138dd6c04dcaec7b
refs/heads/master
2023-09-02T14:44:47.380568
2022-12-12T20:41:22
2022-12-12T20:41:22
244,809,815
178
68
null
2023-03-21T10:12:15
2020-03-04T04:48:37
Jupyter Notebook
UTF-8
Python
false
false
1,164
py
wrapping.py
# Copyright (c) 2022 Meta Platforms, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the Apache-style license found in the # LICENSE file in the root directory of this source tree. # holds various wrapping policies for fsdp import torch.distributed as dist import torch.nn as nn...
9f51324f345aa378f42d62c371ada975787a7f7a
59886a1143cc4043b19e398fae1fddb5742b4b55
/src/main/python/rlbot/agents/standalone/test_spawner.py
494dffa660754cea06e679089bcec34659978133
[ "MIT" ]
permissive
RLBot/RLBot
a6c4f502403f02822b3e4078b27583226584432e
c2f7c9a07911691b112b5338008e2ec932e7aee0
refs/heads/master
2023-08-16T06:04:35.384448
2023-07-01T11:21:26
2023-07-01T11:21:26
80,671,678
482
138
MIT
2023-07-01T11:21:28
2017-02-01T22:36:52
Python
UTF-8
Python
false
false
3,716
py
test_spawner.py
import hashlib from pathlib import Path from rlbot import gateway_util from rlbot.agents.standalone.standalone_bot_config import StandaloneBotConfig from rlbot.matchconfig.match_config import PlayerConfig, MatchConfig, MutatorConfig, FLATBUFFER_MAX_INT from rlbot.parsing.bot_config_bundle import BotConfigBundle from r...
138dc78f58f7ab9e201b11145797995a7e4e4966
fac6bd9d5ca6b068e9ec5ce8a6e703c9261476a3
/twitch/errors.py
0a36720bf765d798e75f37576bd46eeef80b3fdc
[ "MIT" ]
permissive
TrustyJAID/Trusty-cogs
b72b48a7da37d6985cfc7924dae3a2ff4fcbb39f
5b4c87d461065ef55af4f012a89501925a34a8d5
refs/heads/master
2023-09-04T22:55:34.235209
2023-09-04T22:52:25
2023-09-04T22:52:25
160,604,179
170
252
MIT
2023-06-10T17:01:00
2018-12-06T02:02:25
Python
UTF-8
Python
false
false
39
py
errors.py
class TwitchError(Exception): pass
2b34ce159edbb9e1d862ef8d569920169b664ed4
f07a5874cbf6c39222961926bbd229050b220164
/src/anyconfig/backend/yaml/common.py
ae75115a9f1d093d8038c81570b732ecc79f24a9
[ "MIT" ]
permissive
ssato/python-anyconfig
dad5e69e389476c24f445c0160ee315df80b8c41
5634740464fbb289fc338c9d982a762725d536c7
refs/heads/next
2023-08-15T05:21:08.375150
2023-07-09T05:08:26
2023-07-09T05:08:26
4,830,526
232
39
MIT
2022-11-21T23:36:21
2012-06-29T09:05:02
Python
UTF-8
Python
false
false
819
py
common.py
# # Copyright (C) 2011 - 2021 Satoru SATOH <satoru.satoh@gmail.com> # SPDX-License-Identifier: MIT # """Common library for YAML backend modules.""" from ...utils import filter_options from .. import base def filter_from_options(key, options): """Filter a key ``key`` in ``options. :param key: Key str in optio...
5211b99b1a43c97b5c795c5ed2c69d76079e75de
efcd21234f3291e8fc561f49a7c88fc57a63e952
/tests/unit/language/ast/test_types.py
f6a2ecbccec88526556881679f3e7bfb25831ff0
[ "MIT" ]
permissive
tartiflette/tartiflette
146214a43847d2f423bf74594643c1fdefc746f1
421c1e937f553d6a5bf2f30154022c0d77053cfb
refs/heads/master
2023-09-01T02:40:05.974025
2022-01-20T14:55:31
2022-01-20T14:55:31
119,035,565
586
39
MIT
2023-09-11T07:49:27
2018-01-26T09:56:10
Python
UTF-8
Python
false
false
3,529
py
test_types.py
import pytest from tartiflette.language.ast import ListTypeNode, NonNullTypeNode def test_listtypenode__init__(): list_type_node = ListTypeNode( type="listTypeType", location="listTypeLocation" ) assert list_type_node.type == "listTypeType" assert list_type_node.location == "listTypeLocation"...
aa9dfc76101fc3a44ef18b5f7fdadc0ebf2ff40f
fb63a6bd8ccdc920edfb34e869f292f12e4b1b34
/utils/relex.py
55120695f44cd258af755d5db8e1939a2e90be50
[ "MIT" ]
permissive
AmitMY/chimera
a0db8a7201b763059dc8b77c50170ddd0c8b4ef3
9aed2b8f92afd5c673745de52d701fe718ba33c9
refs/heads/master
2023-08-09T05:02:30.822988
2022-06-22T08:00:21
2022-06-22T08:00:21
164,492,173
133
26
MIT
2023-07-20T19:35:14
2019-01-07T20:41:15
Python
UTF-8
Python
false
false
1,004
py
relex.py
import re from functools import lru_cache from ordered_set import OrderedSet from utils.delex import un_concat_entity # Stringify MONTHS = ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] @lru_cache(maxsize=None) def get_entiti...
85ad757a643dd84adfd2c7698bd3430fea5d8672
6ca4c2a13d2418dca6970896b3ec4627272d907e
/cclib/io/wfxwriter.py
d2cfcba9ddaccf880fe6851c01b3b5384a228fd2
[ "BSD-3-Clause" ]
permissive
cclib/cclib
c3aa466900a1e207fde215f732af6630f1cc8c34
b8d42a163ce9bafd4b660e2a933f56a8cc54fd9b
refs/heads/master
2023-08-09T09:28:52.453568
2023-08-08T14:31:31
2023-08-08T14:31:31
15,514,912
285
190
BSD-3-Clause
2023-09-13T16:15:26
2013-12-29T20:59:14
Python
UTF-8
Python
false
false
19,396
py
wfxwriter.py
# -*- coding: utf-8 -*- # # Copyright (c) 2023, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """A writer for wfx format files.""" import os.path from typing import List import numpy from cclib.io import filewrite...
498b793e2fc24774f324b601496f0c1d639b59ee
0f12ce294f2e0621461e3f7c7d82d434997bd5e7
/examples/multiple_webhook_urls.py
10271dc779df631dd079912377572e3aa7a01681
[ "MIT" ]
permissive
lovvskillz/python-discord-webhook
9bf7cf621d604253b83ec52c4f4146fb523e7815
fc1596d71810c09ab5a84ba5fd0c94eee6276471
refs/heads/master
2023-09-01T15:52:42.143417
2023-08-14T10:08:18
2023-08-14T10:08:18
145,297,532
454
95
MIT
2023-09-12T23:13:06
2018-08-19T11:33:54
Python
UTF-8
Python
false
false
193
py
multiple_webhook_urls.py
from discord_webhook import DiscordWebhook webhook_urls = ["webhook url 1", "webhook url 2"] webhook = DiscordWebhook(url=webhook_urls, content="Webhook Message") response = webhook.execute()
bf60ef9bca49098e042c150daa551c0cc44e9a39
3a6a211ea0d32405497fbd6486c490bb147e25f9
/telemetry/telemetry/internal/backends/chrome_inspector/inspector_serviceworker.py
8a9d211e72e4dcba6d62b823bf1c6f91d7efedab
[ "BSD-3-Clause" ]
permissive
catapult-project/catapult
e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0
53102de187a48ac2cfc241fef54dcbc29c453a8e
refs/heads/main
2021-05-25T07:37:22.832505
2021-05-24T08:01:49
2021-05-25T06:07:38
33,947,548
2,032
742
BSD-3-Clause
2022-08-26T16:01:18
2015-04-14T17:49:05
HTML
UTF-8
Python
false
false
1,453
py
inspector_serviceworker.py
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import absolute_import from telemetry.internal.backends.chrome_inspector import inspector_websocket from telemetry.core import exceptions cl...
119c904d3a58cfb21662c317edf8a67e2d7093a4
5bb8e08e2d2bff503b4425cffe2e60dc32499089
/menpo/image/test/test_image_warp.py
086296b7d4c542a0398906c38e2ec18b4d3ce2b6
[ "BSD-3-Clause" ]
permissive
menpo/menpo
2e731560bfd480bf3008317368af35612e55ddc2
a61500656c4fc2eea82497684f13cc31a605550b
refs/heads/master
2023-08-15T21:04:41.768318
2022-01-02T22:10:04
2022-01-02T22:10:04
9,731,325
332
89
BSD-3-Clause
2022-01-02T22:10:05
2013-04-28T14:52:38
Python
UTF-8
Python
false
false
14,090
py
test_image_warp.py
from unittest.mock import PropertyMock import numpy as np import pytest from numpy.testing import assert_allclose, assert_almost_equal from pytest import raises import menpo import menpo.io as mio from menpo.image import BooleanImage, Image, MaskedImage, OutOfMaskSampleError from menpo.image.interpolation import cv2_...
6ede2089b49d068009a422d01a7cfb4d1372b986
8f7320c10f2c5fc8475753dc5256d1a66067e15c
/keopscore/keopscore/mapreduce/gpu/GpuReduc1D.py
7c812bb9ac431a59d6ebc5e64fea0177d583a91d
[ "MIT" ]
permissive
getkeops/keops
947a5409710379893c6c7a46d0a256133a6d8aff
52ed22a7fbbcf4bd02dbdf5dc2b00bf79cceddf5
refs/heads/main
2023-08-25T12:44:22.092925
2023-08-09T13:33:58
2023-08-09T13:33:58
182,054,091
910
69
MIT
2023-09-03T20:35:44
2019-04-18T09:04:07
Python
UTF-8
Python
false
false
3,952
py
GpuReduc1D.py
from keopscore.binders.nvrtc.Gpu_link_compile import Gpu_link_compile from keopscore.mapreduce.gpu.GpuAssignZero import GpuAssignZero from keopscore.mapreduce.MapReduce import MapReduce from keopscore.utils.code_gen_utils import ( c_variable, c_array, ) class GpuReduc1D(MapReduce, Gpu_link_compile): # cla...
60051702bac561c6c6d69a0f71603d409c0f372a
3c5d5a26bc129e48bbd391272af654552f6e32e4
/torch_xla/experimental/distributed_checkpoint.py
09be65d4b0a94a4f36a1e41d2f47f6a05f0dcb7d
[ "BSD-2-Clause" ]
permissive
pytorch/xla
ea30221b0c1d810f743011e35fbcaadadfe1fbd7
e22c9ce169ebfe50f4f583970dfe395519dfcbf8
refs/heads/master
2023-09-04T08:55:20.147988
2023-09-01T21:22:35
2023-09-01T21:22:35
156,293,205
2,245
415
NOASSERTION
2023-09-14T21:33:43
2018-11-05T22:42:04
Jupyter Notebook
UTF-8
Python
false
false
15,612
py
distributed_checkpoint.py
from copy import copy import dataclasses import io import numpy as np import torch import torch_xla import torch_xla.experimental.xla_sharding as xs from collections import ChainMap from torch.distributed.checkpoint.default_planner import ( create_default_local_load_plan, create_default_global_load_plan, c...
74b54e1193baea7eeccc438a4a5bd30560f1f5ec
12be962c0825d78eaf5a5a3aaf551bfdffbf09a3
/M3SDA/code_MSDA_digit/datasets/mnist_m.py
da63db4c0218474dd940806a1bc65ae089e10a9f
[]
no_license
VisionLearningGroup/VisionLearningGroup.github.io
98032ac28b92a680db146bfad243e49f4438f79d
c8489562941c180e495b92a495adbc9e18d9c6cb
refs/heads/master
2023-06-22T20:11:51.821301
2023-06-15T18:37:48
2023-06-15T18:37:48
87,874,579
189
78
null
2023-02-19T13:25:04
2017-04-11T01:34:30
CSS
UTF-8
Python
false
false
1,200
py
mnist_m.py
import numpy as np from scipy.io import loadmat base_dir = './data' def load_mnistm(scale=True, usps=False, all_use=False): mnistm_data = loadmat(base_dir + '/mnistm_with_label.mat') mnistm_train = mnistm_data['train'] mnistm_test = mnistm_data['test'] mnistm_train = mnistm_train.transpose(0, 3, 1, 2)...
bffe4b7c9f3ed6407bd50410d356e7b42c0325bf
e22d4b37236a0327f26159856c7d151826bdd49d
/leonardo/module/media/models/tools.py
2dbb807846758cb4623b0ced92e8b7e9a399806f
[ "BSD-2-Clause" ]
permissive
django-leonardo/django-leonardo
8fe1fc6299c5e3d3c0bff96cb7e80d48f7b7e1de
7d3f116830075f05a8c9a105ae6f7f80f7a6444c
refs/heads/master
2022-09-29T02:23:14.426984
2020-09-08T13:58:46
2020-09-08T13:58:46
33,533,052
108
64
BSD-3-Clause
2022-09-16T19:34:25
2015-04-07T09:05:44
Python
UTF-8
Python
false
false
867
py
tools.py
from .clipboardmodels import Clipboard def discard_clipboard(clipboard): clipboard.files.clear() def delete_clipboard(clipboard): for file_obj in clipboard.files.all(): file_obj.delete() def get_user_clipboard(user): if user.is_authenticated(): clipboard = Clipboard.objects.get_or_cre...
437ccf5664a67c1dd9236be9e1f84cb0acb95a44
15f0514701a78e12750f68ba09d68095172493ee
/Python3/1140.py
40dcc442318a93414eaf37028e170c9ee4f959fb
[ "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,832
py
1140.py
__________________________________________________________________________________________________ sample 56 ms submission class Solution: def stoneGameII(self, A: List[int]) -> int: N = len(A) for i in range(N - 2, -1, -1): A[i] += A[i + 1] import functools ...
58fdfa17d746446c5bedcb27a598e513103417aa
b18b01b32e67433a6e749e2aae48fb69bcfc42f9
/code_search/demo/count_lines_of_code.py
8b83060c37a2116df7f9c81e73e5214fdc59e3b4
[ "Apache-2.0" ]
permissive
kubeflow/examples
f83c920cb94b32f0271103afb74b3efaaae35b41
40cba72b522ca6879672dca24398973c8f0ef32d
refs/heads/master
2023-09-01T20:39:26.577041
2023-08-05T16:51:33
2023-08-05T16:51:33
119,894,375
1,375
813
Apache-2.0
2023-08-30T14:40:56
2018-02-01T21:13:10
Jsonnet
UTF-8
Python
false
false
3,826
py
count_lines_of_code.py
"""Count lines of code in different types of file. This has nothing to do with actually running code search. The sole purpose of this script is to collect data for the presentation to illustrate the point that most effort isn't spent on ML. """ import argparse import csv import logging import os import re import sys...
2ddfca4549b25c72c628bb2d8cab37a4cb1468e3
e0ed980f4dd964d150bdb9db8617d403337372bb
/fannet.py
28216dfd2d85fa80dd3e2fef5345b1fe7ea1377e
[ "Apache-2.0" ]
permissive
prasunroy/stefann
e22d1863e4627263f494e0c6b98f38efdd59acd3
769beeb7ba72699e9fc835964b8e04fbc4fe863f
refs/heads/master
2023-04-27T16:22:46.335263
2023-04-09T19:14:15
2023-04-09T19:14:15
255,925,824
240
41
Apache-2.0
2020-05-15T14:50:46
2020-04-15T13:30:46
Python
UTF-8
Python
false
false
15,051
py
fannet.py
# -*- coding: utf-8 -*- """ Font Adaptive Neural Network (FANnet). Created on Wed Oct 10 17:00:00 2018 Author: Prasun Roy | https://prasunroy.github.io GitHub: https://github.com/prasunroy/stefann """ # imports from __future__ import absolute_import from __future__ import division from __future__ import print_functi...