id
int64
0
300k
label
stringlengths
1
74
text
stringlengths
4k
8k
7,300
prop descriptions
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scatterpolargl" _path_str = "scatterpolargl.unselected" _valid_props = {"marker", "textf...
7,301
query package
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2014, Kim Nørgaard # Written by Kim Nørgaard <jasen@jasen.dk> # Based on pkgng module written by bleader <bleader@ratonland.org> # that was based on pkgin module written by Shaun Zinck <shaun.zinck at gmail.com> # that was based on pacman module written by Afte...
7,302
main
# -*- coding: utf-8 -*- import os import aredis import pytest from ddtrace import Pin from ddtrace.contrib.aredis.patch import patch from ddtrace.contrib.aredis.patch import unpatch from ddtrace.internal.schema.span_attribute_schema import _DEFAULT_SPAN_SERVICE_NAMES from ddtrace.vendor.wrapt import ObjectProxy from ...
7,303
publish pose
#!/usr/bin/env python3 # # Software License Agreement (BSD License) # Copyright © 2011, 2022-2023 belongs to Shadow Robot Company Ltd. # 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. Redist...
7,304
set fixed parameters
# # HES1 Michaelis-Menten model of regulatory dynamics. # # This file is part of PINTS (https://github.com/pints-team/pints/) which is # released under the BSD 3-clause license. See accompanying LICENSE.md for # copyright notice and full license details. # import numpy as np import pints import scipy from . import ToyO...
7,305
measure
from common import ( identity, identity_script, heavy, heavy_script, identity_cuda, identity_script_cuda, heavy_cuda, heavy_script_cuda, stamp_time, compute_delay, NUM_RPC, ) from torch.distributed import rpc from functools import partial from statistics import stdev import...
7,306
support
import torch from torch.distributions import constraints from torch.distributions.distribution import Distribution from torch.distributions.utils import ( broadcast_all, lazy_property, logits_to_probs, probs_to_logits, ) __all__ = ["Binomial"] def _clamp_by_zero(x): # works like clamp(x, min=0) b...
7,307
deprecated func
"""Class for recording and reporting deprecations""" from __future__ import annotations import functools import re import typing as ty import warnings if ty.TYPE_CHECKING: # pragma: no cover T = ty.TypeVar('T') P = ty.ParamSpec('P') _LEADING_WHITE = re.compile(r'^(\s*)') TESTSETUP = """ .. testsetup:: ...
7,308
to numpy form
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE from __future__ import annotations __all__ = ("EmptyForm",) from collections.abc import Callable from inspect import signature import awkward as ak from awkward._errors import deprecate from awkward._nplikes.numpylike import Nump...
7,309
calc graph
import plotly.graph_objs as go import cea.plots.demand from cea.plots.variable_naming import LOGO, COLOR, NAMING class EnergySupplyIntensityPlot(cea.plots.demand.DemandPlotBase): name = "Energy Final Use Intensity" def __init__(self, project, parameters, cache): super(EnergySupplyIntensityPlot, s...
7,310
fast
# Copyright 2021 Collate # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software...
7,311
test callbacks 2
import unittest from ctypes import * from ctypes.test import need_symbol import _ctypes_test dll = CDLL(_ctypes_test.__file__) try: CALLBACK_FUNCTYPE = WINFUNCTYPE except NameError: # fake to enable this test on Linux CALLBACK_FUNCTYPE = CFUNCTYPE class POINT(Structure): _fields_ = [("x", c_int), ("y...
7,312
get node
# SPDX-License-Identifier: LGPL-2.1-or-later # # Copyright (C) 2023 Collabora Limited # Author: Guillaume Tucker <guillaume.tucker@collabora.com> """KernelCI API bindings for the latest version""" import enum from typing import Optional, Sequence from cloudevents.http import from_json import requests from . import ...
7,313
setup worker
# 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...
7,314
test when not logged in redirects to
# -*- coding: utf-8 -*- # pylint: disable=too-many-ancestors import os import unittest from http import HTTPStatus from django import test from django.conf import settings from django.contrib.sites.models import Site from django.core.management import call_command from django.urls import include, path, reverse from dj...
7,315
test vector int
import pytest pytestmark = pytest.mark.parameters_handler_yarp import bipedal_locomotion_framework.bindings.parameters_handler as blf import numpy as np def test_bool(): handler = blf.YarpParametersHandler() handler.set_parameter_bool(name="my_bool", value=True) assert handler.get_parameter_bool(name="...
7,316
do filter
# SPDX-FileCopyrightText: 2015 National CyberSecurity Center # # SPDX-License-Identifier: AGPL-3.0-or-later # -*- coding: utf-8 -*- import re from datetime import datetime, timedelta, timezone from dateutil import parser from intelmq.lib.bot import ExpertBot from intelmq.lib.utils import parse_relative, TIMESPANS ...
7,317
dpf vector double free
import ctypes from ansys.dpf.gate import utils from ansys.dpf.gate import errors from ansys.dpf.gate.generated import capi from ansys.dpf.gate.generated import dpf_vector_abstract_api from ansys.dpf.gate.generated.data_processing_capi import DataProcessingCAPI #---------------------------------------------------------...
7,318
classical
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2018-2022 GEM Foundation # # OpenQuake 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...
7,319
configure
from conan import ConanFile from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rmdir from conan.tools.scm import Version import os required_conan_version = ">=1.53.0" class BrotliConan(ConanFile): name = "b...
7,320
test sanitize yaml and save datasource raises
import pytest from great_expectations.cli.datasource import sanitize_yaml_and_save_datasource from great_expectations.util import is_library_loadable pytestmark = pytest.mark.cli def test_sanitize_yaml_and_save_datasource_raises_error_on_empty_yaml( empty_data_context, ): with pytest.raises(ValueError): ...
7,321
fuse model
"""MidashNet: Network for monocular depth estimation trained by mixing several datasets. This file contains code that is adapted from https://github.com/thomasjpfan/pytorch_refinenet/blob/master/pytorch_refinenet/refinenet/refinenet_4cascade.py """ import torch import torch.nn as nn from .base_model import BaseModel f...
7,322
max word
""" The Blake2 Implementation ^^^^^^^^^^^^^^^^^^^^^^^^^^ """ import struct from dataclasses import dataclass from typing import List, Tuple from ethereum.base_types import Uint def spit_le_to_uint(data: bytes, start: int, num_words: int) -> List[Uint]: """ Extracts 8 byte words from a given data. Parame...
7,323
url
# -*- coding: utf-8 -*- # BSD 3-Clause License # # Apprise - Push Notification Library. # Copyright (c) 2023, Chris Caron <lead2gold@gmail.com> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of s...
7,324
refinement points and weights
# Copyright 2020 Edoardo Zoni # # This file is part of WarpX # # License: BSD-3-Clause-LBNL #------------------------------------------------------------------------------- # Compute interpolation points and weights for coarsening and refinement in IO # and MR applications in 1D (extensions to 2D and 3D are trivial). ...
7,325
delete search
from stix_shifter_utils.stix_transmission.utils.RestApiClientAsync import RestApiClientAsync from stix_shifter_utils.utils import logger class APIClient(): # API METHODS # These methods are used to call Ariel's API methods through http requests. # Each method makes use of the http methods below to perform...
7,326
test helpers
# -*- coding: utf-8 -*- # File generated from our OpenAPI spec from __future__ import absolute_import, division, print_function from stripe import util from stripe.api_resources.abstract import APIResourceTestHelpers from stripe.api_resources.abstract import CreateableAPIResource from stripe.api_resources.abstract imp...
7,327
test with aliased aliases
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com thumbor@googlegroups.com from os.path import expanduser from unittest import TestCase, mock ...
7,328
check if user follows
from organization.models.organization import Organization from organization.models.followers import OrganizationFollower, ProjectFollower from organization.models.project import Project from organization.utility.notification import ( create_organization_follower_notification, create_project_follower_notificatio...
7,329
set power
#!/usr/bin/python ################## # piezo_e816.py # # Copyright David Baddeley, 2009 # 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 Lic...
7,330
get clipboard
import functools import socket import struct import time import module.device.method.scrcpy.const as const def inject(control_type: int): """ Inject control code, with this inject, we will be able to do unit test Args: control_type: event to send, TYPE_* """ def wrapper(f): @fun...
7,331
test missing fields
from timApp.auth.accesstype import AccessType from timApp.tests.server.timroutetest import TimRouteTest from timApp.timdb.sqa import db class FeedbackReportTest(TimRouteTest): def test_empty_report(self): self.login_test1() d = self.create_doc() self.get( f"/feedback/report/{d....
7,332
test vagrant get vm info
import os import salt.exceptions import salt.modules.vagrant as vagrant import salt.utils.platform from tests.support.mixins import LoaderModuleMockMixin from tests.support.mock import MagicMock, patch from tests.support.unit import TestCase TEMP_DATABASE_FILE = "/tmp/salt-tests-tmpdir/test_vagrant.sqlite" class Va...
7,333
test vizier trial deletion
import pytest from google.api_core import exceptions from google.cloud import aiplatform from google.cloud.aiplatform.vizier import Study from google.cloud.aiplatform.vizier import Trial from tests.system.aiplatform import e2e_base from google.cloud.aiplatform.vizier import pyvizier _TEST_STUDY_ID = 123 @pytest.mar...
7,334
get oauth redirect url
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in complia...
7,335
test turnout percentage max 100
from candidates.tests.auth import TestUserMixin from candidates.tests.factories import MembershipFactory from candidates.tests.uk_examples import UK2015ExamplesMixin from django.test import TestCase from people.tests.factories import PersonFactory from uk_results.models import CandidateResult, ResultSet class TestUKR...
7,336
test gracefully handles missing context
from contextlib import ExitStack from unittest import mock import pytest from prefect import flow, task from prefect.client.orchestration import get_client from prefect.context import FlowRunContext from prefect.events.related import ( MAX_CACHE_SIZE, _get_and_cache_related_object, related_resources_from_...
7,337
test conv2 d transpose 9 10 11
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
7,338
cache test
import concurrent.futures import threading import time import cachetools import pytest import large_image.cache_util.cache from large_image import config from large_image.cache_util import (LruCacheMetaclass, MemCache, cachesClear, cachesInfo, getTileCache, methodcache, ...
7,339
test substitution with square bracket
""" Pygments regex lexer tests ~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import time import pytest from pygments.token import Keyword, Name, String, Text from pygments.lexers.perl import PerlLexer @pyte...
7,340
roles by doctype
import requests import frappe STANDARD_ROLES = [ # standard roles "Administrator", "All", "Guest", # accounts "Accounts Manager", "Accounts User", # projects "Projects User", "Projects Manager", # framework "Blogger", "Dashboard Manager", "Inbox User", "Newsletter Manager", "Prepared Report User", "R...
7,341
eq flow vol permeate
################################################################################# # WaterTAP Copyright (c) 2020-2023, The Regents of the University of California, # through Lawrence Berkeley National Laboratory, Oak Ridge National Laboratory, # National Renewable Energy Laboratory, and National Energy Technology # Labo...
7,342
get cluster config
import time from .base import AugerBaseApi from .cluster import AugerClusterApi from ..exceptions import AugerException class AugerProjectApi(AugerBaseApi): """Auger Project API.""" def __init__(self, ctx, org_api, project_name=None, project_id=None): super(AugerProjectApi, self).__init__( ...
7,343
list parentless stacks with tag
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance # with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file accom...
7,344
test positional only
import unittest from enum import Enum from robot.running.arguments.argumentspec import ArgumentSpec, ArgInfo from robot.utils.asserts import assert_equal class TestStringRepr(unittest.TestCase): def test_empty(self): self._verify('') def test_normal(self): self._verify('a, b', ['a', 'b']) ...
7,345
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 . imp...
7,346
get config item
import json import logging import os log = logging.getLogger(__name__) # Define sentinel object NULL constant NULL = object() # pylint: disable=too-many-instance-attributes # reviewed and disabled (jdh) class Configs: """Configuration class to handle config file, args, env tasks. Order of precedence...
7,347
demo
# Natural Language Toolkit: Cooper storage for Quantifier Ambiguity # # Copyright (C) 2001-2023 NLTK Project # Author: Ewan Klein <ewan@inf.ed.ac.uk> # URL: <https://www.nltk.org/> # For license information, see LICENSE.TXT from nltk.parse import load_parser from nltk.parse.featurechart import InstantiateVarsChart fro...
7,348
save osm data async
# -*- coding: utf-8 -*- """ OSM utility module. """ from __future__ import unicode_literals import logging from django.contrib.gis.geos import GeometryCollection, LineString, Point, Polygon from django.contrib.gis.geos.error import GEOSException from django.db import IntegrityError, models, transaction from defusedx...
7,349
test tracking line numbers
"""Tests to ensure that the lxml tree builder generates good trees.""" import pickle import pytest import re import warnings from . import LXML_PRESENT, LXML_VERSION if LXML_PRESENT: from bs4.builder import LXMLTreeBuilder, LXMLTreeBuilderForXML from bs4 import ( BeautifulSoup, BeautifulStoneSoup, ) ...
7,350
test
#-*- coding: utf-8 -*- ########################################################################### ## ## ## Copyrights Frédéric Rodrigo 2012 ## ## ...
7,351
can create from shape
from . import * from pya import * class Bragg_encoder(pya.PCellDeclarationHelper): def __init__(self): #Important: initialize the super class super(Bragg_encoder,self).__init__() TECHNOLOGY = get_technology_by_name('EBeam') #declare the paramters #parameters: binary code, start period, end p...
7,352
test solve gd p iterate over discrete
# ___________________________________________________________________________ # # 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 ...
7,353
endpoints
from enum import IntFlag from typing import Dict, List from pyroute2 import MPTCP from socket import AF_INET, AF_INET6 from lnst.Common.IpAddress import ipaddress, BaseIpAddress class MPTCPFlags(IntFlag): # via https://github.com/torvalds/linux/blob/9d31d2338950293ec19d9b095fbaa9030899dcb4/include/uapi/linux/mptc...
7,354
authenticate
"""Base provider module for all Lexicon providers""" from abc import ABC, abstractmethod from argparse import ArgumentParser from re import Pattern from typing import Any, Dict, List, Optional, Union from lexicon.config import ConfigResolver, legacy_config_resolver class Provider(ABC): """ This is the abstra...
7,355
get variable
"""A class for abstracting and managing point model results in the form of observation point data.""" import os import pickle import re from dataclasses import dataclass, field from typing import Union import pandas as pd from dataretrieval import nwis from ILAMB import ilamblib as il def is_binary_file(filename: ...
7,356
test request timeout backoff for acquire access
import unittest import requests from unittest import mock import tap_hubspot class TestRequestTimeoutValue(unittest.TestCase): def test_integer_request_timeout_in_config(self): """ Verify that if request_timeout is provided in config(integer value) then it should be use """ tap_...
7,357
test worker datastore access
# encoding: utf-8 import mock import pytest import sqlalchemy.exc import ckan.lib.jobs as jobs import ckan.plugins as p import ckan.tests.factories as factories import ckan.tests.helpers as helpers import ckanext.datastore.backend as backend import ckanext.datastore.backend.postgres as db class TestCreateIndexes(ob...
7,358
ssh execute
#!/usr/bin/env python3 # # Copyright 2021 Kontain 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 ...
7,359
register subtypes
# Copyright 2017 Battelle Energy Alliance, 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 t...
7,360
test infer problem type big float data
import unittest import numpy as np import pandas as pd import pytest from autogluon.core.constants import BINARY, MULTICLASS, MULTICLASS_UPPER_LIMIT, REGRESSION from autogluon.core.utils import infer_problem_type from autogluon.core.utils.utils import generate_train_test_split class TestInferProblemType(unittest.Te...
7,361
predict compressed model
import os import shutil import paddle from ...analysis import TableLatencyPredictor from .prune_model import get_sparse_model, get_prune_model from .fake_ptq import post_quant_fake from ...common.load_model import load_inference_model import platform def with_variable_shape(model_dir, model_filename=None, params_file...
7,362
prs
#!/usr/bin/env python3 import os import comment_util import sys from typing import Optional, Dict, Iterable import requests github_username = os.environ['GITHUB_USERNAME'] github_token = os.environ['GITHUB_TOKEN'] owner = os.environ['CIRCLE_PROJECT_USERNAME'] repo = os.environ['CIRCLE_PROJECT_REPONAME'] pr_number = ...
7,363
make url
# Copyright 2012-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file ac...
7,364
get architecture
import os from pathlib import Path from wazuh_testing.qa_ctl.provisioning.wazuh_deployment.wazuh_package import WazuhPackage from wazuh_testing.qa_ctl.provisioning.ansible.ansible_task import AnsibleTask from wazuh_testing.qa_ctl import QACTL_LOGGER from wazuh_testing.tools.logging import Logging from wazuh_testing.to...
7,365
create obj in
# emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Parse the "ASCCONV" meta data format found in a variety of Siemens MR files. """ import ast import re from collections import OrderedDict ASCCONV_RE = re.compile( r'### ASCCONV BEGIN((?:\s*[^=...
7,366
test spectrogram yscale deprecation
""" Test deprecations. For each deprecation two things must be tested: 1. Is a proper warning raised. This is done using with pytest.warns(PendingDeprecationWarning, match="some text"): call_of_function() 2. Was the function properly deprecated. This is done using: if version.parse(pf.__version__) >= versi...
7,367
from monoid
# Copyright 2021 IBM 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 writing, ...
7,368
post operations
# -------------------------------------------------------------------------------------------- # 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 aaz-dev-tools # --------------------------------...
7,369
lab vms startup
# 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...
7,370
test get block size
import sys import pytest from PIL import Image from .helper import is_pypy def test_get_stats(): # Create at least one image Image.new("RGB", (10, 10)) stats = Image.core.get_stats() assert "new_count" in stats assert "reused_blocks" in stats assert "freed_blocks" in stats assert "allo...
7,371
extract data
# pylint: disable=too-many-lines # 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) AutoRe...
7,372
create time
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload fr...
7,373
test host
from django.test import SimpleTestCase from eulxml.xpath import parse as parse_xpath from testil import eq, assert_raises from corehq.apps.case_search.xpath_functions.ancestor_functions import is_ancestor_comparison, \ _is_ancestor_path_expression from corehq.apps.case_search.filter_dsl import CaseFilterError from...
7,374
parse optimizer
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
7,375
in directory
# ******************************************************************************** # # Inviwo - Interactive Visualization Workshop # # Copyright (c) 2013-2023 Inviwo Foundation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the f...
7,376
rbda eq 4 12
from __future__ import absolute_import, division, print_function try: import scitbx except ImportError: import scitbx_matrix as matrix else: from scitbx import matrix import math class zero_dof_alignment(object): def __init__(O): O.cb_0b = matrix.rt(((1,0,0,0,1,0,0,0,1), (0,0,0))) O.cb_b0 = O.cb_0b class z...
7,377
does read
""" Adaptor for reading COCO keypoint detection datasets. See http://cocodataset.org/#format-data for details about this format. """ import os import numpy as np from sleap import Labels, Video, Skeleton from sleap.gui.dialogs.missingfiles import MissingFilesDialog from sleap.instance import Instance, LabeledFrame,...
7,378
get log analytic export request rate by
# 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...
7,379
plans
""" @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ import builtins import caffe2.proto.caffe2_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import typing import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescri...
7,380
parse re flags
# 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 ...
7,381
pre evaluate
# Copyright 2019-2022 ETH Zurich and the DaCe authors. All rights reserved. import os import tempfile import math import dace import json from typing import Dict, Generator, Any, List, Tuple from dace.optimization import auto_tuner from dace.optimization import utils as optim_utils from dace.sdfg.sdfg import SDFG from...
7,382
check html
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
7,383
build base hue
# Copyright (c) Princeton University. # This source code is licensed under the BSD 3-Clause license found in the LICENSE file in the root directory of this source tree. # Authors: Lingjie Mei import colorsys import bpy import numpy as np from numpy.random import uniform import util.blender as butil from .base impo...
7,384
test builtins
import unittest import idlelib.CallTips as ct CTi = ct.CallTips() # needed for get_entity test in 2.7 import textwrap import types import warnings default_tip = '' # Test Class TC is used in multiple get_argspec test methods class TC(object): 'doc' tip = "(ai=None, *args)" def __init__(self, ai=None, *b)...
7,385
dumps
# This file is originally part of Fed-BioMed # SPDX-License-Identifier: Apache-2.0 """MsgPack serialization utils, wrapped into a namespace class.""" from math import ceil from typing import Any import msgpack import numpy as np import torch from declearn.model.api import Vector from fedbiomed.common.exceptions imp...
7,386
prepare request
# pylint: disable=too-many-lines # 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) AutoRe...
7,387
equalize channel
# Copyright 2022 The KerasCV 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 law or agreed to in ...
7,388
test split
# Copyright 2022 The MediaPipe Authors.s # # 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 ...
7,389
opentag
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2019 Matt Post <post@cs.jhu.edu> # Copyright 2019 David Wei Chiang <dchiang@nd.edu> # # 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 a...
7,390
set up class
# -*- coding: utf-8 -*- import unittest from unittest.mock import MagicMock import pickle from blivetgui.communication.server import BlivetUtilsServer, BlivetProxyObject from blivetgui.communication.proxy_utils import ProxyID, ProxyDataContainer from blivet.size import Size class BlivetUtilsServerTest(unittest.Te...
7,391
reset titles
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. """SelectionContainer class. Represents a multipage container that can be used to group other widgets into pages. """ from .widget_box import Box from .widget import register from .widget_core import CoreWidget from ...
7,392
accepts password
# Author: Trevor Perrin # See the LICENSE file for legal information regarding use of this file. """OpenSSL/M2Crypto RSA implementation.""" from .cryptomath import * from .rsakey import * from .python_rsakey import Python_RSAKey from .compat import compatAscii2Bytes, compat_b2a #copied from M2Crypto.util.py, so whe...
7,393
test strip px unit
from django.conf import settings from django.core import mail from django.core.exceptions import SuspiciousOperation from django.template.loader import get_template from django.test import TestCase from pyquery import PyQuery from openforms.config.models import GlobalConfiguration from openforms.emails.context import...
7,394
log timing
#!/usr/bin/env python """ This parses a log file series (i.e. log, log.1, log.2, etc..) and outputs timing and call frequency information for HAL messages. Hazen 5/18 """ from datetime import datetime import os pattern = '%Y-%m-%d %H:%M:%S,%f' class Message(object): """ Storage for the timing of a single m...
7,395
test meta inheritance with override
import pytest from iommi.declarative.dispatch import dispatch from iommi.declarative.namespace import Namespace from iommi.declarative.with_meta import with_meta def test_empty(): @with_meta class Test: def __init__(self, foo): assert foo == 'bar' Test('bar') def test_constructor()...
7,396
test url makes sense ok
from http import HTTPStatus import pytest import requests import reconcile.checkpoint as sut @pytest.fixture def valid_app(): """How a valid application looks like.""" return { "sopsUrl": "https://www.redhat.com/sops", "architectureDocument": "https://www.redhat.com/arch", "grafanaUr...
7,397
infer net
# Copyright (c) 2020 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...
7,398
import gridprop from init
from typing import List, Union import ecl_data_io as eclio from typing_extensions import Literal from ._find_gridprop_in_eclrun import ( find_gridprop_from_init_file, find_gridprops_from_restart_file, ) def decorate_name(name, dual_porosity, fracture, date=None): """Decorate a property name with date an...
7,399
from stats json
from typing import TYPE_CHECKING, List, Optional, Sequence import numpy as np from rastervision.core.data.raster_transformer import RasterTransformer from rastervision.core.raster_stats import RasterStats from rastervision.pipeline.utils import repr_with_args if TYPE_CHECKING: from rastervision.core.data import ...