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
b5386785060141c8b5980d6f639bb6499107a295
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/machinelearningcompute/_inputs.py
7d479bf859f45430b38e6edca1b37b437c3d2b3e
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-azure-native
b390c88beef8381f9a71ab2bed5571e0dd848e65
4c499abe17ec6696ce28477dde1157372896364e
refs/heads/master
2023-08-30T08:19:41.564780
2023-08-28T19:29:04
2023-08-28T19:29:04
172,386,632
107
29
Apache-2.0
2023-09-14T13:17:00
2019-02-24T20:30:21
Python
UTF-8
Python
false
false
23,215
py
_inputs.py
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** 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 from .. import _utilities from ._enu...
58246d22d5145a2e9d930ad8ea4710959aff8a55
d05ff6dda43729011b7d469b0a2bc02ed66b6342
/frappe/patches/v14_0/update_integration_request.py
d067411166986b7b9cef93898b8121bfd6054c8d
[ "MIT" ]
permissive
frappe/frappe
520c14bed3810c3360629a81dcc33f0ebe21ac4d
dd8f314bf4a8a4739eebbfac741abc533ac58bc1
refs/heads/develop
2023-08-30T19:29:10.406706
2023-08-30T11:20:40
2023-08-30T11:20:40
1,864,194
5,955
3,735
MIT
2023-09-14T16:08:04
2011-06-08T08:14:16
Python
UTF-8
Python
false
false
426
py
update_integration_request.py
import frappe def execute(): doctype = "Integration Request" if not frappe.db.has_column(doctype, "integration_type"): return frappe.db.set_value( doctype, {"integration_type": "Remote", "integration_request_service": ("!=", "PayPal")}, "is_remote_request", 1, ) frappe.db.set_value( doctype, {"in...
50e57b3084e18fe8b6c88ea6b3b3c31123d3cf32
5c1746c4ae9f5eb4c94c9b3a70a4d3feb966ceda
/test/test_stream_askpass.py
830bb49b4457900879feeb904454b05f3b8fd41d
[ "BSD-3-Clause" ]
permissive
JarryShaw/PyPCAPKit
8b53c76cf54f2ef1a9e4d0a7aeb3d52605dc1d5a
a6fe49ec58f09e105bec5a00fb66d9b3f22730d9
refs/heads/main
2023-08-29T12:49:58.611378
2023-08-28T14:05:43
2023-08-28T14:05:43
109,791,841
204
29
BSD-3-Clause
2023-09-11T17:09:06
2017-11-07T05:41:56
Python
UTF-8
Python
false
false
415
py
test_stream_askpass.py
# -*- coding: utf-8 -*- import shlex import subprocess # nosec: B404 import pcapkit with subprocess.Popen(shlex.split('sudo -A tcpdump -i en0 -s 0 -w - -U'), # nosec: B603 stdout=subprocess.PIPE) as file: pcapkit.extract(fin=file.stdout, fout='../sample/stream.txt', format='tree', no_eof=...
e4710ab0ca5351b9513a555d344c6c52e452e2ce
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-Quartz/PyObjCTest/test_qlpreviewingcontroller.py
e6367fcecc5a62458fa8a85d16ef1fc36b2e1fef
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
989
py
test_qlpreviewingcontroller.py
from Foundation import NSObject from PyObjCTools.TestSupport import TestCase, min_sdk_level import Quartz # noqa: F401 QLPreviewItemLoadingBlock = b"v@" class TestQLPreviewingControllerHelper(NSObject): def preparePreviewOfSearchableItemWithIdentifier_queryString_completionHandler_( self, i, q, c )...
8a29c3c3d737dd1472b79d5bc488088de6ec3b3e
7d232f51e2330a4f537c50ede9c6bc023d656fd4
/tools/run_tests/python_utils/upload_test_results.py
752ffac469016e24572cb1cb3cc76f404078e664
[ "BSD-3-Clause", "MPL-2.0", "Apache-2.0" ]
permissive
grpc/grpc
6975af3ba6f07a6fe965b875a0c09abf18999a52
e4d598ab64aa54f1da78c6ed6133b741742d11d4
refs/heads/master
2023-08-31T01:10:22.666618
2023-08-30T22:35:17
2023-08-30T22:35:17
27,729,880
42,330
13,022
Apache-2.0
2023-09-14T21:54:19
2014-12-08T18:58:53
C++
UTF-8
Python
false
false
7,154
py
upload_test_results.py
#!/usr/bin/env python3 # Copyright 2017 gRPC 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 ...
b554053eb222d880dc4df4014faccaf879ba6ee6
eba68873aa304b05001e704d3b573b12c8f6e3b0
/setup.py
d25db4b156bd1aa924de07f95a358c765a1c2de3
[ "BSD-2-Clause" ]
permissive
django-oscar/django-oscar-accounts
c42797873f0feda06d0f52ab96c2e280d19af0bf
bd2ec462d5800746215c6f7104dd1ebbc2e233e1
refs/heads/master
2023-03-08T12:25:33.540462
2022-05-01T11:02:13
2022-07-08T11:01:22
5,602,780
165
95
BSD-3-Clause
2023-03-01T11:57:26
2012-08-29T15:52:12
Python
UTF-8
Python
false
false
1,564
py
setup.py
#!/usr/bin/env python from setuptools import find_packages, setup install_requires = [ 'django-oscar>=3.0', 'python-dateutil>=2.6,<3.0', ] tests_require = [ 'django-webtest==1.9.10', 'pytest-cov>=2.12,<3.1', 'pytest-django>=4.4,<4.6', 'freezegun>=1.1,<1.3', 'sorl-thumbnail', 'factory-b...
f2d2400b0bc91bfee65c08aafe219d6a166a1a1c
a4913dc468f763ead62218a01ad058c84a17a7b1
/ninja/signature/utils.py
652c4a6cfaaeaaab048b0530383968a103fb3f65
[ "MIT" ]
permissive
vitalik/django-ninja
200c922f134ed09cb51957bc134a4a0830d3d8ff
8be35e42a9dc2365e764a0fea0a0b868eeae312b
refs/heads/master
2023-08-31T02:44:05.149087
2023-08-28T12:35:04
2023-08-28T12:35:04
265,194,554
5,034
340
MIT
2023-09-14T09:58:40
2020-05-19T08:48:53
Python
UTF-8
Python
false
false
2,948
py
utils.py
import asyncio import inspect import re import sys from typing import Any, Callable, ForwardRef, List, Set, cast # type: ignore from django.urls import register_converter from django.urls.converters import UUIDConverter # from pydantic.typing import ForwardRef, evaluate_forwardref # type: ignore if sys.version_in...
1f02419d2dd979fb81933882c892c71b8149c2f8
f509ab9825c542e09b0c6591d86ef1f9feb540a6
/pkgs/conf-pkg/src/genie/libs/conf/ldp/__init__.py
b801a68e30971f8fdd4a1ffe53fb9f49051f4542
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genielibs
97f597117193aaa18028defeb69078ebb241173a
e42e51475cddcb10f5c7814d0fe892ac865742ba
refs/heads/master
2023-08-11T16:39:41.959947
2023-07-27T17:58:42
2023-07-27T17:58:42
130,717,047
109
60
Apache-2.0
2023-08-29T22:32:08
2018-04-23T15:21:56
Python
UTF-8
Python
false
false
19
py
__init__.py
from .ldp import *
c97511426c59fe435965bb634bfbb54ff71baeb8
56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a
/applications/FemToDemApplication/python_scripts/FemDemDynamicSolver.py
3fdeaa3c9a676eaf8abb2d18f32ad0fb95a9bf5e
[ "BSD-3-Clause" ]
permissive
KratosMultiphysics/Kratos
82b902a2266625b25f17239b42da958611a4b9c5
366949ec4e3651702edc6ac3061d2988f10dd271
refs/heads/master
2023-08-30T20:31:37.818693
2023-08-30T18:01:01
2023-08-30T18:01:01
81,815,495
994
285
NOASSERTION
2023-09-14T13:22:43
2017-02-13T10:58:24
C++
UTF-8
Python
false
false
12,735
py
FemDemDynamicSolver.py
#import kratos core and applications import KratosMultiphysics import KratosMultiphysics.FemToDemApplication as KratosFemDem import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication # Import the mechanical solver base class import KratosMultiphysics.FemToDemApplication.FemDemMec...
044007e3880c02ccbb20e718e1bac2a89d592da5
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/statistics_group.py
62ec53964b36dc5f45bf398f3d92544b86d37f50
[ "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
14,295
py
statistics_group.py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class StatisticsGroup: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute na...
9f75d2d1da35b064ca6f00cdc772d8c8362f1cfe
771c1e2011a85a287c766b1a3d299ced2e6f799f
/src/electionguard_cli/e2e/e2e_inputs.py
083e5d666ff2ffc2d5bdc64cc67a4b4317e67e5e
[ "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
1,170
py
e2e_inputs.py
from typing import List, Optional from electionguard.ballot import PlaintextBallot from electionguard.guardian import Guardian from electionguard.manifest import Manifest from ..cli_models import ( CliElectionInputsBase, ) # pylint: disable=too-many-instance-attributes class E2eInputs(CliElectionInputsBase): ...
b2dd4910ffad4dd9fadb6df0b3b2259384cd7c17
444a9480bce2035565332d4d4654244c0b5cd47b
/research/recommend/ncf/scripts/ascend_distributed_launcher/get_distribute_pretrain_cmd.py
a94cbd0af30f6eb2f565349513dd3c1cb5222de2
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
6,796
py
get_distribute_pretrain_cmd.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...
a7e73858009881e2f5699c159750655a3e75da27
39568e19301a7a112398be542154950af25591de
/hw/ip/otbn/dv/rig/rig/program.py
d8df2d635b7e09e9a3df403ba1afe5da72043ff4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
lowRISC/opentitan
493995bc7cf7cb3aee486a5203af3fd62bba3bfc
51f6017b8425b14d5a4aa9abace8fe5a25ef08c8
refs/heads/master
2023-08-31T22:05:09.425796
2023-08-14T14:52:15
2023-08-31T20:31:13
204,516,692
2,077
634
Apache-2.0
2023-09-14T21:16:21
2019-08-26T16:30:16
SystemVerilog
UTF-8
Python
false
false
24,993
py
program.py
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 import random from typing import Dict, List, Optional, TextIO, Tuple from shared.insn_yaml import DummyInsn, Insn, InsnsFile class ProgInsn: '''An object representin...
5c6fa840b0f6ebd11cc8c5bd1263467a5f355bff
9089737e80e850819e8a9f26dc18f48672dbdde6
/flask_assistant/utils.py
e767db5a54c7bd5d3bbe97669aefa4a0359cd266
[ "Apache-2.0" ]
permissive
treethought/flask-assistant
268bca59f0769e5886d42e02828b5e255e96c861
0cb4f20ca60f04e57b36d6eb127b10b403772c78
refs/heads/master
2023-09-02T23:04:43.769718
2021-11-10T01:39:52
2021-11-10T01:39:52
76,535,478
416
128
Apache-2.0
2023-02-16T01:33:40
2016-12-15T07:36:57
Python
UTF-8
Python
false
false
2,367
py
utils.py
from __future__ import absolute_import from typing import Dict, Any import os import sys import logging from google.auth import jwt from flask_assistant.core import Assistant from . import logger import requests logger.setLevel(logging.INFO) def import_with_3(module_name, path): import importlib.util spec = ...
1cae7a2f65d1700487fdb868037a97f7aec9bdff
119646d6e1f13582c577fd7b87c9654839a0b806
/hubspot/crm/extensions/cards/models/action_confirmation_body.py
4c5b06d3eeb00a57023b1f86b1f29225a7d0c066
[]
permissive
HubSpot/hubspot-api-python
446daaceeb3a6ce27edcd0414603c6d4bc07e327
d51a64c413461c0b82d8a41743e752d878747ca1
refs/heads/master
2023-08-31T09:52:56.583803
2023-08-07T11:00:27
2023-08-07T11:00:27
248,865,684
227
98
Apache-2.0
2023-09-14T15:25:19
2020-03-20T22:41:24
Python
UTF-8
Python
false
false
6,099
py
action_confirmation_body.py
# coding: utf-8 """ CRM cards Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user. # noqa: E501 The version of...
609f00dfe923b5a87ab0be61f69737a40a841be3
e7727fbb00c73818de931a584af58657eeb69513
/dymos/test/test_check_partials.py
bd9451a17feccaab21e9708f26659aaaf532b1be
[ "Apache-2.0" ]
permissive
OpenMDAO/dymos
f3bb20ebccf5f9408295403c72cb1b25c8e48019
1aca42a4fedcca6e493c5516fadc2d78e4709797
refs/heads/master
2023-08-18T15:30:20.664129
2023-08-09T12:33:12
2023-08-09T12:33:12
121,387,262
165
56
Apache-2.0
2023-09-14T17:51:14
2018-02-13T13:44:34
Python
UTF-8
Python
false
false
20,303
py
test_check_partials.py
import unittest import openmdao.api as om import dymos as dm from dymos.utils.testing_utils import set_env_vars class TestCheckPartials(unittest.TestCase): def brach_explicit_partials(self): from dymos.examples.brachistochrone import BrachistochroneODE prob = om.Problem() prob.driver = o...
bb52a6516cc6f4366fa7dbd4e9c994e338b18a55
98810fbf90a42028915a88bfac9fb8cb8681008e
/azure-devops/azext_devops/dev/pipelines/pipeline_create_helpers/azure_repos_helper.py
688869345bf8eda644c8d885720db11691c8fc7d
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unicode", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "PSF-2.0", "PostgreSQL", "LicenseRef-scancode-python-cwi", "LGPL-2.1-or-later", "LicenseRef-scancode-proprietary-license", "LGPL-2.1-only", "C...
permissive
Azure/azure-devops-cli-extension
ba87357a8243e1318f100791fc32acbb59448d05
bd34a6fd0658a15dadf6c09c7f6217ca5ffa662b
refs/heads/master
2023-08-29T10:56:54.228674
2023-07-17T04:37:06
2023-07-17T04:37:06
107,708,057
419
208
MIT
2023-08-02T02:10:10
2017-10-20T17:39:11
Python
UTF-8
Python
false
false
5,062
py
azure_repos_helper.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
7a52ff17f35bc22b83885d270f22faa179aa9838
32f2d6ccfdcbd94e9e022aaaaddc16a7251d0634
/augur/tasks/github/releases/tasks.py
11b73b3424c09a88f1c7bbd3a2ff4fa7f4c815a3
[ "MIT" ]
permissive
chaoss/augur
13565ba6094cd0b224ea458a7b36ed916fd3e330
03e5cf8bef4cd6fd5c3458393d1ae839d7bcc3c3
refs/heads/main
2023-08-24T20:27:17.200466
2023-08-13T21:15:24
2023-08-13T21:15:24
78,134,122
580
1,027
MIT
2023-09-14T14:56:36
2017-01-05T17:34:54
Python
UTF-8
Python
false
false
804
py
tasks.py
from augur.tasks.github.util.github_task_session import GithubTaskManifest from augur.tasks.github.releases.core import * from augur.tasks.init.celery_app import celery_app as celery from augur.tasks.init.celery_app import AugurCoreRepoCollectionTask from augur.application.db.util import execute_session_query import tr...
bb066e4cd576d35620fe2334439dea9391680cb3
e5a6076462ebe087cb236bee1bc6cfb45325983c
/amadeus/reference_data/_locations.py
98f3a8b4d183229f436c3f752fe62b1e888d77cd
[ "MIT" ]
permissive
amadeus4dev/amadeus-python
727273113badb2c117397dc9c1fe08b220536d7b
84b0c99292e28a8697883274a0137a07a411de6a
refs/heads/master
2023-06-29T17:26:16.339811
2023-06-22T14:45:42
2023-06-22T14:45:42
126,029,888
184
81
MIT
2023-09-14T06:59:18
2018-03-20T14:25:13
Python
UTF-8
Python
false
false
1,633
py
_locations.py
from amadeus.client.decorator import Decorator from amadeus.reference_data.locations._airports import Airports from amadeus.reference_data.locations._points_of_interest import PointsOfInterest from amadeus.reference_data.locations._point_of_interest import PointOfInterest from amadeus.reference_data.locations._hotels i...
7fcd95757efac64651a7b7fa6f58301a3163a8ea
7a19dfc7c8741e3c2e5e0c2f1b0260959c303ab4
/scripts/artifacts/medicalID.py
11c0b17d4c5f5806ab40680b2bfd767229ad01d2
[ "MIT" ]
permissive
abrignoni/iLEAPP
89735f04b96a697c16e0d2edc44d95e529c01584
d9c43007aca17554148dbd2b0ffaad44fe3869f1
refs/heads/main
2023-08-08T13:36:48.234249
2023-08-01T20:29:17
2023-08-01T20:29:17
229,842,283
528
104
MIT
2023-09-12T21:45:41
2019-12-24T00:28:42
Python
UTF-8
Python
false
false
2,053
py
medicalID.py
import biplist import pathlib import os import nska_deserialize as nd from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows def get_name(name_with_prefix): retval = name_with_prefix if name_with_prefix.startswith('HKMedicalIDData'): ...
420aa38a3277f6aff6ef700f5d4a9d39e6efd07f
854b94d7be92582bd191a7cb63143a95e5b5c337
/hyfetch/distros/star.py
eadd6691f658bf815c892b61832c9a04774817f1
[ "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
781
py
star.py
# This file is automatically generated. Please do not modify. from . import AsciiArt star = AsciiArt(match=r'''"Star"*''', color='7', ascii=r""" ${c1} ./ `yy- `y.`y` `` s- .y ` +h//:..` +/ /o ``..:/so /o``.-::/:/+ o/...
2463fa3271c151c33bc7e16ee0e8309f853df58b
995db5936526233eaf19331eabbbb53986142a08
/attic/to_be_converted_to_tests/testRK.py
e01a83c708f20d968c743d818d3579ff540d2337
[ "Apache-2.0" ]
permissive
uncbiag/mermaid
c2fd8f9ff0eb3b3977e6b69f41e81e1665c0b125
0e22470dc20860bc2747dc962117cff283fd52f0
refs/heads/master
2022-03-18T22:15:36.624122
2022-03-05T23:52:16
2022-03-05T23:52:16
102,147,243
167
30
NOASSERTION
2022-03-05T23:49:44
2017-09-01T19:40:21
Python
UTF-8
Python
false
false
371
py
testRK.py
import rungekutta_integrators as RK import numpy as np import matplotlib.pyplot as plt def f(t,x,u,pars): return [-2*x[0]] #ef = RK.EulerForward(f) ef = RK.RK4(f) a = [] xvals = np.linspace(0,5,20) for v in xvals: a.append( ef.solve([10],0,v,20)) a = np.array(a) plt.figure(1) plt.setp( plt.gcf(),'facecolor'...
0ef28387829dd8eae1b21a85703a8b2e25b92cd3
d87acfc6fa8dcf71ac26eebbd6069a938222efc3
/captum/influence/_utils/common.py
26895f3da01f20656ca2dfaca2f5386480ed8a9f
[ "BSD-3-Clause" ]
permissive
pytorch/captum
aedeec58d34c7611ae8928144e9f2314f820c1ca
945c582cc0b08885c4e2bfecb020abdfac0122f3
refs/heads/master
2023-09-04T08:49:54.120380
2023-07-08T00:30:37
2023-07-08T00:30:37
204,734,444
4,230
491
BSD-3-Clause
2023-09-08T17:58:15
2019-08-27T15:34:41
Python
UTF-8
Python
false
false
23,003
py
common.py
#!/usr/bin/env python3 import warnings from typing import Any, Callable, List, Optional, Tuple, TYPE_CHECKING, Union import torch import torch.nn as nn from captum._utils.common import _parse_version from captum._utils.progress import progress if TYPE_CHECKING: from captum.influence._core.tracincp import TracInCP...
42af11d98c2189a8bf487bb3da2cc2315c35a5b0
9983c008e6778ca26644dad80fca7e8985db24cf
/2016/exploitation/irs/sol/script.py
4d11840ddb26f39a276b3acc9288c9fc06e48b45
[]
no_license
RPISEC/HackTheVote
d09ccd29e5af69dc2837b3bac59cd1c535cec7a5
58dba33fb90bade59cb90b4945ba1ef291f89125
refs/heads/master
2023-05-11T03:15:49.665265
2021-09-09T17:14:59
2021-09-09T17:14:59
73,036,582
236
72
null
2023-05-01T21:53:12
2016-11-07T02:50:08
C
UTF-8
Python
false
false
351
py
script.py
print "1" print "G" print "temp" print "4" print "5" for i in range(3): print "1" print "a" print "b" print "3" print "1" print "1" addr = raw_input() addr = addr[2:] addr = addr.decode('hex')[::-1] print "3" print "G" print "temp" print "4" print "5" print "A"*25 + "\x2c\x89\x04\x08" + "JUNK...
f14bc1e0d260a2daf0cee9aaeaf5d8fe24aacd12
3b63782b0c499deeb9e52b1cfe10e0de1f0c14a9
/core/ssutil.py
315b51690e120fb8094437a4a40f75804793f69b
[]
no_license
laobubu/ssland
db119efec0f1c635ae994e4308123f1108aa5f4f
80aff970c608c51f6fca1f447507f4a03fd9bbe3
refs/heads/universal
2021-01-21T15:00:04.921472
2018-04-08T15:29:15
2018-04-08T15:29:15
59,768,159
113
27
null
2018-04-08T15:29:16
2016-05-26T17:00:52
Python
UTF-8
Python
false
false
2,992
py
ssutil.py
from __future__ import absolute_import, print_function import socket import json import logging import os from shadowsocks import eventloop, common # Shadowsocks Control socket class ShadowsocksCtx(socket.socket): local_sock_file = None addr_remote = None addr_local = None def __init__(self, manager...
a92811212e6675dc6030e65efac620e291767ccb
540b4199dd80228f1d84c9b687e974cfa2c289a2
/【Python+Dash快速web应用开发】系列文章/18 项目结构篇/dash_demo_project/callbacks/statistics.py
ef9d5dcddfac35b2cab8d26fab74bbf6e9aadea3
[]
no_license
CNFeffery/DataScienceStudyNotes
1186e26c88874b89b65f841af5f78dc49429e479
d45b42b49be04ba4add9cdd18b4787fb3c334b1f
refs/heads/master
2023-08-17T07:18:43.730916
2023-07-25T14:05:17
2023-07-25T14:05:17
206,516,448
1,141
485
null
null
null
null
UTF-8
Python
false
false
1,931
py
statistics.py
from dash.dependencies import Input, Output import pandas as pd import plotly.graph_objects as go import plotly.express as px from models.statistics import Statistics from server import app statistics_data = ( pd.DataFrame(Statistics.fetch_all()).rename(columns={ 'region': '地区', 'pop_2020': '七普总人...
4121ba59848649dea3b9004a726f928001789494
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/science/py-dwave-tabu/files/example.py
1148e23e9b0ac1ec5deebb29ba5ae114df7d4cac
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
Python
false
false
124
py
example.py
from tabu import TabuSampler response = TabuSampler().sample_ising({'a': -0.5, 'b': 1.0}, {('a', 'b'): -1}) print(response)
9ba24b74098ba286ae51aa085f752da4c49f291c
ddddaa700e4642f46a2c1e1e0271a7c8ea62ba0f
/harness/determined/searcher/_remote_search_runner.py
1fc6ad5788cc9d4de6e595464ba0951432e6dcba
[ "Apache-2.0" ]
permissive
determined-ai/determined
9d563cb5ffd074c88ee5edc9bf22ab9c3cb78c7e
8239b1993f4f44390f4e88901ffaf3b12429b83c
refs/heads/main
2023-08-21T12:13:36.651298
2023-08-21T08:34:16
2023-08-21T08:34:16
253,846,879
2,531
330
Apache-2.0
2023-09-14T21:54:17
2020-04-07T16:12:29
Go
UTF-8
Python
false
false
4,051
py
_remote_search_runner.py
import logging import os import pickle from pathlib import Path from typing import Any, Dict, Iterable, List, Optional, Tuple, Union import determined as det from determined import searcher from determined.experimental import client logger = logging.getLogger("determined.searcher") class RemoteSearchRunner(searcher...
dd13113a18773db68e5b2f1e2a8de66ed378cd54
9b2e1c33a8971ecbabac34f6dce66782ac1da0ad
/pydoctor/templatewriter/util.py
a207102d1ba1cda92f1b85221eed905fdffbea55
[ "LicenseRef-scancode-warranty-disclaimer", "MIT", "Apache-2.0", "LicenseRef-scancode-other-permissive" ]
permissive
twisted/pydoctor
16cd567617b7026f43bba68930404fb21e976ca6
965ed955efde6178cb68f0882a02c34a90204447
refs/heads/master
2023-08-31T10:46:17.459825
2023-06-13T15:26:45
2023-06-13T15:26:45
29,112,171
149
45
NOASSERTION
2023-06-15T14:48:25
2015-01-12T00:47:42
Python
UTF-8
Python
false
false
7,627
py
util.py
"""Miscellaneous utilities for the HTML writer.""" import warnings from typing import (Any, Dict, Generic, Iterable, Iterator, List, Mapping, Optional, MutableMapping, Tuple, TypeVar, Union, Sequence) from pydoctor import epydoc2stan import collections.abc from pydoctor import model from twisted....
f8d888f0a750a4a4791e9214877a97e0c9a295d1
d1c2d00078520cd556f60b7213c27856f8b3460d
/sdks/python/apache_beam/runners/worker/statesampler.py
4dc7e97c140ddff31e7edfd7a79e3ce7f6c6efb7
[ "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
5,528
py
statesampler.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...
eef5af9c32764e1c1601a983e0d6fb66b5681b91
d594f3926f6379ef7c382c608cb211f507240420
/csunplugged/at_home/management/commands/_ChallengeLoader.py
88f50d52bc7e40e4a73e313a03c134511a358fd5
[ "LicenseRef-scancode-secret-labs-2011", "MIT", "OFL-1.1", "LGPL-2.0-or-later", "AGPL-3.0-only", "CC-BY-4.0", "Apache-2.0", "BSD-3-Clause", "CC-BY-SA-4.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference" ]
permissive
uccser/cs-unplugged
0b9151f84dd490d5b90771a3706327a623d39edc
363e281ff17cefdef0ec61078b1718eef2eaf71a
refs/heads/develop
2023-08-25T08:45:29.833025
2023-08-22T02:58:35
2023-08-22T02:58:35
66,315,075
200
41
MIT
2023-09-14T02:15:40
2016-08-22T23:16:40
Python
UTF-8
Python
false
false
2,892
py
_ChallengeLoader.py
"""Custom loader for loading activity challenges.""" from django.db import transaction from utils.TranslatableModelLoader import TranslatableModelLoader from utils.check_required_files import find_image_files from at_home.models import Challenge CHALLENGES_FILENAME = 'challenges.yaml' class ChallengeLoader(Translat...
423025567e3e743059dd5693b25833b19c143e07
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/checkov/kustomize/utils.py
ad8993b2a46c85caa30861ee6664a09c3295335f
[ "Apache-2.0" ]
permissive
bridgecrewio/checkov
aeb8febed2ed90e61d5755f8f9d80b125362644d
e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d
refs/heads/main
2023-08-31T06:57:21.990147
2023-08-30T23:01:47
2023-08-30T23:01:47
224,386,599
5,929
1,056
Apache-2.0
2023-09-14T20:10:23
2019-11-27T08:55:14
Python
UTF-8
Python
false
false
2,164
py
utils.py
from __future__ import annotations import logging import subprocess # nosec def get_kustomize_version(kustomize_command: str) -> str | None: try: proc = subprocess.run([kustomize_command, "version"], capture_output=True) # nosec version_output = proc.stdout.decode("utf-8") if "Version:...
aa0c01ee2c498663577e9e96d16dff1c68b5b6f0
a79c7c01b97e391bcd833a8b7b1dfd7cf982d59c
/cherry/nn/__init__.py
e95d9a997fb4f94399d3b5c729678e3417b11425
[ "Apache-2.0" ]
permissive
learnables/cherry
32f3a545563e0446ad3b0243a5cc8225033c0a7f
f4164a53dcc762ac5ce53a761fb54f3f69847f90
refs/heads/master
2023-06-27T14:20:06.027516
2023-06-26T01:34:54
2023-06-26T01:34:54
159,752,575
185
33
Apache-2.0
2023-06-26T01:34:56
2018-11-30T01:46:38
Python
UTF-8
Python
false
false
297
py
__init__.py
#!/usr/bin/env python3 from .policy import Policy from .action_value import ActionValue, Twin from .state_value import StateValue from .init import robotics_init_ from .robotics_layers import RoboticsLinear from .epsilon_greedy import EpsilonGreedy from .mlp import MLP from .misc import Lambda
13a864bcc619bbaedfc43f750a5e63da08f9e6b6
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/devel/ice/files/patch-cpp-allTests.py
e3131349173f486508be8bf6fa196312b6307162
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
Python
false
false
1,677
py
patch-cpp-allTests.py
--- cpp/allTests.py.orig 2019-08-12 19:54:18 UTC +++ cpp/allTests.py @@ -68,7 +68,7 @@ tests = [ ("Ice/servantLocator", ["core"]), ("Ice/interceptor", ["core"]), ("Ice/stringConverter", ["core"]), - ("Ice/udp", ["core"]), + ("Ice/udp", ["core", "nofreebsdjail"]), ("Ice/defaultServant", ["core"...
7009570bdb403a9299d159d780e961e3a17805d5
d3ef2463f556d6cd166eb29d3a5f5b210a6402e7
/cupy/_math/floating.py
27f51749419873f2f7f52f95d48546996c3097e4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cupy/cupy
ce7a010a57504dbfe4fb5af10d354a22e79f4907
96105afb78aa3f8380834d2516184b8365e23fcb
refs/heads/main
2023-08-31T00:36:47.967611
2023-08-30T09:19:27
2023-08-30T09:19:27
72,523,920
7,505
1,072
MIT
2023-09-14T01:04:42
2016-11-01T09:54:45
Python
UTF-8
Python
false
false
1,617
py
floating.py
from cupy import _core from cupy._math import ufunc from cupy_backends.cuda.api import runtime signbit = _core.create_ufunc( 'cupy_signbit', ('e->?', 'f->?', 'd->?'), 'out0 = signbit(in0)', doc='''Tests elementwise if the sign bit is set (i.e. less than zero). .. seealso:: :data:`numpy.signbit` ...
c5fe26380eb62a36506722c26505f05daeb985f4
1aa4a01014ff5408c8979d2ee91435515a376bcb
/src/ui/property_editor_backend.py
63c16fd729a3108a445bab227a09ca0c318623c3
[]
no_license
USEPA/SWMM-EPANET_User_Interface
49b41b27bfcf7a934203935ccac3cee2ed7c538c
d49a589fc923c716c9ff607228282073126ce6cc
refs/heads/dev-ui-py3qt5
2022-10-06T14:55:55.322050
2022-09-26T19:25:09
2022-09-26T19:25:09
48,242,880
121
77
null
2020-09-15T15:18:32
2015-12-18T15:41:52
Python
UTF-8
Python
false
false
8,778
py
property_editor_backend.py
import PyQt5.QtCore as QtCore import PyQt5.QtGui as QtGui from PyQt5.QtWidgets import QCheckBox, QComboBox, QTableWidgetItem, QLineEdit, QFontComboBox, QSizePolicy from enum import Enum import ui.convenience class PropertyEditorBackend: def __init__(self, table, hint_label, main_form, edit_these, new_item): ...
f678366a23676ca8007fca9d3c652451ebced742
c0ff06b4858c52a5f9b27b3e5df4495840b5a812
/data/feedly_data.py
d36beca69c6814d7ede75b57713648cb364ffb4f
[ "MIT" ]
permissive
feedly/transfer-nlp
345877167ac827370b42b67c767e3157d050b40e
85515b73165c299b7a9b96d3608bd4e8ee567154
refs/heads/master
2022-06-29T20:18:45.796121
2020-05-28T17:31:53
2020-05-28T17:31:53
175,287,526
314
21
MIT
2020-05-28T19:04:03
2019-03-12T20:00:31
Python
UTF-8
Python
false
false
7,568
py
feedly_data.py
""" This file aims at using the python wrapper around the Feedly API to build a dataset of articles given a feed name Note: You need a Feedly account and a token to use this script. Visit the Feedly API page to generate a token: https://developer.feedly.com/ """ import os from pathlib import Path from random import sh...
47159d380f814a5982df0fa3bbbebfef9033979e
88ce889124078382c9835c2aeca101ca79302bca
/jobboard/models.py
6acfdf2817ed9bab850b55c863d8eb864f8036ed
[ "BSD-3-Clause" ]
permissive
DjangoGirls/djangogirls
9cb6c145e9fa10bcf3f06a70d025ff31d96346eb
2b2fc151354906ac116dd8cd9a9f4f412dee26af
refs/heads/main
2023-08-30T15:43:27.162564
2023-07-27T11:51:40
2023-07-27T11:51:40
20,439,809
504
347
BSD-3-Clause
2023-08-30T09:25:53
2014-06-03T11:13:57
Python
UTF-8
Python
false
false
686
py
models.py
from django.db import models from tinymce import models as tinymce_models from globalpartners.models import GlobalPartner class Job(models.Model): company = models.ForeignKey(GlobalPartner, on_delete=models.CASCADE) role = models.CharField(max_length=200) location = models.CharField(max_length=200) s...
c78691edbe5adfc255078f990ce17af0dcb38afd
06cb7dc8d34b13de8c3ab617089a986ce91d9510
/pymysql/connections.py
843bea5e0f8c7a1c6f33a73b9d7ef7d21d22b27c
[ "MIT" ]
permissive
PyMySQL/PyMySQL
060c12ead432563f5f881f65475fb7ab308b1908
6b10225c94087d47782049aafc8e12efa512337b
refs/heads/main
2023-08-29T19:37:22.643725
2023-06-30T16:29:58
2023-06-30T16:29:58
2,114,213
7,442
1,604
MIT
2023-09-14T21:55:03
2011-07-27T17:38:47
Python
UTF-8
Python
false
false
53,589
py
connections.py
# Python implementation of the MySQL client-server protocol # http://dev.mysql.com/doc/internals/en/client-server-protocol.html # Error codes: # https://dev.mysql.com/doc/refman/5.5/en/error-handling.html import errno import os import socket import struct import sys import traceback import warnings from . import _auth...
cb5bb1d20112ffe6b040d08124fa84161f725d0d
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/refactoring/makeFunctionTopLevel/methodInsertionPositionSameFileClassAndUsageNotTopLevel.py
8873a35a3e01164b5a436423b74daa839686c774
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
90
py
methodInsertionPositionSameFileClassAndUsageNotTopLevel.py
if True: class C: def met<caret>hod(self): pass C().method()
023f86b7e8972f3fd165bc30692d6989ee4683c1
e8378466a24fb0fe0a1e9bf1af7f41b77d2c20b4
/hoomd/pytest/test_sorter.py
03b66691cd40758b211778a3fc63b2424533b205
[ "BSD-3-Clause" ]
permissive
glotzerlab/hoomd-blue
eeabed0fee10a76b50d99b94ae0e93d3dc1d8037
abdd76bc854358426e4cf055badd27f80df6ec85
refs/heads/trunk-patch
2023-09-02T21:32:24.986845
2023-08-22T19:02:21
2023-08-22T19:02:21
147,663,007
287
131
BSD-3-Clause
2023-09-08T11:59:16
2018-09-06T11:23:27
C++
UTF-8
Python
false
false
1,610
py
test_sorter.py
# Copyright (c) 2009-2023 The Regents of the University of Michigan. # Part of HOOMD-blue, released under the BSD 3-Clause License. """Test ParticleSorter.""" from hoomd.conftest import operation_pickling_check import hoomd def test_attributes(): """Test ParticleSorter attributes before attaching.""" trigge...
74d17b41224b12d8de1aafce220331160c4bd645
c24b28c0dc4ad8f83845f4c61882f1e04d49b5cd
/Dash Components/Checklist/medium_challenge_solution.py
d31ef41eff8eaadd7f726c6a0e505283d24636f1
[]
no_license
Coding-with-Adam/Dash-by-Plotly
759e927759513d96060a770b1e0b0a66db13f54f
9f178f1d52536efd33827758b741acc4039d8d9b
refs/heads/master
2023-08-31T17:23:02.029281
2023-08-08T05:12:50
2023-08-08T05:12:50
234,687,337
1,293
1,822
null
2023-07-31T15:47:07
2020-01-18T05:36:28
Jupyter Notebook
UTF-8
Python
false
false
356
py
medium_challenge_solution.py
# solution to disable only the March checkbox html.Div([ dcc.Checklist( id='my_checklist', options=[ {'label': x, 'value': x, 'disabled':True} if x=='March' else {'label': x, 'value': x, 'disabled':False} for x in df['Month Call...
9b31a5e19975ea60ebca57445eec00d576db4b2f
a902290fb3b911676358ae4d93f83061a6c2bd0f
/InvenTree/company/migrations/0061_remove_supplierpart_pack_size.py
0ae404be05dd7427526c5d5a4eb0ecd49309a218
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
inventree/InvenTree
a15e54182c9bfafdf5348cc9a66da1004e23e760
e88a8e99a5f0b201c67a95cba097c729f090d5e2
refs/heads/master
2023-09-03T19:32:35.438375
2023-08-30T00:25:40
2023-08-30T00:25:40
85,894,461
3,077
549
MIT
2023-09-14T14:21:01
2017-03-23T01:44:10
Python
UTF-8
Python
false
false
338
py
0061_remove_supplierpart_pack_size.py
# Generated by Django 3.2.19 on 2023-05-19 04:03 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('company', '0060_auto_20230519_0344'), ] operations = [ migrations.RemoveField( model_name='supplierpart', name='pack_size',...
8d5dbb621f49d012ed0153daa402508de6b4a8d2
380a47268c5975473a2e7c38c747bc3bdbd981b1
/benchmark/third_party/DeepSpeed/deepspeed/ops/transformer/inference/ds_attention.py
d9df8e98a3de190e4020bc1777c0007bc4144790
[ "MIT", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
FMInference/FlexGen
07aa9b1918c19b02077e13ad07e76840843810dd
d34f7b4b43ed87a374f394b0535ed685af66197b
refs/heads/main
2023-07-24T02:29:51.179817
2023-07-21T22:38:31
2023-07-21T22:38:31
602,270,517
6,821
411
Apache-2.0
2023-07-07T22:59:24
2023-02-15T21:18:53
Python
UTF-8
Python
false
false
22,801
py
ds_attention.py
''' Copyright 2022 The Microsoft DeepSpeed Team ''' import math import torch from torch.autograd import Function from ... import op_builder import torch.nn as nn from deepspeed import comm as dist minus_inf = -10000.0 inference_cuda_module = None class DeepSpeedSelfAttentionFunction(Function): @staticmethod ...
fa6ff33ff143fecee07f9a6d774def273c2e3303
3526b979d4860971f517edc12e307d714f48c354
/razorpay/constants/__init__.py
a9db4c3c275ccebfc7de83ec5a662c4d4591062d
[ "MIT" ]
permissive
razorpay/razorpay-python
9adda56cc9dd25b6ff5f7f1a5879844f35666811
c07bf8baf100541786998b87ada035eaec308aaf
refs/heads/master
2023-08-17T10:15:11.744848
2023-08-16T08:21:45
2023-08-16T08:21:45
46,411,248
153
93
MIT
2023-08-16T08:21:47
2015-11-18T10:20:33
Python
UTF-8
Python
false
false
183
py
__init__.py
from .http_status_code import HTTP_STATUS_CODE from .error_code import ERROR_CODE from .url import URL __all__ = [ 'HTTP_STATUS_CODE', 'ERROR_CODE', 'URL', ]
b58c01787b06c49594f84e6faa2a4dd752f0574d
9577725de28e621e4b0ec275251a2b2e7ecb0261
/test/unit/object/test_terms_of_service.py
928a1eeee81f9bd622a70e609e8aa9ecbbe41248
[ "Apache-2.0" ]
permissive
box/box-python-sdk
0b7014d69da14baacf9ac777c347664b924325b5
4f11d7596488194fc740936fe987f42864003d41
refs/heads/main
2023-08-17T04:33:23.692675
2023-08-11T11:24:36
2023-08-11T11:24:36
30,386,388
424
285
Apache-2.0
2023-09-14T11:43:27
2015-02-06T00:30:55
Python
UTF-8
Python
false
false
7,926
py
test_terms_of_service.py
import json from boxsdk.exception import BoxAPIException from boxsdk.config import API from boxsdk.object.terms_of_service import TermsOfService from boxsdk.object.terms_of_service_user_status import TermsOfServiceUserStatus def test_get(test_terms_of_service, mock_box_session): created_at = '2016-05-18T17:38:03...
6d8c29acbe6923d8f17886ff7b1bc893a169a54b
450201e3dac529d165a0bf96c0cd31b644d53323
/mistral/tests/unit/policies/test_actions.py
69a539a385e90839c16c8ebe835c7db35c5fec0b
[ "Apache-2.0" ]
permissive
openstack/mistral
c840b971c89a054f4953831480abc4d266df307e
7baff017d0cf01d19c44055ad201ca59131b9f94
refs/heads/master
2023-08-20T18:42:20.116390
2023-07-05T15:39:49
2023-07-05T15:39:49
13,968,255
214
117
Apache-2.0
2021-01-28T06:06:45
2013-10-29T20:46:49
Python
UTF-8
Python
false
false
7,758
py
test_actions.py
# Copyright 2018 OVH SAS. 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 agreed t...
a4f0e88ba74afb99d294a0e7e236d2840d24b386
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v3/model/pod_config.py
b8f04c1c1ebd82a70830a5dfd7d3b7dbd537ce58
[ "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
7,284
py
pod_config.py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class PodConfig: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
0869def35930576a7637cab42458b58e67439f10
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Configuration/StandardSequences/python/DD4hep_GeometrySimPhase2_cff.py
7d349097b13cf5df79f04cce2439d6beea39eec7
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
113
py
DD4hep_GeometrySimPhase2_cff.py
import FWCore.ParameterSet.Config as cms from Configuration.Geometry.GeometryDD4hepExtended2026D49_cff import *
3e64a2d8808143bfe4073b776e2b1eaff4c41674
4786a206a5c93e815c2bfeb4fffaff0b8d3de1b1
/plura_dl/options.py
04583083240fda10e8c9f37c084665f3dfb62e6b
[ "MIT" ]
permissive
rojter-tech/pluradl.py
83e7d9eda5053665efab1853c29a80ed789295d2
eb4f7976fb737ca02c2ae036c982caa620c2cd28
refs/heads/master
2023-01-22T19:18:35.234610
2020-05-13T05:07:38
2020-05-13T05:07:38
178,549,777
435
64
MIT
2020-04-23T23:56:18
2019-03-30T11:28:18
Python
UTF-8
Python
false
false
42,188
py
options.py
from __future__ import unicode_literals import os.path import optparse import re import sys from .downloader.external import list_external_downloaders from .compat import ( compat_expanduser, compat_get_terminal_size, compat_getenv, compat_kwargs, compat_shlex_split, ) from .utils import ( pre...
b4075957ea68d42a21eb5c0a90515e5f107587e8
e7efae2b83216d9621bd93390959d652de779c3d
/clickhouse/datadog_checks/clickhouse/utils.py
3024d4f08433a5005aa529d71371a2f1ab1e0497
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT", "BSD-3-Clause-Modification", "Unlicense", "Apache-2.0", "LGPL-3.0-only", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "CC0-1.0" ]
permissive
DataDog/integrations-core
ee1886cc7655972b2791e6ab8a1c62ab35afdb47
406072e4294edff5b46b513f0cdf7c2c00fac9d2
refs/heads/master
2023-08-31T04:08:06.243593
2023-08-30T18:22:10
2023-08-30T18:22:10
47,203,045
852
1,548
BSD-3-Clause
2023-09-14T16:39:54
2015-12-01T16:41:45
Python
UTF-8
Python
false
false
700
py
utils.py
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import re # We tell the server to not send the stack trace but # the library leaves the start indication regardless. STACK_TRACE_LEFTOVER = re.compile(r'\.?\s*Stack trace:\s*$') class ErrorSanitizer(obj...
e668aa89bf16465bdcdb210f1cc81f8ef16ca7a8
5e702785cf114c8d5bfbed19401238d546cb3e55
/find_tree_sum.py
a9bf869017aa009687869bd878eb405187b2e94c
[]
no_license
roseperrone/interview-questions
4b2939d111109006ca688052a18dae004bc6b8bd
d45a7c6a3d28d5f34129fd0b55f1a0d0246bd5c3
refs/heads/master
2021-01-22T02:34:42.270822
2015-03-09T02:16:17
2015-03-09T02:16:17
21,803,089
130
52
null
2020-10-02T09:58:04
2014-07-14T00:46:54
Python
UTF-8
Python
false
false
1,018
py
find_tree_sum.py
class Node(object): def __init__(self, data, left, right): self.data = data self.left = left self.right = right def all_paths_that_sum_to(target, head, path): ''' Returns all paths thaht sum up to the target, either continuing the path, or beginning at a new node at head or below. ''' if targ...
45a189c69b5d959f9411645e4f7bc10e257fbc63
17b8766aca1032c117f950d37e689d1464c51077
/scripts/docsgen.py
7d5e7227c84f62a165be060f15720b8159af61ac
[ "MIT" ]
permissive
egison/egison
4a4a3023beacc9a6bda9d553e719463ad309f9f6
9cd02eca2c3c5716471d18c35adf4f6286e9e259
refs/heads/master
2023-08-13T11:45:22.712868
2022-12-22T23:14:12
2022-12-22T23:14:12
8,212,790
714
42
MIT
2022-06-18T12:11:34
2013-02-15T04:35:21
Haskell
UTF-8
Python
false
false
5,216
py
docsgen.py
import re from typing import List, Tuple # Document generator # # Usage: # At the root of this repository, run: # # $ python3 scripts/docsgen.py # # Requirements: # * Only the ``assertEqual`` assertions will be converted into the document. # * The ``assertEqual`` label must be the name of the functions/matchers # an...
6f4155fe22c84fa2a577c356dfe4669e7dd99962
f9308d5a8efe2dbb48e9cc87cd06405b60a9dc7b
/samples/python/apidocs/ee_number_getinfo.py
37db10d740bc04b2daf5853254b874af9e76b66e
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
google/earthengine-community
4e054b421f66f03507d58668084aee981062fc24
ce931040c518860f8788b4888c0acfdebd2952fc
refs/heads/master
2023-09-01T14:47:54.812703
2023-08-31T23:01:00
2023-08-31T23:01:39
200,732,820
428
552
Apache-2.0
2023-09-13T21:46:51
2019-08-05T21:42:11
Jupyter Notebook
UTF-8
Python
false
false
1,350
py
ee_number_getinfo.py
# Copyright 2022 The Google Earth Engine Community 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
15b4679ce02bb6d3893c0b5465264eab44e4cfaf
c46754b9600a12df4f9d7a6320dfc19aa96b1e1d
/scripts/fsmt/gen-card-facebook-wmt19.py
e75406b261dcb17770093f7a3fe48424c3a8228b
[ "Apache-2.0" ]
permissive
huggingface/transformers
ccd52a0d7c59e5f13205f32fd96f55743ebc8814
4fa0aff21ee083d0197a898cdf17ff476fae2ac3
refs/heads/main
2023-09-05T19:47:38.981127
2023-09-05T19:21:33
2023-09-05T19:21:33
155,220,641
102,193
22,284
Apache-2.0
2023-09-14T20:44:49
2018-10-29T13:56:00
Python
UTF-8
Python
false
false
5,510
py
gen-card-facebook-wmt19.py
#!/usr/bin/env python # Copyright 2020 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...
ea81cc97dfe8acdb61fc0e3c7f8b1bc76486d3cb
856e9a8afcb81ae66dd998b0d2cc3556c9f315ea
/tests/plugins/test_tidy_filters.py
fbf85c47d5f65eebf5f67020f67082192ff0360b
[ "MIT" ]
permissive
dexy/dexy
1d5c999830de4663c05a09f4cd00b1628dfc8d46
323c1806e51f75435e11d2265703e68f46c8aef3
refs/heads/develop
2023-06-10T08:02:45.076551
2021-02-28T22:40:41
2021-02-28T22:40:41
1,506,989
141
34
MIT
2020-06-15T17:44:50
2011-03-21T14:48:28
Python
UTF-8
Python
false
false
1,375
py
test_tidy_filters.py
from tests.utils import runfilter from dexy.exceptions import UserFeedback min_valid_html = """ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <TITLE></TITLE> """ invalid_html = "<html></html>" def test_tidyerrors(): with runfilter("tidyerrors", invalid_html, ext=".html") as doc: output = str(do...
615672982b8b28fe95c5b867c14ec62010f1b98c
57c3f1818eedc5768618f389bd585135db44e4c3
/tests/test_check_size.py
fab315a5c81c645e81f19840ac63c323611828a0
[ "MIT" ]
permissive
wemake-services/docker-image-size-limit
ab23a7ba6fcb1b6ea78e8681457934ec7130963a
04ff592516f5cbc103db8b77b0bbfddac4ab83d8
refs/heads/master
2023-05-13T05:17:49.557515
2023-05-05T15:14:15
2023-05-05T15:14:15
173,497,847
117
6
MIT
2023-05-05T15:14:16
2019-03-02T20:54:07
Python
UTF-8
Python
false
false
869
py
test_check_size.py
from docker_image_size_limit import check_image_size def test_check_size_binary_overflow(docker_client, image_name): """Checks size with binary limit.""" overflow = check_image_size(docker_client, image_name, '1024') assert overflow > 0 def test_check_size_binary_correct(docker_client, image_name): ...
8315ce87e4cddd2b13af332e44447756841a1159
c1b7428f14423ef2c1b2c085640b87951400feed
/hivemind/compression/floating.py
2bda9c399fda83178cedbf2840122c6dc898d9a2
[ "MIT" ]
permissive
learning-at-home/hivemind
2cc28d36a9dd91f790e60912159232f197972428
27318f96a62bb4c7c8804cb14359d8a70e95af5d
refs/heads/master
2023-08-31T11:06:56.550557
2023-08-31T08:12:03
2023-08-31T08:12:03
243,530,669
1,662
146
MIT
2023-09-05T22:18:48
2020-02-27T13:50:19
Python
UTF-8
Python
false
false
4,067
py
floating.py
import math import numpy as np import torch from hivemind.compression.base import CompressionBase, CompressionInfo from hivemind.proto import runtime_pb2 class Float16Compression(CompressionBase): compression_type = runtime_pb2.CompressionType.FLOAT16 FP16_MIN, FP16_MAX = torch.finfo(torch.float16).min, tor...
51f2d801419ae18441ad2c4d12399e7fd35989d2
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayPcreditHuabeiPcreditamountQueryprocessorQueryResponse.py
e7c6986674e12f15208abb35fa59abb9670bc7db
[ "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,588
py
AlipayPcreditHuabeiPcreditamountQueryprocessorQueryResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.TbapiQueryAmountResponse import TbapiQueryAmountResponse class AlipayPcreditHuabeiPcreditamountQueryprocessorQueryResponse(AlipayResponse): def __init__(self): ...
f0648557fec028167a74f711566ef87dfb21cad0
3afe7348e830a0c5139fb7cf393736e18b59ab4a
/src/clusterfuzz/_internal/tests/appengine/handlers/cron/grouper_test.py
4d5426ccdb306e30c604ac88a162ae2976ab1b69
[ "Apache-2.0" ]
permissive
google/clusterfuzz
00845899e081dbbb89b70a75ce0b7eba3da73b02
6501a839b27a264500244f32bace8bee4d5cb9a2
refs/heads/master
2023-09-03T17:34:17.821599
2023-09-01T16:11:51
2023-09-01T16:11:51
168,060,021
5,420
639
Apache-2.0
2023-09-13T16:40:54
2019-01-29T00:19:40
Python
UTF-8
Python
false
false
23,073
py
grouper_test.py
# Copyright 2019 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 agreed to in writing, ...
1856fafef02ca28b008db4e9f62b9b1031e00d4b
eb76f82c474a327759888306910ccf584aee7ba1
/ocrd_network/ocrd_network/server_utils.py
fffa8e801513eae3e84060e3dc1a021bd18f269f
[ "Apache-2.0" ]
permissive
OCR-D/core
cc2aa388f43823529437924c1d653e48387a180a
5d627396a5dfe9abcf11840608c87c94e1353647
refs/heads/master
2023-08-19T01:39:53.219760
2023-08-18T14:37:02
2023-08-18T14:37:02
112,337,283
112
26
Apache-2.0
2023-09-13T16:12:03
2017-11-28T13:13:24
Python
UTF-8
Python
false
false
3,169
py
server_utils.py
from fastapi import FastAPI, HTTPException, status, BackgroundTasks from ocrd_validators import ParameterValidator from .database import ( db_get_processing_job, db_get_workspace, ) from .models import PYJobInput, PYJobOutput async def _get_processor_job(logger, processor_name: str, job_id: str) -> PYJobOutpu...
85ee018284197d16cba5a72209c0bb566d240cfe
1d88dfbd224ba0cdfaf4834dc4202410cba3db16
/docs/jupyter/jupyter_run_all.py
5cbb244d56d5aaa4d5cd8a4533547103bf032513
[ "MIT" ]
permissive
isl-org/Open3D
5217d525f505839777078127b5da7adc7b4bba2f
b620539a445206a7e07fed33fb4dcc6dff06c1a5
refs/heads/master
2023-09-01T21:42:37.981501
2023-09-01T15:08:08
2023-09-01T15:08:08
75,413,130
4,535
908
NOASSERTION
2023-09-14T18:07:41
2016-12-02T16:40:38
C++
UTF-8
Python
false
false
1,966
py
jupyter_run_all.py
# ---------------------------------------------------------------------------- # - Open3D: www.open3d.org - # ---------------------------------------------------------------------------- # Copyright (c) 2018-2023 www.open3d.org # SPDX-License-Identifier: MIT # ---------...
d50a70093e55df15818499477b9d6b883ef9f097
549270020f6c8724e2ef1b12e38d11b025579f8d
/recipes/dav1d/all/conanfile.py
8a1651ceed70870518a78191f8749308930186a3
[ "MIT" ]
permissive
conan-io/conan-center-index
1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43
3b17e69bb4e5601a850b6e006e44775e690bac33
refs/heads/master
2023-08-31T11:34:45.403978
2023-08-31T11:13:23
2023-08-31T11:13:23
204,671,232
844
1,820
MIT
2023-09-14T21:22:42
2019-08-27T09:43:58
Python
UTF-8
Python
false
false
4,924
py
conanfile.py
from conan import ConanFile from conan.tools.apple import fix_apple_shared_install_name from conan.tools.env import VirtualBuildEnv from conan.tools.files import copy, get, replace_in_file, rm, rmdir from conan.tools.layout import basic_layout from conan.tools.meson import Meson, MesonToolchain from conan.tools.microso...
4852148dc8714bc5ac358bc673d494e76e05bd63
ac2f43c8e0d9649a7f063c59b3dffdfed9fd7ed7
/tests2/tests/wedge100/test_bmc_scripts_sysfs_dependency.py
c562a5ea4b3a2e87bf12aca7a7ed5c522263cd00
[]
no_license
facebook/openbmc
bef10604ced226288600f55248b7f1be9945aea4
32777c66a8410d767eae15baabf71c61a0bef13c
refs/heads/helium
2023-08-17T03:13:54.729494
2023-08-16T23:24:18
2023-08-16T23:24:18
31,917,712
684
331
null
2023-07-25T21:19:08
2015-03-09T19:18:35
C
UTF-8
Python
false
false
2,962
py
test_bmc_scripts_sysfs_dependency.py
#!/usr/bin/env python3 # # Copyright 2018-present Facebook. All Rights Reserved. # # This program file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; version 2 of the License. # # This program is distributed ...
fb834e0af68078b0b1c77d94d0fe3a58e9495278
7757cdb97fe9beab33be15e7218e0f23b1f08cac
/legacy/adobe_tools/munki_preinstall_adobe.py
5ef22c705e5c16750f26658191b5e3efa3bfbbe2
[ "BSD-3-Clause", "Apache-2.0", "LicenseRef-scancode-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
facebook/IT-CPE
19dcabff1706486f8144b99c04d0760b4af7017e
25f98e278537e2fcb76b3691f0f1719a26eecdd3
refs/heads/main
2023-08-22T09:26:58.820834
2023-08-15T20:38:53
2023-08-15T20:38:53
17,845,857
537
190
Apache-2.0
2023-03-08T19:46:15
2014-03-17T22:35:48
Ruby
UTF-8
Python
false
false
1,511
py
munki_preinstall_adobe.py
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. """Check to see whether an Adobe entitlement has been added to the user.""" from __future__ import print_function import sys import adobe_tools target_product = sys.argv[1] me = ldap_lookup() # Replace this with your own user lookup method email ...
a0c9c2f43d8e98499134e45583493fc93df05c85
4805a71711625735215cc1a773a85712be305b59
/Demos/benchmarks/chaos.py
d770ff41c0df0d2749080e5a86ef84a80c0ecd3e
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cython/cython
0a75b75b7eaf19eeedaaebca9d49adb603e3e8f5
6ba3daf319d94058de74e8e7f53f932092b38441
refs/heads/master
2023-09-04T11:09:56.569277
2023-09-04T07:45:47
2023-09-04T07:45:47
1,099,265
8,352
1,704
Apache-2.0
2023-09-14T06:33:34
2010-11-21T07:44:20
Python
UTF-8
Python
false
false
9,903
py
chaos.py
# Copyright (C) 2005 Carl Friedrich Bolz """create chaosgame-like fractals """ from __future__ import division, print_function import cython import time import operator import optparse import random random.seed(1234) from functools import reduce if not cython.compiled: from math import sqrt class GVector(...
1cf18891e71e25e7d3c677334315f99c8f73d102
e391a89618ced6acc33a47c30060ba49ac975326
/bff_positioning/data/data_preprocessing.py
f963839eeb88222139f3e6c6ac8e2b0546f911d3
[ "MIT" ]
permissive
gante/mmWave-localization-learning
a90f7f574cce97604770e3850bdd34dc335fa4f0
2549fd500766a3a5ec7c417b7c01ac8eaad18fa3
refs/heads/master
2023-04-06T06:21:53.845493
2023-03-25T12:56:23
2023-03-25T12:56:23
128,225,040
105
34
MIT
2023-03-25T12:56:25
2018-04-05T15:20:48
Python
UTF-8
Python
false
false
13,510
py
data_preprocessing.py
""" Contains a class that converts the pre-processed binary file into a numpy array. The logic behind each conversion step is thoroughly document through comments in the code. """ import pickle import os import struct import logging import hashlib import numpy as np from tqdm import tqdm import matplotlib class Prepr...
371c8615c4e59895a4a32e18b8526d0d6e574047
1652fa9949b64cc3d45a0bb86d86892a282ad678
/pmdarima/preprocessing/exog/__init__.py
97cb86cef957ed1305fe4421e89dcd0fcff5e862
[ "MIT" ]
permissive
alkaline-ml/pmdarima
2e19f7a9f25b395ce6f000de2d0575138bcddc9a
1bb0ef5246c4e34712ef3e7843cf51a64b62bf0a
refs/heads/master
2023-08-10T20:19:23.041170
2023-07-03T18:08:53
2023-07-03T18:08:53
86,715,491
1,018
160
MIT
2023-08-07T13:28:03
2017-03-30T14:58:30
Python
UTF-8
Python
false
false
236
py
__init__.py
# -*- coding: utf-8 -*- from .dates import * from .fourier import * # don't want to accidentally hoist `base` to top-level, since preprocessing has # its own base __all__ = [s for s in dir() if not (s.startswith("_") or s == 'base')]
e9a53fae9d34cf5f1649a6528d2460275ecf4da4
807438e6974bf68762208ec24cf824dd0e5fabd6
/docs/examples/compute/libvirt/connect_qemu_kvm.py
ac4dfd99a9959c2dcb9f9a8fa39de2367da6db1b
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
apache/libcloud
019c5bd839dedd2423f9604936886eaff252e04b
abba8c1719a8bda6db8efde2d46fd1b423ae4304
refs/heads/trunk
2023-08-31T20:14:22.369970
2023-08-21T20:17:57
2023-08-21T20:17:57
419,555
1,644
968
Apache-2.0
2023-09-13T19:34:44
2009-12-11T09:00:14
Python
UTF-8
Python
false
false
165
py
connect_qemu_kvm.py
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver cls = get_driver(Provider.LIBVIRT) driver = cls(uri="qemu:///system")
0ca5501628372792f058fd8ceb162ae6d4ff2114
9a689f5a50d19aad6a529d6f28878fae4623bd61
/aget/configure.py
fa583dea2070e36b12833b869a5512eee00ea8ad
[]
no_license
PeterDing/aget
460f429824056489d89dc418f937f947cb3b3060
99f98a1e858afe1705e383d731c27dc3bcbfd4a4
refs/heads/master
2020-06-30T15:32:39.074154
2018-12-22T04:04:49
2018-12-22T04:04:49
74,362,505
149
9
null
2018-12-22T03:32:54
2016-11-21T12:42:28
Python
UTF-8
Python
false
false
1,452
py
configure.py
# -*- coding: utf-8 -*- import os import configparser import urllib from .utils import get_chuck_size DEFAULT_CONFIG_FILE = os.path.join( os.path.dirname(__file__), 'config') USER_CONFIG_FILE = os.path.join( os.path.expanduser('~'), 'config') def configure(args): if os.path.exists(USER_CONFIG_FILE): ...
c531fcd26de98b6cfc96e8e463367471dccbacb9
4846c0e7cf3cf1335c797106afe880d1b44d3e71
/ontobio/validation/tools.py
0c57dea2e0ad880fce1091b0fc288c98974b1f56
[]
permissive
biolink/ontobio
1f2825edab68d7e52f4e262c82b173e6cc978d9f
3dd9050f1c53efd63003e4adfe9d9e27e4557b56
refs/heads/master
2023-08-31T13:43:01.545837
2023-08-30T16:56:10
2023-08-30T16:56:10
88,679,857
125
33
BSD-3-Clause
2023-09-13T23:50:27
2017-04-18T23:36:22
Python
UTF-8
Python
false
false
1,322
py
tools.py
import gzip import click import os from functools import wraps def gzips(file_function): @wraps(file_function) def wrapper(*args, **kwargs): output_file = file_function(*args, **kwargs) if isinstance(output_file, list): for o in output_file: zipup(o) else: ...
c74dea58b48df6d68c1b9a88d333f4373612a9f9
8d77f3b72dc52b85ee0c4ef6ba06f63a6920841f
/python/aitemplate/compiler/transform/toposort.py
8fb6411e873ca1465b90b7ed4e625284316a6bf0
[ "Apache-2.0" ]
permissive
facebookincubator/AITemplate
b643c217e1d15f7f17dab1eb1cc6855eab664b97
c60dc19788217556ba12ea378c02b9fd0aea9ffe
refs/heads/main
2023-08-28T18:22:15.828008
2023-08-28T14:43:41
2023-08-28T14:43:41
514,321,895
4,065
334
Apache-2.0
2023-09-14T04:53:57
2022-07-15T15:40:58
Python
UTF-8
Python
false
false
4,948
py
toposort.py
# Copyright (c) Meta Platforms, Inc. and affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
bbe61b8bb5354a6a8d4cfe5ddea83448f6cfacba
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/surepetcare/test_binary_sensor.py
91677751e96522b32dcfc17ae2b7b4b22a260edf
[ "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
1,324
py
test_binary_sensor.py
"""The tests for the Sure Petcare binary sensor platform.""" from homeassistant.components.surepetcare.const import DOMAIN from homeassistant.core import HomeAssistant from homeassistant.helpers import entity_registry as er from homeassistant.setup import async_setup_component from . import HOUSEHOLD_ID, HUB_ID, MOCK_...
63cf7ea693d5c1df040b57de95fa34506b2f5bc8
2a3ec4afa3e0c84218958f389b6fc6a7fdf48ba2
/FrontEnd/type_corpus.py
626171818a49e7e1ca5367015afcfee099298cf6
[ "Apache-2.0" ]
permissive
robertmuth/Cwerg
5ee8ce7c7033961016fef8d5c64c3e2b9612dfb8
8f83cdfbaf3f1d1a0b7089fdce0c73de545d0fa8
refs/heads/master
2023-09-05T05:38:18.100790
2023-09-04T14:10:51
2023-09-04T14:10:51
223,616,426
292
11
null
null
null
null
UTF-8
Python
false
false
17,141
py
type_corpus.py
"""All types have a canonical representation in the TypeCorpus""" import logging import re import dataclasses from typing import List, Dict, Optional, Any from FrontEnd import cwast logger = logging.getLogger(__name__) NO_TYPE = None STRINGIFIEDTYPE_RE = re.compile(r"[a-zA-Z][_A-Za-z_0-9$,<>/]+") def align(x, a...
1e0c77df237a43ba1d76e7c64cf1c60b2926b30a
5da5473ff3026165a47f98744bac82903cf008e0
/packages/google-cloud-workstations/google/cloud/workstations_v1/services/workstations/async_client.py
3955dd9a47d2978d1ee9c7264cddcc1aa7c51bee
[ "Apache-2.0" ]
permissive
googleapis/google-cloud-python
ed61a5f03a476ab6053870f4da7bc5534e25558b
93c4e63408c65129422f65217325f4e7d41f7edf
refs/heads/main
2023-09-04T09:09:07.852632
2023-08-31T22:49:26
2023-08-31T22:49:26
16,316,451
2,792
917
Apache-2.0
2023-09-14T21:45:18
2014-01-28T15:51:47
Python
UTF-8
Python
false
false
132,336
py
async_client.py
# -*- coding: utf-8 -*- # Copyright 2023 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...
4ca6c049c02e0929cebd991edf341adf471ec985
e0ed4496e94263643cedea56bfcdec1140ced8d6
/neupy/algorithms/gd/regularizers.py
3ae3878439ffba41568bedb6a484d175753c2e74
[ "MIT" ]
permissive
itdxer/neupy
6307666271807bd9028e3e60dd2536a544ed8421
317ed4204b5239e8be2b94a95fe3157c5f9edc65
refs/heads/master
2023-06-13T23:09:36.487633
2023-01-03T21:24:56
2023-01-03T21:24:56
41,323,480
840
206
MIT
2022-12-16T16:32:10
2015-08-24T19:45:11
Python
UTF-8
Python
false
false
5,725
py
regularizers.py
from __future__ import division from functools import wraps import tensorflow as tf from neupy.utils import asfloat __all__ = ('define_regularizer', 'l1', 'l2', 'maxnorm') class Regularizer(object): def __init__(self, function, *args, **kwargs): self.function = function self.exclude = kwargs....
3cc97b0dacaf41e7657337a1d93a667dd306e13f
1efd2de8bf77ec00eb2fcaf5749278495946d920
/src/tests/ftest/util/daos_racer_utils.py
5191ddcab8f637046dadab3960b454d1302b33a0
[ "BSD-2-Clause", "BSD-2-Clause-Patent" ]
permissive
daos-stack/daos
6f55bf3061fd830d5b8d28506e1295e2d3a27c38
ed5eed5df43a68571afe123132a743824c02637a
refs/heads/master
2023-08-31T21:43:37.606145
2023-08-31T16:38:00
2023-08-31T16:38:00
69,390,670
631
300
NOASSERTION
2023-09-14T18:55:15
2016-09-27T19:21:29
C
UTF-8
Python
false
false
4,500
py
daos_racer_utils.py
""" (C) Copyright 2020-2023 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ import os from ClusterShell.NodeSet import NodeSet from command_utils_base import BasicParameter, FormattedParameter from exception_utils import CommandFailure, MPILoadError from command_utils import ExecutableCommand...
110cbd1150a4efd30b01c52f7eb981716e290ea8
2ad93a1cf25a580fe980482d2d17a657de3b2523
/django-stubs/middleware/locale.pyi
b772011f79daa5919c773895d430975c1e0a3d1f
[ "MIT" ]
permissive
typeddjango/django-stubs
f35dfcb001e54694a0a1e8c0afcc6e6a3d130c32
0117348c3c7713f25f96b46e53ebdeed7bdba544
refs/heads/master
2023-08-25T19:42:52.707151
2023-08-23T15:13:25
2023-08-23T15:13:25
142,779,680
1,133
376
MIT
2023-09-13T19:05:06
2018-07-29T17:08:50
Python
UTF-8
Python
false
false
417
pyi
locale.pyi
from typing import Any from django.http.request import HttpRequest from django.http.response import HttpResponseBase from django.utils.deprecation import MiddlewareMixin class LocaleMiddleware(MiddlewareMixin): response_redirect_class: Any def process_request(self, request: HttpRequest) -> None: ... def p...
5ee515828732e2c28683d1c57afde17cd23e23b1
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/test/mkldnn/test_elementwise_add_mkldnn_op.py
7b48c658e95e0effbd8c056e10259980b5a3d634
[ "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
5,227
py
test_elementwise_add_mkldnn_op.py
# Copyright (c) 2018 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...
29e738b6fde3c4a4151c9135e729ed6c8380e769
99199db3f78a344e72b281c71c690518ae07375a
/octavia/common/exceptions.py
6f0994d394f4c299f306b653ed9b774e8258b65a
[ "Apache-2.0" ]
permissive
openstack/octavia
3faf2afe2ade5bd3978bb3a0558d2eeefc648ba2
0426285a41464a5015494584f109eed35a0d44db
refs/heads/master
2023-09-01T20:12:48.272344
2023-08-31T17:24:04
2023-08-31T17:24:04
21,018,188
147
180
Apache-2.0
2021-03-30T12:34:30
2014-06-19T22:47:19
Python
UTF-8
Python
false
false
11,564
py
exceptions.py
# Copyright 2011 VMware, Inc, 2014 A10 Networks # 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 # # U...
888590db0f2b92ed377e1e0e90dc7a876b1f46cb
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Geometry/TrackerCommonData/test/twikiExport.py
95f4144564e800275c73d372da44f317d63c7e74
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
9,173
py
twikiExport.py
#!/usr/bin/env python import optparse import configparser as ConfigParser from os.path import expandvars class Constituent: def __init__(self, line, predefinedMaterials): if len(line.split('"')) < 5 or len(line.split('"')[4].split()) < 3: raise Exception("not a well formed Constituent: "+con...
01b8c979ca4dd8ce85da580fe995cd1111c65737
fdbfbcf4d6a0ef6f3c1b600e7b8037eed0f03f9e
/bindings/pydrake/systems/test/perception_test.py
0888b06092708708554daf2cbd4a6933d9a6b2d4
[ "BSD-3-Clause" ]
permissive
RobotLocomotion/drake
4529c397f8424145623dd70665531b5e246749a0
3905758e8e99b0f2332461b1cb630907245e0572
refs/heads/master
2023-08-30T21:45:12.782437
2023-08-30T15:59:07
2023-08-30T15:59:07
16,256,144
2,904
1,270
NOASSERTION
2023-09-14T20:51:30
2014-01-26T16:11:05
C++
UTF-8
Python
false
false
7,539
py
perception_test.py
# -*- coding: utf-8 -*- import unittest import numpy as np from pydrake.math import RigidTransform, RollPitchYaw, RotationMatrix from pydrake.perception import BaseField, Fields, PointCloud from pydrake.systems.analysis import Simulator from pydrake.systems.framework import DiagramBuilder from pydrake.systems.percept...
ff0208bfde917aa0221aa1f76dc84b7ca431eb90
afa75947ca301d55865342e09ad58ab128c5b1e8
/tools/set_version.py
d870b0d4eaa8903c266ceae0385aab8c0b7ccb17
[ "GPL-3.0-only", "BSD-2-Clause" ]
permissive
praw-dev/praw
ab6a6f188d22922618406360143b12c3de3e90df
f1d5506b7a3df240f748e1b7749fd5636aa67b32
refs/heads/master
2023-09-01T06:30:03.060189
2023-09-01T01:54:01
2023-09-01T01:54:01
847,957
2,825
646
BSD-2-Clause
2023-09-11T17:52:22
2010-08-19T04:00:07
Python
UTF-8
Python
false
false
3,512
py
set_version.py
#!/usr/bin/env python3 import re import sys from datetime import date import packaging.version CHANGELOG_HEADER = ( "Change Log\n==========\n\n" "PRAW follows `semantic versioning <http://semver.org/>`_.\n\n" ) UNRELEASED_HEADER = "Unreleased\n----------\n\n" def add_unreleased_to_changelog(): with open...
81ab3cfa7a2c4e24671f4dffae5d386a26bee140
3ef70fe63acaa665e2b163f30f1abd0a592231c1
/stackoverflow/venv/lib/python3.6/site-packages/cryptography/hazmat/primitives/kdf/hkdf.py
01f0f288b439f82ee6f7389476ab35ee0482d08d
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
wistbean/learn_python3_spider
14914b63691ac032955ba1adc29ad64976d80e15
40861791ec4ed3bbd14b07875af25cc740f76920
refs/heads/master
2023-08-16T05:42:27.208302
2023-03-30T17:03:58
2023-03-30T17:03:58
179,152,420
14,403
3,556
MIT
2022-05-20T14:08:34
2019-04-02T20:19:54
Python
UTF-8
Python
false
false
3,463
py
hkdf.py
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import six from cryptography import utils from cryptography.exceptions i...
a8fe75de998b56c5db09b1d9e18678538f4f9943
7f3967e139e1ecb6c17b63d7f6ca907caea4928a
/django_tenants/middleware/default.py
e47f943baa4a1f15294d46500be3d6a2b933d46f
[ "MIT" ]
permissive
django-tenants/django-tenants
e1a274d6b74093b00f07bb1c5e6eb5c8849bc468
bfba21005e2cbfcae5789f0b60bec49f864845a8
refs/heads/master
2023-08-28T13:10:46.712377
2023-08-14T08:15:18
2023-08-14T08:15:18
37,154,540
773
205
MIT
2023-09-12T11:45:41
2015-06-09T19:48:59
Python
UTF-8
Python
false
false
1,050
py
default.py
from django_tenants.middleware.suspicious import SuspiciousTenantMiddleware from django_tenants.utils import get_public_schema_name, get_tenant_model class DefaultTenantMiddleware(SuspiciousTenantMiddleware): """ Extend the SuspiciousTenantMiddleware in scenario where you want to configure a tenant to be ...
80b65a5a2d23e1e2c246a994cd6366e2613b6d8f
e3a97b316fdf07b170341da206163a865f9e812c
/python/kwiver/vital/tests/test_homography_f2f.py
9870e314227582c3a1d46d415ba63e73c9b15993
[ "BSD-3-Clause" ]
permissive
Kitware/kwiver
09133ede9d05c33212839cc29d396aa8ca21baaf
a422409b83f78f31cda486e448e8009513e75427
refs/heads/master
2023-08-28T10:41:58.077148
2023-07-28T21:18:52
2023-07-28T21:18:52
23,229,909
191
92
NOASSERTION
2023-06-26T17:18:20
2014-08-22T15:22:20
C++
UTF-8
Python
false
false
8,998
py
test_homography_f2f.py
""" ckwg +31 Copyright 2020 by Kitware, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
a1b3c6797b38b42dfc38cf8ad0fc703ac4002732
c2d48caa5db7e746a38beca625406fcf47379d3c
/src/olympia/promoted/migrations/0012_auto_20201022_0903.py
b959c801442bfc6fe23c1400f984ae42c9d09b54
[]
permissive
mozilla/addons-server
1f6269ec0a4aa5a0142a5f81978ef674daf213a7
e0f043bca8a64478e2ba62f877c9dc28620be22f
refs/heads/master
2023-09-01T09:34:41.867534
2023-09-01T07:21:22
2023-09-01T07:21:22
16,416,867
920
590
BSD-3-Clause
2023-09-14T16:15:01
2014-01-31T18:44:15
Python
UTF-8
Python
false
false
406
py
0012_auto_20201022_0903.py
# Generated by Django 2.2.16 on 2020-10-22 09:03 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('promoted', '0011_create_switch_for_subscription'), ] operations = [ migrations.RenameField( model_name='promotedsubscription', ...
bacb9db8b543f41f10218ccc292790ba9e6c1093
10fb134f717f94774cadc28ba729396d6810c39a
/test/test_utils.py
e631f57b359f8a211f0c6d2f49450e509956ce32
[ "Apache-2.0", "CC-BY-SA-4.0" ]
permissive
cgpotts/cs224u
64df3f6a4237a4f6f05e6d779592d608af21ab62
d6acd4ec9166afc20cd251ca2b5182d876294579
refs/heads/main
2023-08-31T05:40:26.645543
2023-08-25T15:16:40
2023-08-25T15:16:40
30,086,665
1,970
946
Apache-2.0
2023-08-25T15:16:42
2015-01-30T19:08:11
Jupyter Notebook
UTF-8
Python
false
false
3,497
py
test_utils.py
import numpy as np import os import pytest import random import utils __author__ = "Christopher Potts" __version__ = "CS224u, Stanford, Spring 2022" utils.fix_random_seeds() @pytest.mark.parametrize("arg, expected", [ [ np.array([0.0, 0.25, 0.75]), np.array([0.22721977, 0.29175596, 0.48102426])...
6bf485899dd2be21a2bd010d8587ed97dd2ee654
77fd60c4b7e7885b2ec4ca5203edf9489f6f37dc
/nipy/algorithms/statistics/formula/__init__.py
44f73375d6020d1969aa41be0a796b01b2e269b6
[ "BSD-3-Clause" ]
permissive
nipy/nipy
156f379adbc07b259e25012662510b1f64aac4c5
7eede02471567487e454016c1e7cf637d3afac9e
refs/heads/master
2023-04-06T14:56:36.303421
2023-04-05T19:40:24
2023-04-05T19:40:24
642,344
275
115
BSD-3-Clause
2023-04-05T19:40:25
2010-05-02T10:00:33
Python
UTF-8
Python
false
false
143
py
__init__.py
""" Formula and related objects """ from .formulae import (Formula, Term, terms, Factor, make_recarray, natural_spline)
35bf3e1f47c98c4d5e7e0ef0aad81a009cbdf1cd
2d0bada349646b801a69c542407279cc7bc25013
/src/vai_quantizer/vai_q_pytorch/pytorch_binding/pytorch_nndct/export/code_template.py
ee9728cf8e19e644a59f3553328181b6766936f9
[ "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSD-3-Clause-Open-MPI", "LicenseRef-scancode-free-unknown", "Libtool-exception", "GCC-exception-3.1", "LicenseRef-scancode-mit-old-style", "OFL-1.1", "JSON", "LGPL-2.1-only", "LGPL-2.0-or-later", "ICU", "Li...
permissive
Xilinx/Vitis-AI
31e664f7adff0958bb7d149883ab9c231efb3541
f74ddc6ed086ba949b791626638717e21505dba2
refs/heads/master
2023-08-31T02:44:51.029166
2023-07-27T06:50:28
2023-07-27T06:50:28
215,649,623
1,283
683
Apache-2.0
2023-08-17T09:24:55
2019-10-16T21:41:54
Python
UTF-8
Python
false
false
3,578
py
code_template.py
# # Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
db4f52e71311a8c9d7424dcc20733879ad4b6d35
4924321825e61947d53de91fa602e899fcbd9af5
/djangoql/exceptions.py
866abf1b83d3c7b17d92a4ee8f812697d8f152e7
[ "MIT" ]
permissive
ivelum/djangoql
c260e89d58ab39d57ccc46976ea8b8375418dc61
534b52938b65b63a8c4ff7b5d5355c5f2aa03781
refs/heads/master
2023-08-02T04:08:15.088514
2022-01-27T11:31:30
2022-01-27T11:31:30
85,814,425
925
122
MIT
2023-03-06T04:24:18
2017-03-22T10:23:59
Python
UTF-8
Python
false
false
796
py
exceptions.py
class DjangoQLError(Exception): def __init__(self, message=None, value=None, line=None, column=None): self.value = value self.line = line self.column = column super(DjangoQLError, self).__init__(message) def __str__(self): message = super(DjangoQLError, self).__str__() ...
9748f7a699d736fe0f112859d7d7e55bb70aa39c
d05ff6dda43729011b7d469b0a2bc02ed66b6342
/frappe/patches/v13_0/make_user_type.py
1e77dd4f542bebdd1a02928426a7bcc85dfe50ba
[ "MIT" ]
permissive
frappe/frappe
520c14bed3810c3360629a81dcc33f0ebe21ac4d
dd8f314bf4a8a4739eebbfac741abc533ac58bc1
refs/heads/develop
2023-08-30T19:29:10.406706
2023-08-30T11:20:40
2023-08-30T11:20:40
1,864,194
5,955
3,735
MIT
2023-09-14T16:08:04
2011-06-08T08:14:16
Python
UTF-8
Python
false
false
384
py
make_user_type.py
import frappe from frappe.utils.install import create_user_type def execute(): frappe.reload_doc("core", "doctype", "role") frappe.reload_doc("core", "doctype", "user_document_type") frappe.reload_doc("core", "doctype", "user_type_module") frappe.reload_doc("core", "doctype", "user_select_document_type") frappe....
c333ae91d35351a84c0a7df247bfd8649abab2fe
5e9368e9705f251894b3f9879d859f85c40b945b
/verypy/VeRyPyGui.py
7ae6fcd6ee35bb32308e21c6d2fe518a4d3bac55
[ "MIT", "GPL-1.0-or-later", "LicenseRef-scancode-unknown-license-reference" ]
permissive
yorak/VeRyPy
4647b15f25f44d246407f0e9bb0b420352524cb6
988730470883a78a8505aa818dcbebc18b4d9c4a
refs/heads/master
2023-05-26T15:05:51.316265
2023-05-05T13:55:07
2023-05-05T13:55:07
173,119,960
238
57
MIT
2022-11-07T17:48:29
2019-02-28T13:46:34
Python
UTF-8
Python
false
false
5,234
py
VeRyPyGui.py
#!/usr/bin/python try: import Tkinter.filedialog as filedialog import Tkinter as tk except ImportError: import tkinter.filedialog as filedialog import tkinter as tk from os.path import exists, splitext from verypy import get_algorithms from verypy.shared_cli import read_and_solve_a_problem from verypy...
9b23f3094abf9ce385a2e0b824351de9f962a6bf
cdc8e64448ee8c7c443e95ce4c1187f02ac3bfc3
/cores/migrations/0006_detailrule_fresh_time.py
4bc0de9106b9f9b8012d07fdf1cc98e7222c2ed6
[ "MIT" ]
permissive
yijingping/unicrawler
39bc65d1bfa596d6b5c2b87dd887b746af411cfd
64c1fd0ccabe0d6ed97fa3bed50ca303bd81170c
refs/heads/master
2023-07-28T22:37:06.194654
2023-02-09T15:34:51
2023-02-09T15:34:51
49,125,237
568
180
null
2023-02-09T15:34:52
2016-01-06T09:14:12
Python
UTF-8
Python
false
false
586
py
0006_detailrule_fresh_time.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('cores', '0005_detailrule_multi'), ] operations = [ migrations.AddField( model_name='detailrule', nam...
dbec2046171e0e7bd7a0598bcb4d218b70ebf0f2
376e1818d427b5e4d32fa6dd6c7b71e9fd88afdb
/security/py-hsm/patches/patch-setup.py
7e2f2b25eba3cc78dfa9e0bb798e34958ff3fb57
[]
no_license
NetBSD/pkgsrc
a0732c023519650ef821ab89c23ab6ab59e25bdb
d042034ec4896cc5b47ed6f2e5b8802d9bc5c556
refs/heads/trunk
2023-09-01T07:40:12.138283
2023-09-01T05:25:19
2023-09-01T05:25:19
88,439,572
321
138
null
2023-07-12T22:34:14
2017-04-16T20:04:15
null
UTF-8
Python
false
false
364
py
patch-setup.py
$NetBSD: patch-setup.py,v 1.1 2019/09/20 17:13:26 adam Exp $ Prefer py-cryptodome. --- setup.py.orig 2019-09-20 17:03:05.000000000 +0000 +++ setup.py @@ -71,7 +71,7 @@ setup( tests_require=[], install_requires=[ 'pyserial >= 2.3', - 'pycrypto >= 2.1' + 'pycryptodome' ], extr...
b39fdc15ed169b6e521bbb10d4b1f6e87105c693
ebec36c2280a1aac0624019133bffe7152f09964
/experimental/coref/scripts/prep_span_data.py
383a87ca7b1db478703e7537d5a91b468351eb58
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
explosion/projects
8d783d5b150f03b6a68f345f1a50b3a692ff1745
e24a085669b4db6918ffeb2752846089d8dee57a
refs/heads/v3
2023-08-09T14:10:08.949067
2023-07-31T11:43:44
2023-07-31T11:43:44
223,165,649
1,171
492
MIT
2023-08-11T13:31:24
2019-11-21T12:08:52
Python
UTF-8
Python
false
false
6,096
py
prep_span_data.py
""" Kinda slow process mainly bottleneck by the prediction speed of the pipeline with the CorefClusterer. """ import tqdm import spacy import argparse from spacy.training import Example from spacy.tokens import Doc, DocBin parser = argparse.ArgumentParser(description="Create data set for SpanResolver.") parser.add_a...
f385663730e3392a99db96db533f4f8b011586b2
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/ai/mmdetection/configs/solov2/solov2-light_r50_fpn_ms-3x_coco.py
eb1e854d5aebdad4cad487775cd7989af029d7c4
[ "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,673
py
solov2-light_r50_fpn_ms-3x_coco.py
_base_ = './solov2_r50_fpn_1x_coco.py' # model settings model = dict( mask_head=dict( stacked_convs=2, feat_channels=256, scale_ranges=((1, 56), (28, 112), (56, 224), (112, 448), (224, 896)), mask_feature_head=dict(out_channels=128))) # dataset settings train_pipeline = [ dict(...
0807e01db67cb7cd5f50b535a1064e39c7e15595
d51b2e9657d0ea1d8bcb8ed8da11a3f9dac72192
/src/sqlfluff/core/templaters/base.py
712611693b9f1bb11c01265424d87c32b9ba08c1
[ "MIT" ]
permissive
sqlfluff/sqlfluff
dae8294814471165582e12ea75ab8142e75f8e62
a66da908907ee1eaf09d88a731025da29e7fca07
refs/heads/main
2023-08-28T20:07:59.624519
2023-08-27T22:17:24
2023-08-27T22:17:24
155,790,228
5,931
545
MIT
2023-09-14T18:05:19
2018-11-01T23:56:04
Python
UTF-8
Python
false
false
20,492
py
base.py
"""Defines the templaters.""" import logging from bisect import bisect_left from typing import Dict, Iterator, List, Tuple, Optional, NamedTuple, Iterable, Any from sqlfluff.core.config import FluffConfig from sqlfluff.core.errors import SQLFluffSkipFile from sqlfluff.core.slice_helpers import zero_slice # Instantiat...
151984d4152d687babfd19d731b12425f0aca70b
11cd362cdd78c2fc48042ed203614b201ac94aa6
/desktop/core/src/desktop/lib/config_spec_dump.py
21d7e76b63a5a5d52f928fb57ab23093a92c29ec
[ "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
2,101
py
config_spec_dump.py
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
102a78b8b2a0742bb19cd2871a05e0f9788173b5
bca44c32b850c297d45136c54b93882a144e87d3
/pyteal/ast/abi/bool_test.py
7dfb5c684e86e6acf1dd272ce6deb1d7ebc26ef7
[ "MIT" ]
permissive
algorand/pyteal
b7f541ee6484f6bac94bc528ffa429196d8cd79a
670e637644630534883b4c2e6837ab34c56546b6
refs/heads/master
2023-06-11T04:37:33.645398
2023-06-06T20:18:01
2023-06-06T20:18:01
212,449,337
282
134
MIT
2023-06-06T18:15:23
2019-10-02T22:00:39
Python
UTF-8
Python
false
false
14,121
py
bool_test.py
from typing import NamedTuple, List, cast import pytest import pyteal as pt from pyteal import abi from pyteal.ast.abi.type_test import ContainerType from pyteal.ast.abi.bool import ( _bool_aware_static_byte_length, _consecutive_bool_instance_num, _consecutive_bool_type_spec_num, _bool_sequence_length,...