input
stringlengths
28
198k
output
stringlengths
3
71k
file
stringlengths
19
330
input_tokens
int64
5
159k
output_tokens
int64
3
9.07k
__index_level_0__
int64
2
449k
LOAD_CONST "The Key class, and associated utilities.\n\nA Key encapsulates the following pieces of information, which together\nuniquely designate a (possible) entity in the App Engine datastore:\n\n- an application id (a string)\n- a namespace (a string)\n- a list of one or more (kind, id) pairs where kind is a string...
"""The Key class, and associated utilities. A Key encapsulates the following pieces of information, which together uniquely designate a (possible) entity in the App Engine datastore: - an application id (a string) - a namespace (a string) - a list of one or more (kind, id) pairs where kind is a string and id is eit...
data/appengine-python-standard-1.1.6/src/google/appengine/ext/ndb/key.py
12,618
9,021
115,401
LOAD_CONST 0 LOAD_CONST ('formatted_flat_dict', 'NONE_SENTINEL', 'value_allowed_none_or_none_sentinel') IMPORT_NAME oci.util IMPORT_FROM formatted_flat_dict STORE_NAME formatted_flat_dict IMPORT_FROM NONE_SENTINEL STORE_NAME NONE_SENTINEL IMPORT_FROM value_allowed_none_or_none_sentinel STORE_NAME value_allowed_none_or_...
from oci.util import ( formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel, ) # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class CloudGateServer(object): """ Resource representing a Cloud Gate server block """ IDCS...
data/oci-2.122.0/src/oci/identity_domains/models/cloud_gate_server.py
5,305
9,023
178,396
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME copy STORE_NAME copy LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi.runtime STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST ('Any', 'Mapping', '...
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._inputs import * __all__ = ["EngineModelArgs", "EngineModel"] @pulumi.input_type class EngineModelArgs: def __init__( ...
data/pulumi_gcp-7.9.0/pulumi_gcp/ml/engine_model.py
10,517
9,023
446,609
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME inspect STORE_NAME inspect LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pprint STORE_NAME pprint LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME traceback STORE_NAME tr...
import inspect import pprint import re import sys import traceback import warnings from logging import getLogger import numpy as np from scipy.sparse import coo_matrix from onnx import SparseTensorProto, ValueInfoProto from onnx.defs import onnx_opset_version, get_all_schemas_with_history from onnx.helper import make_n...
data/skl2onnx-1.16.0/skl2onnx/common/_container.py
14,673
9,023
345,296
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME collections STORE_NAME collections LOAD_CONST 0 LOAD_CONST None IMPORT_NAME itertools STORE_NAME itertools LOAD_CONST 0 LOAD_CONST ('partial',) IMPORT_NAME functools IMPORT_FROM partial STORE_NAME partial POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME jax STORE_NAME jax LO...
import collections import itertools from functools import partial import jax import numpy as np import tree from keras.src import backend from keras.src import callbacks as callbacks_module from keras.src import ops from keras.src import optimizers as optimizers_module from keras.src.backend import distribution_lib a...
data/keras-3.0.5/keras/src/backend/jax/trainer.py
14,687
9,024
349,458
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME collections STORE_NAME collections LOAD_CONST 0 LOAD_CONST None IMPORT_NAME itertools STORE_NAME itertools LOAD_CONST 0 LOAD_CONST ('partial',) IMPORT_NAME functools IMPORT_FROM partial STORE_NAME partial POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME jax STORE_NAME jax LO...
import collections import itertools from functools import partial import jax import numpy as np import tree from keras.src import backend from keras.src import callbacks as callbacks_module from keras.src import ops from keras.src import optimizers as optimizers_module from keras.src.backend import distribution_lib a...
data/keras-nightly-3.1.0.dev2024022103/keras/src/backend/jax/trainer.py
14,681
9,024
285,278
LOAD_CONST "\n CMS Performance API\n\n Use these endpoints to get a time series view of your website's performance. # noqa: E501\n\n The version of the OpenAPI document: v3\n Generated by: https://openapi-generator.tech\n" STORE_NAME __doc__ SETUP_EXCEPT to 22 LOAD_CONST 0 LOAD_CONST ('getfullargspec',) IMPORT_NAME i...
""" CMS Performance API Use these endpoints to get a time series view of your website's performance. # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargsp...
data/hubspot-api-client-8.2.1/hubspot/cms/performance/models/performance_view.py
8,111
9,024
320,447
LOAD_CONST 0 LOAD_CONST ('absolute_import', 'division', 'print_function') IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM division STORE_NAME division IMPORT_FROM print_function STORE_NAME print_function POP_TOP LOAD_NAME type STORE_NAME __metaclass__ LOAD_CONST '\n---\nmodul...
from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = """ --- module: oneandone_monitoring_policy short_description: Configure 1&1 monitoring policy description: - Create, remove, update monitoring policies (and add/remove ports, processes, and servers). This ...
data/ansible-9.2.0/ansible_collections/community/general/plugins/modules/oneandone_monitoring_policy.py
12,151
9,025
275,873
LOAD_CONST 0 LOAD_CONST ('JsonlFormat',) IMPORT_NAME airbyte_cdk.sources.file_based.config.jsonl_format IMPORT_FROM JsonlFormat STORE_NAME JsonlFormat POP_TOP LOAD_CONST 0 LOAD_CONST ('FileBasedSourceError',) IMPORT_NAME airbyte_cdk.sources.file_based.exceptions IMPORT_FROM FileBasedSourceError STORE_NAME FileBasedSou...
from airbyte_cdk.sources.file_based.config.jsonl_format import JsonlFormat from airbyte_cdk.sources.file_based.exceptions import FileBasedSourceError from airbyte_cdk.utils.traced_exception import AirbyteTracedException from unit_tests.sources.file_based.helpers import ( LowInferenceBytesJsonlParser, LowInferen...
data/airbyte-cdk-0.64.0/unit_tests/sources/file_based/scenarios/jsonl_scenarios.py
9,344
9,025
51,702
LOAD_CONST '\n This code was generated by\n ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __\n | | | | | | | | | __ | | |__| | __ | __ |___ |\\ | |___ |__/ |__| | | | |__/\n | |_|_| | |___ | |__| |__| | | | |__] |___ | \\| |___ | \\ | | | |__| | \\\n\n Twilio - Chat\n This is the public Twilio RE...
r""" This code was generated by ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ Twilio - Chat ...
data/twilio-8.13.0/twilio/rest/chat/v2/service/channel/webhook.py
9,061
9,025
44,633
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('contextmanager',) IMPORT_NAME contextlib IMPORT_FROM c...
from __future__ import annotations import os import sys from contextlib import contextmanager from io import BytesIO from typing import IO, TYPE_CHECKING, Any, Iterator import pytest from tox.tox_env.python.pip.req.file import ParsedRequirement, RequirementsFile if TYPE_CHECKING: from pathlib import Path f...
data/tox-4.13.0/tests/tox_env/python/pip/req/test_file.py
14,141
9,025
177,491
LOAD_CONST 0 LOAD_CONST ('absolute_import', 'division', 'print_function') IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM division STORE_NAME division IMPORT_FROM print_function STORE_NAME print_function POP_TOP LOAD_NAME type STORE_NAME __metaclass__ LOAD_CONST 0 LOAD_CONST ...
from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible_collections.community.rabbitmq.plugins.module_utils import version from ansible_collections.community.rabbitmq.plugins.modules import rabbitmq_user from ansible.module_utils import six from itertools import chain if si...
data/ansible-9.2.0/ansible_collections/community/rabbitmq/tests/unit/modules/test_rabbitmq_user.py
13,240
9,025
274,766
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('Any', 'Dict', 'Union') IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any IMPORT_FROM Dict STORE_NAME Dict IMPORT_FROM Union STORE_NAME Union POP_TOP LOAD_CONST 0 LOAD_CONST ...
from __future__ import annotations from typing import Any, Dict, Union from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint from datadog_api_client.configuration import Configuration from datadog_api_client.model_utils import ( UnsetType, unset, ) from datadog_api_client.v2.model.metrics...
data/datadog-api-client-2.22.0/src/datadog_api_client/v2/api/metrics_api.py
8,894
9,026
340,181
LOAD_CONST 0 LOAD_CONST ('Awaitable', 'Callable', 'Dict', 'Optional', 'Sequence', 'Tuple', 'Union') IMPORT_NAME typing IMPORT_FROM Awaitable STORE_NAME Awaitable IMPORT_FROM Callable STORE_NAME Callable IMPORT_FROM Dict STORE_NAME Dict IMPORT_FROM Optional STORE_NAME Optional IMPORT_FROM Sequence STORE_NAME Sequence IM...
from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union import warnings from google.api_core import gapic_v1, grpc_helpers_async, operations_v1 from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google....
data/google-cloud-vision-3.7.0/google/cloud/vision_v1p3beta1/services/product_search/transports/grpc_asyncio.py
7,909
9,026
440,841
LOAD_CONST '\n.. testsetup::\n\n from pdm.backend._vendor.packaging.specifiers import Specifier, SpecifierSet, InvalidSpecifier\n from pdm.backend._vendor.packaging.version import Version\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME abc STORE_NAME abc LOAD_CONST 0 LOAD_CONST None IMPORT_NAME itertoo...
""" .. testsetup:: from pdm.backend._vendor.packaging.specifiers import Specifier, SpecifierSet, InvalidSpecifier from pdm.backend._vendor.packaging.version import Version """ import abc import itertools import re from typing import Callable, Iterable, Iterator, List, Optional, Set, Tuple, Union from .utils ...
data/pdm_backend-2.1.8/src/pdm/backend/_vendor/packaging/specifiers.py
9,945
9,026
132,227
LOAD_CONST '\nCode generator script to make the Cython BLAS and LAPACK wrappers\nfrom the files "cython_blas_signatures.txt" and\n"cython_lapack_signatures.txt" which contain the signatures for\nall the BLAS/LAPACK routines that should be included in the wrappers.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('defaul...
""" Code generator script to make the Cython BLAS and LAPACK wrappers from the files "cython_blas_signatures.txt" and "cython_lapack_signatures.txt" which contain the signatures for all the BLAS/LAPACK routines that should be included in the wrappers. """ from collections import defaultdict from operator import itemge...
data/scipy-1.12.0/scipy/linalg/_generate_pyx.py
14,426
9,026
245,282
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST ('namedtuple',) IMPORT_NAME collections IMPORT_FROM namedtuple STORE_NAME namedtuple POP_TOP LOAD_CONST 0 LOAD_CONST ('datetime',) IMPORT_NAME datetime IMPORT_FROM dat...
import logging import os from collections import namedtuple from datetime import datetime from typing import List, Optional, Union from asn1crypto import cms, x509 from pyhanko_certvalidator import ValidationContext from pyhanko_certvalidator.path import ValidationPath from pyhanko.pdf_utils import generic, misc from...
data/pyHanko-0.21.0/pyhanko/sign/validation/pdf_embedded.py
11,945
9,026
152,402
LOAD_CONST '\nWindows Service module.\n\n.. versionchanged:: 2016.11.0\n\n Rewritten to use PyWin32\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME fnmatch STORE_NAME fnmatch LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re ...
""" Windows Service module. .. versionchanged:: 2016.11.0 Rewritten to use PyWin32 """ import fnmatch import logging import re import time import salt.utils.path import salt.utils.platform import salt.utils.win_service from salt.exceptions import CommandExecutionError try: import pywintypes import win3...
data/salt-3006.6/salt/modules/win_service.py
7,625
9,026
280,876
LOAD_CONST 0 LOAD_CONST ('http_client',) IMPORT_NAME six.moves IMPORT_FROM http_client STORE_NAME http_client POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_CONST 0 LOAD_CONST ('MagicMock',) IMPORT_NAME mock IMPORT_FROM MagicMock STORE_NAME MagicMock POP_TOP LOAD_CONST 0 LOAD_CONS...
from six.moves import http_client import unittest from mock import MagicMock from mock import patch from pywebhdfs import errors from pywebhdfs.webhdfs import PyWebHdfsClient, _raise_pywebhdfs_exception from pywebhdfs import operations class WhenTestingPyWebHdfsConstructor(unittest.TestCase): def test_init_defa...
data/pywebhdfs-0.4.1/tests/test_webhdfs.py
18,253
9,027
174,864
SETUP_ANNOTATIONS LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME contextlib STORE_NAME contextlib LOAD_CONST 0 LOAD_CONST None IMPORT_NAME copy STORE_NAME copy LOAD_CONST 0 LOAD_CONST None IMPORT_NAME log...
from __future__ import annotations import contextlib import copy import logging import sys from hashlib import md5 from html import escape as html_escape from io import BytesIO, StringIO from typing import TYPE_CHECKING, ClassVar, Iterator from uuid import uuid4 from PIL import Image as PILImage from PIL import Unide...
data/xhtml2pdf-0.2.15/xhtml2pdf/xhtml2pdf_reportlab.py
17,153
9,027
141,635
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME random STORE_NAME random LOAD_CONST 0 LOAD_CONST None IMPORT_NAME string STORE_NAME string LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME salt.conf...
import logging import random import string import pytest import salt.config import salt.loader import salt.modules.boto_cognitoidentity as boto_cognitoidentity from salt.utils.versions import Version from tests.support.mixins import LoaderModuleMockMixin from tests.support.mock import MagicMock, patch from tests.supp...
data/salt-3006.6/tests/unit/modules/test_boto_cognitoidentity.py
14,853
9,027
96,986
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME shutil STORE_NAME shutil LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 ...
from __future__ import annotations import os import shutil import sys from math import isclose from pathlib import Path from subprocess import run from unittest.mock import patch import pikepdf import pytest from PIL import Image import ocrmypdf from ocrmypdf._exec import tesseract from ocrmypdf.exceptions import Ex...
data/ocrmypdf-16.1.1/tests/test_main.py
15,727
9,028
136,187
SETUP_ANNOTATIONS LOAD_CONST 'Utilities for defining Python tests. The module is private and subject to frequent\nchange without notice.\n\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME gc STORE_NAME gc LOAD_CONST 0 LOAD_CONST None IMPORT_NAME importlib.util STORE_NAME importlib LOAD_CONST 0 LOAD_CON...
"""Utilities for defining Python tests. The module is private and subject to frequent change without notice. """ import gc import importlib.util import multiprocessing import os import platform import socket import sys from concurrent.futures import ThreadPoolExecutor from contextlib import contextmanager from io imp...
data/xgboost-2.0.3/xgboost/testing/__init__.py
17,436
9,028
392,876
LOAD_CONST 0 LOAD_CONST ('absolute_import', 'division', 'print_function') IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM division STORE_NAME division IMPORT_FROM print_function STORE_NAME print_function POP_TOP LOAD_NAME type STORE_NAME __metaclass__ LOAD_CONST 'preview' BUI...
from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { "status": ["preview"], "supported_by": "community", "metadata_version": "1.1", } DOCUMENTATION = """ --- module: fmgr_system_log_ratelimit short_description: Logging rate limit. description: - ...
data/ansible-9.2.0/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_log_ratelimit.py
9,339
9,028
1,430
LOAD_CONST '\nTrueType Font parser.\n\nDocuments:\n - "The OpenType Specification"\n https://docs.microsoft.com/en-us/typography/opentype/spec/\n - "An Introduction to TrueType Fonts: A look inside the TTF format"\n written by "NRSI: Computers & Writing Systems"\n http://scripts.sil.org/cms/scripts/page.php?site_id=nrs...
""" TrueType Font parser. Documents: - "The OpenType Specification" https://docs.microsoft.com/en-us/typography/opentype/spec/ - "An Introduction to TrueType Fonts: A look inside the TTF format" written by "NRSI: Computers & Writing Systems" http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=I...
data/hachoir-3.3.0/hachoir/parser/misc/ttf.py
17,964
9,028
203,818
LOAD_CONST 'Template based text parser.\n\nThis module implements a parser, intended to be used for converting\nhuman readable text, such as command output from a router CLI, into\na list of records, containing values extracted from the input text.\n\nA simple template language is used to describe a state machine to\np...
"""Template based text parser. This module implements a parser, intended to be used for converting human readable text, such as command output from a router CLI, into a list of records, containing values extracted from the input text. A simple template language is used to describe a state machine to parse a specific ...
data/textfsm-1.1.3/textfsm/parser.py
16,013
9,028
362,878
LOAD_CONST '\nStates for managing zfs datasets\n\n:maintainer: Jorge Schrauwen <sjorge@blackdot.be>\n:maturity: new\n:depends: salt.utils.zfs, salt.modules.zfs\n:platform: smartos, illumos, solaris, freebsd, linux\n\n.. versionadded:: 2016.3.0\n.. versionchanged:: 2018.3.1\n Big refactor to remove duplicate code, bette...
""" States for managing zfs datasets :maintainer: Jorge Schrauwen <sjorge@blackdot.be> :maturity: new :depends: salt.utils.zfs, salt.modules.zfs :platform: smartos, illumos, solaris, freebsd, linux .. versionadded:: 2016.3.0 .. versionchanged:: 2018.3.1 Big refactor to remove duplicate code, bett...
data/salt-3006.6/salt/states/zfs.py
10,803
9,028
98,080
SETUP_ANNOTATIONS LOAD_CONST 0 LOAD_CONST ('ExitStack',) IMPORT_NAME contextlib IMPORT_FROM ExitStack STORE_NAME ExitStack POP_TOP LOAD_CONST 0 LOAD_CONST ('List', 'Optional') IMPORT_NAME typing IMPORT_FROM List STORE_NAME List IMPORT_FROM Optional STORE_NAME Optional POP_TOP LOAD_CONST 0 LOAD_CONST ('patch',) IMPORT...
from contextlib import ExitStack from typing import List, Optional from unittest.mock import patch import numpy as np import torch from ax.core.metric import Metric from ax.core.observation import ObservationData, ObservationFeatures from ax.core.optimization_config import MultiObjectiveOptimizationConfig from ax.core...
data/ax-platform-0.3.6/ax/modelbridge/tests/test_torch_moo_modelbridge.py
13,545
9,029
63,124
LOAD_CONST '\nProfile: http://hl7.org/fhir/StructureDefinition/AuditEvent\nRelease: R5\nVersion: 5.0.0\nBuild ID: 2aecd53\nLast updated: 2023-03-26T15:21:02.749+11:00\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME typing STORE_NAME typing LOAD_CONST 0 LOAD_CONST ('Field', 'root_validator') IMPORT_NAME...
""" Profile: http://hl7.org/fhir/StructureDefinition/AuditEvent Release: R5 Version: 5.0.0 Build ID: 2aecd53 Last updated: 2023-03-26T15:21:02.749+11:00 """ import typing from pydantic.v1 import Field, root_validator from pydantic.v1.error_wrappers import ErrorWrapper, ValidationError from pydantic.v1.errors import Mi...
data/fhir.resources-7.1.0/fhir/resources/auditevent.py
11,869
9,029
42,572
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME copy STORE_NAME copy LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi.runtime STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST ('Any', 'Mapping', '...
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._inputs import * __all__ = ["AccessApprovalSettingsArgs", "AccessApprovalSettings"] @pulumi.input_type class AccessApprovalSetting...
data/pulumi_gcp-7.9.0/pulumi_gcp/organizations/access_approval_settings.py
8,606
9,030
446,759
LOAD_CONST '\ncpuinfo\n\nCopyright 2002 Pearu Peterson all rights reserved,\nPearu Peterson <pearu@cens.ioc.ee>\nPermission to use, modify, and distribute this software is given under the\nterms of the NumPy (BSD style) license. See LICENSE.txt that came with\nthis distribution for specifics.\n\nNO WARRANTY IS EXPRESSE...
""" cpuinfo Copyright 2002 Pearu Peterson all rights reserved, Pearu Peterson <pearu@cens.ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the NumPy (BSD style) license. See LICENSE.txt that came with this distribution for specifics. NO WARRANTY IS EXPRESSED OR IMPLIED. US...
data/numexpr-2.9.0/numexpr/cpuinfo.py
23,638
9,030
177,668
LOAD_CONST "\nModule to provide MongoDB functionality to Salt\n\n:configuration: This module uses PyMongo, and accepts configuration details as\n parameters as well as configuration settings::\n\n mongodb.host: 'localhost'\n mongodb.port: 27017\n mongodb.user: ''\n mongodb.password: ''\n\n This data can also be passed ...
""" Module to provide MongoDB functionality to Salt :configuration: This module uses PyMongo, and accepts configuration details as parameters as well as configuration settings:: mongodb.host: 'localhost' mongodb.port: 27017 mongodb.user: '' mongodb.password: '' This data can a...
data/salt-3006.6/salt/modules/mongodb.py
8,462
9,030
280,931
LOAD_CONST "API for JupyterHub's proxy.\n\nCustom proxy implementations can subclass :class:`Proxy`\nand register in JupyterHub config:\n\n.. sourcecode:: python\n\n from mymodule import MyProxy\n c.JupyterHub.proxy_class = MyProxy\n\nRoute Specification:\n\n- A routespec is a URL prefix ([host]/path/), e.g.\n 'host.tl...
"""API for JupyterHub's proxy. Custom proxy implementations can subclass :class:`Proxy` and register in JupyterHub config: .. sourcecode:: python from mymodule import MyProxy c.JupyterHub.proxy_class = MyProxy Route Specification: - A routespec is a URL prefix ([host]/path/), e.g. 'host.tld/path/' for ho...
data/jupyterhub-4.0.2/jupyterhub/proxy.py
14,431
9,030
311,733
LOAD_CONST '\nCopyright &copy; 2023 NetApp Inc.\nAll rights reserved.\n\nThis file has been automatically generated based on the ONTAP REST API documentation.\n\nYou can use this API to create, perform operations, and retrieve relevant information pertaining to MetroCluster. The GET operation fetches MetroCluster statu...
r""" Copyright &copy; 2023 NetApp Inc. All rights reserved. This file has been automatically generated based on the ONTAP REST API documentation. You can use this API to create, perform operations, and retrieve relevant information pertaining to MetroCluster. The GET operation fetches MetroCluster status and configur...
data/netapp_ontap-9.14.1.0/netapp_ontap/resources/metrocluster.py
10,305
9,031
304,760
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('MutableSet',) IMPORT_NAME collections.abc IMPORT_FROM MutableSet STORE_NAME MutableSet POP_TOP LOAD_CONST 0 LOAD_CONST ('deepcopy',) IMPORT_NAME copy IMPORT_FROM deepcopy ST...
from __future__ import annotations from collections.abc import MutableSet from copy import deepcopy from .. import exceptions from .._internal import _missing from .mixins import ImmutableDictMixin from .mixins import ImmutableListMixin from .mixins import ImmutableMultiDictMixin from .mixins import UpdateDictMixin ...
data/werkzeug-3.0.1/src/werkzeug/datastructures/structures.py
16,446
9,031
396,746
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME functools STORE_NAME functools LOAD_CONST 0 LOAD_CONST ('copy',) IMPORT_NAME copy IMPORT_FROM copy STORE_NAME copy POP_TOP LOAD_CONST 0 LOAD_CONST ('date', 'datetime', 'timedelta') IMPORT_NAME datetime IMPORT_FROM date STORE_NAME date IMPORT_FROM datetime STORE_NAME datetime I...
import functools from copy import copy from datetime import date, datetime, timedelta from pathlib import Path from time import sleep from typing import List from unittest.mock import PropertyMock, patch import lance import numpy as np import pandas as pd import polars as pl import pyarrow as pa import pytest from pyd...
data/lancedb-0.5.6/tests/test_table.py
17,286
9,032
109,594
LOAD_CONST 0 LOAD_CONST ('absolute_import', 'division', 'print_function') IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM division STORE_NAME division IMPORT_FROM print_function STORE_NAME print_function POP_TOP LOAD_NAME type STORE_NAME __metaclass__ LOAD_CONST 0 LOAD_CONST ...
from __future__ import absolute_import, division, print_function __metaclass__ = type import os import platform import re import ansible.module_utils.compat.typing as t from ansible.module_utils.common.sys_info import ( get_distribution, get_distribution_version, get_distribution_codename, ) from ansibl...
data/ansible-core-2.16.3/lib/ansible/module_utils/facts/system/distribution.py
14,402
9,032
436,918
LOAD_CONST <code object createParserClass at 0x7fab70199420, file "f.py", line 1> LOAD_CONST 'createParserClass' MAKE_FUNCTION STORE_NAME createParserClass LOAD_CONST None RETURN_VALUE LOAD_FAST ruleGlobals LOAD_CONST None COMPARE_OP is POP_JUMP_IF_FALSE BUILD_MAP STORE_FAST ruleGlobals LOAD_BUILD_CLASS LOAD_CONST <...
def createParserClass(GrammarBase, ruleGlobals): if ruleGlobals is None: ruleGlobals = {} class quasiterm(GrammarBase): def rule_schema(self): _locals = {"self": self} self.locals["schema"] = _locals def _G_many1_1(): self._trace(" production...
data/Parsley-1.3/terml/_generated/quasiterm.py
16,948
9,032
193,525
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME copy STORE_NAME copy LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi.runtime STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST ('Any', 'Mapping', '...
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._inputs import * __all__ = ["IAMMemberArgs", "IAMMember"] @pulumi.input_type class IAMMemberArgs: def __init__( __self...
data/pulumi_gcp-7.9.0/pulumi_gcp/serviceaccount/iam_member.py
5,787
9,032
445,650
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME copy STORE_NAME copy LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi.runtime STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST ('Any', 'Mapping', '...
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._inputs import * __all__ = ["RepositoryIamBindingArgs", "RepositoryIamBinding"] @pulumi.input_type class RepositoryIamBindingArgs:...
data/pulumi_gcp-7.9.0/pulumi_gcp/sourcerepo/repository_iam_binding.py
6,574
9,032
445,591
LOAD_CONST 'Some simple financial calculations\n\npatterned after spreadsheet computations.\n\nThere is some complexity in each function\nso that the functions behave like ufuncs with\nbroadcasting and being able to be called with scalars\nor arrays (or other sequences).\n\nFunctions support the :class:`decimal.Decimal...
"""Some simple financial calculations patterned after spreadsheet computations. There is some complexity in each function so that the functions behave like ufuncs with broadcasting and being able to be called with scalars or arrays (or other sequences). Functions support the :class:`decimal.Decimal` type unless othe...
data/numpy-financial-1.0.0/numpy_financial/_financial.py
3,581
9,032
41,412
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME copy STORE_NAME copy LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('ABC', 'abstractmethod') IMPORT_NAME abc IMPORT_FROM ABC STORE_NAME ABC IMPORT_FROM abstractmethod STORE_NAME abstractmethod POP_TOP LOAD_CONST 0 LOAD_CONST ('Enum',) IMP...
import copy import sys from abc import ABC, abstractmethod from enum import Enum from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Optional, Tuple, Union import yaml from ._utils import ( _DEFAULT_MARKER_, ValueKind, _ensure_container, _get_value, _is_interpolation, _is_missing_valu...
data/omegaconf-2.3.0/omegaconf/basecontainer.py
16,446
9,032
166,767
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command LOAD_CONST 'network nic show' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object Show at 0x7fab416379c0, file "f.py", line 4> LOAD_CONST 'Show' MAKE_FUNCTION LOAD_CONST 'Show' LOAD_NAME AAZCommand CALL_FUNCTION C...
from azure.cli.core.aaz import * @register_command( "network nic show", ) class Show(AAZCommand): """Get the details of a network interface. :example: Get the internal domain name suffix of a NIC. az network nic show -g MyResourceGroup -n MyNic --query "dnsSettings.internalDomainNameSuffix" "...
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2017_03_09_profile/network/nic/_show.py
12,343
9,033
377,630
LOAD_CONST 'This module provides different kinds of serialization methods for XML event\nstreams.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('chain',) IMPORT_NAME itertools IMPORT_FROM chain STORE_NAME chain POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re LOAD_CONST 0 LOAD_CONST None IMPORT_NAM...
"""This module provides different kinds of serialization methods for XML event streams. """ from itertools import chain import re import six from genshi.core import escape, Attrs, Markup, QName, StreamEventKind from genshi.core import ( START, END, TEXT, XML_DECL, DOCTYPE, START_NS, END_N...
data/Genshi-0.7.7/genshi/output.py
13,601
9,034
22,642
LOAD_CONST 'atleast_1d' LOAD_CONST 'atleast_2d' LOAD_CONST 'atleast_3d' LOAD_CONST 'block' LOAD_CONST 'hstack' LOAD_CONST 'stack' LOAD_CONST 'vstack' BUILD_LIST STORE_NAME __all__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME functools STORE_NAME functools LOAD_CONST 0 LOAD_CONST None IMPORT_NAME itertools STORE_NAM...
__all__ = [ "atleast_1d", "atleast_2d", "atleast_3d", "block", "hstack", "stack", "vstack", ] import functools import itertools import operator import warnings from . import numeric as _nx from . import overrides from .multiarray import array, asanyarray, normalize_axis_index from . import...
data/catboost-1.2.2/catboost_all_src/contrib/python/numpy/py3/numpy/core/shape_base.py
6,970
9,034
176,795
LOAD_CONST 0 LOAD_CONST ('deepcopy',) IMPORT_NAME copy IMPORT_FROM deepcopy STORE_NAME deepcopy POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('KMeans', 'MiniBatchKMeans') IMPORT_NAME sklearn.cluster IMPORT_FROM KMeans STORE_NAME KMeans IMPORT_FROM MiniBatchKMeans STORE_...
from copy import deepcopy import numpy as np from sklearn.cluster import KMeans, MiniBatchKMeans from mabwiser.greedy import _EpsilonGreedy from mabwiser.mab import LearningPolicy, NeighborhoodPolicy from tests.test_base import BaseTest class ClustersTest(BaseTest): def test_greedy0_n2(self): arms, mab ...
data/mabwiser-2.7.3/tests/test_clusters.py
13,892
9,034
440,032
LOAD_CONST '\nBinary serialization\n\nNPY format\n==========\n\nA simple format for saving numpy arrays to disk with the full\ninformation about them.\n\nThe ``.npy`` format is the standard binary file format in NumPy for\npersisting a *single* arbitrary NumPy array on disk. The format stores all\nof the shape and dtyp...
""" Binary serialization NPY format ========== A simple format for saving numpy arrays to disk with the full information about them. The ``.npy`` format is the standard binary file format in NumPy for persisting a *single* arbitrary NumPy array on disk. The format stores all of the shape and dtype information necess...
data/catboost-1.2.2/catboost_all_src/contrib/python/numpy/py3/numpy/lib/format.py
9,415
9,035
177,031
LOAD_CONST 0 LOAD_CONST ('contextmanager',) IMPORT_NAME contextlib IMPORT_FROM contextmanager STORE_NAME contextmanager POP_TOP LOAD_CONST 0 LOAD_CONST ('datetime', 'timedelta') IMPORT_NAME datetime IMPORT_FROM datetime STORE_NAME datetime IMPORT_FROM timedelta STORE_NAME timedelta POP_TOP LOAD_CONST 0 LOAD_CONST Non...
from contextlib import contextmanager from datetime import datetime, timedelta import io from itertools import cycle, product import json import random import string from unittest.mock import Mock, mock_open, patch, sentinel, call from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primit...
data/boxsdk-3.9.2/test/unit/auth/test_jwt_auth.py
15,137
9,035
231,172
SETUP_ANNOTATIONS LOAD_CONST "\nMAVLink protocol implementation (auto-generated by mavgen.py)\n\nGenerated from: ('csAirLink.xml',)\n\nNote: this file has been auto-generated. DO NOT EDIT\n" STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME hashlib STORE_NAME hashlib LOAD_CONST 0 LOAD_CONST None IMPORT_NAME...
""" MAVLink protocol implementation (auto-generated by mavgen.py) Generated from: ('csAirLink.xml',) Note: this file has been auto-generated. DO NOT EDIT """ import hashlib import json import logging import os import struct import sys import time from builtins import object, range from typing import ( Any, C...
data/pymavlink-2.4.41/dialects/v10/csAirLink.py
16,575
9,035
399,914
LOAD_CONST '\nClasses for working with Windows Update Agent\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME subprocess STORE_NAME subprocess LOAD_CONST 0 LOAD_CONST None IMPORT_NAME salt.utils.args STORE_NAME salt LOAD_CONST 0 LOAD_C...
""" Classes for working with Windows Update Agent """ import logging import subprocess import salt.utils.args import salt.utils.data import salt.utils.winapi from salt.exceptions import CommandExecutionError try: import pywintypes import win32com.client HAS_PYWIN32 = True except ImportError: HAS_PYW...
data/salt-3006.6/salt/utils/win_update.py
10,851
9,036
97,295
LOAD_CONST ' Flax OPT model.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('partial',) IMPORT_NAME functools IMPORT_FROM partial STORE_NAME partial POP_TOP LOAD_CONST 0 LOAD_CONST ('Optional', 'Tuple') IMPORT_NAME typing IMPORT_FROM Optional STORE_NAME Optional IMPORT_FROM Tuple STORE_NAME Tuple POP_TOP LOAD_CONST 0 ...
""" Flax OPT model.""" from functools import partial from typing import Optional, Tuple import flax.linen as nn import jax import jax.numpy as jnp from flax.core.frozen_dict import FrozenDict, freeze, unfreeze from flax.linen import combine_masks, make_causal_mask from flax.linen.attention import dot_product_attentio...
data/transformers-4.37.2/src/transformers/models/opt/modeling_flax_opt.py
13,905
9,036
50,044
LOAD_CONST '\n`FTPHost` is the central class of the `ftputil` library.\n\nSee `__init__.py` for an example.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME datetime STORE_NAME datetime LOAD_CONST 0 LOAD_CONST None IMPORT_NAME errno STORE_NAME errno LOAD_CONST 0 LOAD_CONST None IMPORT_NAME ftplib STORE...
""" `FTPHost` is the central class of the `ftputil` library. See `__init__.py` for an example. """ import datetime import errno import ftplib import stat import sys import time import ftputil.error import ftputil.file import ftputil.file_transfer import ftputil.path import ftputil.path_encoding import ftputil.sessio...
data/ftputil-5.1.0/ftputil/host.py
11,608
9,036
83,488
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME dataclasses STORE_NAME dataclasses LOAD_CONST 0 LOAD_CONST ('chain', 'product') IMPORT_NAME itertools IMPORT_FROM chain STORE_NAME chain IMPORT_FROM product STORE_NAME product POP_TOP LOAD_CONST 0 LOAD_CONST ('Any', 'cast', 'Dict') IMPORT_NAME typing IMPORT_FROM Any STORE_NAME...
import dataclasses from itertools import chain, product from typing import Any, cast, Dict from unittest import mock import numpy as np import torch from ax.core.search_space import SearchSpaceDigest from ax.exceptions.core import DataRequiredError from ax.models.torch.botorch import ( BotorchModel, get_featu...
data/ax-platform-0.3.6/ax/models/tests/test_botorch_model.py
13,777
9,037
63,239
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME copy STORE_NAME copy LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi.runtime STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST ('Any', 'Mapping', '...
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ["HostedConnectionArgs", "HostedConnection"] @pulumi.input_type class HostedConnectionArgs: def __init__( __self__, *, b...
data/pulumi_aws-6.22.2/pulumi_aws/directconnect/hosted_connection.py
11,633
9,037
226,212
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME time STORE_NAME time LOAD_CONST 0 LOAD_CONST ('HttpResponseError',) IMPORT_NAME azure.core.exceptions IMPORT_FROM HttpResponseError STORE_NAME HttpResponseError POP_TOP LOAD_CONST 0 LOAD_CONST ('InvalidArgumentValueError',) IMPORT_NAME azure.cli.core.azclierror IMPORT_FROM Inv...
import time from azure.core.exceptions import HttpResponseError from azure.cli.core.azclierror import InvalidArgumentValueError from azure.cli.core.commands import LongRunningOperation from azure.mgmt.servicefabricmanagedclusters.models import ( ApplicationTypeResource, ApplicationTypeVersionResource, Appl...
data/azure-cli-2.57.0/azure/cli/command_modules/servicefabric/operations/managed_applications.py
11,032
9,037
379,039
LOAD_CONST '\nConnection pooling and host management.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('total_ordering',) IMPORT_NAME functools IMPORT_FROM total_ordering STORE_NAME total_ordering POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME socke...
""" Connection pooling and host management. """ from functools import total_ordering import logging import socket import time from threading import Lock, RLock, Condition import weakref try: from weakref import WeakSet except ImportError: from cassandra.util import WeakSet # NOQA from cassandra import Authe...
data/cassandra-driver-3.29.0/cassandra/pool.py
15,023
9,037
206,340
SETUP_ANNOTATIONS LOAD_CONST 'Special case IR generation of calls to specific builtin functions.\n\nMost special cases should be handled using the data driven "primitive\nops" system, but certain operations require special handling that has\naccess to the AST/IR directly and can make decisions/optimizations\nbased on i...
"""Special case IR generation of calls to specific builtin functions. Most special cases should be handled using the data driven "primitive ops" system, but certain operations require special handling that has access to the AST/IR directly and can make decisions/optimizations based on it. These special cases can be im...
data/mypy-1.8.0/mypyc/irbuild/specialize.py
14,645
9,037
272,315
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME dataclasses STORE_NAME dataclasses LOAD_CONST 0 LOAD_CONST None IMPORT_NAME json STORE_NAME json LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re LOAD_CONST 0 LOAD_CONST ('Any', 'Callable', 'Dict', 'List', 'Optional', 'Sequence', 'Tuple', 'Union') IMPORT_NAME typing ...
import dataclasses import json # type: ignore import re from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings from google.api_core import ( gapic_v1, operations_v1, path_template, rest_helpers, rest_streaming, ) from google.api_core import exceptions as cor...
data/google-cloud-recommendations-ai-0.10.8/google/cloud/recommendationengine_v1beta1/services/user_event_service/transports/rest.py
12,169
9,038
57,360
LOAD_CONST 'Tests for logging configuration via ZConfig.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME doctest STORE_NAME doctest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys ...
"""Tests for logging configuration via ZConfig.""" import doctest import logging import os import sys import unittest from io import StringIO from sys import maxsize import ZConfig import ZConfig.components.logger.tests.support import ZConfig.tests.support from ZConfig.components.logger import datatypes from ZConfig....
data/ZConfig-4.0/src/ZConfig/components/logger/tests/test_logger.py
15,663
9,038
399,832
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME gc STORE_NAME gc LOAD_CONST 0 LOAD_CONST None IMPORT_NAME time STORE_NAME time LOAD_CONST 0 LOAD_CONST ('namedtuple',) IMPORT_NAME collections IMPORT_FROM namedtuple STORE_NAME namedtuple POP_TOP LOAD_CONST 0 LOAD_CONST ('dataclass', 'field') IMPORT_NAME dataclasses IMPORT_FR...
import gc import time from collections import namedtuple from dataclasses import dataclass, field from functools import partial from typing import Callable, Optional, Sequence, Union import torch import torch.nn.functional as F from einops import rearrange, repeat from torch import Tensor from torch.profiler import Pr...
data/xformers-0.0.24/third_party/flash-attention/flash_attn/utils/generation.py
12,697
9,038
153,466
LOAD_CONST 0 LOAD_CONST ('formatted_flat_dict', 'NONE_SENTINEL', 'value_allowed_none_or_none_sentinel') IMPORT_NAME oci.util IMPORT_FROM formatted_flat_dict STORE_NAME formatted_flat_dict IMPORT_FROM NONE_SENTINEL STORE_NAME NONE_SENTINEL IMPORT_FROM value_allowed_none_or_none_sentinel STORE_NAME value_allowed_none_or_...
from oci.util import ( formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel, ) # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class Condition(object): """ Condition resource. A unit that captures a condition. """ IDCS...
data/oci-2.122.0/src/oci/identity_domains/models/condition.py
5,225
9,038
178,662
LOAD_CONST 'Test for "region" module.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST ('Nifti1Image',) IMPORT_NAME nibabel ...
"""Test for "region" module.""" import warnings import numpy as np import pytest from nibabel import Nifti1Image from numpy.testing import assert_almost_equal, assert_equal from nilearn._utils.data_gen import ( generate_fake_fmri, generate_labeled_regions, generate_maps, generate_timeseries, ) from ...
data/nilearn-0.10.3/nilearn/regions/tests/test_signal_extraction.py
14,325
9,038
232,555
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME gc STORE_NAME gc LOAD_CONST 0 LOAD_CONST None IMPORT_NAME time STORE_NAME time LOAD_CONST 0 LOAD_CONST ('namedtuple',) IMPORT_NAME collections IMPORT_FROM namedtuple STORE_NAME namedtuple POP_TOP LOAD_CONST 0 LOAD_CONST ('dataclass', 'field') IMPORT_NAME dataclasses IMPORT_FR...
import gc import time from collections import namedtuple from dataclasses import dataclass, field from functools import partial from typing import Callable, Optional, Sequence, Union import torch import torch.nn.functional as F from einops import rearrange, repeat from torch import Tensor from torch.profiler import Pr...
data/xformers-0.0.24/xformers/_flash_attn/utils/generation.py
12,710
9,038
153,345
LOAD_CONST '\nThis module is responsible for loading the documentation from Python objects.\n\nIt uses [`inspect`](https://docs.python.org/3/library/inspect.html) for introspecting objects,\niterating over their members, etc.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME importlib STORE_NAME importlib...
""" This module is responsible for loading the documentation from Python objects. It uses [`inspect`](https://docs.python.org/3/library/inspect.html) for introspecting objects, iterating over their members, etc. """ import importlib import inspect import pkgutil import re from functools import lru_cache from itertool...
data/pytkdocs-0.16.1/src/pytkdocs/loader.py
12,585
9,038
46,850
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME datetime STORE_NAME datetime LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME queue STORE_NAME queue LOAD_CONST 0 LOAD_CONST None IMPORT_NAME threading STORE_NAME threading LOAD_CONST 0 LOAD_CONST None IMPORT_NAME m...
import datetime import logging import queue import threading import mock import pytest try: import grpc except ImportError: # pragma: NO COVER pytest.skip("No GRPC", allow_module_level=True) from google.api_core import bidi from google.api_core import exceptions class Test_RequestQueueGenerator(object): ...
data/google-api-core-2.17.1/tests/unit/test_bidi.py
18,431
9,039
328,311
LOAD_CONST 0 LOAD_CONST ('abstractmethod',) IMPORT_NAME abc IMPORT_FROM abstractmethod STORE_NAME abstractmethod POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME math STORE_NAME math LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST None IMPORT_NAME torch STORE_NAME th LOAD_CONST ...
from abc import abstractmethod import math import numpy as np import torch as th import torch.nn as nn import torch.nn.functional as F from ldm.modules.diffusionmodules.util import ( checkpoint, conv_nd, linear, avg_pool_nd, zero_module, normalization, timestep_embedding, ) from ldm.module...
data/stable-diffusion-sdkit-2.1.5/ldm/modules/diffusionmodules/openaimodel.py
13,355
9,040
106,637
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME copy STORE_NAME copy LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi.runtime STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST ('Any', 'Mapping', '...
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._inputs import * __all__ = ["VpcAttachmentArgs", "VpcAttachment"] @pulumi.input_type class VpcAttachmentArgs: def __init__( ...
data/pulumi_aws-6.22.2/pulumi_aws/networkmanager/vpc_attachment.py
12,733
9,041
226,575
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME base64 STORE_NAME base64 LOAD_CONST 0 LOAD_CONST None IMPORT_NAME functools STORE_NAME functools LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME shutil STOR...
import base64 import functools import logging import os import shutil from contextlib import contextmanager import mlflow from mlflow.entities import Run from mlflow.exceptions import MlflowException from mlflow.protos.databricks_uc_registry_messages_pb2 import ( MODEL_VERSION_OPERATION_READ_WRITE, CreateModel...
data/mlflow-2.10.2/mlflow/store/_unity_catalog/registry/rest_store.py
11,850
9,041
43,968
SETUP_ANNOTATIONS LOAD_CONST 'Amazon S3 Read Module (PRIVATE).' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME datetime STORE_NAME datetime LOAD_CONST 0 LOAD_CONST None IMPORT_NAME iter...
"""Amazon S3 Read Module (PRIVATE).""" from __future__ import annotations import datetime import itertools import logging import pprint from typing import TYPE_CHECKING, Any, Callable, Iterator import boto3 import pandas as pd from typing_extensions import Literal from awswrangler import _utils, exceptions from aws...
data/awswrangler-3.6.0/awswrangler/s3/_read_text.py
5,086
9,041
416,115
LOAD_CONST '\n external/v1/auth_service.proto\n\n No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501\n\n OpenAPI spec version: version not set\n \n Generated by: https://github.com/swagger-api/swagger-codegen.git\n\n NOTE\n ----\n standard swagger-codegen-...
""" external/v1/auth_service.proto No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: version not set Generated by: https://github.com/swagger-api/swagger-codegen.git NOTE ---- standard swagger-cod...
data/lightning_cloud-0.5.64/lightning_cloud/openapi/api/auth_service_api.py
8,653
9,041
233,690
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME base64 STORE_NAME base64 LOAD_CONST 0 LOAD_CONST None IMPORT_NAME functools STORE_NAME functools LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME shutil STOR...
import base64 import functools import logging import os import shutil from contextlib import contextmanager import mlflow from mlflow.entities import Run from mlflow.exceptions import MlflowException from mlflow.protos.databricks_uc_registry_messages_pb2 import ( MODEL_VERSION_OPERATION_READ_WRITE, CreateModel...
data/mlflow-skinny-2.10.2/mlflow/store/_unity_catalog/registry/rest_store.py
11,851
9,041
291,790
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME copy STORE_NAME copy LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi.runtime STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST ('Any', 'Mapping', '...
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ["ApiConfigIamPolicyArgs", "ApiConfigIamPolicy"] @pulumi.input_type class ApiConfigIamPolicyArgs: def __init__( __self__, *, ...
data/pulumi_gcp-7.9.0/pulumi_gcp/apigateway/api_config_iam_policy.py
5,719
9,041
446,517
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME math STORE_NAME math LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST None IMPORT_NAME scipy.ndimage IMPORT_FROM ndimage STORE_NAME ndi POP_TOP LOAD_CONST 2 LOAD_CONST ('check_nD', '_supported_float_type') IMPORT_NAME _shared.utils IMPORT_F...
import math import numpy as np import scipy.ndimage as ndi from .._shared.utils import check_nD, _supported_float_type from ..feature.util import DescriptorExtractor, FeatureDetector from .._shared.filters import gaussian from ..transform import rescale from ..util import img_as_float from ._sift import _local_max, _...
data/scikit_image-0.22.0/skimage/feature/sift.py
13,351
9,042
57,118
LOAD_CONST '\nEthtool parsers\n===============\n\nClasses to parse ``ethtool`` command information.\n\nThe interface information for a machine is stored as lists. Each interface\nis accessed by iterating through the shared parser list.\n\nThe interface classes all provide the following properties:\n\n* ``iface`` and ``...
""" Ethtool parsers =============== Classes to parse ``ethtool`` command information. The interface information for a machine is stored as lists. Each interface is accessed by iterating through the shared parser list. The interface classes all provide the following properties: * ``iface`` and ``ifname``: the inter...
data/insights-core-3.3.9/insights/parsers/ethtool.py
12,630
9,042
213,059
LOAD_CONST 'This library implements different operations needed by quaternion-\nvalued architectures.\nThis work is inspired by:\n"Quaternion neural networks" - Parcollet T.\n"Quaternion recurrent neural networks" - Parcollet T. et al.\n"Quaternion convolutional neural networks for end-to-end automatic speech\nrecognit...
"""This library implements different operations needed by quaternion- valued architectures. This work is inspired by: "Quaternion neural networks" - Parcollet T. "Quaternion recurrent neural networks" - Parcollet T. et al. "Quaternion convolutional neural networks for end-to-end automatic speech recognition" - Parcolle...
data/speechbrain-0.5.16/speechbrain/nnet/quaternion_networks/q_ops.py
9,002
9,042
55,619
LOAD_CONST '\n Akeyless API\n\n The purpose of this application is to provide access to Akeyless API. # noqa: E501\n\n The version of the OpenAPI document: 2.0\n Contact: support@akeyless.io\n Generated by: https://openapi-generator.tech\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pprint STORE_NAME ...
""" Akeyless API The purpose of this application is to provide access to Akeyless API. # noqa: E501 The version of the OpenAPI document: 2.0 Contact: support@akeyless.io Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from akeyless.configurati...
data/akeyless-3.6.1/akeyless/models/gateway_update_item.py
7,867
9,042
252,913
LOAD_CONST '\nProvides AWS4Auth class for handling Amazon Web Services version 4\nauthentication with the Requests module.\n\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('unicode_literals',) IMPORT_NAME __future__ IMPORT_FROM unicode_literals STORE_NAME unicode_literals POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_N...
""" Provides AWS4Auth class for handling Amazon Web Services version 4 authentication with the Requests module. """ from __future__ import unicode_literals import hmac import hashlib import posixpath import re import shlex import datetime try: import collections.abc as abc except ImportError: import collec...
data/requests-aws4auth-1.2.3/requests_aws4auth/aws4auth.py
10,358
9,043
305,810
LOAD_CONST 0 LOAD_CONST ('OrderedDict',) IMPORT_NAME collections IMPORT_FROM OrderedDict STORE_NAME OrderedDict POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME functools STORE_NAME functools LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re LOAD_CONST 0 LOAD_CONST ('Dict', 'Mapping', 'MutableMapping', 'Muta...
from collections import OrderedDict import functools import re from typing import ( Dict, Mapping, MutableMapping, MutableSequence, Optional, Sequence, Tuple, Type, Union, ) from google.api_core import exceptions as core_exceptions from google.api_core import gapic_v1 from google.ap...
data/google-cloud-language-2.13.1/google/cloud/language_v1beta2/services/language_service/async_client.py
6,966
9,043
27,048
SETUP_ANNOTATIONS LOAD_CONST "concurrent_log_handler: A smart replacement for the standard RotatingFileHandler\n\nConcurrentRotatingFileHandler: This class is a log handler which is a drop-in\nreplacement for the python standard log handler 'RotateFileHandler', the primary\ndifference being that this handler will conti...
"""concurrent_log_handler: A smart replacement for the standard RotatingFileHandler ConcurrentRotatingFileHandler: This class is a log handler which is a drop-in replacement for the python standard log handler 'RotateFileHandler', the primary difference being that this handler will continue to write to the same file ...
data/concurrent_log_handler-0.9.25/src/concurrent_log_handler/__init__.py
13,055
9,043
358,045
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST ('Any', 'Callable', 'Dict', 'List', 'Tuple', 'Union') IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any IMPORT_FROM Callable STORE_NAME Callable IMPORT_FROM Dict STORE_NAME Dict IMPORT_FROM List STORE_NAME List IMPORT_FROM Tupl...
import logging from typing import Any, Callable, Dict, List, Tuple, Union import slither.slithir.variables.tuple_ssa from slither.core.cfg.node import Node, NodeType from slither.core.declarations import ( Contract, Enum, Function, SolidityFunction, SolidityVariable, Structure, ) from slither.c...
data/slither-analyzer-0.10.0/slither/slithir/utils/ssa.py
17,405
9,043
213,805
LOAD_CONST 'Test installation of JupyterLab extensions' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME glob STORE_NAME glob LOAD_CONST 0 LOAD_CONST None IMPORT_NAME json STORE_NAME json LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE...
"""Test installation of JupyterLab extensions""" import glob import json import logging import os import platform import shutil import subprocess import sys from os.path import join as pjoin from pathlib import Path from tempfile import TemporaryDirectory from unittest import TestCase from unittest.mock import patch ...
data/jupyterlab-4.1.2/jupyterlab/tests/test_jupyterlab.py
18,128
9,044
118,849
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME copy STORE_NAME copy LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi.runtime STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST ('Any', 'Mapping', '...
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . import outputs from ... import meta as _meta __all__ = [ "APIService", "APIServiceCondition", "APIServiceConditionPatch", "APIServiceSpe...
data/pulumi_kubernetes-4.7.1/pulumi_kubernetes/apiregistration/v1beta1/outputs.py
11,275
9,045
123,931
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME argparse STORE_NAME argparse LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST ('getpass',) IMPORT_NAME getpass IMPORT_FROM getpass STORE_NAME getpass POP_TOP LOAD_CONST 0 L...
import argparse import logging import sys from getpass import getpass from impacket import version from impacket.dcerpc.v5 import transport, samr, epm from impacket.krb5 import kpasswd from impacket.ldap import ldap, ldapasn1 from impacket.examples import logger from impacket.examples.utils import parse_target EMP...
data/impacket-0.11.0/examples/changepasswd.py
12,119
9,045
357,558
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME networkit STORE_NAME nk LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST None IMPORT_NAME scipy STORE_NAME scip...
import unittest import os import networkit as nk import numpy as np import scipy import random class TestCentrality(unittest.TestCase): def checkCovers(self, c1, c2): if not c1.numberOfElements() == c2.numberOfElements(): return False if not c1.numberOfSubsets() == c2.numberOfSubsets()...
data/networkit-11.0/networkit/test/test_centrality.py
15,541
9,045
401,576
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME importlib.util STORE_NAME importlib LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME autoray STORE_NAME ar LOAD_CONST 0 LOAD_CONST ('shape',) IMPORT_NAME autoray IMPORT_FROM shape STORE_NAME shape POP_TOP LOAD_NAME py...
import importlib.util import pytest import autoray as ar from autoray import shape BACKENDS = [pytest.param("numpy")] for lib in ["cupy", "dask", "tensorflow", "torch", "mars", "jax", "sparse"]: if importlib.util.find_spec(lib): BACKENDS.append(pytest.param(lib)) if lib == "jax": im...
data/autoray-0.6.8/tests/test_autoray.py
16,949
9,046
219,338
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('Iterable',) IMPORT_NAME collections.abc IMPORT_FROM Iterable STORE_NAME Iterable POP_TOP LOAD_CONST 0 LOAD_CONST ('Any',) IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any P...
from __future__ import annotations from collections.abc import Iterable from typing import Any import numpy as np import pytest import xarray as xr from xarray import DataArray, Dataset from xarray.tests import ( assert_allclose, assert_equal, raise_if_dask_computes, requires_cftime, requires_das...
data/xarray-2024.2.0/xarray/tests/test_weighted.py
15,070
9,046
8,112
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME tempfile STORE_NAME tempfile LOAD_CONST 0 LOAD_CONST None IMPORT_NAME shutil STORE_NAME shutil LOAD_CONST 0 LOAD_CONST None IMPORT_NAME inspect STORE_NAME inspect LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re ...
import logging import tempfile import shutil import inspect import re from io import IOBase from pathlib import Path from importlib_resources import files from datetime import datetime, timedelta from typing import Sequence, Optional, Mapping from .versions import VersionRaw, guess_version from .meta import Meta, Me...
data/pins-0.8.4/pins/boards.py
14,994
9,047
446,894
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME copy STORE_NAME copy LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi.runtime STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST ('Any', 'Mapping', '...
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ["MembershipIamPolicyArgs", "MembershipIamPolicy"] @pulumi.input_type class MembershipIamPolicyArgs: def __init__( __self__, *, ...
data/pulumi_gcp-7.9.0/pulumi_gcp/gkehub/membership_iam_policy.py
5,749
9,047
445,766
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME itertools STORE_NAME itertools LOAD_CONST 0 LOAD_CONST None IMPORT_NAME random STORE_NAME random LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re LOAD_CONST 1 LOAD_CONST ('InfoExtractor',) IMPORT_NAME common IMPORT_FROM InfoExtractor STORE_NAME InfoExtractor POP_TOP ...
import itertools import random import re from .common import InfoExtractor from ..utils import ( clean_html, determine_ext, dict_get, ExtractorError, int_or_none, js_to_json, str_or_none, strip_or_none, traverse_obj, try_get, url_or_none, ) class TVPIE(InfoExtractor): ...
data/yt-dlp-2023.12.30/yt_dlp/extractor/tvp.py
12,496
9,047
157,623
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME copy STORE_NAME copy LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pulumi.runtime STORE_NAME pulumi LOAD_CONST 0 LOAD_CONST ('Any', 'Mapping', '...
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ["CustomConstraintArgs", "CustomConstraint"] @pulumi.input_type class CustomConstraintArgs: def __init__( __self__, *, a...
data/pulumi_gcp-7.9.0/pulumi_gcp/orgpolicy/custom_constraint.py
9,394
9,047
446,019
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME pytest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME networkx STORE_NAME nx LOAD_CONST 0 LOAD_CONST ('directed',) IMPORT_NAME networkx.generators IMPORT_FROM directed STORE_NAME directed POP_TOP LOAD_CONST <code object test_empty_graph_hash at 0x7fae471296f0, fil...
import pytest import networkx as nx from networkx.generators import directed def test_empty_graph_hash(): """ empty graphs should give hashes regardless of other params """ G1 = nx.empty_graph() G2 = nx.empty_graph() h1 = nx.weisfeiler_lehman_graph_hash(G1) h2 = nx.weisfeiler_lehman_grap...
data/networkx-3.2.1/networkx/algorithms/tests/test_graph_hashing.py
16,003
9,047
130,736
LOAD_CONST 0 LOAD_CONST ('Callable', 'Dict', 'Optional', 'Sequence', 'Tuple', 'Union') IMPORT_NAME typing IMPORT_FROM Callable STORE_NAME Callable IMPORT_FROM Dict STORE_NAME Dict IMPORT_FROM Optional STORE_NAME Optional IMPORT_FROM Sequence STORE_NAME Sequence IMPORT_FROM Tuple STORE_NAME Tuple IMPORT_FROM Union STORE...
from typing import Callable, Dict, Optional, Sequence, Tuple, Union import warnings from google.api_core import gapic_v1, grpc_helpers, operations_v1 import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: i...
data/google-cloud-notebooks-1.10.1/google/cloud/notebooks_v1beta1/services/notebook_service/transports/grpc.py
9,736
9,047
386,063
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numbers STORE_NAME numbers LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re LOAD_CONST 0 LOAD_CONST None IMPORT_NAME types STORE_NAME types LOAD_CONST 0 LOAD_CONST ('OrderedDict',) IMPORT_NAME collections IMPORT_FROM OrderedDict STORE_NAME OrderedDict POP_TOP SETUP_...
import numbers import re import types from collections import OrderedDict try: from collections.abc import Iterable except ImportError: from collections import Iterable import numpy import awkward0.array.base import awkward0.type import awkward0.util class Table(awkward0.array.base.AwkwardArray): """ ...
data/awkward0-0.15.5/awkward0/array/table.py
19,665
9,047
194,170
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST None IMPORT_NAME cvxpy STORE_NAME cp LOAD_CONST 0 LOAD_CONST None IMPORT_NAME cvxpy.settings IMPORT_FROM settings STORE_NAME s POP_TOP LOAD_CONST 0 LOAD_CONST ('...
import warnings import numpy as np import cvxpy as cp import cvxpy.settings as s from cvxpy.tests.base_test import BaseTest warnings.filterwarnings("ignore") SOLVE_METHODS = [s.SCS, s.ECOS] EPS_NAME = {s.SCS: "eps", s.ECOS: "abstol"} def perturbcheck( problem, gp: bool = False, solve_methods: list = S...
data/cvxpy-1.4.2/cvxpy/tests/test_derivative.py
17,204
9,047
273,388
LOAD_CONST 'General quirk tests.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME collections STORE_NAME collections LOAD_CONST 0 LOAD_CONST None IMPORT_NAME importlib STORE_NAME importl...
"""General quirk tests.""" from __future__ import annotations import collections import importlib import json from pathlib import Path from unittest import mock import pytest import zigpy.device import zigpy.endpoint import zigpy.profiles import zigpy.quirks as zq from zigpy.quirks import CustomDevice import zigpy.t...
data/zha-quirks-0.0.111/tests/test_quirks.py
15,389
9,048
423,108
LOAD_CONST '\nAssist integrated channels with retrieving learner completion data.\n\nModule contains resources for integrated pipelines to retrieve all the\ngrade and completion data for enrollments belonging to a particular\nenterprise customer.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('datetime',) IMPORT_NAME ...
""" Assist integrated channels with retrieving learner completion data. Module contains resources for integrated pipelines to retrieve all the grade and completion data for enrollments belonging to a particular enterprise customer. """ from datetime import datetime from logging import getLogger from opaque_keys impo...
data/edx-enterprise-4.12.1/integrated_channels/integrated_channel/exporters/learner_data.py
10,205
9,048
91,563
LOAD_CONST '\nTests for docutils.transforms.references.Hyperlinks.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Path',) IMPORT_NAME pathlib IMPORT_FROM Path STORE_NAME Path POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LO...
""" Tests for docutils.transforms.references.Hyperlinks. """ from pathlib import Path import sys import unittest if __name__ == "__main__": sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from docutils.frontend import get_default_settings from docutils.parsers.rst import Parser from docutils.transfo...
data/docutils-0.20.1/test/test_transforms/test_hyperlinks.py
9,540
9,048
83,280
LOAD_CONST 0 LOAD_CONST ('formatted_flat_dict', 'NONE_SENTINEL', 'value_allowed_none_or_none_sentinel') IMPORT_NAME oci.util IMPORT_FROM formatted_flat_dict STORE_NAME formatted_flat_dict IMPORT_FROM NONE_SENTINEL STORE_NAME NONE_SENTINEL IMPORT_FROM value_allowed_none_or_none_sentinel STORE_NAME value_allowed_none_or_...
from oci.util import ( formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel, ) # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class DynamicResourceGroup(object): """ Schema for DynamicResourceGroup resource. """ IDCS_...
data/oci-2.122.0/src/oci/identity_domains/models/dynamic_resource_group.py
5,193
9,049
178,487
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME time STORE_NAME time LOAD_CONST 0 LOAD_CONST ('timedelta',) IMPORT_NAME datetime IMPORT_FROM timedelta STORE_NAME timedelta POP_TOP LOAD_CONST 0 LOAD_CONST (...
from __future__ import annotations import time from datetime import timedelta from typing import TYPE_CHECKING, Any, Sequence from airflow.configuration import conf from airflow.exceptions import AirflowException from airflow.models import BaseOperator from airflow.providers.amazon.aws.hooks.redshift_cluster import R...
data/apache_airflow_providers_amazon-8.18.0/airflow/providers/amazon/aws/operators/redshift_cluster.py
13,322
9,049
383,106
LOAD_CONST 0 LOAD_CONST ('Any', 'AsyncIterable', 'Callable', 'Dict', 'Optional', 'TypeVar', 'Union') IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any IMPORT_FROM AsyncIterable STORE_NAME AsyncIterable IMPORT_FROM Callable STORE_NAME Callable IMPORT_FROM Dict STORE_NAME Dict IMPORT_FROM Optional STORE_NAME Optional IMP...
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error, ) from azure.core.pi...
data/azure-ai-ml-1.13.0/azure/ai/ml/_restclient/v2023_04_01/aio/operations/_registries_operations.py
10,651
9,050
424,910