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,300 | win_uri.py | ansible_ansible/test/support/windows-integration/collections/ansible_collections/ansible/windows/plugins/modules/win_uri.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2015, Corwin Brown <corwin@corwinbrown.com>
# Copyright: (c) 2017, Dag Wieers (@dagwieers) <dag@wieers.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = r"""
---
module: win_uri
short_description... | 4,256 | Python | .py | 145 | 25.910345 | 121 | 0.721775 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,301 | win_stat.py | ansible_ansible/test/support/windows-integration/collections/ansible_collections/ansible/windows/plugins/modules/win_stat.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Ansible Project
# 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_METADATA = {'metadata_version': '1.1',
... | 7,577 | Python | .py | 223 | 24.901345 | 111 | 0.604277 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,302 | win_copy.ps1 | ansible_ansible/test/support/windows-integration/collections/ansible_collections/ansible/windows/plugins/modules/win_copy.ps1 | #!powershell
# Copyright: (c) 2015, Jon Hawkesworth (@jhawkesworth) <figs@unity.demon.co.uk>
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#Requires -Module Ansible.ModuleUtils.Legacy
#Requires -Module Ansible.ModuleUtils.Backup
$E... | 17,087 | Python | .py | 346 | 41.179191 | 140 | 0.627847 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,303 | win_ping.py | ansible_ansible/test/support/windows-integration/collections/ansible_collections/ansible/windows/plugins/modules/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,304 | win_file.py | ansible_ansible/test/support/windows-integration/collections/ansible_collections/ansible/windows/plugins/modules/win_file.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2015, Jon Hawkesworth (@jhawkesworth) <figs@unity.demon.co.uk>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['stableinterface'],
... | 2,184 | Python | .py | 63 | 30.444444 | 92 | 0.692999 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,305 | runas.py | ansible_ansible/test/support/windows-integration/plugins/become/runas.py | # -*- coding: utf-8 -*-
# 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 = """
become: runas
short_description: Run As user
description:
- This become plugins allows y... | 2,404 | Python | .py | 63 | 27.412698 | 127 | 0.585011 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,306 | win_reboot.py | ansible_ansible/test/support/windows-integration/plugins/action/win_reboot.py | # Copyright: (c) 2018, Matt Davis <mdavis@ansible.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
from datetime import datetime, timezone
from ansible.module_utils.common.text.converters import to_native
from ansible.plugins.action ... | 4,343 | Python | .py | 71 | 52.43662 | 146 | 0.672158 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,307 | win_copy.py | ansible_ansible/test/support/windows-integration/plugins/action/win_copy.py | # This file is part of Ansible
# Copyright (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
import base64
import json
import os
import os.path
import shutil
import tempfile
import traceback
import zipfile
from an... | 23,466 | Python | .py | 445 | 38.31236 | 133 | 0.56859 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,308 | win_template.py | ansible_ansible/test/support/windows-integration/plugins/action/win_template.py | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# 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) an... | 1,114 | Python | .py | 23 | 47.086957 | 80 | 0.798528 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,309 | win_user_right.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_user_right.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Ansible Project
# 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_METADATA = {'metadata_version': '1.1',
... | 3,205 | Python | .py | 99 | 28.656566 | 92 | 0.711334 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,310 | win_reboot.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_reboot.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)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['stableinterface'],
'supported_by': 'core'}
DOCUMENTATION = r"""
---
module: win_reb... | 4,690 | Python | .py | 119 | 35.789916 | 148 | 0.7449 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,311 | win_acl.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_acl.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2015, Phil Schwartz <schwartzmx@gmail.com>
# Copyright: (c) 2015, Trond Hindenes
# Copyright: (c) 2015, Hans-Joachim Kliemeck <git@kliemeck.de>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'m... | 4,112 | Python | .py | 124 | 29.048387 | 119 | 0.721357 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,312 | win_wait_for.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_wait_for.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Ansible Project
# 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_METADATA = {'metadata_version': '1.1',
... | 4,634 | Python | .py | 143 | 28.454545 | 102 | 0.704845 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,313 | win_lineinfile.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_lineinfile.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)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = r"""
---
module: win_linein... | 7,333 | Python | .py | 167 | 39.227545 | 152 | 0.709073 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,314 | win_regedit.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_regedit.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2015, Adam Keech <akeech@chathamfinancial.com>
# Copyright: (c) 2015, Josh Ludwig <jludwig@chathamfinancial.com>
# 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 ... | 6,698 | Python | .py | 190 | 31.126316 | 147 | 0.714396 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,315 | win_shell.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_shell.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2016, Ansible, inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'core'}
DOCUMENTATIO... | 5,618 | Python | .py | 157 | 31.675159 | 127 | 0.71308 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,316 | win_copy.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_copy.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2015, Jon Hawkesworth (@jhawkesworth) <figs@unity.demon.co.uk>
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | 6,765 | Python | .py | 194 | 30.690722 | 151 | 0.705703 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,317 | win_command.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_command.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2016, Ansible, inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'core'}
DOCUMENTATIO... | 4,500 | Python | .py | 129 | 30.666667 | 153 | 0.703483 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,318 | win_get_url.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_get_url.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2014, Paul Durivage <paul.durivage@rackspace.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_... | 6,591 | Python | .py | 204 | 28.058824 | 152 | 0.7133 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,319 | win_whoami.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_whoami.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Ansible Project
# 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_METADATA = {'metadata_version': '1.1',
... | 5,621 | Python | .py | 197 | 23.817259 | 92 | 0.693983 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,320 | win_stat.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_stat.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Ansible Project
# 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_METADATA = {'metadata_version': '1.1',
... | 7,577 | Python | .py | 223 | 24.901345 | 111 | 0.604277 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,321 | win_copy.ps1 | ansible_ansible/test/support/windows-integration/plugins/modules/win_copy.ps1 | #!powershell
# Copyright: (c) 2015, Jon Hawkesworth (@jhawkesworth) <figs@unity.demon.co.uk>
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#Requires -Module Ansible.ModuleUtils.Legacy
#Requires -Module Ansible.ModuleUtils.Backup
$E... | 17,087 | Python | .py | 346 | 41.179191 | 140 | 0.627847 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,322 | win_ping.py | ansible_ansible/test/support/windows-integration/plugins/modules/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,323 | win_user.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_user.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2014, Matt Martz <matt@sivel.net>, 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_METADATA = {'met... | 5,321 | Python | .py | 187 | 24.336898 | 92 | 0.692218 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,324 | win_file.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_file.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2015, Jon Hawkesworth (@jhawkesworth) <figs@unity.demon.co.uk>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['stableinterface'],
... | 2,184 | Python | .py | 63 | 30.444444 | 92 | 0.692999 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,325 | win_certificate_store.py | ansible_ansible/test/support/windows-integration/plugins/modules/win_certificate_store.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCU... | 7,590 | Python | .py | 195 | 34.65641 | 124 | 0.732593 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,326 | ios.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/cisco/ios/plugins/action/ios.py | #
# (c) 2016 Red Hat 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 is d... | 5,060 | Python | .py | 117 | 32.376068 | 148 | 0.595982 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,327 | ios.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/cisco/ios/plugins/cliconf/ios.py | #
# (c) 2017 Red Hat 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 is d... | 16,424 | Python | .py | 404 | 29.554455 | 111 | 0.572342 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,328 | ios_command.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/cisco/ios/plugins/modules/ios_command.py | #!/usr/bin/python
#
# 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 is distribut... | 7,536 | Python | .py | 200 | 32.26 | 95 | 0.692581 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,329 | ios_config.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/cisco/ios/plugins/modules/ios_config.py | #!/usr/bin/python
#
# 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 is distribut... | 21,963 | Python | .py | 535 | 34.085981 | 131 | 0.673844 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,330 | ios.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/cisco/ios/plugins/module_utils/network/ios/ios.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 6,672 | Python | .py | 168 | 33.910714 | 93 | 0.6816 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,331 | ios.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/cisco/ios/plugins/terminal/ios.py | #
# (c) 2016 Red Hat 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 is d... | 4,096 | Python | .py | 99 | 32.666667 | 91 | 0.600452 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,332 | ios.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/cisco/ios/plugins/doc_fragments/ios.py | # -*- coding: utf-8 -*-
# Copyright: (c) 2015, Peter Sprygada <psprygada@ansible.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
class ModuleDocFragment(object):
# Standard files documentation fragment
DOCUMENTATION = r"""o... | 3,611 | Python | .py | 78 | 38.602564 | 113 | 0.689147 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,333 | connection_base.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/plugin_utils/connection_base.py | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2015 Toshio Kuratomi <tkuratomi@ansible.com>
# (c) 2017, Peter Sprygada <psprygad@redhat.com>
# (c) 2017 Ansible Project
from __future__ import annotations
import os
from ansible import constants as C
from ansible.plugins.connection import ConnectionBa... | 6,291 | Python | .py | 150 | 31.646667 | 115 | 0.597675 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,334 | cli_config.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/action/cli_config.py | #
# Copyright 2018 Red Hat 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.
#
# Ansibl... | 1,351 | Python | .py | 33 | 36.363636 | 78 | 0.711128 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,335 | network.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/action/network.py | #
# (c) 2018 Red Hat 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 is d... | 7,429 | Python | .py | 178 | 31.376404 | 79 | 0.583576 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,336 | net_get.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/action/net_get.py | # (c) 2018, Ansible 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 is di... | 6,673 | Python | .py | 167 | 30.245509 | 97 | 0.59861 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,337 | net_put.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/action/net_put.py | # (c) 2018, Ansible 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 is di... | 8,073 | Python | .py | 200 | 29.395 | 97 | 0.576094 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,338 | network_cli.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/connection/network_cli.py | # (c) 2016 Red Hat Inc.
# (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 = """
author:
- Ansible Networking Team (@ansible-network)
name: network_cli
short_description: Use network_cli to run comm... | 51,722 | Python | .py | 1,264 | 29.163766 | 147 | 0.573884 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,339 | persistent.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/connection/persistent.py | # 2017 Red Hat Inc.
# (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 = """author: Ansible Core Team
connection: persistent
short_description: Use a persistent unix socket for connection
description... | 3,107 | Python | .py | 81 | 31.493827 | 92 | 0.671538 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,340 | cli_config.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/modules/cli_config.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2018, Ansible by 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
ANSIBLE_METADATA = {
"metadata_version": "1.1",
"status": ["preview"],
"supported_by": "network",
... | 15,618 | Python | .py | 388 | 32.541237 | 92 | 0.65195 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,341 | config.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/config.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 14,454 | Python | .py | 384 | 26.882813 | 92 | 0.563059 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,342 | network.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/network.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 9,244 | Python | .py | 227 | 33.057269 | 95 | 0.656222 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,343 | parsing.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/parsing.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 10,147 | Python | .py | 255 | 31.129412 | 92 | 0.618311 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,344 | utils.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/utils.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 21,634 | Python | .py | 553 | 29.65642 | 115 | 0.594676 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,345 | netconf.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/netconf.py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | 6,602 | Python | .py | 146 | 36.369863 | 94 | 0.643046 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,346 | facts.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/facts/facts.py | #
# -*- coding: utf-8 -*-
# Copyright 2019 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""
The facts base class
this contains methods common to all facts subsets
"""
from __future__ import annotations
from ansible_collections.ansible.netcommon.plugins.module_u... | 5,660 | Python | .py | 144 | 27.111111 | 95 | 0.555677 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,347 | base.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/cfg/base.py | #
# -*- coding: utf-8 -*-
# Copyright 2019 Red Hat
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
"""
The base class for all resource modules
"""
from __future__ import annotations
from ansible_collections.ansible.netcommon.plugins.module_utils.network.common.network imp... | 766 | Python | .py | 22 | 30.636364 | 95 | 0.684282 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,348 | ipaddress.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/module_utils/compat/ipaddress.py | # -*- coding: utf-8 -*-
# This code is part of Ansible, but is an independent component.
# This particular file, and this file only, is based on
# Lib/ipaddress.py of cpython
# It is licensed under the PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
#
# 1. This LICENSE AGREEMENT is between the Python Software Foundation
... | 83,165 | Python | .py | 2,052 | 30.610136 | 95 | 0.59074 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,349 | connection_persistent.py | ansible_ansible/test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/doc_fragments/connection_persistent.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
class ModuleDocFragment(object):
# Standard files documentation fragment
DOCUMENTATION = r"""
options:
import_modules:
type: boolean
description:
... | 2,695 | Python | .py | 71 | 32.366197 | 104 | 0.716794 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,350 | timeout.py | ansible_ansible/test/integration/targets/test_utils/scripts/timeout.py | #!/usr/bin/env python
from __future__ import annotations
import argparse
import subprocess
import sys
parser = argparse.ArgumentParser()
parser.add_argument('duration', type=int)
parser.add_argument('command', nargs='+')
args = parser.parse_args()
try:
p = subprocess.run(
' '.join(args.command),
... | 469 | Python | .py | 19 | 21 | 41 | 0.709172 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,351 | core.py | ansible_ansible/test/integration/targets/plugin_loader/override/filter_plugins/core.py | from __future__ import annotations
def do_flag(myval):
return 'flagged'
class FilterModule(object):
""" Ansible core jinja2 filters """
def filters(self):
return {
# jinja2 overrides
'flag': do_flag,
'flatten': do_flag,
}
| 291 | Python | .py | 11 | 19.181818 | 39 | 0.578182 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,352 | custom.py | ansible_ansible/test/integration/targets/plugin_loader/file_collision/roles/r2/filter_plugins/custom.py | from __future__ import annotations
def do_nothing(myval):
return myval
class FilterModule(object):
""" Ansible core jinja2 filters """
def filters(self):
return {
'filter2': do_nothing,
}
| 233 | Python | .py | 9 | 19.888889 | 39 | 0.630137 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,353 | custom.py | ansible_ansible/test/integration/targets/plugin_loader/file_collision/roles/r1/filter_plugins/custom.py | from __future__ import annotations
def do_nothing(myval):
return myval
class FilterModule(object):
""" Ansible core jinja2 filters """
def filters(self):
return {
'filter1': do_nothing,
'filter3': do_nothing,
}
| 268 | Python | .py | 10 | 20.1 | 39 | 0.608696 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,354 | _underscore.py | ansible_ansible/test/integration/targets/plugin_loader/normal/library/_underscore.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,355 | self_referential.py | ansible_ansible/test/integration/targets/plugin_loader/normal/action_plugins/self_referential.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 ansible.plugins.action import ActionBase
import sys
# reference our own module from sys.modules while it's being loaded to ensure the i... | 918 | Python | .py | 20 | 40.7 | 107 | 0.716854 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,356 | hello.py | ansible_ansible/test/integration/targets/ansible-test-integration/ansible_collections/ns/col/plugins/modules/hello.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: hello
short_description: Hello test module
description: Hello test module.
options:
name:
description: Name to say hello to.
type: str... | 791 | Python | .py | 33 | 20.424242 | 92 | 0.671582 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,357 | my_util.py | ansible_ansible/test/integration/targets/ansible-test-integration/ansible_collections/ns/col/plugins/module_utils/my_util.py | from __future__ import annotations
def hello(name):
return 'Hello %s' % name
| 83 | Python | .py | 3 | 24.666667 | 34 | 0.705128 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,358 | test_run_once.py | ansible_ansible/test/integration/targets/debugger/test_run_once.py | #!/usr/bin/env python
from __future__ import annotations
import io
import os
import sys
import pexpect
env_vars = {
'ANSIBLE_NOCOLOR': 'True',
'ANSIBLE_RETRY_FILES_ENABLED': 'False',
}
env = os.environ.copy()
env.update(env_vars)
with io.BytesIO() as logfile:
debugger_test_test = pexpect.spawn(
... | 846 | Python | .py | 27 | 27.037037 | 64 | 0.675309 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,359 | bad_filter.py | ansible_ansible/test/integration/targets/jinja_plugins/filter_plugins/bad_filter.py | # Copyright (c) 2021 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
class FilterModule:
def filters(self):
raise TypeError('bad_filter')
| 261 | Python | .py | 6 | 40 | 92 | 0.730159 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,360 | good_filter.py | ansible_ansible/test/integration/targets/jinja_plugins/filter_plugins/good_filter.py | # Copyright (c) 2021 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
class FilterModule:
def filters(self):
return {
'hello': lambda x: 'Hello, %s!' % x,
}
| 299 | Python | .py | 8 | 32 | 92 | 0.645833 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,361 | good_collection_test.py | ansible_ansible/test/integration/targets/jinja_plugins/collections/ansible_collections/foo/bar/plugins/test/good_collection_test.py | # Copyright (c) 2021 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
class TestModule:
def tests(self):
return {
'world': lambda x: x.lower() == 'world',
}
| 299 | Python | .py | 8 | 32 | 92 | 0.645833 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,362 | bad_collection_test.py | ansible_ansible/test/integration/targets/jinja_plugins/collections/ansible_collections/foo/bar/plugins/test/bad_collection_test.py | # Copyright (c) 2021 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
class TestModule:
def tests(self):
raise TypeError('bad_collection_test')
| 266 | Python | .py | 6 | 40.833333 | 92 | 0.731518 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,363 | bad_collection_filter.py | ansible_ansible/test/integration/targets/jinja_plugins/collections/ansible_collections/foo/bar/plugins/filter/bad_collection_filter.py | # Copyright (c) 2021 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
class FilterModule:
def filters(self):
raise TypeError('bad_collection_filter')
| 272 | Python | .py | 6 | 41.833333 | 92 | 0.737643 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,364 | bad_collection_filter2.py | ansible_ansible/test/integration/targets/jinja_plugins/collections/ansible_collections/foo/bar/plugins/filter/bad_collection_filter2.py | # Copyright (c) 2021 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
class FilterModule:
pass
| 209 | Python | .py | 5 | 39.4 | 92 | 0.751244 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,365 | good_collection_filter.py | ansible_ansible/test/integration/targets/jinja_plugins/collections/ansible_collections/foo/bar/plugins/filter/good_collection_filter.py | # Copyright (c) 2021 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
class FilterModule:
def filters(self):
return {
'hello': lambda x: 'Hello, %s!' % x,
}
| 299 | Python | .py | 8 | 32 | 92 | 0.645833 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,366 | bad_test.py | ansible_ansible/test/integration/targets/jinja_plugins/test_plugins/bad_test.py | # Copyright (c) 2021 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
class TestModule:
def tests(self):
raise TypeError('bad_test')
| 255 | Python | .py | 6 | 39 | 92 | 0.723577 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,367 | good_test.py | ansible_ansible/test/integration/targets/jinja_plugins/test_plugins/good_test.py | # Copyright (c) 2021 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
class TestModule:
def tests(self):
return {
'world': lambda x: x.lower() == 'world',
}
| 299 | Python | .py | 8 | 32 | 92 | 0.645833 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,368 | helloworld.py | ansible_ansible/test/integration/targets/want_json_modules_posix/library/helloworld.py | #!/usr/bin/python
# 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 is distributed... | 1,083 | Python | .py | 28 | 36.785714 | 73 | 0.741905 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,369 | constructed_with_hostvars.py | ansible_ansible/test/integration/targets/inventory/inventory_plugins/constructed_with_hostvars.py | # Copyright (c) 2022 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: constructed_with_hostvars
options:
plugin:
description: the load name of the plugin
extends_documenta... | 1,632 | Python | .py | 31 | 44.935484 | 131 | 0.699182 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,370 | unexpected.py | ansible_ansible/test/integration/targets/unexpected_executor_exception/action_plugins/unexpected.py | from __future__ import annotations
from ansible.plugins.action import ActionBase
class ActionModule(ActionBase):
TRANSFERS_FILES = False
def run(self, tmp=None, task_vars=None):
raise Exception('boom')
| 222 | Python | .py | 6 | 32.666667 | 45 | 0.754717 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,371 | helloworld.py | ansible_ansible/test/integration/targets/include_import/playbook/sub_playbook/library/helloworld.py | #!/usr/bin/python
# 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 is distributed... | 902 | Python | .py | 22 | 39.136364 | 70 | 0.757159 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,372 | module_that_logs.py | ansible_ansible/test/integration/targets/module_no_log/library/module_that_logs.py | #!/usr/bin/python
from __future__ import annotations
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(argument_spec=dict(
number=dict(type='int'),
))
module.log('My number is: (%d)' % module.params['number'])
module.exit_json()
if __name__ == '__main_... | 335 | Python | .py | 11 | 26.363636 | 62 | 0.660377 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,373 | module_that_has_secret.py | ansible_ansible/test/integration/targets/module_no_log/library/module_that_has_secret.py | #!/usr/bin/python
from __future__ import annotations
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(argument_spec=dict(
secret=dict(no_log=True),
notsecret=dict(no_log=False),
))
msg = "My secret is: (%s), but don't tell %s" % (module.params['secr... | 493 | Python | .py | 12 | 36.583333 | 105 | 0.669474 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,374 | create-role-archive.py | ansible_ansible/test/integration/targets/ansible-galaxy-role/files/create-role-archive.py | #!/usr/bin/env python
"""Create a role archive which overwrites an arbitrary file."""
from __future__ import annotations
import argparse
import os
import pathlib
import tarfile
import tempfile
def main() -> None:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('archive', type=pathli... | 1,947 | Python | .py | 45 | 35.955556 | 110 | 0.661718 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,375 | fix-urls.py | ansible_ansible/test/integration/targets/ansible-doc/fix-urls.py | """Unwrap URLs to docs.ansible.com and remove version"""
from __future__ import annotations
import re
import sys
def main():
data = sys.stdin.read()
data = re.sub('(https://docs\\.ansible\\.com/[^ ]+)\n +([^ ]+)\n', '\\1\\2\n', data, flags=re.MULTILINE)
data = re.sub('https://docs\\.ansible\\.com/ansible... | 461 | Python | .py | 11 | 38.636364 | 128 | 0.604494 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,376 | other.py | ansible_ansible/test/integration/targets/ansible-doc/filter_plugins/other.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.utils.display import Display
display = Display()
def donothing(a):
return a
class FilterModule(object):
""" Ansible core jinja2 filters """
def filters(self):
... | 484 | Python | .py | 15 | 25.666667 | 92 | 0.644252 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,377 | test1.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol3/plugins/modules/test1.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = """
module: test1
short_description: Foo module in testcol3
description:
- This is a foo module.
author:
- me
"""
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(
argument_spec=dict(),
... | 389 | Python | .py | 18 | 18.388889 | 52 | 0.68595 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,378 | test2.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol4/plugins/modules/test2.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = """
module: test2
short_description: Foo module in testcol4
description:
- This is a foo module.
author:
- me
"""
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(
argument_spec=dict(),
... | 389 | Python | .py | 18 | 18.388889 | 52 | 0.68595 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,379 | module.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol2/plugins/doc_fragments/module.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
class ModuleDocFragment(object):
DOCUMENTATION = r"""
options:
testcol2option:
description:
- An option taken from testcol2
type... | 468 | Python | .py | 16 | 23.25 | 92 | 0.645089 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,380 | version_added.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol2/plugins/doc_fragments/version_added.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
class ModuleDocFragment(object):
DOCUMENTATION = r"""
options: {}
version_added: 1.0.0
"""
| 251 | Python | .py | 8 | 29.375 | 92 | 0.707113 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,381 | plugin.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol2/plugins/doc_fragments/plugin.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
class ModuleDocFragment(object):
DOCUMENTATION = r"""
options:
testcol2option:
description:
- A plugin option taken from testcol2
... | 1,276 | Python | .py | 42 | 19.238095 | 92 | 0.518699 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,382 | deprecation.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol2/plugins/doc_fragments/deprecation.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
class ModuleDocFragment(object):
DOCUMENTATION = r"""
options: {}
deprecated:
alternative: Use some other module
why: Test deprecation
removed_in: '... | 331 | Python | .py | 11 | 27.272727 | 92 | 0.705696 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,383 | statichost.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol/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... | 865 | Python | .py | 24 | 30.583333 | 92 | 0.722356 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,384 | test_test.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol/plugins/test/test_test.py | from __future__ import annotations
def yolo(value):
return True
class TestModule(object):
""" Ansible core jinja2 tests """
def tests(self):
return {
# failure testing
'yolo': yolo,
}
| 241 | Python | .py | 10 | 17.4 | 37 | 0.584071 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,385 | noop_vars_plugin.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol/plugins/vars/noop_vars_plugin.py | from __future__ import annotations
DOCUMENTATION = """
vars: noop_vars_plugin
short_description: Do NOT load host and group vars
description: don't test loading host and group vars from a collection
options:
stage:
default: all
choices: ['all', 'inventory', 'task']
type: s... | 815 | Python | .py | 23 | 28.73913 | 73 | 0.663278 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,386 | notrealmodule.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol/plugins/modules/notrealmodule.py | #!/usr/bin/python
from __future__ import annotations
import json
def main():
print(json.dumps(dict(changed=False, source='testns.testcol.notrealmodule')))
if __name__ == '__main__':
main()
| 202 | Python | .py | 7 | 26 | 81 | 0.694737 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,387 | randommodule.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol/plugins/modules/randommodule.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = r"""
---
module: randommodule
short_description: A random module
description:
- A random module.
- See O(foo.bar.baz#role:main:foo=bar) for how this is used in the P(foo.bar.baz#role)'s C(main) entrypoint.
- See L(the docsite,https://doc... | 3,704 | Python | .py | 107 | 27.747664 | 129 | 0.644711 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,388 | fakemodule.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol/plugins/modules/fakemodule.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = """
module: fakemodule
short_desciption: fake module
description:
- this is a fake module
version_added: 1.0.0
options:
_notreal:
description: really not a real option
author:
- me
"""
im... | 463 | Python | .py | 19 | 19.421053 | 78 | 0.638444 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,389 | subdir_module.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol/plugins/modules/database/database_type/subdir_module.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = """
---
module: subdir_module
short_description: A module in multiple subdirectories
description:
- A module in multiple subdirectories
author:
- Ansible Core Team
version_added: 1.0.0
options: {}
"""
EXAMPLES = """
"""
RETURN = """
"""
... | 515 | Python | .py | 25 | 17.88 | 54 | 0.693111 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,390 | noop.py | ansible_ansible/test/integration/targets/ansible-doc/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
author: Ansible core team
short_description: returns input
description:
- this is a noop
deprecated:
... | 1,010 | Python | .py | 33 | 26.090909 | 92 | 0.695967 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,391 | grouped.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol/plugins/filter/grouped.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.utils.display import Display
display = Display()
def nochange(a):
return a
def meaningoflife(a):
return 42
class FilterModule(object):
""" Ansible core jinja2... | 540 | Python | .py | 16 | 27.875 | 92 | 0.675097 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,392 | in_subdir.py | ansible_ansible/test/integration/targets/ansible-doc/collections/ansible_collections/testns/testcol/plugins/filter/filter_subdir/in_subdir.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.utils.display import Display
display = Display()
def nochange(a):
return a
class FilterModule(object):
""" Ansible core jinja2 filters """
def filters(self):
... | 408 | Python | .py | 13 | 25.769231 | 92 | 0.664083 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,393 | notjsonfile.py | ansible_ansible/test/integration/targets/ansible-doc/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
short_description: JSON formatted files.
description:
- This cache uses JSON formatted, per host, files ... | 1,987 | Python | .py | 62 | 23.225806 | 92 | 0.60625 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,394 | _deprecated_with_docs.py | ansible_ansible/test/integration/targets/ansible-doc/lookup_plugins/_deprecated_with_docs.py | # Copyright (c) 2022 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: deprecated_with_docs
short_description: test lookup
description: test lookup
author: Ansible Core Team
ver... | 543 | Python | .py | 20 | 22.9 | 92 | 0.671815 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,395 | _deprecated_with_adj_docs.py | ansible_ansible/test/integration/targets/ansible-doc/lookup_plugins/_deprecated_with_adj_docs.py | # Copyright (c) 2022 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
| 166 | Python | .py | 3 | 54 | 92 | 0.759259 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,396 | statichost.py | ansible_ansible/test/integration/targets/ansible-doc/broken-docs/collections/ansible_collections/testns/testcol/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
broken:
short_description: Add a single host
description: Add a single host
extends_doc... | 881 | Python | .py | 25 | 29.64 | 92 | 0.716647 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,397 | noop_vars_plugin.py | ansible_ansible/test/integration/targets/ansible-doc/broken-docs/collections/ansible_collections/testns/testcol/plugins/vars/noop_vars_plugin.py | from __future__ import annotations
DOCUMENTATION = """
vars: noop_vars_plugin
broken:
short_description: Do NOT load host and group vars
description: don't test loading host and group vars from a collection
options:
stage:
default: all
choices: ['all', 'inventory', 'task']... | 831 | Python | .py | 24 | 27.833333 | 73 | 0.658354 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,398 | notrealmodule.py | ansible_ansible/test/integration/targets/ansible-doc/broken-docs/collections/ansible_collections/testns/testcol/plugins/modules/notrealmodule.py | #!/usr/bin/python
from __future__ import annotations
import json
def main():
print(json.dumps(dict(changed=False, source='testns.testcol.notrealmodule')))
if __name__ == '__main__':
main()
| 202 | Python | .py | 7 | 26 | 81 | 0.694737 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
13,399 | randommodule.py | ansible_ansible/test/integration/targets/ansible-doc/broken-docs/collections/ansible_collections/testns/testcol/plugins/modules/randommodule.py | #!/usr/bin/python
from __future__ import annotations
DOCUMENTATION = """
---
module: randommodule
short_description: A random module
description:
- A random module.
author:
- Ansible Core Team
version_added: 1.0.0
deprecated:
alternative: Use some other module
why: Test deprecation
removed_in: '3.... | 2,124 | Python | .py | 82 | 18.646341 | 81 | 0.591424 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |