sample_id stringlengths 21 196 | text stringlengths 105 936k | metadata dict | category stringclasses 6
values |
|---|---|---|---|
ansible/ansible:test/lib/ansible_test/_internal/processes.py | """Wrappers around `ps` for querying running processes."""
from __future__ import annotations
import collections
import dataclasses
import os
import pathlib
import shlex
from ansible_test._internal.util import raw_command
@dataclasses.dataclass(frozen=True)
class ProcessData:
"""Data about a running process.""... | {
"repo_id": "ansible/ansible",
"file_path": "test/lib/ansible_test/_internal/processes.py",
"license": "GNU General Public License v3.0",
"lines": 57,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:test/integration/targets/ansible-doc/library/bogus_facts.py | DOCUMENTATION = """
module: bogus_facts
short_description: bad facts returned
version_added: historical
description: bogus facts for testing
"""
| {
"repo_id": "ansible/ansible",
"file_path": "test/integration/targets/ansible-doc/library/bogus_facts.py",
"license": "GNU General Public License v3.0",
"lines": 6,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:lib/ansible/_internal/_ansiballz/_builder.py | from __future__ import annotations
import dataclasses
import json
import typing as t
from ansible.module_utils._internal._ansiballz import _extensions
from ansible.module_utils._internal._ansiballz._extensions import _debugpy, _pydevd, _coverage
from ansible.constants import config
class ExtensionManager:
"""A... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/_internal/_ansiballz/_builder.py",
"license": "GNU General Public License v3.0",
"lines": 85,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ansible/ansible:lib/ansible/module_utils/_internal/_ansiballz/_extensions/_coverage.py | from __future__ import annotations
import atexit
import dataclasses
import importlib.util
import os
import sys
import typing as t
@dataclasses.dataclass(frozen=True)
class Options:
"""Code coverage options."""
config: str
output: str | None
def run(args: dict[str, t.Any]) -> None: # pragma: nocover
... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/module_utils/_internal/_ansiballz/_extensions/_coverage.py",
"license": "GNU General Public License v3.0",
"lines": 32,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ... | function_simple |
ansible/ansible:lib/ansible/module_utils/_internal/_ansiballz/_extensions/_pydevd.py | """
Remote debugging support for AnsiballZ modules.
To use with PyCharm:
1) Choose an available port for PyCharm to listen on (e.g. 5678).
2) Create a Python Debug Server using that port.
3) Start the Python Debug Server.
4) Ensure the correct version of `pydevd-pycharm` is installed for the interpreter(s) which will... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/module_utils/_internal/_ansiballz/_extensions/_pydevd.py",
"license": "GNU General Public License v3.0",
"lines": 46,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""... | documentation |
ansible/ansible:lib/ansible/module_utils/_internal/_ansiballz/_respawn.py | from __future__ import annotations
import inspect
import sys
from ... import basic
from . import _respawn_wrapper
def create_payload() -> str:
"""Create and return an AnsiballZ payload for respawning a module."""
main = sys.modules['__main__']
code = inspect.getsource(_respawn_wrapper)
args = dict(... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/module_utils/_internal/_ansiballz/_respawn.py",
"license": "GNU General Public License v3.0",
"lines": 23,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ansible/ansible:lib/ansible/module_utils/_internal/_ansiballz/_respawn_wrapper.py | from __future__ import annotations
def _respawn_main(
json_params: bytes,
profile: str,
module_fqn: str,
modlib_path: str,
) -> None:
import sys
sys.path.insert(0, modlib_path)
from ansible.module_utils._internal._ansiballz import _loader
_loader.run_module(
json_params=json... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/module_utils/_internal/_ansiballz/_respawn_wrapper.py",
"license": "GNU General Public License v3.0",
"lines": 18,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ansible/ansible:lib/ansible/_internal/_templating/_template_vars.py | from __future__ import annotations as _annotations
import datetime as _datetime
import os as _os
import pwd as _pwd
import time as _time
from ansible import constants as _constants
from ansible.module_utils._internal import _datatag
def generate_ansible_template_vars(
path: str,
fullpath: str | None = None,... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/_internal/_templating/_template_vars.py",
"license": "GNU General Public License v3.0",
"lines": 55,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ansible/ansible:test/units/_internal/_yaml/test_dumper.py | from __future__ import annotations
import pytest
from ansible.errors import AnsibleUndefinedVariable
from ansible.parsing.utils.yaml import from_yaml
from ansible.parsing.vault import EncryptedString
from ansible.template import Templar, trust_as_template, is_trusted_as_template
from units.mock.vault_helper import Va... | {
"repo_id": "ansible/ansible",
"file_path": "test/units/_internal/_yaml/test_dumper.py",
"license": "GNU General Public License v3.0",
"lines": 54,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:lib/ansible/_internal/_ssh/_agent_launch.py | from __future__ import annotations
import atexit
import os
import subprocess
from ansible import constants as C
from ansible._internal._errors import _alarm_timeout
from ansible._internal._ssh._ssh_agent import SshAgentClient
from ansible.cli import display
from ansible.errors import AnsibleError
from ansible.module_... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/_internal/_ssh/_agent_launch.py",
"license": "GNU General Public License v3.0",
"lines": 74,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ansible/ansible:test/units/module_utils/common/warnings/test_error_as_warning.py | from __future__ import annotations
import pytest
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.common import warnings
from ansible.module_utils.common.warnings import error_as_warning
from ansible.module_utils.testing import patch_module_args
pytestmark = pytest.mark.usefixtures("as... | {
"repo_id": "ansible/ansible",
"file_path": "test/units/module_utils/common/warnings/test_error_as_warning.py",
"license": "GNU General Public License v3.0",
"lines": 23,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:lib/ansible/_internal/_errors/_alarm_timeout.py | from __future__ import annotations
import contextlib
import signal
import types
import typing as _t
from ansible.module_utils import datatag
class AnsibleTimeoutError(BaseException):
"""A general purpose timeout."""
_MAX_TIMEOUT = 100_000_000
"""
The maximum supported timeout value.
This value ... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/_internal/_errors/_alarm_timeout.py",
"license": "GNU General Public License v3.0",
"lines": 51,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ansible/ansible:lib/ansible/_internal/_errors/_task_timeout.py | from __future__ import annotations
from collections import abc as _c
from ansible._internal._errors._alarm_timeout import AnsibleTimeoutError
from ansible._internal._errors._error_utils import ContributesToTaskResult
from ansible.module_utils.datatag import deprecate_value
class TaskTimeoutError(AnsibleTimeoutError... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/_internal/_errors/_task_timeout.py",
"license": "GNU General Public License v3.0",
"lines": 20,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ansible/ansible:test/units/_internal/_errors/test_alarm_timeout.py | from __future__ import annotations
import contextlib
import signal
import time
import typing as t
import pytest
from ansible._internal._errors import _alarm_timeout
from ansible._internal._errors._alarm_timeout import AnsibleTimeoutError
pytestmark = pytest.mark.usefixtures("assert_sigalrm_state")
@pytest.fixture... | {
"repo_id": "ansible/ansible",
"file_path": "test/units/_internal/_errors/test_alarm_timeout.py",
"license": "GNU General Public License v3.0",
"lines": 90,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:test/units/_internal/_errors/test_error_utils.py | from __future__ import annotations
import collections.abc as c
import typing as t
import pytest
from ansible._internal._errors import _error_utils
from ansible.module_utils._internal import _messages
from units.mock.error_helper import raise_exceptions
class _TestContributesError(Exception, _error_utils.Contribute... | {
"repo_id": "ansible/ansible",
"file_path": "test/units/_internal/_errors/test_error_utils.py",
"license": "GNU General Public License v3.0",
"lines": 48,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:test/units/_internal/_errors/test_task_timeout.py | from __future__ import annotations
from ansible._internal._errors._task_timeout import TaskTimeoutError
from ansible.module_utils._internal._datatag._tags import Deprecated
def test_task_timeout_result_contribution() -> None:
"""Validate the result contribution shape."""
try:
raise TaskTimeoutError(9... | {
"repo_id": "ansible/ansible",
"file_path": "test/units/_internal/_errors/test_task_timeout.py",
"license": "GNU General Public License v3.0",
"lines": 17,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:test/units/mock/error_helper.py | from __future__ import annotations
import collections.abc as c
def raise_exceptions(exceptions: c.Sequence[BaseException]) -> None:
"""
Raise a chain of exceptions from the given exception list.
Exceptions will be raised starting from the end of the list.
"""
if len(exceptions) > 1:
try:
... | {
"repo_id": "ansible/ansible",
"file_path": "test/units/mock/error_helper.py",
"license": "GNU General Public License v3.0",
"lines": 13,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:test/units/utils/test_errors.py | from __future__ import annotations
import pytest
from ansible import errors
from units.test_utils.controller.display import emits_warnings
@pytest.mark.parametrize("name", (
"AnsibleFilterTypeError",
"_AnsibleActionDone",
))
def test_deprecated(name: str) -> None:
with emits_warnings(deprecation_patter... | {
"repo_id": "ansible/ansible",
"file_path": "test/units/utils/test_errors.py",
"license": "GNU General Public License v3.0",
"lines": 14,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:test/integration/targets/display-newline/library/noisy.py | from __future__ import annotations
from ansible.module_utils.basic import AnsibleModule
def main() -> None:
m = AnsibleModule({})
m.warn("Hello\r\nNew\rAnsible\nWorld")
m.exit_json()
if __name__ == '__main__':
main()
| {
"repo_id": "ansible/ansible",
"file_path": "test/integration/targets/display-newline/library/noisy.py",
"license": "GNU General Public License v3.0",
"lines": 8,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:lib/ansible/_internal/_errors/_error_factory.py | from __future__ import annotations as _annotations
from ansible.module_utils._internal import _errors, _messages
class ControllerEventFactory(_errors.EventFactory):
"""Factory for creating `Event` instances from `BaseException` instances on the controller."""
def _get_msg(self, exception: BaseException) -> ... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/_internal/_errors/_error_factory.py",
"license": "GNU General Public License v3.0",
"lines": 60,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ansible/ansible:lib/ansible/_internal/_event_formatting.py | from __future__ import annotations as _annotations
import collections.abc as _c
import textwrap as _textwrap
from ansible.module_utils._internal import _event_utils, _messages
def format_event(event: _messages.Event, include_traceback: bool) -> str:
"""Format an event into a verbose message and traceback."""
... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/_internal/_event_formatting.py",
"license": "GNU General Public License v3.0",
"lines": 85,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ansible/ansible:lib/ansible/module_utils/_internal/_event_utils.py | from __future__ import annotations as _annotations
import typing as _t
from ansible.module_utils._internal import _text_utils, _messages
def deduplicate_message_parts(message_parts: list[str]) -> str:
"""Format the given list of messages into a brief message, while deduplicating repeated elements."""
messag... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/module_utils/_internal/_event_utils.py",
"license": "GNU General Public License v3.0",
"lines": 42,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ansible/ansible:lib/ansible/module_utils/_internal/_stack.py | from __future__ import annotations as _annotations
import inspect as _inspect
import typing as _t
def caller_frame() -> _inspect.FrameInfo | None:
"""Return the caller stack frame, skipping any marked with the `_skip_stackwalk` local."""
_skip_stackwalk = True
return next(iter_stack(), None)
def iter_... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/module_utils/_internal/_stack.py",
"license": "GNU General Public License v3.0",
"lines": 14,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ansible/ansible:test/integration/targets/gather_facts-errors/library/fail1.py | from __future__ import annotations
from ansible.module_utils.basic import AnsibleModule
def main() -> None:
module = AnsibleModule({})
module.fail_json("the fail1 module went bang")
if __name__ == '__main__':
main()
| {
"repo_id": "ansible/ansible",
"file_path": "test/integration/targets/gather_facts-errors/library/fail1.py",
"license": "GNU General Public License v3.0",
"lines": 7,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:test/integration/targets/gather_facts-errors/library/fail2.py | from __future__ import annotations
from ansible.module_utils.basic import AnsibleModule
def main() -> None:
module = AnsibleModule({})
module.fail_json("the fail2 module went bang")
if __name__ == '__main__':
main()
| {
"repo_id": "ansible/ansible",
"file_path": "test/integration/targets/gather_facts-errors/library/fail2.py",
"license": "GNU General Public License v3.0",
"lines": 7,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:test/integration/targets/gather_facts-errors/library/success1.py | from __future__ import annotations
from ansible.module_utils.basic import AnsibleModule
def main() -> None:
module = AnsibleModule({})
module.exit_json()
if __name__ == '__main__':
main()
| {
"repo_id": "ansible/ansible",
"file_path": "test/integration/targets/gather_facts-errors/library/success1.py",
"license": "GNU General Public License v3.0",
"lines": 7,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:test/units/_internal/test_event_formatting.py | from __future__ import annotations
import traceback
from ansible._internal._errors import _error_factory
from ansible._internal._event_formatting import format_event_traceback
from units.mock.error_helper import raise_exceptions
import pytest
def test_traceback_formatting() -> None:
"""Verify our traceback for... | {
"repo_id": "ansible/ansible",
"file_path": "test/units/_internal/test_event_formatting.py",
"license": "GNU General Public License v3.0",
"lines": 19,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:test/units/plugins/test/test_all.py | from __future__ import annotations
import collections
import dataclasses
import math
import pathlib
import tempfile
import typing as t
import pytest
from ansible.parsing.vault import EncryptedString
from ansible.plugins.loader import test_loader
from ansible.plugins.test import AnsibleJinja2Test
from ansible.templat... | {
"repo_id": "ansible/ansible",
"file_path": "test/units/plugins/test/test_all.py",
"license": "GNU General Public License v3.0",
"lines": 148,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
ansible/ansible:lib/ansible/_internal/_testing.py | """
Testing utilities for use in integration tests, not unit tests or non-test code.
Provides better error behavior than Python's `assert` statement.
"""
from __future__ import annotations
import contextlib
import typing as t
class _Checker:
@staticmethod
def check(value: object, msg: str | None = 'Value is... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/_internal/_testing.py",
"license": "GNU General Public License v3.0",
"lines": 20,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ansible/ansible:test/integration/targets/inventory/doc_fragments/fragment_with_expression.py | from __future__ import annotations
class ModuleDocFragment:
DOCUMENTATION = """
options:
fragment_expression:
description: a fragment hosted expression that must be trusted whose default resolves to 4
default: 2 + 2
"""
| {
"repo_id": "ansible/ansible",
"file_path": "test/integration/targets/inventory/doc_fragments/fragment_with_expression.py",
"license": "GNU General Public License v3.0",
"lines": 8,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"templa... | test |
ansible/ansible:lib/ansible/module_utils/_internal/_deprecator.py | from __future__ import annotations
import re
import pathlib
import sys
import typing as t
from ansible.module_utils._internal import _stack, _messages, _validation, _plugin_info
def deprecator_from_collection_name(collection_name: str | None) -> _messages.PluginInfo | None:
"""Returns an instance with the speci... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/module_utils/_internal/_deprecator.py",
"license": "GNU General Public License v3.0",
"lines": 117,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
ansible/ansible:lib/ansible/module_utils/_internal/_plugin_info.py | from __future__ import annotations
import typing as t
from . import _messages
class HasPluginInfo(t.Protocol):
"""Protocol to type-annotate and expose PluginLoader-set values."""
@property
def ansible_name(self) -> str | None:
"""Fully resolved plugin name."""
@property
def plugin_type... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/module_utils/_internal/_plugin_info.py",
"license": "GNU General Public License v3.0",
"lines": 26,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ansible/ansible:lib/ansible/module_utils/_internal/_validation.py | from __future__ import annotations
import keyword
def validate_collection_name(collection_name: object, name: str = 'collection_name') -> None:
"""Validate a collection name."""
if not isinstance(collection_name, str):
raise TypeError(f"{name} must be {str} instead of {type(collection_name)}")
p... | {
"repo_id": "ansible/ansible",
"file_path": "lib/ansible/module_utils/_internal/_validation.py",
"license": "GNU General Public License v3.0",
"lines": 9,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
ansible/ansible:test/integration/targets/ansible-test-sanity-pylint/ansible_collections/ns/col/plugins/action/do_deprecated_stuff.py | from __future__ import annotations
from ansible.module_utils.datatag import deprecator_from_collection_name
from ansible.plugins.action import ActionBase
from ansible.utils.display import _display
# extra lines below to allow for adding more imports without shifting the line numbers of the code that follows
#
#
#
#
#... | {
"repo_id": "ansible/ansible",
"file_path": "test/integration/targets/ansible-test-sanity-pylint/ansible_collections/ns/col/plugins/action/do_deprecated_stuff.py",
"license": "GNU General Public License v3.0",
"lines": 30,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pa... | test |
ansible/ansible:test/integration/targets/ansible-test-sanity-pylint/ansible_collections/ns/col/plugins/module_utils/deprecated_utils.py | from __future__ import annotations
from ansible.module_utils.datatag import deprecator_from_collection_name
from ansible.module_utils.common.warnings import deprecate
# extra lines below to allow for adding more imports without shifting the line numbers of the code that follows
#
#
#
#
#
#
#
#
def do_stuff() -> Non... | {
"repo_id": "ansible/ansible",
"file_path": "test/integration/targets/ansible-test-sanity-pylint/ansible_collections/ns/col/plugins/module_utils/deprecated_utils.py",
"license": "GNU General Public License v3.0",
"lines": 29,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex... | test |
ansible/ansible:test/integration/targets/ansible-test-sanity-pylint/deprecated_thing.py | """
This file is not used by the integration test, but serves a related purpose.
It triggers sanity test failures that can only occur for ansible-core, which need to be ignored to ensure the pylint plugin is functioning properly.
"""
from __future__ import annotations
from ansible.module_utils.datatag import deprecato... | {
"repo_id": "ansible/ansible",
"file_path": "test/integration/targets/ansible-test-sanity-pylint/deprecated_thing.py",
"license": "GNU General Public License v3.0",
"lines": 24,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template":... | test |
ansible/ansible:test/integration/targets/deprecations/collections/ansible_collections/foo/bar/plugins/action/noisy_action.py | from __future__ import annotations
from ansible.plugins.action import ActionBase
from ansible.module_utils.common.warnings import deprecate
from ..module_utils.shared_deprecation import get_deprecation_kwargs, get_deprecated_value
class ActionModule(ActionBase):
def run(self, tmp=None, task_vars=None):
... | {
"repo_id": "ansible/ansible",
"file_path": "test/integration/targets/deprecations/collections/ansible_collections/foo/bar/plugins/action/noisy_action.py",
"license": "GNU General Public License v3.0",
"lines": 11,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": ... | test |
ansible/ansible:test/integration/targets/deprecations/collections/ansible_collections/foo/bar/plugins/module_utils/shared_deprecation.py | from __future__ import annotations
from ansible.module_utils.datatag import deprecate_value, deprecator_from_collection_name
def get_deprecation_kwargs() -> list[dict[str, object]]:
return [
dict(msg="Deprecation that passes collection_name, version, and help_text.", version='9999.9', collection_name='bl... | {
"repo_id": "ansible/ansible",
"file_path": "test/integration/targets/deprecations/collections/ansible_collections/foo/bar/plugins/module_utils/shared_deprecation.py",
"license": "GNU General Public License v3.0",
"lines": 20,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"rege... | test |
ansible/ansible:test/integration/targets/deprecations/collections/ansible_collections/foo/bar/plugins/modules/noisy.py | from __future__ import annotations
from ansible.module_utils.basic import AnsibleModule
from ..module_utils.shared_deprecation import get_deprecation_kwargs, get_deprecated_value
def main() -> None:
m = AnsibleModule({})
m.warn("This is a warning.")
for deprecate_kw in get_deprecation_kwargs():
... | {
"repo_id": "ansible/ansible",
"file_path": "test/integration/targets/deprecations/collections/ansible_collections/foo/bar/plugins/modules/noisy.py",
"license": "GNU General Public License v3.0",
"lines": 11,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
... | test |
ansible/ansible:test/lib/ansible_test/_util/controller/sanity/pylint/plugins/deprecated_calls.py | """Ansible-specific pylint plugin for checking deprecation calls."""
# (c) 2018, Matt Martz <matt@sivel.net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
import dataclasses
import datetime
import functools
import pathlib
import re
im... | {
"repo_id": "ansible/ansible",
"file_path": "test/lib/ansible_test/_util/controller/sanity/pylint/plugins/deprecated_calls.py",
"license": "GNU General Public License v3.0",
"lines": 443,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"... | test |
ansible/ansible:test/lib/ansible_test/_util/controller/sanity/pylint/plugins/deprecated_comment.py | """Ansible-specific pylint plugin for checking deprecation comments."""
# (c) 2018, Matt Martz <matt@sivel.net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
import shlex
import tokenize
import pylint.checkers
import pylint.lint
impo... | {
"repo_id": "ansible/ansible",
"file_path": "test/lib/ansible_test/_util/controller/sanity/pylint/plugins/deprecated_comment.py",
"license": "GNU General Public License v3.0",
"lines": 119,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
... | test |
ansible/ansible:test/units/module_utils/_internal/test_deprecator.py | from __future__ import annotations
import importlib.abc
import importlib.util
import ansible
import pathlib
import pytest
from ansible.module_utils._internal import _messages
from ansible.module_utils._internal import _deprecator
class FakePathLoader(importlib.abc.SourceLoader):
"""A test loader that can fake ... | {
"repo_id": "ansible/ansible",
"file_path": "test/units/module_utils/_internal/test_deprecator.py",
"license": "GNU General Public License v3.0",
"lines": 52,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:providers/common/sql/src/airflow/providers/common/sql/decorators/analytics.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/src/airflow/providers/common/sql/decorators/analytics.py",
"license": "Apache License 2.0",
"lines": 111,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:providers/common/sql/tests/unit/common/sql/decorators/test_analytics.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/tests/unit/common/sql/decorators/test_analytics.py",
"license": "Apache License 2.0",
"lines": 102,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:airflow-core/src/airflow/executors/workloads/base.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "airflow-core/src/airflow/executors/workloads/base.py",
"license": "Apache License 2.0",
"lines": 62,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:airflow-core/src/airflow/executors/workloads/callback.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "airflow-core/src/airflow/executors/workloads/callback.py",
"license": "Apache License 2.0",
"lines": 124,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:airflow-core/src/airflow/executors/workloads/task.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "airflow-core/src/airflow/executors/workloads/task.py",
"license": "Apache License 2.0",
"lines": 85,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
apache/airflow:airflow-core/src/airflow/executors/workloads/trigger.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "airflow-core/src/airflow/executors/workloads/trigger.py",
"license": "Apache License 2.0",
"lines": 34,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
apache/airflow:airflow-core/src/airflow/executors/workloads/types.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "airflow-core/src/airflow/executors/workloads/types.py",
"license": "Apache License 2.0",
"lines": 33,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
apache/airflow:airflow-ctl/tests/airflow_ctl/ctl/test_console_formatting.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "airflow-ctl/tests/airflow_ctl/ctl/test_console_formatting.py",
"license": "Apache License 2.0",
"lines": 113,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:providers/common/ai/src/airflow/providers/common/ai/decorators/llm_sql.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/src/airflow/providers/common/ai/decorators/llm_sql.py",
"license": "Apache License 2.0",
"lines": 104,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
apache/airflow:providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm_sql.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm_sql.py",
"license": "Apache License 2.0",
"lines": 97,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": "... | function_simple |
apache/airflow:providers/common/ai/src/airflow/providers/common/ai/operators/llm_sql.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/src/airflow/providers/common/ai/operators/llm_sql.py",
"license": "Apache License 2.0",
"lines": 202,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:providers/common/ai/src/airflow/providers/common/ai/utils/sql_validation.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/src/airflow/providers/common/ai/utils/sql_validation.py",
"license": "Apache License 2.0",
"lines": 83,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:providers/common/ai/tests/unit/common/ai/decorators/test_llm_sql.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/tests/unit/common/ai/decorators/test_llm_sql.py",
"license": "Apache License 2.0",
"lines": 70,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:providers/common/ai/tests/unit/common/ai/operators/test_llm_sql.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/tests/unit/common/ai/operators/test_llm_sql.py",
"license": "Apache License 2.0",
"lines": 348,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:providers/common/ai/tests/unit/common/ai/utils/test_sql_validation.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/tests/unit/common/ai/utils/test_sql_validation.py",
"license": "Apache License 2.0",
"lines": 124,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:providers/common/ai/src/airflow/providers/common/ai/decorators/llm.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/src/airflow/providers/common/ai/decorators/llm.py",
"license": "Apache License 2.0",
"lines": 109,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm.py",
"license": "Apache License 2.0",
"lines": 84,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
apache/airflow:providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm_analysis_pipeline.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm_analysis_pipeline.py",
"license": "Apache License 2.0",
"lines": 69,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
... | function_simple |
apache/airflow:providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm_classification.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/src/airflow/providers/common/ai/example_dags/example_llm_classification.py",
"license": "Apache License 2.0",
"lines": 44,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"t... | function_simple |
apache/airflow:providers/common/ai/src/airflow/providers/common/ai/operators/llm.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/src/airflow/providers/common/ai/operators/llm.py",
"license": "Apache License 2.0",
"lines": 84,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:providers/common/ai/tests/unit/common/ai/decorators/test_llm.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/tests/unit/common/ai/decorators/test_llm.py",
"license": "Apache License 2.0",
"lines": 71,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:providers/common/ai/tests/unit/common/ai/operators/test_llm.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/tests/unit/common/ai/operators/test_llm.py",
"license": "Apache License 2.0",
"lines": 66,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:providers/common/sql/src/airflow/providers/common/sql/config.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/src/airflow/providers/common/sql/config.py",
"license": "Apache License 2.0",
"lines": 68,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:providers/common/sql/src/airflow/providers/common/sql/datafusion/base.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/src/airflow/providers/common/sql/datafusion/base.py",
"license": "Apache License 2.0",
"lines": 53,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:providers/common/sql/src/airflow/providers/common/sql/datafusion/engine.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/src/airflow/providers/common/sql/datafusion/engine.py",
"license": "Apache License 2.0",
"lines": 144,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:providers/common/sql/src/airflow/providers/common/sql/datafusion/exceptions.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/src/airflow/providers/common/sql/datafusion/exceptions.py",
"license": "Apache License 2.0",
"lines": 24,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
apache/airflow:providers/common/sql/src/airflow/providers/common/sql/datafusion/format_handlers.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/src/airflow/providers/common/sql/datafusion/format_handlers.py",
"license": "Apache License 2.0",
"lines": 89,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": "... | function_complex |
apache/airflow:providers/common/sql/src/airflow/providers/common/sql/datafusion/object_storage_provider.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/src/airflow/providers/common/sql/datafusion/object_storage_provider.py",
"license": "Apache License 2.0",
"lines": 67,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"temp... | function_complex |
apache/airflow:providers/common/sql/src/airflow/providers/common/sql/example_dags/example_analytics.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/src/airflow/providers/common/sql/example_dags/example_analytics.py",
"license": "Apache License 2.0",
"lines": 56,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template... | function_simple |
apache/airflow:providers/common/sql/src/airflow/providers/common/sql/operators/analytics.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/src/airflow/providers/common/sql/operators/analytics.py",
"license": "Apache License 2.0",
"lines": 136,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:providers/common/sql/tests/unit/common/sql/datafusion/test_engine.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/tests/unit/common/sql/datafusion/test_engine.py",
"license": "Apache License 2.0",
"lines": 238,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:providers/common/sql/tests/unit/common/sql/datafusion/test_format_handlers.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/tests/unit/common/sql/datafusion/test_format_handlers.py",
"license": "Apache License 2.0",
"lines": 69,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:providers/common/sql/tests/unit/common/sql/datafusion/test_object_storage_provider.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/tests/unit/common/sql/datafusion/test_object_storage_provider.py",
"license": "Apache License 2.0",
"lines": 62,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template":... | test |
apache/airflow:providers/common/sql/tests/unit/common/sql/operators/test_analytics.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/tests/unit/common/sql/operators/test_analytics.py",
"license": "Apache License 2.0",
"lines": 134,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:providers/common/sql/tests/unit/common/sql/test_config.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/sql/tests/unit/common/sql/test_config.py",
"license": "Apache License 2.0",
"lines": 68,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:dev/breeze/src/airflow_breeze/commands/issues_commands.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "dev/breeze/src/airflow_breeze/commands/issues_commands.py",
"license": "Apache License 2.0",
"lines": 171,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:dev/breeze/src/airflow_breeze/commands/issues_commands_config.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "dev/breeze/src/airflow_breeze/commands/issues_commands_config.py",
"license": "Apache License 2.0",
"lines": 33,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
apache/airflow:providers/common/ai/src/airflow/providers/common/ai/example_dags/example_pydantic_ai_hook.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/src/airflow/providers/common/ai/example_dags/example_pydantic_ai_hook.py",
"license": "Apache License 2.0",
"lines": 51,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"tem... | function_simple |
apache/airflow:providers/common/ai/src/airflow/providers/common/ai/hooks/pydantic_ai.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/src/airflow/providers/common/ai/hooks/pydantic_ai.py",
"license": "Apache License 2.0",
"lines": 139,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:providers/common/ai/tests/unit/common/ai/hooks/test_pydantic_ai.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/common/ai/tests/unit/common/ai/hooks/test_pydantic_ai.py",
"license": "Apache License 2.0",
"lines": 251,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:airflow-core/tests/unit/api_fastapi/execution_api/versions/v2026_03_31/test_task_instances.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "airflow-core/tests/unit/api_fastapi/execution_api/versions/v2026_03_31/test_task_instances.py",
"license": "Apache License 2.0",
"lines": 104,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"t... | test |
apache/airflow:providers/openlineage/src/airflow/providers/openlineage/utils/sql_hook_lineage.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/openlineage/src/airflow/providers/openlineage/utils/sql_hook_lineage.py",
"license": "Apache License 2.0",
"lines": 193,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""... | function_complex |
apache/airflow:providers/openlineage/tests/unit/openlineage/utils/test_sql_hook_lineage.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/openlineage/tests/unit/openlineage/utils/test_sql_hook_lineage.py",
"license": "Apache License 2.0",
"lines": 508,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:providers/google/src/airflow/providers/google/cloud/utils/lineage.py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | {
"repo_id": "apache/airflow",
"file_path": "providers/google/src/airflow/providers/google/cloud/utils/lineage.py",
"license": "Apache License 2.0",
"lines": 80,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:providers/google/tests/unit/google/cloud/utils/test_lineage.py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | {
"repo_id": "apache/airflow",
"file_path": "providers/google/tests/unit/google/cloud/utils/test_lineage.py",
"license": "Apache License 2.0",
"lines": 188,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:airflow-core/src/airflow/api_fastapi/core_api/datamodels/ui/partitioned_dag_runs.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "airflow-core/src/airflow/api_fastapi/core_api/datamodels/ui/partitioned_dag_runs.py",
"license": "Apache License 2.0",
"lines": 51,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": "... | function_simple |
apache/airflow:airflow-core/src/airflow/api_fastapi/core_api/routes/ui/partitioned_dag_runs.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "airflow-core/src/airflow/api_fastapi/core_api/routes/ui/partitioned_dag_runs.py",
"license": "Apache License 2.0",
"lines": 215,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_partitioned_dag_runs.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_partitioned_dag_runs.py",
"license": "Apache License 2.0",
"lines": 242,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ... | test |
apache/airflow:providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/secrets/kubernetes_secrets_backend.py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | {
"repo_id": "apache/airflow",
"file_path": "providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/secrets/kubernetes_secrets_backend.py",
"license": "Apache License 2.0",
"lines": 186,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": ... | documentation |
apache/airflow:providers/cncf/kubernetes/tests/unit/cncf/kubernetes/secrets/test_kubernetes_secrets_backend.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/cncf/kubernetes/tests/unit/cncf/kubernetes/secrets/test_kubernetes_secrets_backend.py",
"license": "Apache License 2.0",
"lines": 277,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
... | test |
apache/airflow:providers/edge3/src/airflow/providers/edge3/models/edge_base.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/edge3/src/airflow/providers/edge3/models/edge_base.py",
"license": "Apache License 2.0",
"lines": 28,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
apache/airflow:providers/edge3/tests/unit/edge3/models/test_edge_base.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/edge3/tests/unit/edge3/models/test_edge_base.py",
"license": "Apache License 2.0",
"lines": 45,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:scripts/ci/docs/store_stable_versions.py | #!/usr/bin/env python3
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "L... | {
"repo_id": "apache/airflow",
"file_path": "scripts/ci/docs/store_stable_versions.py",
"license": "Apache License 2.0",
"lines": 190,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_complex |
apache/airflow:airflow-core/src/airflow/api_fastapi/core_api/datamodels/ui/deadline.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "airflow-core/src/airflow/api_fastapi/core_api/datamodels/ui/deadline.py",
"license": "Apache License 2.0",
"lines": 36,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
apache/airflow:airflow-core/src/airflow/api_fastapi/core_api/routes/ui/deadlines.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "airflow-core/src/airflow/api_fastapi/core_api/routes/ui/deadlines.py",
"license": "Apache License 2.0",
"lines": 92,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | function_simple |
apache/airflow:airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_deadlines.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_deadlines.py",
"license": "Apache License 2.0",
"lines": 266,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
apache/airflow:providers/fab/src/airflow/providers/fab/auth_manager/api_fastapi/routes/router.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/fab/src/airflow/providers/fab/auth_manager/api_fastapi/routes/router.py",
"license": "Apache License 2.0",
"lines": 29,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
... | function_simple |
apache/airflow:providers/fab/tests/unit/fab/auth_manager/api_fastapi/routes/test_router.py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | {
"repo_id": "apache/airflow",
"file_path": "providers/fab/tests/unit/fab/auth_manager/api_fastapi/routes/test_router.py",
"license": "Apache License 2.0",
"lines": 28,
"canary_id": -1,
"canary_value": "",
"pii_type": "",
"provider": "",
"regex_pattern": "",
"repetition": -1,
"template": ""
} | test |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.