id
int64
0
300k
label
stringlengths
1
74
text
stringlengths
4k
8k
299,900
load yaml
import os import yaml import xacro from launch import LaunchDescription from launch_ros.actions import Node from ament_index_python import get_package_share_directory def get_package_file(package, file_path): """Get the location of a file installed in an ament package""" package_path = get_package_share_direct...
299,901
add args
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Any, List, Dict, Optional import torch import torch.nn as nn from torch import Tensor from fairseq.utils import safe_hasat...
299,902
test create read graph
# 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...
299,903
num vowels map
from __future__ import annotations import pandas.testing as tm import sqlalchemy as sa from pytest import mark, param from ibis import _, udf no_python_udfs = mark.notimpl( [ "bigquery", "clickhouse", "dask", "druid", "impala", "mssql", "mysql", "or...
299,904
autoreconf
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import glob import os import sys from spack.package import * class Verrou(AutotoolsPackage): """A floating-point er...
299,905
get brand
from django.core.exceptions import ImproperlyConfigured from allauth.socialaccount import app_settings class ProviderException(Exception): pass class Provider(object): slug = None uses_apps = True def __init__(self, request, app=None): self.request = request if self.uses_apps and a...
299,906
assert fields
# (C) Datadog, Inc. 2023-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from concurrent.futures.thread import ThreadPoolExecutor from typing import List import pytest from datadog_checks.base.utils.db.utils import DBMAsyncJob from .common import POSTGRES_VERSION from .utils...
299,907
extract suite name from test method
import inspect import os import unittest import ddtrace from ddtrace import config from ddtrace.constants import SPAN_KIND from ddtrace.contrib.unittest.constants import COMPONENT_VALUE from ddtrace.contrib.unittest.constants import FRAMEWORK from ddtrace.contrib.unittest.constants import KIND from ddtrace.ext import ...
299,908
gather scatter python
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import torch import torch.nn as nn from pytorch3d import _C from torch.autograd import Function from torch.aut...
299,909
get close waiter
__all__ = 'create_subprocess_exec', 'create_subprocess_shell' import subprocess from . import events from . import protocols from . import streams from . import tasks from .log import logger PIPE = subprocess.PIPE STDOUT = subprocess.STDOUT DEVNULL = subprocess.DEVNULL class SubprocessStreamProtocol(streams.FlowC...
299,910
test nr of violations
"""Unit tests for the Axe accessibility collectors.""" from collector_utilities.functions import md5_hash from tests.source_collectors.source_collector_test_case import SourceCollectorTestCase class AxeCSVAccessibilityTest(SourceCollectorTestCase): """Unit tests for the Axe CSV collector for accessibility viola...
299,911
get behavior
import logging from _typeshed import Incomplete, SupportsWrite from collections.abc import Iterable, Iterator from typing import Any, TypeVar, overload from typing_extensions import Literal logger: logging.Logger DEBUG: bool CR: str LF: str CRLF: str SPACE: str TAB: str SPACEORTAB: str _V = TypeVar("_V", bound=VBase)...
299,912
rowcount
# mysql/mysqldb.py # Copyright (C) 2005-2017 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ .. dialect:: mysql+mysqldb :name: MySQL-Python :dbapi: mysqldb :co...
299,913
get uids from request
# -*- coding: utf-8 -*- # # This file is part of SENAITE.CORE. # # SENAITE.CORE 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, bu...
299,914
finalize
__author__ = "Andre Merzky, Ole Weidner" __copyright__ = "Copyright 2012-2013, The SAGA Project" __license__ = "MIT" """ file adaptor implementation on top tof the HTTP protocol """ import os import urllib.request, urllib.parse, urllib.error import radical.utils as ru from ...exceptions import * fr...
299,915
prepare request
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
299,916
unselect
import subprocess import sys import time from _typeshed import ReadableBuffer, SizedBuffer from builtins import list as _list # conflicts with a method named "list" from collections.abc import Callable from datetime import datetime from re import Pattern from socket import socket as _socket from ssl import SSLContext,...
299,917
call async
import asyncio import contextvars import inspect import warnings from .case import TestCase class IsolatedAsyncioTestCase(TestCase): # Names intentionally have a long prefix # to reduce a chance of clashing with user-defined attributes # from inherited test case # # The class doesn't call loop.ru...
299,918
test load nifti
# Copyright (c) MONAI Consortium # 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, so...
299,919
test lsplatform2
# Data Parallel Control (dpctl) # # Copyright 2020-2022 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....
299,920
resolve alias or index
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
299,921
message
# -*- coding: utf-8 -*- # Hikari Examples - A collection of examples for Hikari. # # To the extent possible under law, the author(s) have dedicated all copyright # and related and neighboring rights to this software to the public domain worldwide. # This software is distributed without any warranty. # # You should have...
299,922
refresh
import collections from qtpy import QtCore, QtGui from openpype.lib import Logger class LogModel(QtGui.QStandardItemModel): COLUMNS = ( "process_name", "hostname", "hostip", "username", "system_name", "started" ) colums_mapping = { "process_name": "P...
299,923
factorize
#!/usr/bin/python # # Copyright (C) Christian Thurau, 2010. # Licensed under the GNU General Public License (GPL). # http://www.gnu.org/licenses/gpl.txt """ PyMF Principal Component Analysis. PCA: Class for Principal Component Analysis """ import numpy as np from .nmf import NMF from .svd import SVD __all__ ...
299,924
compute dp drho
#------------------------------------------------------------------------------- # LinearPolynomialEquationOfState #------------------------------------------------------------------------------- from PYB11Generator import * from SolidEquationOfState import * from EOSAbstractMethods import * @PYB11template("Dimension"...
299,925
update grids
# -*- coding: utf-8 -*- # Dioptas - GUI program for fast processing of 2D X-ray diffraction data # Principal author: Clemens Prescher (clemens.prescher@gmail.com) # Copyright (C) 2014-2019 GSECARS, University of Chicago, USA # Copyright (C) 2015-2018 Institute for Geology and Mineralogy, University of Cologne, Germany ...
299,926
load header
# # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # from astLib import astWCS, astCoords # astlib requires pyfits (or astropy) in order # to create a WCS object from a FITS header. from astropy.io import fits as pyfits from ginga.util.wcsmod import common as...
299,927
get installed device attribute vi int32
# -*- coding: utf-8 -*- # This file was generated import array import ctypes import hightime # noqa: F401 import nimodinst._library_singleton as _library_singleton import nimodinst._visatype as _visatype import nimodinst.errors as errors # Helper functions for creating ctypes needed for calling into the driver DLL ...
299,928
bytescale
""" Copyright (c) 2018-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 wri...
299,929
test writer factory
# ___________________________________________________________________________ # # Pyomo: Python Optimization Modeling Objects # Copyright (c) 2008-2022 # National Technology and Engineering Solutions of Sandia, LLC # Under the terms of Contract DE-NA0003525 with National Technology and # Engineering Solutions of ...
299,930
test set endpoint
# -*- coding: UTF-8 -*- #tests/unit/test_textInfos.py #A part of NonVisual Desktop Access (NVDA) #This file is covered by the GNU General Public License. #See the file COPYING for more details. #Copyright (C) 2018 NV Access Limited, Babbage B.V. """Unit tests for the textInfos module, its submodules and classes.""" i...
299,931
get stations with order
""" HFI admin logic """ from collections import defaultdict from itertools import groupby from operator import attrgetter from typing import Dict, List, Set, Tuple from datetime import datetime from app.db.models.hfi_calc import PlanningWeatherStation from app.schemas.hfi_calc import HFIAdminAddedStation def update_...
299,932
hardening edp
import sys sys.path.append('../') import numpy as np import elastoPlasticWellboreAnalyticalSolutions as epwAnal #Note: this solution is developed by Chen and Abousleiman (2017) for the case with zero cohesion def elastic_plastic_boundary_EDP(sh,sv,q_ep_boundary): # See eq. 25 of Chen and Abousleiman 2013 sr0 = sh -...
299,933
test get failure repeat record count
import uuid from datetime import datetime, timedelta from django.test import TestCase from corehq.motech.repeaters.const import RECORD_PENDING_STATE from corehq.motech.repeaters.dbaccessors import ( get_cancelled_repeat_record_count, get_domains_that_have_repeat_records, get_failure_repeat_record_count, ...
299,934
convert unix date
from pandas.errors import OutOfBoundsDatetime import datetime as dt from typing import Hashable import pandas_flavor as pf import pandas as pd from pandas.api.types import is_numeric_dtype from janitor.utils import deprecated_alias @pf.register_dataframe_method @deprecated_alias(column="column_name") def convert_exc...
299,935
get mock client
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
299,936
test explain join index scan
import unittest from unittest.mock import patch from unittest.mock import Mock from unittest.mock import MagicMock from itertools import count import cal_bitmap_test from cal_bitmap_test import connect from cal_bitmap_test import find_crossover from cal_bitmap_test import explain_index_scan from cal_bitmap_test impor...
299,937
get subgraph
__all__ = ['path_sign_to_signed_nodes', 'signed_nodes_to_signed_edge', 'get_sorted_neighbors', 'get_subgraph', 'Node', 'Edge', 'EdgeFilter', 'SendType'] import logging import networkx as nx import functools from typing import List, Tuple, Union, Optional, Callable, Set logger = logging.getLogger...
299,938
surface temp
#!/usr/bin/env python # -*- coding: utf-8 -*- from pyowm.utils import formatting, measurables class Soil: """ Soil data over a specific Polygon :param reference_time: UTC UNIX time of soil data measurement :type reference_time: int :param surface_temp: soil surface temperature in Kelvin degrees...
299,939
test models artifact repo init with stage
from unittest import mock from unittest.mock import Mock import pytest from mlflow import MlflowClient from mlflow.entities.model_registry import ModelVersion from mlflow.store.artifact.databricks_models_artifact_repo import DatabricksModelsArtifactRepository from mlflow.store.artifact.models_artifact_repo import Mod...
299,940
test remove sequence
# lint-amnesty, pylint: disable=missing-module-docstring from datetime import datetime, timezone from unittest import TestCase import pytest from opaque_keys.edx.keys import CourseKey import attr from ...data import ( CourseOutlineData, CourseSectionData, CourseLearningSequenceData, VisibilityData, CourseVisibili...
299,941
construct data reader
import functools import operator import os import os.path import sys import numpy as np # Bamboo utilities current_file = os.path.realpath(__file__) current_dir = os.path.dirname(current_file) sys.path.insert(0, os.path.join(os.path.dirname(current_dir), 'common_python')) import tools # ==============================...
299,942
cmake args
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import re from spack.package import * class Rocfft(CMakePackage): """Radeon Open Compute FFT library""" homepa...
299,943
id for label
# SPDX-License-Identifier: EUPL-1.2 # Copyright (C) 2019 - 2020 Dimpact from typing import Optional, Union from django import forms from django.contrib.gis.admin.widgets import OpenLayersWidget from django.contrib.gis.gdal import AxisOrder, OGRGeometry, SpatialReference from django.contrib.gis.geos import GEOSGeometry...
299,944
test saving to disc index linestring
# 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...
299,945
test gen grid
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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...
299,946
vec
# Copyright (c) 2022, NVIDIA CORPORATION & 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. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
299,947
test try remove all membership attr values
# --- BEGIN COPYRIGHT BLOCK --- # Copyright (C) 2016-2017 Red Hat, Inc. # All rights reserved. # # License: GPL (version 3 or any later version). # See LICENSE for details. # --- END COPYRIGHT BLOCK --- import pytest from lib389.tests.cli import topology as default_topology from lib389.cli_base import LogCapture, Fak...
299,948
test propagation credentials endpoint get stolen
import json from http import HTTPStatus from typing import Sequence from urllib.parse import urljoin import pytest from tests.common import StubDIContainer from tests.data_for_tests.propagation_credentials import LM_HASH, NT_HASH, PASSWORD_1, PASSWORD_2 from tests.monkey_island import InMemoryCredentialsRepository fr...
299,949
run
import datetime import logging import localflavor from paying_for_college.models.disclosures import ( DEFAULT_EXCLUSIONS, HIGHEST_DEGREES, School, ) STATES = sorted( [tup[0] for tup in localflavor.us.us_states.CONTIGUOUS_STATES] + [tup[0] for tup in localflavor.us.us_states.NON_CONTIGUOUS_STATES...
299,950
registrator
"""Registrators that allow pluggable data to logic transforms.""" __all__ = ["registrator"] from typing import Callable, MutableMapping, Optional, Sequence, Text, Union def name_variations(*args): """Standard name variations when registering functions with MUSE.""" def camelCase(name): comps = name....
299,951
name
# 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...
299,952
benchmark native unbatch
# 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...
299,953
test can subscribe to startup hooks
# Copyright (c) 2009 Aldo Cortesi # Copyright (c) 2011 Florian Mounier # Copyright (c) 2011 Anshuman Bhaduri # Copyright (c) 2012 Tycho Andersen # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Softw...
299,954
version
# Copyright 2023 Avaiga Private Limited # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
299,955
test basic map operations
from javatests import Dict2JavaTest import unittest, test.test_support # Test the java.util.Map interface of org.python.core.PyDictionary. # This tests the functionality of being able to pass a dictionaries # created in Jython to a java method, and the ability to manipulate # the dictionary object once in Java code. ...
299,956
test structure parse csv with error
import os from httpx import AsyncClient from tests.conftest import test_dir async def test_parse_csv( test_client: AsyncClient, csv_beneficiary_filepath: str, get_manager_jwt_93: str, ): with open(csv_beneficiary_filepath, "rb") as file: response = await test_client.post( "/v1/co...
299,957
get url
""" Basic scraper worker - should be inherited by workers to scrape specific types of content """ import collections import requests import random import json import abc from pathlib import Path from backend.lib.worker import BasicWorker from common.config_manager import config class BasicHTTPScraper(BasicWorker, me...
299,958
test sync single blob to blob
import json import os import shutil import time import urllib from collections import namedtuple import utility as util import unittest # Temporary tests (mostly copy-pasted from blob tests) to guarantee simple sync scenarios still work # TODO Replace with better tests in the future class Blob_Sync_User_Scenario(unit...
299,959
package id
import pathlib import os from conan import ConanFile from conan.errors import ConanInvalidConfiguration from conan.tools.microsoft import check_min_vs, is_msvc from conan.tools.apple import is_apple_os from conan.tools.files import apply_conandata_patches, get, copy, rm from conan.tools.build import check_min_cppstd f...
299,960
clear vertexlabels
from __future__ import print_function from __future__ import absolute_import from __future__ import division import compas_ghpython from compas.artists import VolMeshArtist from .artist import GHArtist class VolMeshArtist(GHArtist, VolMeshArtist): """Artist for drawing volmesh data structures. Parameters ...
299,961
exists
# Copyright 2023 The Flax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
299,962
pisa story
# -*- coding: utf-8 -*- # Copyright 2010 Dirk Holtwick, holtwick.it # # 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 ...
299,963
get name
# A part of NonVisual Desktop Access (NVDA) # Copyright (C) 2023 NV Access Limited, Leonard de Ruijter # This file is covered by the GNU General Public License. # See the file COPYING for more details. """Module for native UIA implementations of SysListView32, e.g. in Windows Forms.""" from typing import Dict, List,...
299,964
initialize loc
# Copyright (c) 2022 Horizon Robotics. 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 applicab...
299,965
test exists fail
# ----------------------------------------------------------------------------- # Copyright (c) 2012 - 2018, Anaconda, Inc. and Intake contributors # All rights reserved. # # The full license is in the LICENSE file, distributed with this software. # ----------------------------------------------------------------------...
299,966
initial design
import scadnano as sc def create_design(): m13_rotation = 6702 m13_variant = sc.M13Variant.p7560 # print(sc.m13(m13_rotation, m13_variant)) design = METHOD_NAME() add_nicks(design) add_crossovers(design) scaffold = next(s for s in design.strands if s.first_domain.helix...
299,967
clear
import sqlite3 from diskcache import DjangoCache from django.core.cache.backends.base import DEFAULT_TIMEOUT class CustomDjangoCache(DjangoCache): """ Inherits from the DjangoCache to better manage the error handling of the diskcache package by try-catching methods that perform database operations un...
299,968
member
from django.conf import settings from django.contrib.sites.models import Site from django.core.exceptions import ValidationError from django.db import models from django.db.models import Exists, OuterRef from django.db.models.signals import pre_delete from django.dispatch import receiver from django.urls import reverse...
299,969
safe timestamp
import os import re from datetime import datetime, timezone, timedelta def parse_timestamp(timestamp, tzinfo=timezone.utc): """Parse a ISO 8601 timestamp string. For naive/unaware dt, assume it is in tzinfo timezone (default: UTC). """ dt = datetime.fromisoformat(timestamp) if dt.tzinfo is None: ...
299,970
write sst strings
############################################################################### # # SharedStrings - A class for writing the Excel XLSX sharedStrings file. # # SPDX-License-Identifier: BSD-2-Clause # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org # # Standard packages. import re # Package imports. from . impor...
299,971
get sync identity provider
# 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...
299,972
test warm coinbase gas usage
""" abstract: Tests [EIP-3651: Warm COINBASE](https://eips.ethereum.org/EIPS/eip-3651) Tests for [EIP-3651: Warm COINBASE](https://eips.ethereum.org/EIPS/eip-3651). note: Tests ported from: - [ethereum/tests/pull/1082](https://github.com/ethereum/tests/pull/1082). """ import pytest from ethereum_test_forks...
299,973
items
# -*- coding: utf-8 -*- # Copyright 2023 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. """Extractors for https://vipergirls.to/""" from .common import Extractor, M...
299,974
test minimal yolo with connect
import deeplake import pytest from deeplake.util.exceptions import IngestionError @pytest.mark.parametrize("shuffle", [True, False]) def test_minimal_yolo_ingestion(local_path, yolo_ingestion_data, shuffle): params = { "data_directory": yolo_ingestion_data["data_directory"], "class_names_file": yo...
299,975
set up
# 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...
299,976
bgp converge
#!/usr/bin/env python # SPDX-License-Identifier: ISC # # bgp_tcp_mss.py # Part of NetDEF Topology Tests # # Copyright (c) 2021 by # Abhinay Ramesh <rabhinay@vmware.com> # """ bgp_tcp_mss.py: Test if works the following commands: router bgp 65000 neighbor 192.168.255.2 tcp-mss 500 Need to verify if the tcp-mss val...
299,977
inc linux counter
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
299,978
raise warnings
from collections import namedtuple import numpy as np from ...util import dtype as dtypes from ...exposure import is_low_contrast from ..._shared.utils import warn from math import floor, ceil _default_colormap = 'gray' _nonstandard_colormap = 'viridis' _diverging_colormap = 'RdBu' ImageProperties = namedtuple('Ima...
299,979
evaluate
# /usr/bin/env python3.5 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2020, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
299,980
instance
# Copyright (c) 2015-2018 Cisco Systems, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge...
299,981
param generator params size in bytes
# Copyright (c) 2022 The University of Manchester # # 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 or ...
299,982
test get center
# 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...
299,983
strip prefix
# 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...
299,984
test file pointer could be reused
import io import re import sys import warnings import pytest from PIL import Image, WebPImagePlugin, features from .helper import ( assert_image_equal, assert_image_similar, assert_image_similar_tofile, hopper, skip_unless_feature, ) try: from PIL import _webp HAVE_WEBP = True except Im...
299,985
upload step remote
import logging import os import shutil import tempfile from abc import abstractmethod from pathlib import Path from typing import Any, Union from tango.common.aliases import PathOrStr from tango.common.exceptions import TangoError from tango.common.file_lock import FileLock from tango.common.params import Params from ...
299,986
list1 default
# (C) Copyright 2004-2023 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in LICENSE.txt and may be redistributed only under # the conditions described in the aforementioned license. The license # is also available online at...
299,987
reset
#!/usr/bin/env python3 import re import argparse import os import gi import json import subprocess gi.require_version('Flatpak', '1.0') from gi.repository import Flatpak from gi.repository import GLib def get_bisection_data(): return {'ref': None, 'good': None, 'bad': None, 'refs': None, 'log...
299,988
test iter decode
# coding: utf-8 """ webencodings.tests ~~~~~~~~~~~~~~~~~~ A basic test suite for Encoding. :copyright: Copyright 2012 by Simon Sapin :license: BSD, see LICENSE for details. """ from __future__ import unicode_literals from . import (lookup, LABELS, decode, encode, iter_decode, iter_encode, ...
299,989
private link service connection state
# 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...
299,990
pandas
import geopandas from shapely.geometry import Point, mapping, shape from great_expectations.execution_engine import PandasExecutionEngine from great_expectations.expectations.expectation import ColumnMapExpectation from great_expectations.expectations.metrics import ( ColumnMapMetricProvider, column_condition_...
299,991
check if dbz running
import socket import re import backoff from . import basetest from .runner import CfLocalRunnerWithPostgreSQL # Constants KAFKA_CLUSTER_IMAGE_NAME = "johnnypark/kafka-zookeeper" KAFKA_CLUSTER_IMAGE_VERSION = "2.4.0" KAFKA_CLUSTER_NAME = "kafka-cluster" KAFKA_CONNECT_URL = "http://localhost:8083" KAFKA_PG_CONNECTOR_N...
299,992
test django admin cli command
""" :codeauthor: Jayesh Kariya <jayeshk@saltstack.com> Test cases for salt.modules.djangomod """ import pytest import salt.modules.djangomod as djangomod from tests.support.mock import MagicMock, patch @pytest.fixture def configure_loader_modules(): with patch("salt.utils.path.which", lambda exe: exe): ...
299,993
test ignore errors true
"""IgnoreErrorsRule used with ansible-lint.""" from __future__ import annotations import sys from typing import TYPE_CHECKING from ansiblelint.rules import AnsibleLintRule if TYPE_CHECKING: from ansiblelint.file_utils import Lintable from ansiblelint.utils import Task class IgnoreErrorsRule(AnsibleLintRule...
299,994
aries container generate invitation
import asyncio import json import uuid from runners.agent_container import AgentContainer, create_agent_with_args_list ###################################################################### # coroutine utilities ###################################################################### def run_coroutine(coroutine, *ar...
299,995
set in slot
############################################################################### # lazyflow: data flow based lazy parallel computation framework # # Copyright (C) 2011-2014, the ilastik developers # <team@ilastik.org> # # This program is free software; you can redistribute it and/o...
299,996
get fasttest cmd
#!/usr/bin/env python3 import logging import subprocess import os import csv import sys from github import Github from env_helper import CACHES_PATH, TEMP_PATH from pr_info import FORCE_TESTS_LABEL, PRInfo from s3_helper import S3Helper from get_robot_token import get_best_robot_token from upload_result_helper impor...
299,997
mass 2d
from lenstronomy.LensModel.Profiles.hernquist import Hernquist import lenstronomy.Util.param_util as param_util from lenstronomy.LensModel.Profiles.base_profile import LensProfileBase import numpy as np __all__ = ["Hernquist_Ellipse"] class Hernquist_Ellipse(LensProfileBase): """This class contains functions for...
299,998
bootstrap field
import json from crispy_forms.helper import FormHelper from crispy_forms.utils import render_crispy_form from django import template from django.conf import settings from django.urls import reverse, NoReverseMatch from django.template.defaultfilters import safe from hashlib import md5 from markdown import markdown as ...
299,999
query op
# # Copyright The NOMAD Authors. # # This file is part of NOMAD. See https://nomad-lab.eu for further info. # # 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/licen...