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 0 LOAD_CONST ('IOBase',) IMPORT_NAME io IMPORT_FROM IOBase STORE_NAME IOBase POP_TOP LOAD_CONST 0 LOAD_CONST ('Any', 'Callable', 'Dict', 'IO', 'Iterable', 'Optional', 'TypeVar', 'Union', 'overload') IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any IMPORT_FROM Callable STORE_NAME Callable IMPORT_FROM Dict S...
from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, )...
data/azure-mgmt-keyvault-10.3.0/azure/mgmt/keyvault/v2023_02_01/operations/_secrets_operations.py
9,364
8,907
292,444
LOAD_CONST 'Helper functions.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('absolute_import', 'annotations', 'division', 'unicode_literals') IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM annotations STORE_NAME annotations IMPORT_FROM division STORE_NAME division IMPORT_FROM ...
"""Helper functions.""" from __future__ import absolute_import, annotations, division, unicode_literals import base64 import errno import hashlib import math import os import platform import re import urllib.parse from datetime import datetime from queue import Queue from threading import BoundedSemaphore, Thread fro...
data/minio-7.2.4/minio/helpers.py
15,541
8,907
24,740
LOAD_CONST 0 LOAD_CONST ('IOBase',) IMPORT_NAME io IMPORT_FROM IOBase STORE_NAME IOBase POP_TOP LOAD_CONST 0 LOAD_CONST ('Any', 'Callable', 'Dict', 'IO', 'Iterable', 'Optional', 'TypeVar', 'Union', 'overload') IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any IMPORT_FROM Callable STORE_NAME Callable IMPORT_FROM Dict S...
from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, )...
data/azure-mgmt-keyvault-10.3.0/azure/mgmt/keyvault/v2021_10_01/operations/_secrets_operations.py
9,361
8,907
292,484
LOAD_CONST 0 LOAD_CONST ('IOBase',) IMPORT_NAME io IMPORT_FROM IOBase STORE_NAME IOBase POP_TOP LOAD_CONST 0 LOAD_CONST ('Any', 'Callable', 'Dict', 'IO', 'Iterable', 'Optional', 'TypeVar', 'Union', 'overload') IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any IMPORT_FROM Callable STORE_NAME Callable IMPORT_FROM Dict S...
from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, )...
data/azure-mgmt-keyvault-10.3.0/azure/mgmt/keyvault/v2022_07_01/operations/_secrets_operations.py
9,363
8,907
292,282
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re 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 ('backend',) IMPORT_NAME keras.src IMPORT_FROM backend STORE_NAME backend POP_TOP LOAD_CONST 0 LOAD_CON...
import re import warnings import numpy as np from keras.src import backend from keras.src import initializers from keras.src import ops from keras.src.optimizers.schedules import learning_rate_schedule from keras.src.saving import serialization_lib from keras.src.utils import tracking from keras.src.utils.naming impo...
data/keras-nightly-3.1.0.dev2024022103/keras/src/optimizers/base_optimizer.py
13,342
8,908
285,186
LOAD_CONST 'Defines jax-compatible geometries and their conversion to grad monitors.' 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 ('ABC',) IMPORT_NAME abc IMPORT_FROM ABC STORE_NAME ABC POP_TOP LOAD_...
"""Defines jax-compatible geometries and their conversion to grad monitors.""" from __future__ import annotations from abc import ABC from typing import Tuple, Union, Dict, List from multiprocessing import Pool import pydantic.v1 as pd import numpy as np import xarray as xr from jax.tree_util import register_pytree_...
data/tidy3d-2.5.2/tidy3d/plugins/adjoint/components/geometry.py
15,004
8,908
206,280
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re 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 ('backend',) IMPORT_NAME keras.src IMPORT_FROM backend STORE_NAME backend POP_TOP LOAD_CONST 0 LOAD_CON...
import re import warnings import numpy as np from keras.src import backend from keras.src import initializers from keras.src import ops from keras.src.optimizers.schedules import learning_rate_schedule from keras.src.saving import serialization_lib from keras.src.utils import tracking from keras.src.utils.naming impo...
data/keras-3.0.5/keras/src/optimizers/base_optimizer.py
13,347
8,908
349,366
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME inspect STORE_NAME inspect LOAD_CONST 0 LOAD_CONST None IMPORT_NAME io STORE_NAME io LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os.path STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME random STORE_NAME random LO...
import inspect import io import os import os.path import random import re import sys import time import traceback from contextlib import redirect_stderr, redirect_stdout from importlib import import_module from typing import Any, Callable, Dict, List, Optional, Pattern, Union, cast import psutil import pygments import...
data/TestSlide-2.7.1/testslide/runner.py
19,006
8,908
124,813
LOAD_CONST '\n OneLogin API\n\n OpenAPI Specification for OneLogin # noqa: E501\n\n The version of the OpenAPI document: 3.1.1\n Generated by: https://openapi-generator.tech\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('date', 'datetime') IMPORT_NAME datetime IMPORT_FROM date STORE_NAME date IMPORT_FROM datetime STO...
""" OneLogin API OpenAPI Specification for OneLogin # noqa: E501 The version of the OpenAPI document: 3.1.1 Generated by: https://openapi-generator.tech """ from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re...
data/onelogin-3.1.6/onelogin/model/user.py
16,627
8,908
397,399
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME datetime STORE_NAME datetime LOAD_CONST 0 LOAD_CONST ('dedent',) IMPORT_NAME textwrap IMPORT_FROM dedent STORE_NAME dedent POP_TOP LOAD_CONST <code object <l...
import sys import os import datetime from textwrap import dedent sys.path = [path for path in sys.path if path not in [os.getcwd(), ""]] import platform # NOQA from _ast import * # NOQA from ast import parse # NOQA from setuptools import setup, Extension, Distribution # NOQA from setuptools.command import install...
data/ruamel.yaml-0.18.6/setup.py
15,800
8,908
307,961
LOAD_CONST '\nsid_group indicates that this is a collection of policy-related data organized by their SIDs\n' 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 logging STORE_NAME logging L...
""" sid_group indicates that this is a collection of policy-related data organized by their SIDs """ from __future__ import annotations import logging import re from typing import Any from policy_sentry.analysis.expand import determine_actions_to_expand from policy_sentry.querying.all import get_all_actions from pol...
data/policy_sentry-0.12.10/policy_sentry/writing/sid_group.py
12,581
8,908
81,881
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings 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_N...
import warnings from typing import Callable, Dict, Optional, Sequence, Tuple, Union from google.api_core import grpc_helpers from google.api_core import operations_v1 from google.api_core import gapic_v1 import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from googl...
data/google-cloud-spanner-3.42.0/google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/grpc.py
6,739
8,909
184,312
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 re STORE_NAME re LOAD_CONST 0 LOAD_CONST None IMPORT_NAME string STORE_NAME string LOA...
from __future__ import annotations import datetime import re import string from tomlkit._compat import decode from tomlkit._utils import RFC_3339_LOOSE from tomlkit._utils import _escaped from tomlkit._utils import parse_rfc3339 from tomlkit.container import Container from tomlkit.exceptions import EmptyKeyError from...
data/tomlkit-0.12.3/tomlkit/parser.py
15,631
8,909
242,930
LOAD_CONST 1 LOAD_CONST ('AbstractPerson', 'BasePerson', 'Person', 'ProxyPerson', 'Relating', 'Relation') IMPORT_NAME models IMPORT_FROM AbstractPerson STORE_NAME AbstractPerson IMPORT_FROM BasePerson STORE_NAME BasePerson IMPORT_FROM Person STORE_NAME Person IMPORT_FROM ProxyPerson STORE_NAME ProxyPerson IMPORT_FROM R...
from .models import AbstractPerson, BasePerson, Person, ProxyPerson, Relating, Relation TEST_RESULTS = { "get_all_field_names": { Person: [ "baseperson_ptr", "baseperson_ptr_id", "content_type_abstract", "content_type_abstract_id", "content_type_b...
data/Django-5.0.2/tests/model_meta/results.py
9,069
8,909
325,272
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME decimal STORE_NAME decimal LOAD_CONST 0 LOAD_CONST None IMPORT_NAME ipaddress STORE_NAME ipaddress LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME time STORE_NAME time LOAD_CONST 0 LOAD_CONST None IMPORT_NAME uuid STORE_NAME...
import decimal import ipaddress import os import time import uuid from collections import OrderedDict from datetime import ( date as Date, datetime as Datetime, time as Time, timedelta as Timedelta, timezone as Timezone, ) from enum import Enum from json import dumps import pytest import pytz imp...
data/pg8000-1.30.4/test/dbapi/test_typeconversion.py
18,054
8,909
196,085
LOAD_CONST "\nLightweight schema migrations.\n\nExample Usage\n-------------\n\nInstantiate a migrator:\n\n my_db = PostgresqlDatabase(...)\n migrator = PostgresqlMigrator(my_db)\n\n my_db = SqliteDatabase('my_database.db')\n migrator = SqliteMigrator(my_db)\n\nThen you will use the `migrate` function to run various `O...
""" Lightweight schema migrations. Example Usage ------------- Instantiate a migrator: my_db = PostgresqlDatabase(...) migrator = PostgresqlMigrator(my_db) my_db = SqliteDatabase('my_database.db') migrator = SqliteMigrator(my_db) Then you will use the `migrate` function to run various `Operation`s ...
data/peewee-3.17.1/playhouse/migrate.py
17,017
8,910
196,248
LOAD_CONST 0 LOAD_CONST ('abs', 'sum', 'sin', 'cos', 'sqrt', 'log', 'prod', 'where', 'pi', 'exp', 'arange', 'floor', 'log10', 'atleast_2d', 'zeros') IMPORT_NAME numpy IMPORT_FROM abs STORE_NAME abs IMPORT_FROM sum STORE_NAME sum IMPORT_FROM sin STORE_NAME sin IMPORT_FROM cos STORE_NAME cos IMPORT_FROM sqrt STORE_NAME s...
from numpy import ( abs, sum, sin, cos, sqrt, log, prod, where, pi, exp, arange, floor, log10, atleast_2d, zeros, ) from .go_benchmark import Benchmark class Parsopoulos(Benchmark): r""" Parsopoulos objective function. This class defines the Par...
data/scipy-1.12.0/benchmarks/benchmarks/go_benchmark_functions/go_funcs_P.py
14,394
8,910
245,211
LOAD_CONST 'Abstract base classes for RL algorithms.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME io STORE_NAME io LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pathlib STORE_NAME pathlib LOAD_CONST 0 LOAD_CONST None IMPORT_NAME time STORE_NAME time LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE...
"""Abstract base classes for RL algorithms.""" import io import pathlib import time import warnings from abc import ABC, abstractmethod from collections import deque from typing import ( Any, ClassVar, Dict, Iterable, List, Optional, Tuple, Type, TypeVar, Union, ) import gymnas...
data/stable_baselines3-2.2.1/stable_baselines3/common/base_class.py
11,070
8,910
300,363
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 ('DataFrame', 'DatetimeIndex', 'Series', 'date_range') IMPORT_NAME pandas IMPORT_FROM DataFrame STORE_NAME DataFrame IMPORT_FROM DatetimeIndex STORE_NAME DatetimeIndex...
import numpy as np import pytest from pandas import ( DataFrame, DatetimeIndex, Series, date_range, ) import pandas._testing as tm def test_doc_string(): df = DataFrame({"B": [0, 1, 2, np.nan, 4]}) df df.ewm(com=0.5).mean() def test_constructor(frame_or_series): c = frame_or_series(...
data/pandas-2.2.0/pandas/tests/window/test_ewm.py
15,743
8,911
170,683
LOAD_CONST 2 LOAD_CONST ('_',) IMPORT_NAME i18n IMPORT_FROM _ STORE_NAME _ POP_TOP LOAD_CONST 2 LOAD_CONST ('error', 'localrepo', 'pycompat', 'requirements', 'revlog', 'util') IMPORT_NAME IMPORT_FROM error STORE_NAME error IMPORT_FROM localrepo STORE_NAME localrepo IMPORT_FROM pycompat STORE_NAME pycompat IMPORT_FROM ...
from ..i18n import _ from .. import ( error, localrepo, pycompat, requirements, revlog, util, ) from ..utils import compression if pycompat.TYPE_CHECKING: from typing import ( List, Type, ) RECLONES_REQUIREMENTS = { requirements.GENERALDELTA_REQUIREMENT, requi...
data/mercurial-6.6.3/mercurial/upgrade_utils/actions.py
14,731
8,911
365,800
LOAD_CONST '\nThis module contains functions and classes for namespaces XSD declarations/definitions.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST ('Counter',) IMPORT_NAME collections IMPORT_FROM Counter STORE_NAME Counter POP_TOP LOAD_CONST 0 LO...
""" This module contains functions and classes for namespaces XSD declarations/definitions. """ import warnings from collections import Counter from functools import lru_cache from typing import ( cast, Any, Callable, Dict, List, Iterable, Iterator, MutableMapping, Optional, Set,...
data/xmlschema-3.0.2/xmlschema/validators/global_maps.py
16,546
8,911
304,899
LOAD_CONST '\nA directive for including a Matplotlib plot in a Sphinx document\n================================================================\n\nThis is a Sphinx extension providing a reStructuredText directive\n``.. plot::`` for including a plot in a Sphinx document.\n\nIn HTML output, ``.. plot::`` will include a ...
""" A directive for including a Matplotlib plot in a Sphinx document ================================================================ This is a Sphinx extension providing a reStructuredText directive ``.. plot::`` for including a plot in a Sphinx document. In HTML output, ``.. plot::`` will include a .png file with a...
data/matplotlib-3.8.3/lib/matplotlib/sphinxext/plot_directive.py
13,682
8,911
130,215
LOAD_CONST 'Generated protocol buffer code.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('descriptor',) IMPORT_NAME google.protobuf IMPORT_FROM descriptor STORE_NAME _descriptor POP_TOP LOAD_CONST 0 LOAD_CONST ('descriptor_pool',) IMPORT_NAME google.protobuf IMPORT_FROM descriptor_pool STORE_NAME _descriptor_pool POP...
"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder _sym_db = _symbol_database.Default() fr...
data/yandexcloud-0.260.0/yandex/cloud/logging/v1/log_group_service_pb2.py
9,455
8,914
89,779
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-retail-1.19.1/google/cloud/retail_v2alpha/services/product_service/transports/grpc_asyncio.py
6,528
8,914
329,744
LOAD_CONST '\n pygments.lexers._csound_builtins\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.\n :license: BSD, see LICENSE for details.\n' STORE_NAME __doc__ LOAD_NAME set LOAD_CONST ('ATSadd', 'ATSaddnz', 'ATSbufread', 'ATScross', 'ATSinfo', 'ATSinterpread'...
""" pygments.lexers._csound_builtins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ OPCODES = set( ( "ATSadd", "ATSaddnz", "ATSbufread", "ATScross", "ATSinfo", ...
data/wandb-0.16.3/wandb/vendor/pygments/lexers/_csound_builtins.py
6,389
8,915
360,888
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 ('Counter',) IMPORT_NAME collections IMPORT_FROM Counter STORE_NAME Counter POP_TOP LOAD_CONST 0 LOAD_CONST ('Dict', 'List', 'Literal', 'Optional', 'Union') IMPORT_NAM...
import logging import os from collections import Counter from typing import Dict, List, Literal, Optional, Union import torch from lightning_fabric.connector import ( _PRECISION_INPUT, _PRECISION_INPUT_STR, _convert_precision_to_unified_args, ) from lightning_fabric.plugins.environments import ( Clust...
data/pytorch-lightning-2.2.0.post0/src/pytorch_lightning/trainer/connectors/accelerator_connector.py
13,078
8,915
420,018
LOAD_CONST 0 LOAD_CONST ('nullcontext',) IMPORT_NAME contextlib IMPORT_FROM nullcontext STORE_NAME nullcontext POP_TOP 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 ('assert_allclose', 'assert_array_equal', 'asse...
from contextlib import nullcontext import numpy as np import pytest from numpy.testing import assert_allclose, assert_array_equal, assert_array_less from astropy import units as u from astropy.coordinates import Angle from astropy.modeling import InputParameterError, fitting, models from astropy.utils.compat.optional...
data/astropy-6.0.0/astropy/modeling/tests/test_functional_models.py
14,999
8,915
21,617
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__ = ["DefaultSecurityGroupArgs", "DefaultSecurityGroup"] @pulumi.input_type class DefaultSecurityGroupArgs:...
data/pulumi_aws-6.22.2/pulumi_aws/ec2/default_security_group.py
10,431
8,915
227,392
LOAD_CONST 'A simple template system that compiles templates to Python code.\n\nBasic usage looks like::\n\n t = template.Template("<html>{{ myvalue }}</html>")\n print(t.generate(myvalue="XXX"))\n\n`Loader` is a class that loads templates from a root directory and caches\nthe compiled templates::\n\n loader = template...
"""A simple template system that compiles templates to Python code. Basic usage looks like:: t = template.Template("<html>{{ myvalue }}</html>") print(t.generate(myvalue="XXX")) `Loader` is a class that loads templates from a root directory and caches the compiled templates:: loader = template.Loader("/...
data/salt-3006.6/salt/ext/tornado/template.py
16,489
8,915
97,095
LOAD_CONST 0 LOAD_CONST ('defaultdict',) IMPORT_NAME collections IMPORT_FROM defaultdict STORE_NAME defaultdict POP_TOP LOAD_CONST 0 LOAD_CONST ('FunctionType',) IMPORT_NAME types IMPORT_FROM FunctionType STORE_NAME FunctionType POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_C...
from collections import defaultdict from types import FunctionType import numpy as np import pandas as pd import param from ..core import Dataset, Dimension, Element2D from ..core.accessors import Redim from ..core.operation import Operation from ..core.util import is_dataframe, max_range, search_indices from .chart ...
data/holoviews-1.18.3/holoviews/element/graphs.py
15,661
8,915
321,168
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME io STORE_NAME io 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 None IMPORT_NAME array STORE_NAME array LOAD_CONST 0 LOAD_CONST None IMPORT_NAME tempfile STORE_NAME tempfile LOAD_...
import io import os import sys import array import tempfile import struct import sysconfig import platform import cairo import pytest def test_context_manager(): with cairo.ImageSurface(cairo.FORMAT_ARGB32, 10, 10) as surface: surface.show_page() with pytest.raises(cairo.Error) as excinfo: su...
data/pycairo-1.26.0/tests/test_surface.py
18,732
8,915
389,003
LOAD_CONST 0 LOAD_CONST ('datetime',) IMPORT_NAME datetime IMPORT_FROM datetime STORE_NAME datetime POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME getopt STORE_NAME getopt LOAD_CONST 0 LOAD_CONST ...
from datetime import datetime import sys import os import getopt import re import json import pprint import logging import ssl import signal libpath = os.path.dirname(os.path.abspath(__file__)) sys.path[:0] = [os.path.join(libpath, os.pardir, "lib")] import pan.xapi import pan.commit import pan.config debug = 0 def...
data/pan-python-0.25.0/bin/panxapi.py
15,162
8,916
214,960
LOAD_CONST 'Geometrical Planes.\n\nContains\n========\nPlane\n\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Dummy', 'Rational', 'S', 'Symbol') IMPORT_NAME sympy.core IMPORT_FROM Dummy STORE_NAME Dummy IMPORT_FROM Rational STORE_NAME Rational IMPORT_FROM S STORE_NAME S IMPORT_FROM Symbol STORE_NAME Symbol POP_TOP L...
"""Geometrical Planes. Contains ======== Plane """ from sympy.core import Dummy, Rational, S, Symbol from sympy.core.symbol import _symbol from sympy.functions.elementary.trigonometric import cos, sin, acos, asin, sqrt from .entity import GeometryEntity from .line import ( Line, Ray, Segment, Line3D,...
data/sympy-1.12/sympy/geometry/plane.py
9,515
8,916
229,590
LOAD_CONST 3 LOAD_CONST ('CoreSightTarget',) IMPORT_NAME coresight.coresight_target IMPORT_FROM CoreSightTarget STORE_NAME CoreSightTarget POP_TOP LOAD_CONST 3 LOAD_CONST ('FlashRegion', 'RamRegion', 'MemoryMap') IMPORT_NAME core.memory_map IMPORT_FROM FlashRegion STORE_NAME FlashRegion IMPORT_FROM RamRegion STORE_NAM...
from ...coresight.coresight_target import CoreSightTarget from ...core.memory_map import FlashRegion, RamRegion, MemoryMap from ...debug.svd.loader import SVDFile class DBGMCU: STCTL = 0xE0042020 STCTL_VALUE = 0x3 TRACECTL = 0xE0042024 TRACECTL_VALUE = 0x0 FLASH_ALGO = { "load_address": 0x20000...
data/pyocd-0.36.0/pyocd/target/builtin/target_HC32F460.py
10,339
8,916
367,738
LOAD_CONST "\nInformation available about Tor from `its manual\n<https://www.torproject.org/docs/tor-manual.html.en>`_. This provides three\nmethods of getting this information...\n\n* :func:`~stem.manual.Manual.from_cache` provides manual content bundled with\n Stem. This is the fastest and most reliable method but on...
""" Information available about Tor from `its manual <https://www.torproject.org/docs/tor-manual.html.en>`_. This provides three methods of getting this information... * :func:`~stem.manual.Manual.from_cache` provides manual content bundled with Stem. This is the fastest and most reliable method but only as up-to-da...
data/stem-1.8.2/stem/manual.py
12,014
8,916
308,182
LOAD_CONST "This package is used to define and parse command line flags.\n\nThis package defines a *distributed* flag-definition policy: rather than\nan application having to define all flags in or near main(), each python\nmodule defines flags that are useful to it. When one python module\nimports another, it gains ac...
"""This package is used to define and parse command line flags. This package defines a *distributed* flag-definition policy: rather than an application having to define all flags in or near main(), each python module defines flags that are useful to it. When one python module imports another, it gains access to the o...
data/python-gflags-3.1.2/gflags/__init__.py
7,177
8,917
157,376
LOAD_CONST ' Reformulation of Python3 class statements.\n\nConsult the Developer Manual for information. TODO: Add ability to sync\nsource code comments with Developer Manual sections.\n\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('ExpressionAttributeCheck', 'ExpressionBuiltinGetattr', 'makeExpressionAttributeLooku...
""" Reformulation of Python3 class statements. Consult the Developer Manual for information. TODO: Add ability to sync source code comments with Developer Manual sections. """ from nuitka.nodes.AttributeNodes import ( ExpressionAttributeCheck, ExpressionBuiltinGetattr, makeExpressionAttributeLookup, ) fr...
data/Nuitka-2.0.3/nuitka/tree/ReformulationClasses3.py
12,134
8,917
149,207
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 UserAssessment(object): """ The details of the user assessment, which includes statistics rela...
data/oci-2.122.0/src/oci/data_safe/models/user_assessment.py
5,942
8,917
181,515
LOAD_CONST 0 LOAD_CONST ('List',) IMPORT_NAME typing IMPORT_FROM List STORE_NAME List POP_TOP LOAD_CONST 0 LOAD_CONST ('Optional',) IMPORT_NAME typing IMPORT_FROM Optional STORE_NAME Optional POP_TOP LOAD_CONST 0 LOAD_CONST ('Boolean',) IMPORT_NAME sqlalchemy IMPORT_FROM Boolean STORE_NAME Boolean POP_TOP LOAD_CONST...
from typing import List from typing import Optional from sqlalchemy import Boolean from sqlalchemy import ForeignKey from sqlalchemy import inspect from sqlalchemy import Integer from sqlalchemy import String from sqlalchemy import testing from sqlalchemy.orm import clear_mappers from sqlalchemy.orm import declared_at...
data/SQLAlchemy-2.0.27/test/orm/test_dataclasses_py3k.py
22,197
8,917
362,600
LOAD_CONST '\nA specialized IO loop on top of asyncore adding support for epoll()\non Linux and kqueue() and OSX/BSD, dramatically increasing performances\noffered by base asyncore module.\n\npoll() and select() loops are also reimplemented and are an order of\nmagnitude faster as they support fd un/registration and mo...
""" A specialized IO loop on top of asyncore adding support for epoll() on Linux and kqueue() and OSX/BSD, dramatically increasing performances offered by base asyncore module. poll() and select() loops are also reimplemented and are an order of magnitude faster as they support fd un/registration and modification. Th...
data/pyftpdlib-1.5.9/pyftpdlib/ioloop.py
17,412
8,918
193,993
LOAD_CONST '\nGeneralized Linear Models with Exponential Dispersion Family\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Integral', 'Real') IMPORT_NAME numbers IMPORT_FROM Integral STORE_NAME Integral IMPORT_FROM Real STORE_NAME Real POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0...
""" Generalized Linear Models with Exponential Dispersion Family """ from numbers import Integral, Real import numpy as np import scipy.optimize from ..._loss.loss import ( HalfGammaLoss, HalfPoissonLoss, HalfSquaredError, HalfTweedieLoss, HalfTweedieLossIdentity, ) from ...base import BaseEstim...
data/scikit-learn-1.4.1.post1/sklearn/linear_model/_glm/glm.py
10,511
8,918
107,926
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 = r""" --- module: bigiq_application_https_waf short_description: Manages BIG-IQ HTTPS WAF applications description: - Manages BIG-IQ applications used for load balancing an HTTPS application on port 443 with a W...
data/ansible-9.2.0/ansible_collections/f5networks/f5_modules/plugins/modules/bigiq_application_https_waf.py
15,135
8,919
6,287
LOAD_CONST 0 LOAD_CONST ('absolute_import', 'print_function') IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM print_function STORE_NAME print_function POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME copy STORE_NAME ...
from __future__ import absolute_import, print_function """ stuff to deal with comments and formatting on dict/list/ordereddict/set these are not really related, formatting could be factored out as a separate base """ import sys import copy from strictyaml.ruamel.compat import ordereddict # type: ignore from strict...
data/strictyaml-1.7.3/strictyaml/ruamel/comments.py
20,984
8,919
8,780
LOAD_CONST 0 LOAD_CONST ('absolute_import', 'print_function') IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import IMPORT_FROM print_function STORE_NAME print_function POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME copy STORE_NAME ...
from __future__ import absolute_import, print_function """ stuff to deal with comments and formatting on dict/list/ordereddict/set these are not really related, formatting could be factored out as a separate base """ import sys import copy from ...ruamel.yaml.compat import ordereddict # type: ignore from ...ruamel...
data/insights-core-3.3.9/insights/client/apps/ansible/playbook_verifier/contrib/ruamel_yaml/ruamel/yaml/comments.py
21,000
8,919
213,221
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('assert_array_equal', 'assert_equal', 'assert_raises') IMPORT_NAME numpy.testing IMPORT_FROM assert_array_equal STORE_NAME assert_array_equal IMPORT_FROM assert_equal STORE_NAME assert_equal IMPORT_FROM assert_raises STORE_NAME asser...
import numpy as np from numpy.testing import assert_array_equal, assert_equal, assert_raises import pytest from itertools import chain def test_packbits(): a = [[[1, 0, 1], [0, 1, 0]], [[1, 1, 0], [0, 0, 1]]] for dt in "?bBhHiIlLqQ": arr = np.array(a, dtype=dt) b = np.packbits(arr, axis=-1) ...
data/catboost-1.2.2/catboost_all_src/contrib/python/numpy/py3/numpy/lib/tests/test_packbits.py
12,994
8,919
177,061
LOAD_CONST '\nModule for Google Connection and Authentication classes.\n\nInformation about setting up your Google OAUTH2 credentials:\n\nFor libcloud, there are two basic methods for authenticating to Google using\nOAUTH2: Service Accounts and Client IDs for Installed Applications.\n\nBoth are initially set up from th...
""" Module for Google Connection and Authentication classes. Information about setting up your Google OAUTH2 credentials: For libcloud, there are two basic methods for authenticating to Google using OAUTH2: Service Accounts and Client IDs for Installed Applications. Both are initially set up from the Cloud Console C...
data/apache-libcloud-3.8.0/libcloud/common/google.py
13,701
8,919
312,917
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('assert_array_equal', 'assert_equal', 'assert_raises') IMPORT_NAME numpy.testing IMPORT_FROM assert_array_equal STORE_NAME assert_array_equal IMPORT_FROM assert_equal STORE_NAME assert_equal IMPORT_FROM assert_raises STORE_NAME asser...
import numpy as np from numpy.testing import assert_array_equal, assert_equal, assert_raises import pytest from itertools import chain def test_packbits(): a = [[[1, 0, 1], [0, 1, 0]], [[1, 1, 0], [0, 0, 1]]] for dt in "?bBhHiIlLqQ": arr = np.array(a, dtype=dt) b = np.packbits(arr, axis=-1) ...
data/numpy-1.26.4/numpy/lib/tests/test_packbits.py
12,984
8,919
364,536
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 hashlib STORE_NAME hashlib LOAD_CONST 0 LOAD_CONST None IMPORT_NAME hmac STORE_NAME hmac LOAD_CONST 0 LOAD_CONST None IMPORT_NAME json STORE_NAME json LOAD_...
from __future__ import annotations import hashlib import hmac import json import sys from abc import ABC, abstractmethod from typing import TYPE_CHECKING, Any, ClassVar, NoReturn, Union, cast, overload from .exceptions import InvalidKeyError from .types import HashlibHash, JWKDict from .utils import ( base64url_d...
data/PyJWT-2.8.0/jwt/algorithms.py
15,608
8,919
223,176
LOAD_CONST '\nPython package for feature in MLlib.\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings LOAD_CONST 0 LOAD_CONST ('Py4JJavaError',) IMPORT_NAME py4j.protocol IMPORT_FROM Py4JJavaError STORE_NAME Py4JJava...
""" Python package for feature in MLlib. """ import sys import warnings from py4j.protocol import Py4JJavaError from pyspark import since from pyspark.rdd import RDD from pyspark.mllib.common import callMLlibFunc, JavaModelWrapper from pyspark.mllib.linalg import Vectors, _convert_to_vector from pyspark.mllib.util imp...
data/tecton-0.8.5/tecton/vendor/pyspark/pyspark/mllib/feature.py
11,136
8,919
235,112
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME errno STORE_NAME errno LOAD_CONST 0 LOAD_CONST None IMPORT_NAME io STORE_NAME io 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 None IMPORT_NAME socket STORE_NAME socket LOAD_CONS...
import errno import io import os import sys import socket import select import struct import tempfile import itertools from . import reduction from . import util from . import AuthenticationError, BufferTooShort from ._ext import _billiard from .compat import setblocking, send_offset from time import monotonic from ....
data/billiard-4.2.0/billiard/connection.py
17,209
8,920
211,475
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME base64 STORE_NAME base64 LOAD_CONST 0 LOAD_CONST None IMPORT_NAME json STORE_NAME json LOAD_CONST 0 LOAD_CONST None IMPORT_NAME platform STORE_NAME platform LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys ...
import base64 import json import platform import re import sys from hashlib import sha1 from metaflow import JSONType, current, decorators, parameters from metaflow._vendor import click from metaflow.exception import MetaflowException, MetaflowInternalError from metaflow.metaflow_config import ( ARGO_WORKFLOWS_UI_...
data/metaflow-2.11.3/metaflow/plugins/argo/argo_workflows_cli.py
12,421
8,921
347,916
SETUP_ANNOTATIONS LOAD_CONST "\nshared options and groups\n\nThe principle here is to define options once, but *not* instantiate them\nglobally. One reason being that options with action='append' can carry state\nbetween parses. pip parses general options twice internally, and shouldn't\npass on state. To be consistent...
""" shared options and groups The principle here is to define options once, but *not* instantiate them globally. One reason being that options with action='append' can carry state between parses. pip parses general options twice internally, and shouldn't pass on state. To be consistent, all options will follow this de...
data/pipenv-2023.12.1/pipenv/patched/pip/_internal/cli/cmdoptions.py
13,192
8,922
402,362
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command LOAD_CONST 'network nic ip-config wait' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object Wait at 0x7fab420620c0, file "f.py", line 4> LOAD_CONST 'Wait' MAKE_FUNCTION LOAD_CONST 'Wait' LOAD_NAME AAZWaitCommand C...
from azure.cli.core.aaz import * @register_command( "network nic ip-config wait", ) class Wait(AAZWaitCommand): """Place the CLI in a waiting state until a condition is met.""" _aaz_info = { "resources": [ [ "mgmt-plane", "/subscriptions/{}/resourcegrou...
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/profile_2017_03_09_profile/network/nic/ip_config/_wait.py
12,219
8,922
377,640
LOAD_CONST '\nVRRP packet parser/serializer\n\n[RFC 3768] VRRP v2 packet format::\n\n 0 1 2 3\n 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1\n +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n |Version| Type | Virtual Rtr ID| Priority | Count IP Addrs|\n +-+-+-+-+-+-+-+-+-+-+-+-+-+-...
""" VRRP packet parser/serializer [RFC 3768] VRRP v2 packet format:: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Version| Type | Virtual Rtr ID| Priorit...
data/os-ken-2.8.0/os_ken/lib/packet/vrrp.py
12,527
8,922
62,047
LOAD_CONST '\n This code was generated by\n ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __\n | | | | | | | | | __ | | |__| | __ | __ |___ |\\ | |___ |__/ |__| | | | |__/\n | |_|_| | |___ | |__| |__| | | | |__] |___ | \\| |___ | \\ | | | |__| | \\\n\n Twilio - Api\n This is the public Twilio RES...
r""" This code was generated by ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ Twilio - Api ...
data/twilio-8.13.0/twilio/rest/api/v2010/account/conference/recording.py
8,000
8,922
44,731
LOAD_CONST '\nTest basic changelog functionality: Ansible 2.9 format.\n' 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 os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warning...
""" Test basic changelog functionality: Ansible 2.9 format. """ from __future__ import annotations import os import warnings from unittest import mock from fixtures import ansible_changelog # noqa: F401; pylint: disable=unused-variable from fixtures import create_plugin def test_changelog_release_ansible_empty( ...
data/antsibull_changelog-0.25.0/tests/functional/test_changelog_basic_ansible_classic.py
12,192
8,923
246,273
LOAD_CONST '<!DOCTYPE html>\n\n<html>\n\n<head>\n <meta charset=utf-8 />\n <meta name="viewport" content="user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui">\n <title>GraphQL Playground</title>\n <!-- Jinja templating -->\n <link rel="stylesheet" href="{{ app_path_prefix }}/vendor/gr...
TEMPLATE = """<!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <meta name="viewport" content="user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui"> <title>GraphQL Playground</title> <!-- Jinja templating --> <link rel="stylesheet" href="{{ app_path_prefix }}/vendor/grap...
data/dagster-webserver-1.6.5/dagster_webserver/templates/playground.py
8,730
8,923
288,848
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME datetime STORE_NAME datetime LOAD_CONST 0 LOAD_CONST ('str_if_bytes',) IMPORT_NAME redis.utils IMPORT_FROM str_if_bytes STORE_NAME str_if_bytes POP_TOP LOAD_CONST <code object timestamp_to_datetime at 0x7fa9e2319660, file "f.py", line 6> LOAD_CONST 'timestamp_to_datetime' MAKE...
import datetime from redis.utils import str_if_bytes def timestamp_to_datetime(response): "Converts a unix timestamp to a Python datetime object" if not response: return None try: response = int(response) except ValueError: return None return datetime.datetime.fromtimestam...
data/redis-5.0.1/redis/_parsers/helpers.py
18,589
8,923
152,194
LOAD_CONST '\noss2.utils\n----------\n\n工具函数模块。\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('formatdate',) IMPORT_NAME email.utils IMPORT_FROM formatdate STORE_NAME formatdate POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os.path STORE_NAME os...
""" oss2.utils ---------- 工具函数模块。 """ from email.utils import formatdate import logging import os.path import mimetypes import socket import hashlib import base64 import threading import calendar import datetime import time import errno import binascii import crcmod import re import sys import random import abc, si...
data/oss2-2.18.4/oss2/utils.py
15,748
8,923
420,685
LOAD_CONST 'Define workflow engines and exceptions.' STORE_NAME __doc__ 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 ('Iterable', 'Callable') IMPORT_NAME collections IMPORT_FROM Iterable STORE_NAME Iterable IMP...
"""Define workflow engines and exceptions.""" import logging import sys from collections import ( Iterable, Callable, ) from six import reraise, string_types from .deprecation import deprecated from .errors import ( BreakFromThisLoop, ContinueNextToken, SkipToken, # From engine_db HaltProces...
data/workflow-2.1.6/workflow/engine.py
15,295
8,923
302,229
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME dataclasses STORE_NAME dataclasses 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 typing STORE_NAME typing LOAD_CONST 0 LOAD_CONST ('Any', 'Optional', 'Tuple') IMP...
import dataclasses import re import sys import typing from typing import Any, Optional, Tuple import pytest from pydantic import BaseModel, PydanticUserError, ValidationError def test_postponed_annotations(create_module): module = create_module( """ from __future__ import annotations from pydantic impor...
data/pydantic-2.6.1/tests/test_forward_ref.py
22,644
8,923
270,832
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pyomo.common.config IMPORT_FROM common ROT_TWO POP_TOP IMPORT_FROM config STORE_NAME cfg POP_TOP LOAD_CONST 0 LOAD_CONST ('deprecated',) IMPORT_NAME pyomo.common IMPORT_FROM deprecated STORE_NAME deprecated PO...
import logging import pyomo.common.config as cfg from pyomo.common import deprecated from pyomo.common.collections import ComponentMap, ComponentSet from pyomo.common.modeling import unique_component_name from pyomo.core.expr.numvalue import ZeroConstant import pyomo.core.expr as EXPR from pyomo.core.base import Trans...
data/Pyomo-6.7.0/pyomo/gdp/plugins/hull.py
13,609
8,924
24,166
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\nThis API displays and manages the configuration of scoped user accounts.<p/>\nNewly created user accounts might need to be updated for many reasons. For examp...
r""" Copyright &copy; 2023 NetApp Inc. All rights reserved. This file has been automatically generated based on the ONTAP REST API documentation. This API displays and manages the configuration of scoped user accounts.<p/> Newly created user accounts might need to be updated for many reasons. For example, a user acco...
data/netapp_ontap-9.14.1.0/netapp_ontap/resources/account.py
9,285
8,924
304,655
LOAD_CONST ' Bring-Your-Own-Attention Network\n\nA flexible network w/ dataclass based config for stacking NN blocks including\nself-attention (or similar) layers.\n\nCurrently used to implement experimental variants of:\n * Bottleneck Transformers\n * Lambda ResNets\n * HaloNets\n\nConsider all of the models definitio...
""" Bring-Your-Own-Attention Network A flexible network w/ dataclass based config for stacking NN blocks including self-attention (or similar) layers. Currently used to implement experimental variants of: * Bottleneck Transformers * Lambda ResNets * HaloNets Consider all of the models definitions here as exper...
data/timm-0.9.16/timm/models/byoanet.py
11,723
8,924
22,320
LOAD_CONST '\nPython compiled source code parser.\n\nInformations:\n- Python 2.4.2 source code:\n files Python/marshal.c and Python/import.c\n\nAuthor: Victor Stinner\nCreation: 25 march 2005\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('Parser',) IMPORT_NAME hachoir.parser IMPORT_FROM Parser STORE_NAME Parser POP_T...
""" Python compiled source code parser. Informations: - Python 2.4.2 source code: files Python/marshal.c and Python/import.c Author: Victor Stinner Creation: 25 march 2005 """ from hachoir.parser import Parser from hachoir.field import ( Field, FieldSet, UInt8, UInt16, Int32, UInt32, In...
data/hachoir-3.3.0/hachoir/parser/program/python.py
14,404
8,924
203,739
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numba STORE_NAME numba LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('njit', 'prange') IMPORT_NAME numba IMPORT_FROM njit STORE_NAME njit IMPORT_FROM prange STORE_NAME prange POP_TOP LOAD_CONST 1 LOAD_CONST ('config', 'core') IMPORT_NAM...
import numba import numpy as np from numba import njit, prange from . import config, core from .aamp import _aamp def _preprocess_prescraamp(T_A, m, T_B=None, s=None): """ Performs several preprocessings and returns outputs that are needed for the non-normalized preSCRIMP algorithm. Parameters -...
data/stumpy-1.12.0/stumpy/scraamp.py
8,095
8,924
292,555
LOAD_CONST '\r' LOAD_METHOD join LOAD_CONST 'MSH|^~\\&|GHH LAB|ELAB-3|GHH OE|BLDG4|200202150930||ORU^R01|CNTRL-3456|P|2.4' LOAD_CONST 'PID|||555-44-4444||EVERYWOMAN^EVE^E^^^^L|JONES|196203520|F|||153 FERNWOOD DR.^^STATESVILLE^OH^35292||(206)3345232|(206)752-121||||AC555444444||67-A4335^OH^20030520' LOAD_CONST 'OBR|1...
sample_hl7 = "\r".join( [ "MSH|^~\\&|GHH LAB|ELAB-3|GHH OE|BLDG4|200202150930||ORU^R01|CNTRL-3456|P|2.4", "PID|||555-44-4444||EVERYWOMAN^EVE^E^^^^L|JONES|196203520|F|||153 FERNWOOD DR.^^STATESVILLE^OH^35292||(206)3345232|(206)752-121||||AC555444444||67-A4335^OH^20030520", "OBR|1|845439^GHH O...
data/hl7-0.4.5/tests/samples.py
9,129
8,925
405,915
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re LOAD_CONST 0 LOAD_CONST None IMPORT_NAME xml.etree.ElementTree STORE_NAME xml LOAD_CONST 1 LOAD_CONST ('InfoExtractor',) IMPORT_NAME common IMPORT_FROM InfoExtractor STORE_NAME InfoExtractor POP_TOP LOAD_CONST 2 LOAD_CONST ('compat_str',) IMPORT_NAME compat I...
import re import xml.etree.ElementTree from .common import InfoExtractor from ..compat import compat_str from ..networking import HEADRequest, Request from ..utils import ( ExtractorError, RegexNotFoundError, find_xpath_attr, fix_xml_ampersands, float_or_none, int_or_none, join_nonempty, ...
data/yt-dlp-2023.12.30/yt_dlp/extractor/mtv.py
14,261
8,925
158,221
LOAD_CONST 0 LOAD_CONST ('Any', 'Callable', 'Dict', 'IO', 'Iterable', 'Optional', 'TypeVar', 'Union', 'overload') IMPORT_NAME typing IMPORT_FROM Any STORE_NAME Any IMPORT_FROM Callable STORE_NAME Callable IMPORT_FROM Dict STORE_NAME Dict IMPORT_FROM IO STORE_NAME IO IMPORT_FROM Iterable STORE_NAME Iterable IMPORT_FROM ...
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, ) from azure.core.pagin...
data/azure-mgmt-security-6.0.0/azure/mgmt/security/v2021_01_15_preview/operations/_ingestion_settings_operations.py
10,629
8,927
62,347
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__ = ["ConfigArgs", "Config"] @pulumi.input_type class ConfigArgs: def __init__( __self__, ...
data/pulumi_gcp-7.9.0/pulumi_gcp/identityplatform/config.py
9,278
8,927
446,569
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_v1/services/language_service/async_client.py
6,965
8,927
27,036
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 DbNode(object): """ DbNode model. """ LIFECYCLE_STATE_PROVISIONING = "PROVISIONING" ...
data/oci-2.122.0/src/oci/database/models/db_node.py
6,408
8,927
182,133
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME json STORE_NAME json LOAD_CONST 0 LOAD_CONST None IMPORT_NAME boto3 STORE_NAME boto3 LOAD_CONST 0 LOAD_CONST ('ClientError',) IMPORT_NAME botocore.client IMPORT_FROM ClientError STORE_NAME ClientError POP_TOP LOAD_CONST 0 LOAD_CONST ('mock_aws',) IMPORT_NAME moto IMPORT_FROM ...
import json import boto3 from botocore.client import ClientError from moto import mock_aws from tests import EXAMPLE_AMI_ID, EXAMPLE_AMI_ID2 @mock_aws def test_get_resources_cloudformation(): template = { "AWSTemplateFormatVersion": "2010-09-09", "Resources": {"test": {"Type": "AWS::S3::Bucket"}...
data/moto-5.0.2/tests/test_resourcegroupstaggingapi/test_resourcegroupstaggingapi.py
14,118
8,927
197,325
LOAD_CONST 'Generate documentation for reportlab.graphics classes.\nType the following for usage info:\n\n python graphdocpy.py -h\n' STORE_NAME __doc__ LOAD_CONST '0.8' STORE_NAME __version__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_NAME sys LOAD_ATTR path LOAD_METHOD insert LOAD_CONST 0 LOA...
"""Generate documentation for reportlab.graphics classes. Type the following for usage info: python graphdocpy.py -h """ __version__ = "0.8" import sys sys.path.insert(0, ".") import os, re, getopt, pickle, time, pprint, traceback from io import StringIO from reportlab import rl_config from docpy import ModuleSke...
data/reportlab-4.1.0/tools/docco/graphdocpy.py
15,569
8,927
9,526
LOAD_CONST '\n\npython torch_tabular.py test --nrows 1000\n\n\nhttps://github.com/arita37/pytorch_tabular\nhttps://github.com/manujosephv/pytorch_tabular/tree/main/pytorch_tabular/models\n\n\n\nBug \n cmd ="python -m pip install git+https://github.com/manujosephv/pytorch_tabular.git@82a30fe2ad1cc8c4f883d86d5f63925e67a0...
""" python torch_tabular.py test --nrows 1000 https://github.com/arita37/pytorch_tabular https://github.com/manujosephv/pytorch_tabular/tree/main/pytorch_tabular/models Bug cmd ="python -m pip install git+https://github.com/manujosephv/pytorch_tabular.git@82a30fe2ad1cc8c4f883d86d5f63925e67a0a015 --no-deps" ...
data/utilmy-0.1.17078128/utilmy/zml/source/models/torch_tabular.py
10,942
8,927
349,984
LOAD_CONST 0 LOAD_CONST ('absolute_import',) IMPORT_NAME __future__ IMPORT_FROM absolute_import STORE_NAME absolute_import POP_TOP LOAD_CONST 0 LOAD_CONST ('requests',) IMPORT_NAME oci._vendor IMPORT_FROM requests STORE_NAME requests POP_TOP LOAD_CONST 0 LOAD_CONST ('six',) IMPORT_NAME oci._vendor IMPORT_FROM six STO...
from __future__ import absolute_import from oci._vendor import requests # noqa: F401 from oci._vendor import six from oci import retry, circuit_breaker # noqa: F401 from oci.base_client import BaseClient from oci.config import get_config_value_or_default, validate_config from oci.signer import Signer from oci.util ...
data/oci-2.122.0/src/oci/work_requests/work_request_client.py
8,004
8,928
407,197
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME random STORE_NAME random LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pandas STORE_NAME pd LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pyproj STORE_NAME pyproj LOAD_CONST 0 LOAD_CONST None IMPORT_NAME pytest STORE_NAME py...
import random import numpy as np import pandas as pd import pyproj import pytest from shapely.geometry import Point, Polygon, LineString from geopandas import GeoSeries, GeoDataFrame, points_from_xy, datasets, read_file from geopandas.array import from_shapely, from_wkb, from_wkt, GeometryArray from geopandas.testing...
data/geopandas-0.14.3/geopandas/tests/test_crs.py
18,545
8,928
20,538
LOAD_CONST '\nProfile: http://hl7.org/fhir/StructureDefinition/MedicationRequest\nRelease: R4B\nVersion: 4.3.0\nBuild ID: c475c22\nLast updated: 2022-05-28T12:47:40.239+10: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') IMP...
""" Profile: http://hl7.org/fhir/StructureDefinition/MedicationRequest Release: R4B Version: 4.3.0 Build ID: c475c22 Last updated: 2022-05-28T12:47:40.239+10:00 """ import typing from pydantic.v1 import Field, root_validator from pydantic.v1.error_wrappers import ErrorWrapper, ValidationError from pydantic.v1.errors i...
data/fhir.resources-7.1.0/fhir/resources/R4B/medicationrequest.py
11,136
8,929
42,843
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-vision-3.7.0/google/cloud/vision_v1/services/image_annotator/transports/rest.py
12,238
8,929
440,871
SETUP_ANNOTATIONS LOAD_CONST 'Example Script: How to configure a Spark Datasource\n\nThis example script is intended for use in documentation on how to configure a Spark Datasource.\n\nAssert statements are included to ensure that if the behaviour shown in this script breaks it will not pass\ntests and will be updated....
"""Example Script: How to configure a Spark Datasource This example script is intended for use in documentation on how to configure a Spark Datasource. Assert statements are included to ensure that if the behaviour shown in this script breaks it will not pass tests and will be updated. These statements can be ignore...
data/great_expectations-0.18.9/tests/integration/docusaurus/connecting_to_your_data/datasource_configuration/how_to_configure_a_spark_datasource.py
10,974
8,929
18,202
LOAD_CONST '\nProfile: http://hl7.org/fhir/StructureDefinition/CoverageEligibilityResponse\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_valida...
""" Profile: http://hl7.org/fhir/StructureDefinition/CoverageEligibilityResponse 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...
data/fhir.resources-7.1.0/fhir/resources/coverageeligibilityresponse.py
12,013
8,930
42,604
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os.path IMPORT_FROM path STORE_NAME osp POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re LOAD_CONST 0 LOAD_CONST ('BytesIO',) IMPORT_NAME io IMPORT_FROM BytesIO STORE_NAME BytesIO POP_TOP LOAD_CONST 0 LOAD_CONST ('Any', 'Dict', 'List', 'Tuple', 'Union') IMPOR...
import os.path as osp import re from io import BytesIO from typing import Any, Dict, List, Tuple, Union import decord import json import numpy as np import torch from PIL import Image from timm.data import create_transform from torchvision import transforms from torchvision.datasets import ImageFolder from torchvision...
data/modelscope-1.12.0/modelscope/preprocessors/multi_modal.py
15,777
8,930
313,761
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 core as _core from ... import meta as _meta __all__ = [ "VolumeAttachment", "VolumeAttachmentSource", "Volume...
data/pulumi_kubernetes-4.7.1/pulumi_kubernetes/storage/v1alpha1/outputs.py
12,260
8,931
123,894
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 pathlib STORE_NAME pathlib LOAD_CONST 0 LOAD_CONST None IMPORT_NAME tempfile STORE_NAME tempfile L...
from __future__ import annotations import os import pathlib import tempfile import unittest import uuid from typing import Any import numpy as np import parameterized import onnx from onnx import ModelProto, TensorProto, checker, helper, shape_inference from onnx.external_data_helper import ( convert_model_from_...
data/onnx-simplifier-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/test/test_external_data.py
16,296
8,931
309,920
LOAD_CONST '\nParse a MAVLink protocol XML file and generate a Java implementation\n\nCopyright Andrew Tridgell 2011\nReleased under GNU GPL version 3 or later\n' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST ('print_function',) IMPORT_NAME __future__ IMPORT_FROM print_function STORE_NAME print_function POP_TOP LOAD_CON...
""" Parse a MAVLink protocol XML file and generate a Java implementation Copyright Andrew Tridgell 2011 Released under GNU GPL version 3 or later """ from __future__ import print_function from builtins import range from builtins import object import os from . import mavparse, mavtemplate t = mavtemplate.MAVTemplate...
data/pymavlink-2.4.41/generator/mavgen_java.py
10,957
8,931
399,958
LOAD_CONST 'Tests for ScalarOp class.' STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest STORE_NAME unittest LOAD_CONST 0 LOAD_CONST ('combine',) IMPORT_NAME test IMPORT_FROM combine STORE_NAME combine POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('...
"""Tests for ScalarOp class.""" import unittest from test import combine import numpy as np from ddt import ddt from qiskit.quantum_info.operators import Operator, ScalarOp from qiskit.test import QiskitTestCase class ScalarOpTestCase(QiskitTestCase): """ScalarOp test case base class""" def assertOperator...
data/qiskit-terra-0.46.0/test/python/quantum_info/operators/test_scalar_op.py
15,500
8,931
431,873
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME warnings STORE_NAME warnings 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 O...
import warnings from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union from google.api_core import gapic_v1 from google.api_core import grpc_helpers_async from google.api_core import operations_v1 from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.g...
data/google-cloud-aiplatform-1.42.1/google/cloud/aiplatform_v1/services/vizier_service/transports/grpc_asyncio.py
9,620
8,931
14,577
LOAD_CONST 'This module contains user-facing synchronous clients for the\nAzure IoTHub Device SDK for Python.\n' 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 logging STORE_NAME logging...
"""This module contains user-facing synchronous clients for the Azure IoTHub Device SDK for Python. """ from __future__ import annotations # Needed for annotation bug < 3.10 import logging from queue import Queue import deprecation from .abstract_clients import ( AbstractIoTHubClient, AbstractIoTHubDeviceClien...
data/azure-iot-device-2.13.0/azure-iot-device/azure/iot/device/iothub/sync_clients.py
8,838
8,931
16,136
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 pathlib STORE_NAME pathlib LOAD_CONST 0 LOAD_CONST None IMPORT_NAME tempfile STORE_NAME tempfile L...
from __future__ import annotations import os import pathlib import tempfile import unittest import uuid from typing import Any import numpy as np import parameterized import onnx from onnx import ModelProto, TensorProto, checker, helper, shape_inference from onnx.external_data_helper import ( convert_model_from_...
data/onnxsim-0.4.35/third_party/onnx-optimizer/third_party/onnx/onnx/test/test_external_data.py
16,285
8,931
114,591
LOAD_CONST 3 LOAD_CONST ('NORM', 'ORTH') IMPORT_NAME symbols IMPORT_FROM NORM STORE_NAME NORM IMPORT_FROM ORTH STORE_NAME ORTH POP_TOP LOAD_CONST 3 LOAD_CONST ('update_exc',) IMPORT_NAME util IMPORT_FROM update_exc STORE_NAME update_exc POP_TOP LOAD_CONST 2 LOAD_CONST ('BASE_EXCEPTIONS',) IMPORT_NAME tokenizer_except...
from ...symbols import NORM, ORTH from ...util import update_exc from ..tokenizer_exceptions import BASE_EXCEPTIONS _exc = {} _abbrev_exc = [ {ORTH: "пн", NORM: "понедельник"}, {ORTH: "вт", NORM: "вторник"}, {ORTH: "ср", NORM: "среда"}, {ORTH: "чт", NORM: "четверг"}, {ORTH: "чтв", NORM: "четверг"}...
data/spacy-3.7.4/spacy/lang/ru/tokenizer_exceptions.py
12,006
8,931
147,728
LOAD_CONST "SCons.Tool.docbook\n\nTool-specific initialization for Docbook.\n\nThere normally shouldn't be any need to import this module directly.\nIt will usually be imported through the generic SCons.Tool.Tool()\nselection method.\n\n" STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LO...
"""SCons.Tool.docbook Tool-specific initialization for Docbook. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ import os import glob import re import SCons.Action import SCons.Builder import SCons.Default...
data/Nuitka-2.0.3/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/docbook/__init__.py
13,269
8,931
148,710
LOAD_CONST 'Implements `AMQPConnectionWorkflow` - the default workflow of performing\nmultiple TCP/[SSL]/AMQP connection attempts with timeouts and retries until one\nsucceeds or all attempts fail.\n\nDefines the interface `AbstractAMQPConnectionWorkflow` that facilitates\nimplementing custom connection workflows.\n\n'...
"""Implements `AMQPConnectionWorkflow` - the default workflow of performing multiple TCP/[SSL]/AMQP connection attempts with timeouts and retries until one succeeds or all attempts fail. Defines the interface `AbstractAMQPConnectionWorkflow` that facilitates implementing custom connection workflows. """ import funct...
data/pika-1.3.2/pika/adapters/utils/connection_workflow.py
11,492
8,932
196,804
LOAD_CONST 'Generators for some classic graphs.\n\nThe typical graph builder function is called as follows:\n\n>>> G = nx.complete_graph(100)\n\nreturning the complete graph on n nodes labeled 0, .., 99\nas a simple graph. Except for `empty_graph`, all the functions\nin this module return a Graph class (i.e. a simple, ...
"""Generators for some classic graphs. The typical graph builder function is called as follows: >>> G = nx.complete_graph(100) returning the complete graph on n nodes labeled 0, .., 99 as a simple graph. Except for `empty_graph`, all the functions in this module return a Graph class (i.e. a simple, undirected graph)...
data/networkx-3.2.1/networkx/generators/classic.py
6,735
8,933
130,568
LOAD_CONST 0 LOAD_CONST ('with_statement',) IMPORT_NAME __future__ IMPORT_FROM with_statement STORE_NAME with_statement POP_TOP LOAD_CONST 0 LOAD_CONST None IMPORT_NAME random STORE_NAME random LOAD_CONST 0 LOAD_CONST ('defaultdict',) IMPORT_NAME collections IMPORT_FROM defaultdict STORE_NAME defaultdict POP_TOP LOA...
from __future__ import with_statement import random from collections import defaultdict from datetime import datetime import pytest from whoosh import analysis, fields, index, qparser, query from whoosh.compat import b, u, xrange, text_type, PY3, permutations from whoosh.filedb.filestore import RamStorage from whoosh...
data/Whoosh-2.7.4/tests/test_indexing.py
19,464
8,933
439,525
LOAD_CONST 0 LOAD_CONST ('annotations',) IMPORT_NAME __future__ IMPORT_FROM annotations STORE_NAME annotations POP_TOP LOAD_CONST 0 LOAD_CONST ('MutableMapping', 'MutableSequence') IMPORT_NAME typing IMPORT_FROM MutableMapping STORE_NAME MutableMapping IMPORT_FROM MutableSequence STORE_NAME MutableSequence POP_TOP LO...
from __future__ import annotations from typing import MutableMapping, MutableSequence import proto # type: ignore from google.api import httpbody_pb2 # type: ignore from google.cloud.aiplatform_v1beta1.types import content from google.cloud.aiplatform_v1beta1.types import explanation from google.cloud.aiplatform_v...
data/google-cloud-aiplatform-1.42.1/google/cloud/aiplatform_v1beta1/types/prediction_service.py
13,218
8,934
14,365
LOAD_CONST "Test Qiskit's Instruction class." STORE_NAME __doc__ LOAD_CONST 0 LOAD_CONST None IMPORT_NAME unittest.mock STORE_NAME unittest LOAD_CONST 0 LOAD_CONST None IMPORT_NAME numpy STORE_NAME np LOAD_CONST 0 LOAD_CONST ('Gate', 'Parameter', 'Instruction', 'InstructionSet', 'QuantumCircuit', 'QuantumRegister', ...
"""Test Qiskit's Instruction class.""" import unittest.mock import numpy as np from qiskit.circuit import ( Gate, Parameter, Instruction, InstructionSet, QuantumCircuit, QuantumRegister, ClassicalRegister, Qubit, Clbit, IfElseOp, ) from qiskit.circuit.library import HGate, RZGa...
data/qiskit-1.0.0/test/python/circuit/test_instructions.py
15,729
8,934
283,482
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME base64 STORE_NAME base64 LOAD_CONST 0 LOAD_CONST None IMPORT_NAME json STORE_NAME json LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME os.path STORE_NAME os LOAD_CONST 0 LOAD_CONST None IMPORT_NAME random STORE_NAME random ...
import base64 import json import os import os.path import random import shutil import tempfile import unittest from docker import auth, credentials, errors from unittest import mock import pytest class RegressionTest(unittest.TestCase): def test_803_urlsafe_encode(self): auth_data = {"username": "root", ...
data/docker-7.0.0/tests/unit/auth_test.py
16,848
8,934
132,506
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME ctypes IMPORT_STAR LOAD_CONST 0 LOAD_CONST None IMPORT_NAME usb.util STORE_NAME usb LOAD_CONST 0 LOAD_CONST None IMPORT_NAME sys STORE_NAME sys LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST ('methodtrace',) IMPORT_NAME usb._deb...
from ctypes import * import usb.util import sys import logging from usb._debug import methodtrace import usb._interop as _interop import usb._objfinalizer as _objfinalizer import errno import math from usb.core import USBError, USBTimeoutError import usb.libloader __author__ = "Wander Lairson Costa" __all__ = [ "...
data/pyusb-1.2.1/usb/backend/libusb1.py
14,983
8,934
169,565
LOAD_CONST 0 LOAD_CONST None IMPORT_NAME enum STORE_NAME enum LOAD_CONST 0 LOAD_CONST None IMPORT_NAME logging STORE_NAME logging LOAD_CONST 0 LOAD_CONST None IMPORT_NAME re STORE_NAME re LOAD_CONST 0 LOAD_CONST ('InternalError',) IMPORT_NAME cmakelang.common IMPORT_FROM InternalError STORE_NAME InternalError POP_TO...
import enum import logging import re from cmakelang.common import InternalError from cmakelang.format.formatter import get_comment_lines from cmakelang.lex import TokenType, Token from cmakelang.parse.argument_nodes import ( ArgGroupNode, ConditionalGroupNode, PositionalGroupNode, ) from cmakelang.parse.bo...
data/cmakelang-0.6.13/cmakelang/lint/basic_checker.py
14,214
8,934
89,354
LOAD_CONST 0 LOAD_CONST ('*',) IMPORT_NAME azure.cli.core.aaz IMPORT_STAR LOAD_NAME register_command LOAD_CONST 'network vnet-gateway revoked-cert create' CALL_FUNCTION LOAD_BUILD_CLASS LOAD_CONST <code object Create at 0x7faa8c203300, file "f.py", line 4> LOAD_CONST 'Create' MAKE_FUNCTION LOAD_CONST 'Create' LOAD_N...
from azure.cli.core.aaz import * @register_command( "network vnet-gateway revoked-cert create", ) class Create(AAZCommand): """Revoke a certificate. :example: Revoke a certificate. az network vnet-gateway revoked-cert create -g MyResourceGroup -n MyRootCertificate --gateway-name MyVnetGateway --t...
data/azure-cli-2.57.0/azure/cli/command_modules/network/aaz/latest/network/vnet_gateway/revoked_cert/_create.py
13,031
8,935
378,306