id
int64
0
300k
label
stringlengths
1
74
text
stringlengths
4k
8k
3,800
flush
import collections import logging import pickle import string import sys from collections import OrderedDict from gzip import GzipFile from io import BytesIO from prettytable import PrettyTable from datetime import datetime from typing import Any, IO, Dict from .config import get_group from .enums import StateLists ...
3,801
save load
""" Insert minion return data into a sqlite3 database :maintainer: Mickey Malone <mickey.malone@gmail.com> :maturity: New :depends: None :platform: All Sqlite3 is a serverless database that lives in a single file. In order to use this returner the database file must exist, have the appropriate sche...
3,802
trace
"""Module that adds tracing to pandas execution. With tracing enabled, this module will log time and call stack information of the executed expression. Call stack information is presented with indentation level. For example: import pandas as pd import logging import ibis.expr.datatypes as dt import ibis.backends.pa...
3,803
label
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
3,804
make random ou id
import re import string from moto.moto_api._internal import mock_random as random from typing import Pattern, Union MASTER_ACCOUNT_EMAIL = "master@example.com" DEFAULT_POLICY_ID = "p-FullAWSAccess" ORGANIZATION_ARN_FORMAT = "arn:aws:organizations::{0}:organization/{1}" MASTER_ACCOUNT_ARN_FORMAT = "arn:aws:organizatio...
3,805
add feedback graphs
import logging from django.utils.translation import gettext as _, ngettext from utils.misc import reverse_tournament from utils.tables import TabbycatTableBuilder from .progress import FeedbackProgressForAdjudicator, FeedbackProgressForTeam logger = logging.getLogger(__name__) class FeedbackTableBuilder(TabbycatT...
3,806
register huggingface local model config
from typing import Dict, Optional, Union from dataclasses import dataclass import re import os from helm.common.hierarchical_logger import hlog from helm.proxy.models import ( Model, ALL_MODELS, MODEL_NAME_TO_MODEL, TEXT_MODEL_TAG, FULL_FUNCTIONALITY_TEXT_MODEL_TAG, LOCAL_HUGGINGFACE_MODEL_TAG, ...
3,807
format relationship
"""Formatting of UML elements like attributes, operations, stereotypes, etc.""" import re from typing import Tuple from gaphor.core.format import format from gaphor.i18n import gettext from gaphor.UML import uml as UML # Do not render if the name still contains a visibility element no_render_pat = re.compile(r"^\s*[...
3,808
replace refs
# -*- coding: utf-8 -*- # # This file is part of INSPIRE. # Copyright (C) 2014-2017 CERN. # # INSPIRE 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 ...
3,809
select step scalar
# Licensed under a 3-clause BSD style license - see LICENSE.rst import matplotlib import numpy as np from astropy import units as u from astropy.coordinates import BaseCoordinateFrame, UnitSphericalRepresentation from astropy.utils.introspection import minversion __all__ = [ "select_step_degree", "select_ste...
3,810
check ga state
import logging as log import os import shutil from virttest import virsh from virttest import utils_libvirtd from virttest import utils_selinux from virttest.utils_test import libvirt from virttest.libvirt_xml import vm_xml from virttest.utils_libvirt import libvirt_vmxml # Using as lower capital is not the best way ...
3,811
is negative
# coding=utf-8 # # This file is part of Hypothesis, which may be found at # https://github.com/HypothesisWorks/hypothesis/ # # Most of this work is copyright (C) 2013-2019 David R. MacIver # (david@drmaciver.com), but it contains contributions by others. See # CONTRIBUTING.rst for a full list of people who may hold cop...
3,812
executable exists
""" Pyperclip A cross-platform clipboard module for Python. (only handles plain text for now) By Al Sweigart al@inventwithpython.com BSD License Usage: import pyperclip pyperclip.copy('The text to be copied to the clipboard.') spam = pyperclip.paste() if not pyperclip.copy: print("Copy functionality unav...
3,813
test close
# coding: utf-8 # Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department # Distributed under the terms of "New BSD License", see the LICENSE file. import os from pyiron_base.project.path import ProjectPath from pyiron_base._tests import PyironTestCase from pyiron_bas...
3,814
getsignal
""" Cooperative implementation of special cases of :func:`signal.signal`. This module is designed to work with libev's child watchers, as used by default in :func:`gevent.os.fork` Note that each ``SIGCHLD`` handler will be run in a new greenlet when the signal is delivered (just like :class:`gevent.hub.signal`) The i...
3,815
on item expanded
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...
3,816
create subprocess shell
__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...
3,817
set up module
#!/usr/bin/env python # Copyright 2014-2020 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...
3,818
test line splitter corner cases
from __future__ import annotations from typing import Optional from unittest.mock import ( call, patch, ) from datalad.tests.utils_pytest import ( assert_equal, assert_in, assert_is_none, ) from ..utils import ( AssemblingDecoderMixIn, LineSplitter, ) test_lines = [ "first line", ...
3,819
date formatter
import json import urllib import dateutil.parser from collections import OrderedDict from datetime import datetime, timedelta from dateutil.relativedelta import relativedelta import numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import FuncFormatter from matplotlib.transforms import blended_transfo...
3,820
test morph stat json
import json from pathlib import Path import tempfile import pandas as pd import yaml from click.testing import CliRunner from mock import patch from neurom.apps.cli import cli from neurom.exceptions import ConfigError DATA = Path(__file__).parent.parent / 'data' @patch('neurom.apps.cli.plt.show') def test_viewer_m...
3,821
delete position limit for instrument strategy
from sysdata.mongodb.mongo_generic import mongoDataWithMultipleKeys from sysdata.production.position_limits import positionLimitData from sysobjects.production.position_limits import ( positionLimitForInstrument, positionLimitForStrategyInstrument, ) from sysobjects.production.tradeable_object import ( list...
3,822
test metho d set to local ip
from unittest import TestCase from lamden.crypto.wallet import Wallet from lamden.network import Network from lamden.peer import Peer import asyncio import uvloop asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) GET_ALL_PEERS = "get_all_peers" GET_LATEST_BLOCK = 'get_latest_block' class TestMultiNode(TestCas...
3,823
iscase
'''Define SearchEngine for search dialogs.''' import re from Tkinter import StringVar, BooleanVar, TclError import tkMessageBox def get(root): '''Return the singleton SearchEngine instance for the process. The single SearchEngine saves settings between dialog instances. If there is not a SearchEngine alre...
3,824
test assign none with allow none false
# (C) Copyright 2005-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...
3,825
test copy in buffers with py error
import pytest import string from random import randrange, choice from psycopg.pq import Format from psycopg import sql, errors as e from psycopg.adapt import PyFormat from psycopg.types.numeric import Int4 from ..utils import eur, gc_collect, gc_count from ..test_copy import sample_text, sample_binary # noqa from .....
3,826
test grange10
from unittest import TestCase from timApp.markdown.markdownconverter import genfields, gfrange class TestGenfields(TestCase): def test_genfields(self): s1 = ["d1"] e1 = "{#d1 stem: 'd1'#}" r1 = genfields(s1) self.assertEqual(e1, r1, "Not same in normal case") def test_genfie...
3,827
gauge
from __future__ import annotations import logging import os import sys import typing as t from functools import partial from typing import TYPE_CHECKING if TYPE_CHECKING: from ... import external_typing as ext logger = logging.getLogger(__name__) class PrometheusClient: def __init__( self, ...
3,828
test list faq language available
""" All test cases of the `faq` views. """ from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from backoffice.models import FAQAnswerLocale, FAQEntry, FAQuestionLocale def create_entry(name, rank, enabled): return FAQEntry.objects.create(name=name, rank=...
3,829
main
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2021-2022 Hewlett Packard Enterprise, Inc. All rights reserved. # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later from __future__ import absolute_import,...
3,830
get optparser
#!/usr/bin/python3 from pprint import pprint import os, sys, re import logging import cmdln import abichecker_dbmodel as DB from abichecker_common import Config, CACHEDIR from datetime import datetime, timedelta class BoilderPlate(cmdln.Cmdln): def __init__(self, *args, **kwargs): cmdln.Cmdln.__init__(se...
3,831
download daymet
"""Download DayMet data and convert it to ATS format. DayMet is downloaded in point mode based on lat-lon, then converted to hdf5 files that ATS knows how to read. """ import requests import datetime import logging import h5py import sys, os import numpy as np def file_id(lat, lon): """Returns a lat-lon id for u...
3,832
getsourcenode
# # Copyright 2008, 2010 Zuza Software Foundation # # This file is part of translate. # # translate 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 la...
3,833
validate alert context
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
3,834
result
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2019, Saranya Sridharan # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later from __future__ import (absolute_import, division, print_function) __metaclass...
3,835
delete line
from talon import Context, Module, actions ctx = Context() mod = Module() mod.apps.eclipse = """ os: windows and app.name: eclipse.exe """ ctx.matches = r""" app: eclipse """ @ctx.action_class("app") class AppActions: # talon app actions def tab_close(): actions.key("ctrl-w") def tab_next(): ...
3,836
center
# 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...
3,837
project
# 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...
3,838
init gui
import json import cv2 import base64 import threading import time from datetime import datetime from websocket_server import WebsocketServer import logging import os import rclpy from interfaces.pose3d import ListenerPose3d from map import Map # Graphical User Interface Class class GUI: # Initialization functio...
3,839
store
import json import logging import os import urllib.request from typing import Any, Dict, List, Optional import aiohttp import requests from shared import perf from shared.pd_exception import OperationalException logger = logging.getLogger(__name__) def fetch(url: str, character_encoding: Optional[str] = None, forc...
3,840
fetch table search results
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 from abc import ABCMeta, abstractmethod from typing import ( Any, Dict, List, Union, ) from amundsen_common.models.api.health_check import HealthCheck from amundsen_common.models.search import ( Filter, HighlightOptions, S...
3,841
setup run environment
# 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 os from spack.package import * class Libpeas(AutotoolsPackage): """libpeas is a gobject-based plugins engin...
3,842
stop moves
from testflows.core import * from testflows.asserts import error from rbac.requirements import * from rbac.helper.common import * import rbac.helper.errors as errors @TestSuite def privileges_granted_directly(self, node=None): """Check that a user is able to execute `SYSTEM MOVES` commands if and only if the ...
3,843
clean all
import os import enigma import time from Components.config import config from Components.GUIComponent import GUIComponent from Components import Harddisk import Components.Task from Components.VariableText import VariableText def isTrashFolder(path): path = os.path.realpath(path) return getTrashFolder(path) == pa...
3,844
get ca certificate
# 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...
3,845
iovs n payload names
#!/usr/bin/env python3 import argparse import sys import logging import copy import h5py import numpy as np from collections import OrderedDict import zlib import lzma from CondCore.CondHDF5ESSource.hdf5Writer import writeH5File #Global tags hold a list of Tags # Tags give the # record name, # list of data p...
3,846
test property decorator baseclass
# Test case for property # more tests are in test_descr import sys import unittest from test.test_support import run_unittest class PropertyBase(Exception): pass class PropertyGet(PropertyBase): pass class PropertySet(PropertyBase): pass class PropertyDel(PropertyBase): pass class BaseClass(object...
3,847
test import vmtk scripts
## Program: VMTK ## Language: Python ## Date: January 10, 2018 ## Version: 1.4 ## Copyright (c) Richard Izzo, Luca Antiga, All rights reserved. ## See LICENSE file for details. ## This software is distributed WITHOUT ANY WARRANTY; without even ## the implied warranty of MERCHANTABILITY or FITNES...
3,848
test has enough time for trial avg
import pytest from autogluon.common import space from autogluon.core.scheduler.seq_scheduler import LocalSequentialScheduler cls = LocalSequentialScheduler def test_get_average_trial_time_(): running_time = cls.get_average_trial_time_(0, avg_trial_run_time=None, trial_start_time=100, time_end=102) assert ru...
3,849
client exited server
# Copyright 2017-2020 Palantir Technologies, Inc. # Copyright 2021- Python Language Server Contributors. import os import time import multiprocessing import sys from threading import Thread from flaky import flaky from pylsp_jsonrpc.exceptions import JsonRpcMethodNotFound import pytest from pylsp.python_lsp import s...
3,850
to dict
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.28 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
3,851
find by
# Copyright © 2022 Province of British Columbia # # 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 agr...
3,852
test autodetects
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
3,853
output vcd
import re import simplejson as sjson from pathlib import Path from fud.stages import Stage, SourceType, Source from fud.utils import shell, TmpDir, log from fud.stages.verilator.json_to_dat import convert2dat, convert2json from fud.stages import futil import fud.errors as errors class IcarusBaseStage(Stage): """...
3,854
from wallet ws
import asyncio import uvloop uvloop.install() # noqa import pytest import pytest_asyncio from fastapi.testclient import TestClient from httpx import AsyncClient from lnbits.app import create_app from lnbits.core.crud import create_account, create_wallet from lnbits.core.models import CreateInvoice from lnbits.core...
3,855
test parse request with invalid body
# pylint: disable=redefined-outer-name # pylint: disable=unused-argument # pylint: disable=unused-variable import json from typing import Callable from uuid import UUID import pytest from aiohttp import web from aiohttp.test_utils import TestClient from faker import Faker from pydantic import BaseModel, Extra, Field ...
3,856
set up
import unittest import tempfile import os import six import caffe class SimpleLayer(caffe.Layer): """A layer that just multiplies by ten""" def setup(self, bottom, top): pass def reshape(self, bottom, top): top[0].reshape(*bottom[0].data.shape) def forward(self, bottom, top): ...
3,857
maybe wrap constant expr
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
3,858
test dataset from text keep in memory
import pytest from datasets import Dataset, DatasetDict, Features, NamedSplit, Value from datasets.io.text import TextDatasetReader from ..utils import assert_arrow_memory_doesnt_increase, assert_arrow_memory_increases def _check_text_dataset(dataset, expected_features): assert isinstance(dataset, Dataset) ...
3,859
parse proto libraries
import os import re import textwrap def grpc_target_name(internal_name): return f"grpc_{internal_name}" class _ProtoLibrary: name: str = None srcs: list = None deps: list = None is_used: bool = False def __init__(self) -> None: self.srcs = [] self.deps = set(["protobuf::libp...
3,860
split generators
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets 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/LI...
3,861
on validation end
# Copyright The Lightning AI team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
3,862
test evaluate
# 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...
3,863
update set
import json import os import time from typing import Any, Dict, List, Set, Tuple from ..util.setting import ( CompilerType, JSON_FOLDER_BASE_DIR, TestList, TestPlatform, TestStatusType, ) from ..util.utils import ( detect_compiler_type, print_error, print_time, related_to_test_list,...
3,864
main
"""Sopel Config Command Line Interface (CLI): ``sopel-config``""" from __future__ import annotations import argparse import os from . import utils def build_parser(): """Build and configure an argument parser for ``sopel-config``. :return: the argument parser :rtype: :class:`argparse.ArgumentParser` ...
3,865
test factory
########################################################################## # # Copyright (c) 2022, Cinesite VFX 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: # # * Redistributions ...
3,866
gp params scaling
# Copyright 2018 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://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
3,867
on 200
# -------------------------------------------------------------------------------------------- # 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 # --------------------------------...
3,868
null prefix op
#!/usr/bin/env python from __future__ import print_function """ arith_parse.py: Parse shell-like and C-like arithmetic. """ import sys from asdl import tdop from asdl.tdop import CompositeNode from asdl import arith_ast op_id = arith_ast.op_id_e # TODO: Rename this back. # # Null Denotation -- token that takes no...
3,869
test vswitch create invalid controller
# Copyright Contributors to the Feilong Project. # SPDX-License-Identifier: Apache-2.0 # Copyright 2017,2018 IBM Corp. # # 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 # # ...
3,870
set logo static mono
# SPDX-License-Identifier: GPL-2.0-or-later from openrazer_daemon.dbus_services import endpoint def set_led_effect_common(self, zone: str, effect: str) -> None: driver_path = self.get_driver_path(zone + '_led_effect') with open(driver_path, 'w') as driver_file: driver_file.write(effect) @endpoint(...
3,871
call event from name
# (c) Copyright IBM Corp. 2010, 2017. All Rights Reserved. """py.test config""" from __future__ import print_function import pytest import sys import threading import collections from time import sleep from collections import deque from circuits.core.manager import TIMEOUT from circuits import handler, BaseComponent...
3,872
test zero
#!/usr/bin/env python # Copyright (C) 2006-2021 Music Technology Group - Universitat Pompeu Fabra # # This file is part of Essentia # # Essentia 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 (FSF), e...
3,873
get keyring service
import requests import typing_extensions from bugwarrior import config from bugwarrior.db import CACHE_REGION as cache from bugwarrior.services import IssueService, Issue, ServiceClient import logging log = logging.getLogger(__name__) class TaigaConfig(config.ServiceConfig): service: typing_extensions.Literal['...
3,874
test get insights report bad id
"""Test the insights report endpoint.""" import json import tarfile from io import BytesIO import pytest from django.test import override_settings from rest_framework import status from api.common.common_report import create_filename from api.models import DeploymentsReport from tests.factories import DeploymentRepo...
3,875
id
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . im...
3,876
get is new
from math import ceil from django.urls import reverse from rest_framework import serializers from ...categories.serializers import CategorySerializer from ...core.serializers import MutableFields from ...notifications.threads import ThreadNotifications from ..models import Thread from .poll import PollSerializer from...
3,877
mat power
# Copyright 2018 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...
3,878
migrate old containers
# -*- coding: utf-8 -*- # # Copyright (C) 2015 GNS3 Technologies Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. ...
3,879
load dataplotly project settings
# coding=utf-8 """"Django signal receivers .. note:: This program is free software; you can redistribute it and/or modify it under the terms of the Mozilla Public License 2.0. """ __author__ = 'lorenzetti@gis3w.it' __date__ = '2020-09-16' __copyright__ = 'Copyright 2015 - 2020, Gis3w' from django.conf import se...
3,880
not ga backward compatibility change expected team
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # import shutil from typing import List import git import pytest import yaml from connector_ops import acceptance_test_config_checks @pytest.fixture def mock_diffed_branched(mocker): airbyte_repo = git.Repo(search_parent_directories=True) mocker.pat...
3,881
date age
"""Add a few specific filters to Jinja2.""" from __future__ import annotations import re from calendar import timegm from datetime import date, datetime from functools import wraps from typing import Any, Callable, Optional, Union import bleach import dateutil.parser import flask_babel as babel from babel.dates impor...
3,882
count alnum
# Copyright © Michal Čihař <michal@weblate.org> # # SPDX-License-Identifier: GPL-3.0-or-later """Database specific code to extend Django.""" from django.db import connection, models from django.db.models import Case, IntegerField, Sum, When from django.db.models.lookups import Contains, Exact, PatternLookup, Regex f...
3,883
type
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . im...
3,884
route queries
import asyncio import os from operator import itemgetter from pathlib import Path from random import randint, sample from urllib.parse import parse_qs import asyncpg import jinja2 import orjson async def pg_setup(): global pool pool = await asyncpg.create_pool( user=os.getenv('PGUSER', 'benchmarkdbu...
3,885
test harnesses
#!/usr/bin/env python3 from collections import defaultdict import os import re import unittest from openpilot.common.basedir import BASEDIR from openpilot.selfdrive.car.car_helpers import interfaces, get_interface_attr from openpilot.selfdrive.car.docs import CARS_MD_OUT, CARS_MD_TEMPLATE, generate_cars_md, get_all_ca...
3,886
restore file
# # Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
3,887
format config error
import argparse from typing import ( Any, Collection, Dict, Iterable, Iterator, List, Literal, MutableMapping, Optional, Tuple, Type, TypeVar, Union, overload, ) import jinja2 from synapse.config import ( # noqa: F401 account_validity, api, appservi...
3,888
restore tilt gravity calibration points
from app.models import BrewPiDevice, Beer, FermentationProfile from gravity.models import GravitySensor, GravityLog, TiltTempCalibrationPoint, TiltGravityCalibrationPoint, \ TiltConfiguration, TiltBridge, IspindelConfiguration, IspindelGravityCalibrationPoint from constance import config def restore_brewpi_device...
3,889
db for read
# -*- coding: utf-8 -*- # # Copyright (C) 2023 Bitergia # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This progr...
3,890
link
import sys from _typeshed import BytesPath, FileDescriptorOrPath, GenericPath, ReadableBuffer, StrOrBytesPath, StrPath from asyncio.events import AbstractEventLoop from collections.abc import Sequence from os import _ScandirIterator, stat_result from typing import Any, AnyStr, overload from aiofiles import ospath from...
3,891
exp
#!/usr/bin/env python3 # # Cross Platform and Multi Architecture Advanced Binary Emulation Framework # from eth_utils.toolz import ( curry, ) from ... import constants from ..._utils.numeric import ( unsigned_to_signed, signed_to_unsigned, ceil8, ) from ...vm.computation import BaseComputation de...
3,892
shutdown
# -*- coding: utf-8 # backend # ******* import sys import traceback from twisted.application import service from twisted.internet import reactor, defer from twisted.python.log import ILogObserver from twisted.python.log import addObserver from twisted.web import resource, server from globaleaks.jobs import job, j...
3,893
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 __all__ =...
3,894
alt weight changed
# (C) Copyright 2005-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...
3,895
get word offsets
# 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) 2010-2022 NV Access Limited, Soronel Haetir, Babbage B.V., Francisco Del Roio, # Leonard de Ruijter import objbase import comtypes from locationHelper import Re...
3,896
search checklist templates
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from ..common import CommonService_pb2 as common_dot_CommonService__pb2 from ..registry import ChecklistService_pb2 as registry_dot_ChecklistService__pb2 class ChecklistServiceStub(object): # missing associated documentation comment ...
3,897
execute 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 # --------------------------------...
3,898
create bento servicer
from __future__ import annotations import logging import sys import typing as t from typing import TYPE_CHECKING import anyio from ......exceptions import BentoMLException from ......exceptions import InvalidArgument from ......grpc.utils import grpc_status_code from ......grpc.utils import import_generated_stubs fr...
3,899
package
import os from conan import ConanFile from conan.errors import ConanInvalidConfiguration from conan.tools.env import Environment, VirtualBuildEnv from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rmdir from conan.tools.gnu import AutotoolsToolchain, Autotools from conan.tools....