id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13,400 | fakemodule.py | ansible_ansible/test/integration/targets/ansible-doc/broken-docs/collections/ansible_collections/testns/testcol/plugins/modules/fakemodule.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = """
module: fakemodule
broken:
short_description: fake module
description:
- this is a fake module
version_added: 1.0.0
options:
_notreal:
description: really not a real option
author:
... | 480 | Python | .py | 20 | 18.85 | 78 | 0.631347 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,401 | noop.py | ansible_ansible/test/integration/targets/ansible-doc/broken-docs/collections/ansible_collections/testns/testcol/plugins/lookup/noop.py | # (c) 2020 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
lookup: noop
broken:
author: Ansible core team
short_description: returns input
description:
- this is a noop
... | 1,026 | Python | .py | 34 | 25.529412 | 92 | 0.691446 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,402 | notjsonfile.py | ansible_ansible/test/integration/targets/ansible-doc/broken-docs/collections/ansible_collections/testns/testcol/plugins/cache/notjsonfile.py | # (c) 2020 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
cache: notjsonfile
broken:
short_description: JSON formatted files.
description:
- This cache uses JSON formatted, ... | 2,003 | Python | .py | 63 | 22.968254 | 92 | 0.604651 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,403 | test_docs_returns_broken.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_docs_returns_broken.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = """
---
module: test_docs_returns_broken
short_description: Test module
description:
- Test module
author:
- Ansible Core Team
"""
EXAMPLES = """
"""
RETURN = """
test:
description: A test return value.
type: str
broken_key: [
"""
... | 517 | Python | .py | 27 | 16.259259 | 52 | 0.677824 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,404 | double_doc.py | ansible_ansible/test/integration/targets/ansible-doc/library/double_doc.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = r"""
name: double_doc
description:
- module also uses 'DOCUMENTATION' in class
"""
class Foo:
# 2nd ref to documentation string, used to trip up tokinzer doc reader
DOCUMENTATION = None
def __init__(self):
pass
| 310 | Python | .py | 12 | 22.333333 | 74 | 0.708904 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,405 | test_docs_no_status.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_docs_no_status.py | #!/usr/bin/python
from __future__ import annotations
ANSIBLE_METADATA = {'metadata_version': '1.1',
'supported_by': 'core'}
DOCUMENTATION = """
---
module: test_docs_no_status
short_description: Test module
description:
- Test module
author:
- Ansible Core Team
"""
EXAMPLES = """
"""
RE... | 532 | Python | .py | 25 | 17.72 | 52 | 0.644444 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,406 | test_docs.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_docs.py | #!/usr/bin/python
from __future__ import annotations
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['stableinterface'],
'supported_by': 'core'}
DOCUMENTATION = """
---
module: test_docs
short_description: Test module
description:
- Test module
author:
- Ansi... | 573 | Python | .py | 26 | 17.807692 | 52 | 0.620561 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,407 | test_docs_non_iterable_status.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_docs_non_iterable_status.py | #!/usr/bin/python
from __future__ import annotations
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': 1,
'supported_by': 'core'}
DOCUMENTATION = """
---
module: test_docs_non_iterable_status
short_description: Test module
description:
- Test module
author:
- An... | 575 | Python | .py | 26 | 17.884615 | 52 | 0.623836 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,408 | test_no_docs_no_status.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_no_docs_no_status.py | #!/usr/bin/python
from __future__ import annotations
ANSIBLE_METADATA = {'metadata_version': '1.1',
'supported_by': 'core'}
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(
argument_spec=dict(),
)
module.exit_json()
if __name__ == ... | 343 | Python | .py | 12 | 23.166667 | 52 | 0.627329 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,409 | test_docs_suboptions.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_docs_suboptions.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = """
---
module: test_docs_suboptions
short_description: Test module
description:
- Test module
author:
- Ansible Core Team
options:
with_suboptions:
description:
- An option with suboptions.
- Use with car... | 1,539 | Python | .py | 58 | 15.275862 | 56 | 0.457823 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,410 | test_no_docs_no_metadata.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_no_docs_no_metadata.py | #!/usr/bin/python
from __future__ import annotations
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(
argument_spec=dict(),
)
module.exit_json()
if __name__ == '__main__':
main()
| 250 | Python | .py | 10 | 20.9 | 52 | 0.665236 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,411 | test_docs_removed_precedence.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_docs_removed_precedence.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = """
---
module: test_docs_removed_precedence
short_description: Test module
description:
- Test module
author:
- Ansible Core Team
deprecated:
alternative: new_module
why: Updated module released with more functionality
removed_at_date... | 595 | Python | .py | 28 | 18.428571 | 54 | 0.69964 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,412 | test_docs_returns.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_docs_returns.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = """
---
module: test_docs_returns
short_description: Test module
description:
- Test module
author:
- Ansible Core Team
"""
EXAMPLES = """
"""
RETURN = """
z_last:
description: A last result.
type: str
returned: success
m_midd... | 902 | Python | .py | 42 | 17.02381 | 64 | 0.646989 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,413 | test_docs_no_metadata.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_docs_no_metadata.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = """
---
module: test_docs_no_metadata
short_description: Test module
description:
- Test module
author:
- Ansible Core Team
"""
EXAMPLES = """
"""
RETURN = """
"""
from ansible.module_utils.basic import AnsibleModule
def main():
mo... | 442 | Python | .py | 23 | 16.347826 | 52 | 0.671569 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,414 | test_no_docs.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_no_docs.py | #!/usr/bin/python
from __future__ import annotations
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['stableinterface'],
'supported_by': 'core'}
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(
argument_spec=dict... | 394 | Python | .py | 13 | 23.692308 | 52 | 0.599462 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,415 | test_docs_removed_status.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_docs_removed_status.py | #!/usr/bin/python
from __future__ import annotations
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['removed'],
'supported_by': 'core'}
DOCUMENTATION = """
---
module: test_docs_removed_status
short_description: Test module
description:
- Test module
author:
... | 580 | Python | .py | 26 | 18.076923 | 52 | 0.621771 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,416 | test_no_docs_non_iterable_status.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_no_docs_non_iterable_status.py | #!/usr/bin/python
from __future__ import annotations
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': 1,
'supported_by': 'core'}
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(
argument_spec=dict(),
)
mod... | 376 | Python | .py | 13 | 22.307692 | 52 | 0.590395 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,417 | test_docs_missing_description.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_docs_missing_description.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = """
---
module: test_docs_returns
short_description: Test module
description:
- Test module
author:
- Ansible Core Team
options:
test:
type: str
"""
EXAMPLES = """
"""
RETURN = """
"""
from ansible.module_utils.basic import A... | 519 | Python | .py | 28 | 14.857143 | 52 | 0.633333 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,418 | test_docs_yaml_anchors.py | ansible_ansible/test/integration/targets/ansible-doc/library/test_docs_yaml_anchors.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = """
---
module: test_docs_yaml_anchors
short_description: Test module with YAML anchors in docs
description:
- Test module
author:
- Ansible Core Team
options:
at_the_top: &toplevel_anchor
description:
- Short desc
default:... | 1,390 | Python | .py | 56 | 18.571429 | 68 | 0.6 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,419 | respawnme.py | ansible_ansible/test/integration/targets/module_utils_common.respawn/library/respawnme.py | #!/usr/bin/python
# Copyright: (c) 2021, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
import os
import sys
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.common.respawn import respawn_m... | 1,655 | Python | .py | 32 | 45.125 | 97 | 0.699132 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,420 | removeoption.py | ansible_ansible/test/integration/targets/deprecations/library/removeoption.py | # -*- coding: utf-8 -*-
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = r"""
---
module: removeoption
short_description: noop
description: does nothing, test for removal of option
options:
o... | 1,442 | Python | .py | 65 | 17.876923 | 92 | 0.646628 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,421 | willremove.py | ansible_ansible/test/integration/targets/deprecations/library/willremove.py | # -*- coding: utf-8 -*-
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = r"""
---
module: willremove
version_added: histerical
short_description: does nothing
description: does nothing, this is... | 1,423 | Python | .py | 66 | 17.545455 | 92 | 0.656994 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,422 | notjsonfile.py | ansible_ansible/test/integration/targets/deprecations/cache_plugins/notjsonfile.py | # (c) 2020 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
cache: notjsonfile
short_description: NotJSON cache plugin
description: This cache uses is NOT JSON
author: Ansible Core (@ansi... | 2,505 | Python | .py | 76 | 23.671053 | 92 | 0.602146 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,423 | network_noop.py | ansible_ansible/test/integration/targets/connection_local/connection_plugins/network_noop.py | # (c) 2024 Red Hat Inc.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
connection: network_noop
author: ansible-core
short_description: legacy-ish connection plugin with only minimal config
description:
- A wrapper ... | 3,238 | Python | .py | 83 | 33.216867 | 113 | 0.707922 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,424 | test_echo_module.py | ansible_ansible/test/integration/targets/interpreter_discovery_python/library/test_echo_module.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2016, Toshio Kuratomi <tkuratomi@ansible.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
import sys
from ansible.module_utils.basi... | 671 | Python | .py | 18 | 33.722222 | 92 | 0.698289 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,425 | test_ansible_forked.py | ansible_ansible/test/integration/targets/ansible-test-units-forked/ansible_collections/ns/col/tests/unit/plugins/modules/test_ansible_forked.py | """Unit tests to verify the functionality of the ansible-forked pytest plugin."""
from __future__ import annotations
import os
import pytest
import signal
import sys
import warnings
warnings.warn("This verifies that warnings generated during test collection are reported.")
@pytest.mark.xfail
def test_kill_xfail()... | 1,221 | Python | .py | 26 | 43.807692 | 97 | 0.769296 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,426 | vendor1.py | ansible_ansible/test/integration/targets/ansible-test-sanity-import/ansible_collections/ns/col/plugins/lookup/vendor1.py | # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
name: vendor1
short_description: lookup
description: Lookup.
author:
- Ansible Core Team
"""
EXAMPLES = """#"""
RETURN = """#"""
from ansible.plugins.lookup import Lo... | 845 | Python | .py | 24 | 32.458333 | 158 | 0.758918 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,427 | vendor2.py | ansible_ansible/test/integration/targets/ansible-test-sanity-import/ansible_collections/ns/col/plugins/lookup/vendor2.py | # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
name: vendor2
short_description: lookup
description: Lookup.
author:
- Ansible Core Team
"""
EXAMPLES = """#"""
RETURN = """#"""
from ansible.plugins.lookup import Lo... | 845 | Python | .py | 24 | 32.458333 | 158 | 0.758918 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,428 | toml.py | ansible_ansible/test/integration/targets/ansible-inventory/filter_plugins/toml.py | # (c) 2017, 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 functools
from ansible.plugins.inventory.toml import HAS_TOML, toml_dumps
try:
from ansible.plugins.inventory.toml import toml
except Impo... | 1,402 | Python | .py | 36 | 34.166667 | 111 | 0.717873 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,429 | is_mac.py | ansible_ansible/test/integration/targets/common_network/test_plugins/is_mac.py | # Copyright: (c) 2020, 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
from ansible.module_utils.common.network import is_mac
class TestModule(object):
def tests(self):
return {
'is_ma... | 342 | Python | .py | 9 | 33 | 92 | 0.683891 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,430 | testserver.py | ansible_ansible/test/integration/targets/wait_for/files/testserver.py | from __future__ import annotations
import http.server
import socketserver
import sys
if __name__ == '__main__':
PORT = int(sys.argv[1])
Handler = http.server.SimpleHTTPRequestHandler
httpd = socketserver.TCPServer(("", PORT), Handler)
httpd.serve_forever()
| 275 | Python | .py | 9 | 27.555556 | 55 | 0.719697 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,431 | write_utf16.py | ansible_ansible/test/integration/targets/wait_for/files/write_utf16.py | from __future__ import annotations
import sys
# utf16 encoded bytes
# to ensure wait_for doesn't have any encoding errors
data = (
b'\xff\xfep\x00r\x00e\x00m\x00i\x00\xe8\x00r\x00e\x00 \x00i\x00s\x00 '
b'\x00f\x00i\x00r\x00s\x00t\x00\n\x00p\x00r\x00e\x00m\x00i\x00e\x00'
b'\x00\x03r\x00e\x00 \x00i\x00s\x00... | 723 | Python | .py | 16 | 41.75 | 77 | 0.705966 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,432 | zombie.py | ansible_ansible/test/integration/targets/wait_for/files/zombie.py | from __future__ import annotations
import os
import sys
import time
child_pid = os.fork()
if child_pid > 0:
time.sleep(60)
else:
sys.exit()
| 151 | Python | .py | 9 | 14.555556 | 34 | 0.726619 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,433 | track_connections.py | ansible_ansible/test/integration/targets/callback_results/callback_plugins/track_connections.py | # Copyright: Contributors to the Ansible project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
name: track_connections
short_description: Track connection plugins used for hosts
description:
- Tra... | 1,250 | Python | .py | 29 | 38 | 92 | 0.702479 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,434 | result_pickle_error.py | ansible_ansible/test/integration/targets/result_pickle_error/action_plugins/result_pickle_error.py | # -*- coding: utf-8 -*-
# Copyright: Contributors to the Ansible project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
from ansible.plugins.action import ActionBase
from jinja2 import Undefined
class ActionModule(ActionBase):
def... | 399 | Python | .py | 9 | 41.444444 | 92 | 0.745455 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,435 | dnf_module_list.py | ansible_ansible/test/integration/targets/dnf/filter_plugins/dnf_module_list.py | # Copyright: Contributors to the Ansible project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
from collections import Counter
def parse_module_list(stdout):
lines = stdout.splitlines()
name_offset = 0
empty_offset = -1
... | 1,149 | Python | .py | 32 | 29.15625 | 92 | 0.623986 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,436 | httptester_kinit.py | ansible_ansible/test/integration/targets/prepare_http_tests/library/httptester_kinit.py | #!/usr/bin/python
# Copyright: (c) 2020, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = r"""
---
module: httptester_kinit
short_description: Get Kerberos ticket
description: Get Kerberos ticket using kinit... | 4,560 | Python | .py | 111 | 35.171171 | 119 | 0.674655 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,437 | win_ping.py | ansible_ansible/test/integration/targets/windows-minimal/library/win_ping.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>, and others
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# this is a windows documentation stub. actual code lives in the .ps1
# file of the same name
ANSIBLE_ME... | 1,451 | Python | .py | 47 | 27.617021 | 92 | 0.702006 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,438 | boo.py | ansible_ansible/test/integration/targets/collections_runtime_pythonpath/ansible-collection-python-dist-foo/ansible_collections/python/dist/plugins/modules/boo.py | # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""Say hello in Ukrainian."""
from __future__ import annotations
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(
argument_spec={
'name': {'default': 'світ'}... | 582 | Python | .py | 18 | 26.055556 | 92 | 0.616514 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,439 | boo.py | ansible_ansible/test/integration/targets/collections_runtime_pythonpath/ansible-collection-python-dist-boo/ansible_collections/python/dist/plugins/modules/boo.py | # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""Say hello."""
from __future__ import annotations
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(
argument_spec={
'name': {'default': 'world'},
},... | 559 | Python | .py | 18 | 25.333333 | 92 | 0.610902 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,440 | test_inventory.py | ansible_ansible/test/integration/targets/plugin_config_for_inventory/test_inventory.py | from __future__ import annotations
DOCUMENTATION = """
name: test_inventory
plugin_type: inventory
authors:
- Pierre-Louis Bonicoli (@pilou-)
short_description: test inventory
description:
- test inventory (fetch parameters using config API)
options:
departments:
... | 2,412 | Python | .py | 70 | 25.214286 | 77 | 0.614427 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,441 | none.py | ansible_ansible/test/integration/targets/plugin_config_for_inventory/cache_plugins/none.py | # (c) 2014, Brian Coca, Josh Drake, et al
# (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
from ansible.plugins.cache import BaseCacheModule
DOCUMENTATION = """
cache: none
short_description: write-only... | 1,453 | Python | .py | 46 | 24.913043 | 92 | 0.627155 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,442 | test.py | ansible_ansible/test/integration/targets/infra/library/test.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import annotations
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(
argument_spec=dict(),
)
result = {
'selinux_special_fs': module._selinux_special_fs,
'tmpdir': module._tmpdir,
... | 493 | Python | .py | 17 | 23.882353 | 57 | 0.629787 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,443 | require_enabled.py | ansible_ansible/test/integration/targets/old_style_vars_plugins/vars_plugins/require_enabled.py | from __future__ import annotations
from ansible.plugins.vars import BaseVarsPlugin
class VarsModule(BaseVarsPlugin):
REQUIRES_ENABLED = True
def get_vars(self, loader, path, entities):
return {'require_enabled': True}
| 238 | Python | .py | 6 | 35.333333 | 47 | 0.758772 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,444 | implicitly_auto_enabled.py | ansible_ansible/test/integration/targets/old_style_vars_plugins/vars_plugins/implicitly_auto_enabled.py | from __future__ import annotations
from ansible.plugins.vars import BaseVarsPlugin
class VarsModule(BaseVarsPlugin):
def get_vars(self, loader, path, entities):
return {'implicitly_auto_enabled': True}
| 218 | Python | .py | 5 | 39.4 | 48 | 0.770335 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,445 | auto_enabled.py | ansible_ansible/test/integration/targets/old_style_vars_plugins/vars_plugins/auto_enabled.py | from __future__ import annotations
from ansible.plugins.vars import BaseVarsPlugin
class VarsModule(BaseVarsPlugin):
REQUIRES_ENABLED = False
def get_vars(self, loader, path, entities):
return {'explicitly_auto_enabled': True}
| 247 | Python | .py | 6 | 36.833333 | 48 | 0.763713 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,446 | v2_vars_plugin.py | ansible_ansible/test/integration/targets/old_style_vars_plugins/deprecation_warning/v2_vars_plugin.py | from __future__ import annotations
class VarsModule:
def get_host_vars(self, entity):
return {}
def get_group_vars(self, entity):
return {}
| 167 | Python | .py | 6 | 22.333333 | 37 | 0.651899 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,447 | auto_role_vars.py | ansible_ansible/test/integration/targets/old_style_vars_plugins/roles/a/vars_plugins/auto_role_vars.py | from __future__ import annotations
from ansible.plugins.vars import BaseVarsPlugin
class VarsModule(BaseVarsPlugin):
# Implicitly
# REQUIRES_ENABLED = False
def get_vars(self, loader, path, entities):
return {'auto_role_var': True}
| 256 | Python | .py | 7 | 32.142857 | 47 | 0.738776 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,448 | bad.py | ansible_ansible/test/integration/targets/ansible-test-sanity/ansible_collections/ns/col/tests/integration/targets/hello/files/bad.py | from __future__ import annotations
import tempfile
try:
import urllib2 # intentionally trigger pylint ansible-bad-import error # pylint: disable=unused-import
except ImportError:
urllib2 = None
try:
from urllib2 import Request # intentionally trigger pylint ansible-bad-import-from error # pylint: dis... | 456 | Python | .py | 11 | 38.636364 | 126 | 0.795918 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,449 | check_pylint.py | ansible_ansible/test/integration/targets/ansible-test-sanity/ansible_collections/ns/col/plugins/plugin_utils/check_pylint.py | """
These test cases verify ansible-test version constraints for pylint and its dependencies across Python versions.
The initial test cases were discovered while testing various Python versions against ansible/ansible.
"""
from __future__ import annotations
# Python 3.8 fails with astroid 2.2.5 but works on 2.3.3
# ... | 847 | Python | .py | 14 | 59.285714 | 112 | 0.746988 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,450 | bad.py | ansible_ansible/test/integration/targets/ansible-test-sanity/ansible_collections/ns/col/plugins/modules/bad.py | #!/usr/bin/python
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
module: bad
short_description: Bad test module
description: Bad test module.
author:
- Ansible Core Team
"""
EXAMPLES = """
- bad:
"""
RETURN = """"... | 646 | Python | .py | 23 | 25.521739 | 126 | 0.717781 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,451 | world.py | ansible_ansible/test/integration/targets/ansible-test-sanity/ansible_collections/ns/col/plugins/lookup/world.py | # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
name: world
short_description: World lookup
description: A world lookup.
author:
- Ansible Core Team
"""
EXAMPLES = """
- debug:
msg: "{{ lookup('ns.col.world') }}... | 622 | Python | .py | 20 | 28.4 | 92 | 0.723906 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,452 | bad.py | ansible_ansible/test/integration/targets/ansible-test-sanity/ansible_collections/ns/col/plugins/lookup/bad.py | # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
name: bad
short_description: Bad lookup
description: A bad lookup.
author:
- Ansible Core Team
"""
EXAMPLES = """
- debug:
msg: "{{ lookup('ns.col.bad') }}"
"""
R... | 660 | Python | .py | 21 | 28.761905 | 92 | 0.725397 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,453 | bad.py | ansible_ansible/test/integration/targets/ansible-test-sanity/ansible_collections/ns/col/plugins/random_directory/bad.py | # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
# This is not an allowed import, but since this file is in a plugins/ subdirectory that is not checked,
# the import sanity test will not complain.
import lxml # pylint: disable=unused-impo... | 323 | Python | .py | 5 | 63.2 | 103 | 0.772152 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,454 | casting.py | ansible_ansible/test/integration/targets/config/lookup_plugins/casting.py | # (c) 2021 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
name: casting
author: Ansible Core Team
version_added: histerical
short_description: returns what you gave it
description:... | 1,634 | Python | .py | 47 | 27.425532 | 93 | 0.619048 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,455 | bogus.py | ansible_ansible/test/integration/targets/config/lookup_plugins/bogus.py | # (c) 2021 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
name: bogus
author: Ansible Core Team
version_added: histerical
short_description: returns what you gave it
description:
... | 1,142 | Python | .py | 38 | 23.447368 | 92 | 0.62946 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,456 | casting_individual.py | ansible_ansible/test/integration/targets/config/lookup_plugins/casting_individual.py | # (c) 2021 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
name: casting_individual
author: Ansible Core Team
version_added: histerical
short_description: returns what you gave it
d... | 1,659 | Python | .py | 47 | 27.553191 | 101 | 0.611493 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,457 | types.py | ansible_ansible/test/integration/targets/config/lookup_plugins/types.py | # (c) 2021 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
name: types
author: Ansible Core Team
version_added: histerical
short_description: returns what you gave it
description:
... | 2,543 | Python | .py | 79 | 21.481013 | 92 | 0.552792 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,458 | inventory1.py | ansible_ansible/test/integration/targets/ansible-test-sanity-yamllint/ansible_collections/ns/col/plugins/inventory/inventory1.py | # -*- coding: utf-8 -*-
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = r"""
---
module: module2
short_description: Hello test module
description: Hello test module.
options:
plugin:
re... | 665 | Python | .py | 30 | 18.666667 | 92 | 0.678457 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,459 | module1.py | ansible_ansible/test/integration/targets/ansible-test-sanity-yamllint/ansible_collections/ns/col/plugins/modules/module1.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = r"""
module: module1
short_description: Hello test module
description: Hello test module.
options: {}
author:
- Ansible Core Team... | 661 | Python | .py | 29 | 20.310345 | 92 | 0.702093 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,460 | delegation_connection.py | ansible_ansible/test/integration/targets/connection_delegation/connection_plugins/delegation_connection.py | from __future__ import annotations
DOCUMENTATION = """
author: Ansible Core Team
connection: delegation_connection
short_description: Test connection for delegated host check
description:
- Some further description that you don't care about.
options:
remote_password:
description: The remote password
type: st... | 1,214 | Python | .py | 33 | 32.121212 | 88 | 0.713675 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,461 | delegation_action.py | ansible_ansible/test/integration/targets/connection_delegation/action_plugins/delegation_action.py | from __future__ import annotations
from ansible.plugins.action import ActionBase
class ActionModule(ActionBase):
def run(self, tmp=None, task_vars=None):
return {
'remote_password': self._connection.get_option('remote_password'),
}
| 268 | Python | .py | 7 | 32.142857 | 78 | 0.700389 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,462 | faux-editor.py | ansible_ansible/test/integration/targets/ansible-vault/faux-editor.py | #!/usr/bin/env python
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will b... | 1,175 | Python | .py | 32 | 34.25 | 81 | 0.732332 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,463 | password-script.py | ansible_ansible/test/integration/targets/ansible-vault/password-script.py | #!/usr/bin/env python
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will b... | 988 | Python | .py | 25 | 37.76 | 81 | 0.759414 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,464 | test-vault-client.py | ansible_ansible/test/integration/targets/ansible-vault/test-vault-client.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import annotations
ANSIBLE_METADATA = {'status': ['preview'],
'supported_by': 'community',
'version': '1.0'}
import argparse
import sys
# TODO: could read these from the files I suppose...
secrets = {'vault-passwor... | 1,854 | Python | .py | 46 | 31.869565 | 94 | 0.600894 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,465 | verify.py | ansible_ansible/test/integration/targets/packaging_cli-doc/verify.py | #!/usr/bin/env python
from __future__ import annotations
import os
import pathlib
import sys
exclude_programs = {
'ansible-test',
}
bin_dir = pathlib.Path(os.environ['JUNIT_OUTPUT_DIR']).parent.parent.parent / 'bin'
programs = set(program.name for program in bin_dir.iterdir() if program.name not in exclude_progr... | 583 | Python | .py | 17 | 32.470588 | 101 | 0.741071 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,466 | test_connection_override.py | ansible_ansible/test/integration/targets/shell/connection_plugins/test_connection_override.py | # Copyright (c) 2019 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
connection: test_connection_override
short_description: test connection plugin used in tests
description:
- This is a test connection... | 1,017 | Python | .py | 29 | 30.62069 | 92 | 0.702869 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,467 | test_connection_default.py | ansible_ansible/test/integration/targets/shell/connection_plugins/test_connection_default.py | # Copyright (c) 2019 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
connection: test_connection_default
short_description: test connection plugin used in tests
description:
- This is a test connection ... | 940 | Python | .py | 28 | 29.285714 | 92 | 0.707778 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,468 | test_shell.py | ansible_ansible/test/integration/targets/shell/action_plugins/test_shell.py | # This file is part of Ansible
# Copyright (c) 2019 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
from ansible.plugins.action import ActionBase
class ActionModule(ActionBase):
def run(self, tmp=None, task_vars=No... | 521 | Python | .py | 11 | 42.545455 | 92 | 0.724206 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,469 | test_command.py | ansible_ansible/test/integration/targets/expect/files/test_command.py | from __future__ import annotations
import sys
try:
input_function = raw_input
except NameError:
input_function = input
prompts = sys.argv[1:] or ['foo']
# latin1 encoded bytes
# to ensure pexpect doesn't have any encoding errors
data = b'premi\xe8re is first\npremie?re is slightly different\n????????? is Cy... | 528 | Python | .py | 18 | 26.666667 | 102 | 0.744048 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,470 | dummy.py | ansible_ansible/test/integration/targets/error_from_connection/connection_plugins/dummy.py | from __future__ import annotations
DOCUMENTATION = """
author:
- John Doe
connection: dummy
short_description: defective connection plugin
description:
- defective connection plugin
version_added: "2.0"
options: {}
"""
from ansible.errors import AnsibleError
from ansible.plugins... | 918 | Python | .py | 29 | 25.862069 | 82 | 0.664009 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,471 | no_shebang.py | ansible_ansible/test/integration/targets/script/files/no_shebang.py | from __future__ import annotations
import sys
sys.stdout.write("Script with shebang omitted")
| 96 | Python | .py | 3 | 30.333333 | 47 | 0.813187 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,472 | callback_host_count.py | ansible_ansible/test/integration/targets/strategy_host_pinned/callback_plugins/callback_host_count.py | # (c) 2024 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
from ansible.plugins.callback import CallbackBase
class CallbackModule(CallbackBase):
CALLBACK_VERSION = 2.0
CALLBACK_TYPE = 'stdout'
CALLBACK_NAME =... | 1,623 | Python | .py | 33 | 40.242424 | 92 | 0.646835 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,473 | my_module.py | ansible_ansible/test/integration/targets/collections_relative_imports/collection_root/ansible_collections/my_ns/my_col/plugins/modules/my_module.py | #!/usr/bin/python
from __future__ import annotations
from ansible.module_utils.basic import AnsibleModule
from ..module_utils.my_util2 import two
from ..module_utils import my_util3
def main():
module = AnsibleModule(
argument_spec=dict(),
supports_check_mode=True
)
result = dict(
... | 442 | Python | .py | 17 | 21.352941 | 52 | 0.653938 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,474 | my_util2.py | ansible_ansible/test/integration/targets/collections_relative_imports/collection_root/ansible_collections/my_ns/my_col/plugins/module_utils/my_util2.py | from __future__ import annotations
from .my_util1 import one
def two():
return one() * 2
| 96 | Python | .py | 4 | 21.25 | 34 | 0.707865 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,475 | my_util3.py | ansible_ansible/test/integration/targets/collections_relative_imports/collection_root/ansible_collections/my_ns/my_col/plugins/module_utils/my_util3.py | from __future__ import annotations
from . import my_util2
def three():
return my_util2.two() + 1
| 104 | Python | .py | 4 | 23.25 | 34 | 0.71134 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,476 | argspec.py | ansible_ansible/test/integration/targets/argspec/library/argspec.py | #!/usr/bin/python
# Copyright: (c) 2020, 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
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(
{
'req... | 8,965 | Python | .py | 263 | 16.159696 | 92 | 0.309524 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,477 | override_formerly_core_masked_filter.py | ansible_ansible/test/integration/targets/collections/filter_plugins/override_formerly_core_masked_filter.py | from __future__ import annotations
def override_formerly_core_masked_filter(*args, **kwargs):
return 'hello from overridden formerly_core_masked_filter'
class FilterModule(object):
def filters(self):
return {
'formerly_core_masked_filter': override_formerly_core_masked_filter
}
| 319 | Python | .py | 8 | 33.875 | 79 | 0.716612 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,478 | v2_vars_plugin.py | ansible_ansible/test/integration/targets/collections/custom_vars_plugins/v2_vars_plugin.py | # Copyright 2019 RedHat, inc
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible i... | 1,550 | Python | .py | 39 | 35.641026 | 124 | 0.695219 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,479 | v1_vars_plugin.py | ansible_ansible/test/integration/targets/collections/custom_vars_plugins/v1_vars_plugin.py | # Copyright 2019 RedHat, inc
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible i... | 1,344 | Python | .py | 31 | 40.709677 | 127 | 0.728593 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,480 | display_resolved_action.py | ansible_ansible/test/integration/targets/collections/test_task_resolved_plugin/callback_plugins/display_resolved_action.py | # (c) 2020 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
name: display_resolved_action
type: aggregate
short_description: Displays the requested and resolved actions at the end of a playbo... | 1,200 | Python | .py | 26 | 40.730769 | 92 | 0.708155 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,481 | collection_action.py | ansible_ansible/test/integration/targets/collections/test_task_resolved_plugin/collections/ansible_collections/test_ns/test_coll/plugins/action/collection_action.py | # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
from ansible.plugins.action import ActionBase
class ActionModule(ActionBase):
TRANSFERS_FILES = False
_VALID_ARGS = frozenset()
def run(self, tmp=None, task_vars=None):
... | 348 | Python | .py | 8 | 39.375 | 92 | 0.734328 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,482 | collection_module.py | ansible_ansible/test/integration/targets/collections/test_task_resolved_plugin/collections/ansible_collections/test_ns/test_coll/plugins/modules/collection_module.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
---
module: collection_module
short_description: A module to test a task's resolved action name.
description: A module to test ... | 643 | Python | .py | 20 | 30.05 | 92 | 0.730081 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,483 | legacy_module.py | ansible_ansible/test/integration/targets/collections/test_task_resolved_plugin/library/legacy_module.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
---
module: legacy_module
short_description: A module to test a task's resolved action name.
description: A module to test a ta... | 639 | Python | .py | 20 | 29.85 | 92 | 0.728314 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,484 | legacy_action.py | ansible_ansible/test/integration/targets/collections/test_task_resolved_plugin/action_plugins/legacy_action.py | # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
from ansible.plugins.action import ActionBase
class ActionModule(ActionBase):
TRANSFERS_FILES = False
_VALID_ARGS = frozenset()
def run(self, tmp=None, task_vars=None):
... | 348 | Python | .py | 8 | 39.375 | 92 | 0.734328 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,485 | action1.py | ansible_ansible/test/integration/targets/collections/collections/ansible_collections/me/mycoll1/plugins/action/action1.py | from __future__ import annotations
from ansible.plugins.action import ActionBase
class ActionModule(ActionBase):
def run(self, tmp=None, task_vars=None):
""" handler for file transfer operations """
if task_vars is None:
task_vars = dict()
result = super(ActionModule, self).... | 680 | Python | .py | 19 | 25.684211 | 62 | 0.587423 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,486 | action1.py | ansible_ansible/test/integration/targets/collections/collections/ansible_collections/me/mycoll1/plugins/modules/action1.py | #!/usr/bin/python
from __future__ import annotations
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['stableinterface'],
'supported_by': 'core'}
DOCUMENTATION = """
---
module: action1
short_description: Action Test module
description:
- Action Test module
author... | 388 | Python | .py | 18 | 17.611111 | 50 | 0.621918 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,487 | module1.py | ansible_ansible/test/integration/targets/collections/collections/ansible_collections/me/mycoll2/plugins/modules/module1.py | #!/usr/bin/python
from __future__ import annotations
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['stableinterface'],
'supported_by': 'core'}
DOCUMENTATION = """
---
module: module1
short_description: module1 Test module
description:
- module1 Test module
auth... | 731 | Python | .py | 29 | 20.448276 | 89 | 0.624093 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,488 | statichost.py | ansible_ansible/test/integration/targets/collections/collections/ansible_collections/testns/content_adj/plugins/inventory/statichost.py | # Copyright (c) 2018 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
inventory: statichost
short_description: Add a single host
description: Add a single host
extends_documentation_fragm... | 2,122 | Python | .py | 49 | 35.306122 | 94 | 0.660019 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,489 | custom_adj_vars.py | ansible_ansible/test/integration/targets/collections/collections/ansible_collections/testns/content_adj/plugins/vars/custom_adj_vars.py | # Copyright 2019 RedHat, inc
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible i... | 1,471 | Python | .py | 39 | 33.564103 | 70 | 0.688858 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,490 | contentadjmodule.py | ansible_ansible/test/integration/targets/collections/collections/ansible_collections/testns/content_adj/plugins/modules/contentadjmodule.py | #!/usr/bin/python
from __future__ import annotations
import json
def main():
print(json.dumps(dict(changed=False, source='content_adj')))
if __name__ == '__main__':
main()
| 185 | Python | .py | 7 | 23.571429 | 64 | 0.67052 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,491 | foomodule.py | ansible_ansible/test/integration/targets/collections/collections/ansible_collections/testns/content_adj/plugins/module_utils/sub1/foomodule.py | from __future__ import annotations
def importme():
return "hello from {0}".format(__name__)
| 98 | Python | .py | 3 | 29.666667 | 44 | 0.688172 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,492 | custom_jsonfile.py | ansible_ansible/test/integration/targets/collections/collections/ansible_collections/testns/content_adj/plugins/cache/custom_jsonfile.py | # (c) 2014, Brian Coca, Josh Drake, et al
# (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
DOCUMENTATION = """
cache: jsonfile
short_description: JSON formatted files.
description:
- This cach... | 1,883 | Python | .py | 53 | 28.339623 | 92 | 0.654775 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,493 | maskedmodule.py | ansible_ansible/test/integration/targets/collections/collection_root_sys/ansible_collections/testns/testcoll/plugins/modules/maskedmodule.py | #!/usr/bin/python
from __future__ import annotations
import json
def main():
print(json.dumps(dict(changed=False, failed=True, msg='this collection should be masked by testcoll in the user content root')))
if __name__ == '__main__':
main()
| 253 | Python | .py | 7 | 33.285714 | 132 | 0.709544 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,494 | testmodule.py | ansible_ansible/test/integration/targets/collections/collection_root_sys/ansible_collections/testns/testcoll/plugins/modules/testmodule.py | #!/usr/bin/python
from __future__ import annotations
import json
def main():
print(json.dumps(dict(changed=False, source='sys')))
if __name__ == '__main__':
main()
| 177 | Python | .py | 7 | 22.428571 | 56 | 0.660606 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,495 | systestmodule.py | ansible_ansible/test/integration/targets/collections/collection_root_sys/ansible_collections/testns/coll_in_sys/plugins/modules/systestmodule.py | #!/usr/bin/python
from __future__ import annotations
import json
def main():
print(json.dumps(dict(changed=False, source='sys')))
if __name__ == '__main__':
main()
| 177 | Python | .py | 7 | 22.428571 | 56 | 0.660606 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,496 | ping.py | ansible_ansible/test/integration/targets/collections/library/ping.py | #!/usr/bin/python
from __future__ import annotations
import json
def main():
print(json.dumps(dict(changed=False, source='legacy_library_dir')))
if __name__ == '__main__':
main()
| 192 | Python | .py | 7 | 24.571429 | 71 | 0.677778 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,497 | ping.py | ansible_ansible/test/integration/targets/collections/collection_root_user/ansible_collections/ansible/builtin/plugins/modules/ping.py | #!/usr/bin/python
from __future__ import annotations
import json
def main():
print(json.dumps(dict(changed=False, source='overridden ansible.builtin (should not be possible)')))
if __name__ == '__main__':
main()
| 225 | Python | .py | 7 | 29.285714 | 104 | 0.699531 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,498 | bullmodule.py | ansible_ansible/test/integration/targets/collections/collection_root_user/ansible_collections/ansible/bullcoll/plugins/modules/bullmodule.py | #!/usr/bin/python
from __future__ import annotations
import json
def main():
print(json.dumps(dict(changed=False, source='user_ansible_bullcoll')))
if __name__ == '__main__':
main()
| 195 | Python | .py | 7 | 25 | 74 | 0.68306 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,499 | embedded_module.py | ansible_ansible/test/integration/targets/collections/collection_root_user/ansible_collections/testns/testcoll/playbooks/roles/non_coll_role/library/embedded_module.py | #!/usr/bin/python
from __future__ import annotations
import json
def main():
print(json.dumps(dict(changed=False, source='collection_embedded_non_collection_role')))
if __name__ == '__main__':
main()
| 213 | Python | .py | 7 | 27.571429 | 92 | 0.701493 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |