id
int64
0
300k
label
stringlengths
1
74
text
stringlengths
4k
8k
8,300
on path modified
# ----------------------------------------------------------------------------- # Getting Things GNOME! - a personal organizer for the GNOME desktop # Copyright (c) 2008-2013 - Lionel Dricot & Bertrand Rousseau # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Gene...
8,301
test to string
""" Utility functions used in test_scheduler.py, and by other utilities that need to get test lists. """ import glob from CIME.XML.standard_module_setup import * from CIME.XML.testlist import Testlist from CIME.XML.files import Files from CIME.test_status import TEST_STATUS_FILENAME import CIME.utils logger = logging....
8,302
clean prefixes
import functools import re from typing import Dict from typing import Optional from typing import Tuple from xsdata.models.enums import Namespace from xsdata.utils import text __uri_ignore__ = ("www", "xsd", "wsdl") URI_REGEX = re.compile( r"^(([a-zA-Z][0-9a-zA-Z+\\-\\.]*:)?" r"/{0,2}[0-9a-zA-Z;/?:@&=+$\\.\\...
8,303
test aten wrong mem format buffer
# Owner(s): ["module: dynamo"] import copy from typing import Tuple import unittest import torch # noqa: F401 import torch.nn as nn import torch._dynamo as torchdynamo from functorch import make_fx from functorch.experimental import functionalize, control_flow from torch import Tensor from torch.testing._internal.com...
8,304
get conn
""" Return data to a mongodb server Required python modules: pymongo This returner will send data from the minions to a MongoDB server. To configure the settings for your MongoDB server, add the following lines to the minion config files. .. code-block:: yaml mongo.db: <database name> mongo.host: <server i...
8,305
door
#!/usr/bin/env python3 # Copyright (C) 2013-2022 Florian Festi # # This program 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, either version 3 of the License, or # (at your option) any later version....
8,306
test perfect corr all dims
# Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """Unit tests for the `iris.analysis.stats.pearsonr` function.""" # Import iris tests first so that some things can be initial...
8,307
test sqrt order
# Data Parallel Control (dpctl) # # Copyright 2020-2023 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICE...
8,308
test dimer
#! test fragment decomposition + to/from_dict import numpy as np import psi4 from psi4.driver import qcdb psi4.set_output_file("output.dat", False) def test_chgmult(expected, cgmpdict, label): rc, rfc, rm, rfm = expected qcdb.compare_integers(rc, cgmpdict['molecular_charge'], label + ': c') qcdb.compare_...
8,309
load model
import contextlib import functools import hashlib import logging import os import requests import torch import tqdm from TTS.tts.layers.bark.model import GPT, GPTConfig from TTS.tts.layers.bark.model_fine import FineGPT, FineGPTConfig if ( torch.cuda.is_available() and hasattr(torch.cuda, "amp") and hasa...
8,310
tear down class
# 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...
8,311
from ip network
# -*- coding: utf-8 -*- # # This file is part of SKALE Admin # # Copyright (C) 2021 SKALE Labs # # 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 Licens...
8,312
test from module import empty
import os import tempfile import unittest from pathlib import Path from bpython.importcompletion import ModuleGatherer class TestSimpleComplete(unittest.TestCase): def setUp(self): self.module_gatherer = ModuleGatherer() self.module_gatherer.modules = [ "zzabc", "zzabd", ...
8,313
display
#!/usr/bin/env python """Strassen's Matrix Multiplication algorithm This script demonstrates Strassen's algorithm which multiplies two square matrices using a divide-and-conquer pattern. The unique computations after dividing the matrices into quadrants result in lowering the time complexity from an order of n^3 to n...
8,314
run client
# Copyright 2020 Adap GmbH. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
8,315
test delete repo cache
from mock import ( patch, Mock, call, mock_open ) import os from kiwi.repository.pacman import RepositoryPacman class TestRepositorPacman(object): @patch('kiwi.repository.pacman.Temporary.new_file') @patch('kiwi.repository.pacman.ConfigParser') @patch('kiwi.repository.pacman.Path.create') def s...
8,316
setup
""" Work with a mini-map Artwork from https://kenney.nl If Python and Arcade are installed, this example can be run from the command line with: python -m arcade.examples.minimap """ from __future__ import annotations import random from uuid import uuid4 import arcade from pyglet.math import Vec2 SPRITE_SCALING = ...
8,317
copy files from zip to zip
import multiprocessing import os import re import shutil import tempfile import zipfile from datetime import datetime from django.core.management.base import BaseCommand, CommandError import sh from corehq.apps.export.dbaccessors import get_properly_wrapped_export_instance from corehq.apps.export.multiprocess import...
8,318
tokenize regex
""" Parser for parsing a regular expression. Take a string representing a regular expression and return the root node of its parse tree. usage:: root_node = parse_regex('(hello|world)') Remarks: - The regex parser processes multiline, it ignores all whitespace and supports multiple named groups with the same n...
8,319
validate
# !/usr/bin/env python # encoding: utf-8 """ SEED Platform (TM), Copyright (c) Alliance for Sustainable Energy, LLC, and other contributors. See also https://github.com/seed-platform/seed/main/LICENSE.md """ from django.core.exceptions import ValidationError from rest_framework import serializers from seed.lib.superpe...
8,320
write headers
"""Http related parsers and protocol.""" import asyncio import zlib from typing import Any, Awaitable, Callable, NamedTuple, Optional, Union # noqa from multidict import CIMultiDict from .abc import AbstractStreamWriter from .base_protocol import BaseProtocol from .compression_utils import ZLibCompressor from .help...
8,321
build plugin 8047 frame content
# coding: utf-8 -*- # # Author: pipiche38 # import binascii import time import zigpy.types as t from Zigbee.encoder_tools import encapsulate_plugin_frame def build_plugin_004D_frame_content(self, nwk, ieee, parent_nwk): # join indication # No endian decoding as it will go directly to Decode004d self.log.lo...
8,322
test zero probability
# Copyright The Lightning team. # # 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 writin...
8,323
update time slice
# The MIT License (MIT) # Copyright (c) 2019 by the xcube development team and contributors # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation...
8,324
set up
import unittest import matplotlib.colors import numpy as np from pyrolite.plot.color import * class TestProcessColor(unittest.TestCase): def METHOD_NAME(self): self.black = (0.0, 0.0, 0.0, 1.0) self.multiblack = np.array([(0.0, 0.0, 0.0, 1.0), (0.0, 0.0, 0.0, 1.0)]) for color in ["green"...
8,325
upload json
import os import re import boto3 import moto import pytest from chalice.test import Client from pacu.modules.cfn__resource_injection.cfn__resource_injection_lambda.app import app, add_role_dict, add_role_bytes, fetch, update @pytest.fixture def environ(): os.environ['PRINCIPAL'] = 'asdf' def test_add_role_dict...
8,326
count
# This file is a part of the AnyBlok project # # Copyright (C) 2014 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr> # Copyright (C) 2021 Jean-Sebastien SUZANNE <js.suzanne@gmail.com> # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed wi...
8,327
reset vertices
#!/usr/bin/env python # -*- coding: utf-8 -*- """A PsychoPy drawing tool Inspired by rockNroll87q - https://github.com/rockNroll87q/pyDrawing """ # Part of the PsychoPy library # Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2022 Open Science Tools Ltd. # Distributed under the terms of the GNU General Public Licen...
8,328
process record
# Stubs for logbook.ticketing (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from logbook.base import LogRecord from logbook.handlers import Handler, HashingHandlerMixin from typing import Any, Optional class Ticket: level_name: Any = ... db: Any = ... def __init_...
8,329
set up
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2015-2018 Canonical Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # # This program is distributed in ...
8,330
disable instrumentation
import functools import inspect import os import typing from abc import ABCMeta from operator import attrgetter from typing import List, Optional, Union from opentelemetry import baggage, context from opentelemetry.context import Context, attach, detach, set_value from opentelemetry.sdk.trace import Span from opentele...
8,331
enable
# # This file is part of the PyMeasure package. # # Copyright (c) 2013-2023 PyMeasure Developers # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limit...
8,332
test trainer flag
# Copyright The Lightning AI team. # # 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 wri...
8,333
autograph requests
import cherrypy from pockets import readable_join from sqlalchemy import and_, or_ from sqlalchemy.orm import subqueryload from uber.config import c from uber.custom_tags import time_day_local from uber.decorators import ajax, all_renderable, csv_file, log_pageview, site_mappable from uber.errors import HTTPRedirect f...
8,334
get socket inodes
#!/usr/bin/env python3 # Copyright (c) 2014-2022 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Linux network utilities. Roughly based on http://voorloopnul.com/blog/a-python-netstat-in-less-than-10...
8,335
test write kernel spec
# Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. import json import os import shutil import sys import tempfile from unittest import mock import pytest from jupyter_core.paths import jupyter_data_dir from ipykernel.kernelspec import ( KERNEL_NAME, RESOURCES...
8,336
test restriction 2dsignal
import numpy as np import pytest from numpy.testing import assert_array_almost_equal from pylops.basicoperators import Restriction from pylops.utils import dottest par1 = { "ny": 21, "nx": 11, "nt": 20, "imag": 0, "dtype": "float64", "inplace": "True", } # real, inplace par2 = { "ny": 21,...
8,337
test create comment with all parameters
from django.contrib.auth import get_user_model from django.contrib.contenttypes.models import ContentType from django.test import TestCase from django_tenants.test.cases import TenantTestCase from model_bakery import baker from model_bakery.recipe import Recipe from comments.models import Comment, clean_html User = ...
8,338
sv init
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program 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; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
8,339
test
#!/usr/bin/env python3 # # Copyright (c) 2022, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
8,340
write start
# Copyright 2012-2013 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" fil...
8,341
install step
## # Copyright 2009-2023 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be), # Flemish Research Foundation (F...
8,342
reboot check
import re from virttest import error_context from virttest import utils_misc @error_context.context_aware def run(test, params, env): """ KVM Seabios test: 1) Start guest with sga bios 2) Check the sga bios messages(optional) 3) Restart the vm, verify it's reset(optional) 4) Display and check...
8,343
get group configuration
import json from urllib.parse import unquote from moto.core.responses import BaseResponse from .models import resourcegroups_backends, ResourceGroupsBackend class ResourceGroupsResponse(BaseResponse): def __init__(self) -> None: super().__init__(service_name="resource-groups") @property def res...
8,344
cleanup
import sys import time import os from pymol.wizard import Wizard from pymol import cmd import pymol SZYBKI_EXE = "" undo_object = "_w_cleanup_undo" redo_object = "_w_cleanup_redo" def auto_configure(): result = -1 global SZYBKI_EXE OE_DIR = os.environ.get("OE_DIR",None) if OE_DIR is None: OE...
8,345
make bad params
# This file is part of the Trezor project. # # Copyright (C) 2012-2019 SatoshiLabs and contributors # # This library is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License version 3 # as published by the Free Software Foundation. # # This library is distrib...
8,346
get beam position
""" [Name] BeamInfo [Description] BeamInfo hardware object is used to define final beam size and shape. It can include aperture, slits and/or other beam definer (lenses or other eq.) [Emited signals] beamInfoChanged [Included Hardware Objects] ----------------------------------------------------------------------- |...
8,347
test negotiate excessive error
import pytest import psi4 from psi4.driver.driver_util import negotiate_derivative_type pytestmark = [pytest.mark.psi, pytest.mark.api] def ordinary(): pass def select_fail(mtd, **kwargs): raise psi4.ManagedMethodError(['select_fail', "abcdef", 'MP2_TYPE', "CD", "RHF", "labocc"]) def select_pass(mtd, **k...
8,348
test from string not fully qualified
# -*- coding: utf-8 -*- # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
8,349
simple test
""" The implementation here is modified based on insightface, originally MIT license and publicly avaialbe at https://github.com/deepinsight/insightface/blob/master/detection/scrfd/mmdet/models/detectors/single_stage.py """ import torch import torch.nn as nn from mmdet.models.builder import (DETECTORS, build_backbone, ...
8,350
compute settings
# This file is part of wger Workout Manager <https://github.com/wger-project>. # Copyright (C) 2013 - 2021 wger Team # # wger Workout Manager 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 ...
8,351
test parallel for
import argparse import time import parsl # Tested. Confirmed. Local X Local X SingleNodeLauncher # from parsl.tests.configs.local_ipp import config # Tested. Confirmed. ssh X Slurm X SingleNodeLauncher # from parsl.tests.configs.midway_ipp import config # Tested. Confirmed. ssh X Slurm X SingelNodeLauncher # from pa...
8,352
magenta
import re from collections import Counter def colorize(lines): def bold(s): return '\x1b[1m{}\x1b[0m'.format(s) def red(s): return '\x1b[31m{}\x1b[0m'.format(s) def green(s): return '\x1b[32m{}\x1b[0m'.format(s) def yellow(s): return '\x1b[33m{}\x1b[0m'.format(s) ...
8,353
setup config
# This file is part of Buildbot. Buildbot 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. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
8,354
calc cell volumes
""" 1D Mesh """ from __future__ import unicode_literals __docformat__ = 'restructuredtext' from fipy.tools import numerix from fipy.tools.dimensions.physicalField import PhysicalField from fipy.tools import parallelComm from fipy.meshes.nonUniformGrid1D import NonUniformGrid1D __all__ = ["CylindricalNonUniformGrid1D...
8,355
test config after updating
""" Unit tests for the IdentityServer3 OAuth2 Backend """ import json import ddt from common.djangoapps.third_party_auth.identityserver3 import IdentityServer3 from common.djangoapps.third_party_auth.tests import testutil from common.djangoapps.third_party_auth.tests.utils import skip_unless_thirdpartyauth @skip_unle...
8,356
set numba compat strictness
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
8,357
putfs selection
#!/usr/bin/env python3 # Copyright 2016 The Fontbakery Authors # Copyright 2017 The Google Font Tools 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/lice...
8,358
get parent
# -*- coding: utf-8 -*- # # ast_data_type.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST 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, either version 2 of the License, ...
8,359
check quantize outputs fq num
# Copyright (c) 2023 Intel Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writ...
8,360
etag
# 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 . im...
8,361
get policy output
# 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 __all__ ...
8,362
run step
# Copyright (c) 2015, 2020 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the function...
8,363
get request headers
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # from dataclasses import InitVar, dataclass from typing import Any, Iterable, List, Mapping, Optional, Union import dpath.util from airbyte_cdk.models import AirbyteMessage, SyncMode, Type from airbyte_cdk.sources.declarative.interpolation.interpolated_strin...
8,364
test link check failure
"""Test the deployment http and static resource smoke tests.""" import unittest from unittest import mock import requests from scripts import static_asset_smoke_test from scripts.http_smoke_test import ( ALLOWED_TIMEOUTS, FALLBACK_URLS, check_urls, get_full_list, ) class StaticAssetTests(unittest.Te...
8,365
private endpoint
# 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 . imp...
8,366
write through
import abc import builtins import codecs import sys from _typeshed import FileDescriptorOrPath, ReadableBuffer, WriteableBuffer from collections.abc import Callable, Iterable, Iterator from os import _Opener from types import TracebackType from typing import IO, Any, BinaryIO, TextIO from typing_extensions import Liter...
8,367
make list
""" Usecases of recursive functions. Some functions are compiled at import time, hence a separate module. """ from numba import jit @jit("i8(i8)", nopython=True) def fib1(n): if n < 2: return n # Note the second call uses a named argument return fib1(n - 1) + fib1(n=n - 2) def make_fib2(): ...
8,368
test multiprocess
import logging import os import time from openwpm import mp_logger from openwpm.utilities.multiprocess_utils import Process CHILD_INFO_STR_1 = "Child %d - INFO1" CHILD_INFO_STR_2 = "Child %d - INFO2" CHILD_DEBUG_STR = "Child %d - DEBUG" CHILD_ERROR_STR = "Child %d - ERROR" CHILD_CRITICAL_STR = "Child %d - CRITICAL" C...
8,369
test request view
import os from django.core.files import File from django.urls import reverse from ....admin.test import AdminTestCase from ...datadownloads import request_user_data_download from ...models import DataDownload from ...test import create_test_user APP_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspa...
8,370
profile off
#!/usr/bin/python ############### # mProfile.py # # Copyright David Baddeley, 2012 # d.baddeley@auckland.ac.nz # # This program 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, either version 3 of the License,...
8,371
test read logs sort by timestamp asc
""" Tests for the logs API. NOTE: These tests use UUID1 to generate UUIDs with a stable sorted order. This is purely so that we can test sorting by flow run and task run ID with a stable order across test machines. """ from datetime import timedelta from unittest import mock from uuid import uuid1 import pendulum im...
8,372
openapi schema
from __future__ import annotations import typing as t from abc import ABC from abc import abstractmethod from functools import update_wrapper from ...exceptions import InvalidArgument if t.TYPE_CHECKING: from types import UnionType import pyarrow import pyspark.sql.types from starlette.requests impo...
8,373
modify commandline options
import os import math import numpy as np import skimage.transform as trans import cv2 import torch from algorithm.Rotate_and_Render.data import dataset_info from algorithm.Rotate_and_Render.data.base_dataset import BaseDataset dataset_info = dataset_info() class AllFaceDataset(BaseDataset): @staticmethod def...
8,374
generic test
#!/usr/bin/env python """ Test that the following dburl's are correctly made: postgres://username:password@host:port/database mysql://host/database mysql://username@host/database mysql://username:password@host:port/database oracle://username:password@tnsNam...
8,375
current transaction count total
import datetime import logging import threading from typing import Optional from ..order.orderpackage import BaseOrder, OrderPackageType from . import BaseControl from ..clients import BaseClient logger = logging.getLogger(__name__) class MaxTransactionCount(BaseControl): """ Counts and limits orders based...
8,376
report coverage
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from __future__ import print_function import optparse import re import sys # the gcov report follows certain pattern. Each file will have two lines # of report, from which we can extract the file name, total lines and cover...
8,377
setup
#!/usr/bin/env python3 # SPDX-License-Identifier: LGPL-2.1-only # # Advanced cgxget/cgxset functionality test - '-b' '-g' <controller> (cgroup v2) # # Copyright (c) 2023 Oracle and/or its affiliates. # Author: Kamalesh Babulal <kamalesh.babulal@oracle.com> # from cgroup import Cgroup, CgroupVersion from systemd import...
8,378
set current
from __future__ import annotations import os from logging import getLogger from typing import Any, Callable, Generic, TypeVar, cast from reactpy._warnings import warn _O = TypeVar("_O") logger = getLogger(__name__) UNDEFINED = cast(Any, object()) class Option(Generic[_O]): """An option that can be set using an...
8,379
type
# 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 . imp...
8,380
pre tests
# This program 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; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # bu...
8,381
get datastore output
# 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 . im...
8,382
export
""" WAS === The following methods allow for interaction into the Tenable Vulnerability Management :devportal:`WAS <was>` API endpoints. Methods available on ``tio.was``: .. rst-class:: hide-signature .. autoclass:: WasAPI :members: """ from tenable.io.base import TIOEndpoint, TIOIterator from tenable.io.was.ite...
8,383
test swap inst none
import unittest from .utils import TestTeam from ..generator.one_up_one_down import OneUpOneDownSwapper class TestOneUpOneDown(unittest.TestCase): @staticmethod def _1u1d_no_change(data): return [(t1[0], t2[0]) for t1, t2 in data] def test_no_swap(self): data = (((1, 'A'), (5, 'B')), ...
8,384
waypoint push back
import time from utils.ConfigManager import config from utils.constants.MiscCodes import MoveType, ScriptTypes, MoveFlags, ObjectTypeIds from database.world.WorldDatabaseManager import WorldDatabaseManager from game.world.managers.objects.units.movement.helpers.MovementWaypoint import MovementWaypoint from game.world....
8,385
test overall backend coverage checks failed
# Copyright 2022 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
8,386
last modified
# 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 . imp...
8,387
run
from __future__ import absolute_import, division, print_function from six.moves import range import fable.equivalence def fem_array_alignment(members_size, i_mbr_byte_offset_pairs): fueaa = fable.fem_utils_equivalence_array_alignment( members_size=members_size) for p0,p1 in i_mbr_byte_offset_pairs: i0, a0 ...
8,388
test eject hooks some invalid
from contextlib import contextmanager from random import shuffle import mock import pytest from six import PY2 from ddtrace.debugging._function.discovery import UnboundMethodType from ddtrace.internal.injection import InvalidLine from ddtrace.internal.injection import eject_hook from ddtrace.internal.injection import...
8,389
id
# 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 . im...
8,390
test versions
import pytest from _pytest.config import ExitCode from _pytest.pytester import Pytester def test_version_verbose(pytester: Pytester, pytestconfig, monkeypatch) -> None: monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD") result = pytester.runpytest("--version", "--version") assert result.ret == 0 res...
8,391
get all edge type
# Copyright (c) 2022 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...
8,392
set image id referenced
## @file # This file is used to collect all defined strings in Image Definition files # # Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent ## # Import Modules # from __future__ import absolute_import import Common.EdkLogger as EdkLogger from Common.BuildToo...
8,393
test read one epoch
# Copyright 2017 The TensorFlow 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 applica...
8,394
record
import copy from collections.abc import MutableMapping from typing import Hashable from deephyper.evaluator.storage import Storage, MemoryStorage from deephyper.evaluator._run_function_utils import standardize_run_function_output from deephyper.stopper._stopper import Stopper class Job: """Represents an evaluat...
8,395
cat
# -*- coding: utf-8 -*- ''' Utility module for Suse Manager ''' from __future__ import absolute_import import logging import socket import os import re import time import salt.utils from salt.exceptions import CommandExecutionError try: from salt.utils.path import which_bin as _which_bin except: from salt.ut...
8,396
streaming channel sub
#!/usr/bin/env python3 # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 # -*- coding: latin-1 -*- """ stream_api.py """ # Copyright 2022 Ball Aerospace & Technologies Corp. # All Rights Reserved. # # This program is free software; you can modify and/or redistribute it # under the terms of the GNU Lesser General P...
8,397
loader type
## # 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 # distributed u...
8,398
test refresh import secondary importance non existing
# SPDX-License-Identifier: GPL-2.0-only # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2022 by the Nominatim developer community. # For a full list of authors see the git log. """ Test for various refresh functions. """ from pathlib import Path import pytest from nominatim.tools import ...
8,399
unsupported
""" ECDSA key management """ from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import ec from cryptography.hazmat.primitives.hashes import SHA256 from .general import KeyClass class ECDSAUsageError(Exceptio...