id
int64
0
300k
label
stringlengths
1
74
text
stringlengths
4k
8k
6,600
test is previewable for broken mode
from unittest import mock from django.conf import settings from wagtail.models import Page from wagtail.test.routablepage.models import RoutablePageTest from wagtail.test.utils import WagtailPageTestCase class TestCustomPageAssertions(WagtailPageTestCase): @classmethod def setUpTestData(cls): cls.su...
6,601
constraint definition
# -*- coding: utf-8 -* from lxml import etree def policy_attributes(Policy_definition, policy_attributes): for idx,(name,syntax,constraint,description,defaultvalue) in enumerate(policy_attributes): policy_attribute_name = etree.SubElement(Policy_definition, 'policyAttribute', name=name) policy_att...
6,602
neighbors of
import logging import numpy as np import scipy import pickle import gzip import os from tqdm import tqdm import torch.utils.data as data # From GTTF, need to cite once paper is officially accepted to ICLR 2021 class CompactAdjacency: def __init__(self, adj, precomputed=None, subset=None): """Constructs ...
6,603
command list end
# Copyright (c) 2021 elParaguayo # # 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, publish, distrib...
6,604
teller3
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
6,605
reachable
"""OID tree traversal for the garbage collection phase of packing. Optimized for memory efficiency. Uses sets of native integers rather than Python integers because native integers take up a lot less room in RAM. """ from __future__ import absolute_import import collections import gc import logging import BTrees ...
6,606
vocab init
# 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. import torch.nn as nn from fairseq.model_parallel.models.transformer import ModelParallelTransformerDecoder from fairseq.models import regist...
6,607
diff viewer
# 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. # !/usr/bin/env python """ Provides "diff-like" comparison of images. Currently relies on matplotlib for image processing so l...
6,608
create next atlas entity
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import logging from typing import ( Any, Iterator, Optional, Union, ) from amundsen_common.utils.atlas import AtlasCommonParams, AtlasDashboardTypes from amundsen_rds.models import RDSModel from amundsen_rds.models.dashboard i...
6,609
nunique series
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
6,610
get raz cluster name
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
6,611
test verb serializer with valid data
"""Tests for the XAPIStatementSerializer serializer of the Marsha project.""" from django.test import TestCase from marsha.core.serializers import ( ExtensionSerializer, VerbSerializer, XAPIStatementSerializer, ) class VerbSerializerTest(TestCase): """Test the serializer validating a xAPI verb.""" ...
6,612
set layer data json
"""This module contains function to save building element classes.""" import teaser.logic.utilities as utilities import warnings import collections import json def save_type_element(element, data_class): """Save information about building element to json. Saves typical building elements according to their c...
6,613
get
# coding=utf-8 """Request handler for series and episodes.""" from __future__ import unicode_literals import logging from os.path import basename from medusa import db from medusa.common import DOWNLOADED, FAILED, SNATCHED, SUBTITLED, statusStrings from medusa.logger.adapters.style import BraceAdapter from medusa.pro...
6,614
test suite
from __future__ import annotations import json import os from os import chdir, environ, getcwd from os import path as p from typing import Tuple import pytest from rdflib.term import URIRef from . import runner TC_BASE = "https://w3c.github.io/json-ld-api/tests/toRdf/" testsuite_dir = p.join(p.abspath(p.dirname(...
6,615
cyclic support get expanded element ids
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 cyclic_support_abstract_api from ansys.dpf.gate.generated.data_processing_capi import DataProcessingCAPI #-----------------------------------------------------...
6,616
clean data
import json from typing import List, cast import pandas as pd from owid.catalog import Dataset, Table from owid.catalog.utils import underscore_table from structlog import get_logger from etl.data_helpers import geo from etl.helpers import PathFinder from etl.paths import DATA_DIR log = get_logger() # naming conven...
6,617
test get columns
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
6,618
system data
# 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...
6,619
fuse modules
# Copyright (c) Alibaba, Inc. and its affiliates. import os import sys import tempfile from typing import Dict, Optional, Tuple import torch import torch.nn as nn from modelscope.metainfo import Models from modelscope.models import TorchModel from modelscope.models.base import Tensor from modelscope.models.builder i...
6,620
embed input
'''build label embedding model ''' import math import pgl import paddle.fluid as F import paddle.fluid.layers as L from pgl.utils import paddle_helper from module.model_unimp import graph_transformer, linear, attn_appnp class Arxiv_baseline_model(): def __init__(self, gw, hidden_size, num_heads, dropout, num_layer...
6,621
method
# -------------------------------------------------------------------------------------------- # 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 # --------------------------------...
6,622
diff config
# Copyright 2016-2018, Pulumi 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 t...
6,623
via url
from datetime import timedelta from urllib.parse import quote import requests from lms.services.exceptions import ExternalRequestError, SerializableError from lms.services.http import HTTPService from lms.services.jstor._article_metadata import ArticleMetadata from lms.services.jwt import JWTService from lms.views.he...
6,624
test multivariate normal size types
import sys import pytest from numpy.testing import ( assert_, assert_array_equal, assert_raises, ) import numpy as np from numpy import random class TestRegression: def test_VonMises_range(self): # Make sure generated random variables are in [-pi, pi]. # Regression test for ticket #986...
6,625
test decompress
#!/usr/bin/env python # # Project: Bitshuffle-LZ4 decompression in OpenCL # https://github.com/silx-kit/silx # # Copyright (C) 2022-2023 European Synchrotron Radiation Facility, # Grenoble, France # Permission is hereby granted, free of charge, to any person # obtaining a ...
6,626
create child files
# 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. # --------------------------------------------------------------------...
6,627
patch
# 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 RocprofilerDev(CMakePackage): """ROCPROFILER library for AMD HSA runtim...
6,628
test description prev
from datetime import datetime from os.path import dirname, join import pytest from city_scrapers_core.constants import COMMISSION, PASSED from city_scrapers_core.utils import file_response from freezegun import freeze_time from scrapy.settings import Settings from city_scrapers.spiders.chi_board_elections import ChiB...
6,629
get next
# 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...
6,630
pre process coco resnet34 tf
""" dataset related classes and methods """ # pylint: disable=unused-argument,missing-docstring import logging import sys import time import cv2 import numpy as np logging.basicConfig(level=logging.INFO) log = logging.getLogger("dataset") class Item(): def __init__(self, label, img, idx): self.label =...
6,631
register dataclass as pytree node
import dataclasses from typing import Any, Dict, List, Optional, Tuple, Type import torch from torch._export import ExportedProgram from torch.utils._pytree import ( _register_pytree_node, Context, DumpableContext, FlattenFunc, FromDumpableContextFn, ToDumpableContextFn, UnflattenFunc, )...
6,632
test restore contour order warning
import pytest from shutil import copy2, copytree import os from booleanOperations.booleanGlyph import BooleanGlyph from defcon import Glyph from afdko.checkoutlinesufo import remove_tiny_sub_paths from afdko.fdkutils import ( get_temp_file_path, get_temp_dir_path, get_font_format, ) from test_utils impor...
6,633
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...
6,634
test function no runtime
from unittest import mock from moto.core import DEFAULT_ACCOUNT_ID from prowler.providers.aws.services.awslambda.awslambda_service import Function AWS_REGION = "us-east-1" class Test_awslambda_function_using_supported_runtimes: def test_no_functions(self): lambda_client = mock.MagicMock lambda_...
6,635
exponent
# Copyright 2019 The Cirq Developers # # 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 ...
6,636
get json from cloud
import datetime import typing import weakref from typing import Dict, Iterator, List, Optional, Sequence, Union from robocorp_code.deps._deps_protocols import ( PyPiInfoTypedDict, ReleaseData, Versions, VersionStr, ) from robocorp_ls_core.robotframework_log import get_logger log = get_logger(__name__)...
6,637
send weekly email
from datetime import timedelta from zoneinfo import ZoneInfo from django.conf import settings from django.template.loader import render_to_string from django.utils import timezone from premailer import transform from structlog import get_logger from lego import celery_app from lego.apps.events.constants import EVENT...
6,638
tear down
#!/usr/bin/env python # Copyright 2020, New York University and the TUF contributors # SPDX-License-Identifier: MIT OR Apache-2.0 """ Unit tests for 'examples' scripts. """ import glob import os import shutil import sys import tempfile import unittest from pathlib import Path from typing import ClassVar, List from te...
6,639
draw
from __future__ import (absolute_import, division, print_function, unicode_literals) import six import wx import matplotlib from matplotlib import cbook from . import wx_compat as wxc from .backend_agg import FigureCanvasAgg from .backend_wx import ( _BackendWx, _FigureCanvasWxBase, Figur...
6,640
test pseudoknot orders
# This source code is part of the Biotite package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. import pytest import json import numpy as np import pickle as pkl import biotite.structure as struc import biotite.structure.io as strucio from os.path import join ...
6,641
set up
import ctk import qt import slicer from slicer.ScriptedLoadableModule import * # # WebEngine # class WebEngine(ScriptedLoadableModule): """Uses ScriptedLoadableModule base class, available at: https://github.com/Slicer/Slicer/blob/main/Base/Python/slicer/ScriptedLoadableModule.py """ def __init__(s...
6,642
cinemarv link generation
# -*- coding: UTF-8 -*- # ---------------------- # Name: cinemarv_api - XPath and XSLT functions for the CinemaRV.com grabber # Python Script # Author: R.D. Vaughan # Purpose: This python script is intended to perform a variety of utility functions # for the conversion of data to the MNV standard RSS outp...
6,643
internal init
# 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...
6,644
config options
from conan import ConanFile from conan.errors import ConanInvalidConfiguration from conan.tools.build import check_min_cppstd, valid_min_cppstd from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, replace_in_file, r...
6,645
test armed forces day
# python-holidays # --------------- # A fast, efficient Python library for generating country, province and state # specific sets of holidays on the fly. It aims to make determining whether a # specific date is a holiday as fast and flexible as possible. # # Authors: dr-prodigy <dr.prodigy.github@gmail.com> (c) 2...
6,646
query parameters
# -------------------------------------------------------------------------------------------- # 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 # --------------------------------...
6,647
spec
""" * GTDynamics Copyright 2020, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * See LICENSE for the license information * * @file chain.py * @brief Prototype Chain class for chain manipulators. * @author Frank Dellaert """ from typing import Optional, Tuple import gt...
6,648
get mcas data connector
# 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...
6,649
test find executable not found none
from __future__ import annotations import contextlib import os.path import shutil import sys import pytest from pre_commit import parse_shebang from pre_commit.envcontext import envcontext from pre_commit.envcontext import Var from pre_commit.util import make_executable def _echo_exe() -> str: exe = shutil.whi...
6,650
get psu presence
# # psuutil.py # Platform-specific PSU status interface for SONiC # import logging import os.path try: from sonic_psu.psu_base import PsuBase except ImportError as e: raise ImportError(str(e) + "- required module not found") class PsuUtil(PsuBase): """Platform-specific PSUutil class""" HWMON_PATH =...
6,651
serialize ndarray
# Copyright 2019 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
6,652
preprocess
import mlflow.pyfunc import random import numpy as np from sklearn import metrics from sklearn.svm import SVC from sklearn.feature_selection import SequentialFeatureSelector as sfs from sklearn.preprocessing import normalize from sklearn.decomposition import PCA from sklearn.neighbors import KNeighborsClassifier as knc...
6,653
clear
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: property_tree.py author: Cyrus Harrison <cyrush@llnl.gov> created: 4/15/2010 descript...
6,654
export empty string split
# Copyright (c) ONNX Project Contributors # # SPDX-License-Identifier: Apache-2.0 import numpy as np import onnx from onnx.backend.test.case.base import Base from onnx.backend.test.case.node import expect class StringSplit(Base): @staticmethod def export_basic() -> None: node = onnx.helper.make_node...
6,655
get pairs
# CLIP # Adapted from https://github.com/openai/CLIP. # Originally MIT License, Copyright (c) 2021 OpenAI. import gzip import html import os from functools import lru_cache import ftfy import regex as re @lru_cache() def default_bpe(): return os.path.join( os.path.dirname(os.path.abspath(__file__)), ...
6,656
fix2scalar
'''calculating anova and verifying with NIST test data compares my implementations, stats.f_oneway and anova using statsmodels.OLS ''' from statsmodels.compat.python import lmap import os import numpy as np from scipy import stats from statsmodels.tools.tools import add_constant from statsmodels.regression.linear_mode...
6,657
draw buttons ext
# ##### 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...
6,658
create node iterator
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import logging from typing import ( Any, Iterator, Optional, Union, ) from amundsen_common.utils.atlas import AtlasCommonParams, AtlasDashboardTypes from amundsen_rds.models import RDSModel from amundsen_rds.models.dashboard i...
6,659
create propname
from propfind import PROPFIND from xml.dom import minidom domimpl = minidom.getDOMImplementation() from utils import get_parenturi class REPORT(PROPFIND): def __init__(self, uri, dataclass, depth, body): PROPFIND.__init__(self, uri, dataclass, depth, body) doc = minidom.parseString(body) ...
6,660
get pch suffix
# Copyright 2019 The meson development 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 ...
6,661
get secret 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...
6,662
transfer direction
#!/usr/bin/env python3 # # Cross Platform and Multi Architecture Advanced Binary Emulation Framework # import ctypes from qiling.hw.peripheral import QlPeripheral from qiling.hw.const.stm32f4xx_dma import DMA, DMA_SxCR class Stream(ctypes.Structure): _fields_ = [ ('CR' , ctypes.c_uint32), # DMA stream ...
6,663
init viewer
from .. import pinocchio_pywrap as pin from ..shortcuts import buildModelsFromUrdf, createDatas import time import numpy as np import os.path as osp try: import imageio IMAGEIO_SUPPORT = True except ImportError: IMAGEIO_SUPPORT = False class BaseVisualizer(object): """Pinocchio visualizers are empl...
6,664
way
#-*- coding: utf-8 -*- ########################################################################### ## ## ## Copyrights Frédéric Rodrigo 2019 ## ## ...
6,665
do save
from __future__ import print_function import json, sys, cmd import cPickle as pickle from verifiable_base import VerifiableBase from verifiable_log import VerifiableLog from verifiable_map import VerifiableMap, recalc_tree_hash # Example general purpose verifiable database # Mutation opertions append to its log # Its...
6,666
test untrusted get partial voting right
import numpy as np import pytest from vouch.voting_rights import OVER_TRUST_BIAS, OVER_TRUST_SCALE, compute_voting_rights def test_empty_input(): np.testing.assert_array_equal(compute_voting_rights(np.array([]), np.array([])), []) def test_everyone_trusted(): trust_scores, privacy_penalties = np.array([1, ...
6,667
test skeletonize wrong dim
import numpy as np import scipy.ndimage as ndi from skimage import io, draw from skimage.data import binary_blobs from skimage.util import img_as_ubyte from skimage.morphology import skeletonize, skeletonize_3d from skimage._shared import testing from skimage._shared.testing import assert_equal, assert_, parametrize,...
6,668
submit task
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-FileCopyrightText: Copyright contributors to the OpenScanHub project. import os import sys from xmlrpc.client import Fault from kobo.shortcuts import random_string import osh.client from osh.client.commands.common import (add_analyzers_option, ...
6,669
test mi constant in function
# Copyright (c) ONNX Project Contributors # SPDX-License-Identifier: Apache-2.0 import typing import unittest import onnx import onnx.parser import onnx.shape_inference class TestModelInference(unittest.TestCase): def _check(self, model_text: str, *expected: int): """Check that the model inference infer...
6,670
remove header footer from key
import logging import os import stat from tempfile import NamedTemporaryFile from ocs_ci.framework import config from ocs_ci.ocs import constants from ocs_ci.ocs.exceptions import CommandFailed, ConfigurationError from ocs_ci.utility.utils import download_file, exec_cmd logger = logging.getLogger(__name__) def gen...
6,671
customer
from enum import Enum, auto from typing import Dict, Optional from aws_lambda_powertools.utilities.data_classes.common import DictWrapper class ConnectContactFlowChannel(Enum): VOICE = auto() CHAT = auto() class ConnectContactFlowEndpointType(Enum): TELEPHONE_NUMBER = auto() class ConnectContactFlowI...
6,672
iterate list
# # This file is part of pretix (Community Edition). # # Copyright (C) 2014-2020 Raphael Michel and contributors # Copyright (C) 2020-2021 rami.io GmbH and contributors # # 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 ...
6,673
test filter out groups when selecting user
import os import re import sys import textwrap import time if sys.version_info < (2, 7): import unittest2 as unittest else: import unittest from . import resource_suite from .. import lib from .. import paths from ..core_file import temporary_core_file from ..configuration import IrodsConfig class Test_Quot...
6,674
is context moderator
import warnings import rules from rules import predicates as rules_predicates from adhocracy4.organisations.predicates import is_initiator from adhocracy4.organisations.predicates import is_org_member from adhocracy4.phases import predicates as phase_predicates from adhocracy4.projects.predicates import is_live from ...
6,675
label sort key
#!/usr/bin/env python3 """This script creates build_components.bzl.new with new contents based on the current source tree. It should be used to regularly update the version of build_components.bzl file that is present in git.""" import argparse import os import subprocess import sys def METHOD_NAME(label): # H...
6,676
add refs
# Copyright 2004-2022 Davide Alberani <da@erlug.linux.it> # 2008-2018 H. Turgut Uyar <uyar@tekir.org> # # 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,...
6,677
export sources
from conan import ConanFile from conan.errors import ConanInvalidConfiguration from conan.tools.build import check_min_cppstd, valid_min_cppstd from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout from conan.tools.files import apply_conandata_patches, export_conandata_patches, copy, get, rmdir f...
6,678
test a option
# Copyright (C) 2007 Giampaolo Rodola' <g.rodola@gmail.com>. # Use of this source code is governed by MIT license that can be # found in the LICENSE file. import logging import os import sys import warnings try: from StringIO import StringIO as BytesIO except ImportError: from io import BytesIO import pyftp...
6,679
test issue5949
from test import test_support as support # If we end up with a significant number of tests that don't require # threading, this test module should be split. Right now we skip # them all if we don't have threading. threading = support.import_module('threading') from contextlib import contextmanager import imaplib impo...
6,680
get values
import logging import threading from typing import List from control import data from modules import ripple_control_receiver from modules.utils import ModuleUpdateCompletedContext from modules.common.abstract_device import AbstractDevice from modules.common.component_type import ComponentType, type_to_topic_mapping fr...
6,681
wait
"""Wait for the specified tests to finish, printing progress reports along the way.""" import os import time from typing import List from pavilion import cmd_utils from pavilion import status_utils from pavilion.output import fprint from pavilion.status_file import STATES from pavilion.test_run import TestRun from .b...
6,682
test integrate ro i errors
# ###################################################################### # Copyright (c) 2014, Brookhaven Science Associates, Brookhaven # # National Laboratory. All rights reserved. # # # # Redistribution and use in ...
6,683
call
#!/bin/true # # util.py - part of autospec # Copyright (C) 2015 Intel Corporation # # 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 lat...
6,684
log update type
# SPDX-License-Identifier: MPL-2.0 # Copyright (C) 2021 - 2023 Gemeente Amsterdam import pytz from django.conf import settings from django.utils import timezone from signals.apps.feedback.models import Feedback from signals.apps.history.models import Log from signals.apps.questionnaires.models import Questionnaire, Se...
6,685
test topk
# 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...
6,686
test get versions no json
# -*- coding: utf-8 -*- # # Copyright © 2017 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions # of the GNU General Public License v.2, or (at your option) any later # version. This program is distributed in t...
6,687
completions response
from unittest import mock import pytest from fastapi import HTTPException from fastapi.encoders import jsonable_encoder from pydantic import ValidationError from mlflow.gateway.config import RouteConfig from mlflow.gateway.constants import MLFLOW_AI_GATEWAY_ANTHROPIC_MAXIMUM_MAX_TOKENS from mlflow.gateway.providers.a...
6,688
validate
import os from conan import ConanFile from conan.errors import ConanInvalidConfiguration from conan.tools.build import check_min_cppstd from conan.tools.files import copy, get from conan.tools.layout import basic_layout from conan.tools.scm import Version required_conan_version = ">=1.52.0" class SerdeppConan(Conan...
6,689
test variance
# Copyright 2023 ParaDiGMS authors and The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
6,690
test run inference
# # Copyright (c) 2018-2019 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 agre...
6,691
do file
'''Ships alb logs from s3 to es''' import os import re import gzip import logging import hashlib import geohash import urllib.parse import boto3 from geoip import geolite2 from elasticsearch import Elasticsearch from elasticsearch.helpers import bulk from elasticsearch.serializer import JSONSerializer print('Loading f...
6,692
from config
# 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...
6,693
test manager cannot update person
from tests.base import ApiDBTestCase from zou.app.services import projects_service class PermissionTestCase(ApiDBTestCase): def setUp(self): super(PermissionTestCase, self).setUp() self.generate_fixture_user_cg_artist() self.user_cg_artist_id = self.user_cg_artist["id"] self.gene...
6,694
build arguments schema
# -------------------------------------------------------------------------------------------- # 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 # --------------------------------...
6,695
slot add
# This file is part of the Frescobaldi project, http://www.frescobaldi.org/ # # Copyright (c) 2008 - 2014 by Wilbert Berendsen # # 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 ...
6,696
fast map structure
# Copyright 2018 DeepMind Technologies Limited. 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 ...
6,697
close event
from typing import TYPE_CHECKING, Optional, Union from PySide6.QtCore import QSize, Qt from PySide6.QtGui import QFont, QStandardItem, QStandardItemModel from PySide6.QtWidgets import QHBoxLayout, QHeaderView, QLabel, QTreeView, QTreeWidget, QVBoxLayout from angrmanagement.config import Conf from angrmanagement.logic...
6,698
memory storage
from __future__ import absolute_import, division, print_function # Storage methods def no_storage(stream): return stream def METHOD_NAME(stream): import cStringIO return cStringIO.StringIO( stream.read() ) class named_storage(object): """ Stores data in a given file """ def __init__(self, filename...
6,699
organisation one admin user
import pytest from environments.models import Environment from features.models import Feature from organisations.models import Organisation, OrganisationRole from projects.models import Project from projects.tags.models import Tag from users.models import FFAdminUser @pytest.fixture() def organisation_one(db): r...