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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14,400 | unarchive.py | ansible_ansible/lib/ansible/plugins/action/unarchive.py | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2013, Dylan Martin <dmartin@seattlecentral.edu>
#
# 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 v... | 4,859 | Python | .py | 90 | 43.255556 | 137 | 0.637397 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,401 | wait_for_connection.py | ansible_ansible/lib/ansible/plugins/action/wait_for_connection.py | # (c) 2017, Dag Wieers <dag@wieers.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) any later version.
#
... | 4,564 | Python | .py | 92 | 40.793478 | 152 | 0.657143 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,402 | __init__.py | ansible_ansible/lib/ansible/plugins/httpapi/__init__.py | # (c) 2018 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
from abc import abstractmethod
from ansible.plugins import AnsiblePlugin
class HttpApiBase(AnsiblePlugin):
def __init__(self, connection):
super(HttpAp... | 3,093 | Python | .py | 67 | 36.58209 | 109 | 0.643831 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,403 | __init__.py | ansible_ansible/lib/ansible/plugins/cliconf/__init__.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... | 22,719 | Python | .py | 404 | 44.762376 | 140 | 0.641476 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,404 | paramiko_ssh.py | ansible_ansible/lib/ansible/plugins/connection/paramiko_ssh.py | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# (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
name: paramiko
short_description: Run tasks via Pyth... | 27,195 | Python | .py | 588 | 34.435374 | 159 | 0.589787 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,405 | local.py | ansible_ansible/lib/ansible/plugins/connection/local.py | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2015, 2017 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
DOCUMENTATION = """
name: local
short_description: execute on controlle... | 8,339 | Python | .py | 153 | 43.908497 | 144 | 0.634254 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,406 | ssh.py | ansible_ansible/lib/ansible/plugins/connection/ssh.py | # Copyright (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# Copyright 2015 Abhijit Menon-Sen <ams@2ndQuadrant.com>
# Copyright 2017 Toshio Kuratomi <tkuratomi@ansible.com>
# Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __futu... | 62,440 | Python | .py | 1,213 | 38.507832 | 157 | 0.580289 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,407 | __init__.py | ansible_ansible/lib/ansible/plugins/connection/__init__.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 collections.abc as c
import fcntl
import io
import os
import shlex
import typing as t
from... | 17,947 | Python | .py | 352 | 41.289773 | 140 | 0.636452 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,408 | psrp.py | ansible_ansible/lib/ansible/plugins/connection/psrp.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 = """
author: Ansible Core Team
name: psrp
short_description: Run tasks over Microsoft PowerShell Remoting Protocol
description:
- Run comm... | 33,543 | Python | .py | 776 | 34.460052 | 154 | 0.633412 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,409 | winrm.py | ansible_ansible/lib/ansible/plugins/connection/winrm.py | # (c) 2014, Chris Church <chris@ninemoreminutes.com>
# 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
DOCUMENTATION = """
author: Ansible Core Team
name: winrm
short_description: Run tasks o... | 42,188 | Python | .py | 827 | 38.407497 | 156 | 0.591059 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,410 | sh.py | ansible_ansible/lib/ansible/plugins/shell/sh.py | # Copyright (c) 2014, Chris Church <chris@ninemoreminutes.com>
# 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
DOCUMENTATION = """
name: sh
short_description: "POSIX shell (/bin/sh)"
version_added: hist... | 3,884 | Python | .py | 64 | 54.4375 | 396 | 0.644958 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,411 | __init__.py | ansible_ansible/lib/ansible/plugins/shell/__init__.py | # (c) 2016 RedHat
#
# 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 distribu... | 8,985 | Python | .py | 180 | 41.538889 | 138 | 0.643444 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,412 | powershell.py | ansible_ansible/lib/ansible/plugins/shell/powershell.py | # Copyright (c) 2014, Chris Church <chris@ninemoreminutes.com>
# 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
DOCUMENTATION = '''
name: powershell
version_added: historical
short_description: Windows P... | 13,134 | Python | .py | 275 | 38.025455 | 167 | 0.602966 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,413 | cmd.py | ansible_ansible/lib/ansible/plugins/shell/cmd.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 = """
name: cmd
version_added: '2.8'
short_description: Windows Command Prompt
description:
- Used with the 'ssh' connection plugin and no C... | 2,170 | Python | .py | 42 | 45.761905 | 136 | 0.683065 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,414 | password.py | ansible_ansible/lib/ansible/plugins/lookup/password.py | # (c) 2012, Daniel Hokka Zakrisson <daniel@hozac.com>
# (c) 2013, Javier Candeira <javier@candeira.com>
# (c) 2013, Maykel Moya <mmoya@speedyrails.com>
# (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
DOCUMENTATIO... | 17,585 | Python | .py | 350 | 41.02 | 153 | 0.637153 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,415 | template.py | ansible_ansible/lib/ansible/plugins/lookup/template.py | # Copyright: (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# Copyright: (c) 2012-17, 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: template
author: Michael DeHaan
version_added... | 7,112 | Python | .py | 146 | 38.130137 | 159 | 0.636744 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,416 | csvfile.py | ansible_ansible/lib/ansible/plugins/lookup/csvfile.py | # (c) 2013, Jan-Piet Mens <jpmens(at)gmail.com>
# (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 = r"""
name: csvfile
author: Jan-Piet Mens (@jpmens) <jpmens(at)gmail.com>
version_added: ... | 7,928 | Python | .py | 178 | 36.702247 | 156 | 0.635337 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,417 | dict.py | ansible_ansible/lib/ansible/plugins/lookup/dict.py | # (c) 2014, Kent R. Spillner <kspillner@acm.org>
# (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 = """
name: dict
version_added: "1.5"
short_description: returns key/value pair items fro... | 2,198 | Python | .py | 65 | 28 | 128 | 0.653157 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,418 | first_found.py | ansible_ansible/lib/ansible/plugins/lookup/first_found.py | # (c) 2013, seth vidal <skvidal@fedoraproject.org> 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 = """
name: first_found
author: Seth Vidal (!UNKNOWN) <skvidal@fedoraproject.o... | 8,985 | Python | .py | 209 | 34.899522 | 152 | 0.636728 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,419 | fileglob.py | ansible_ansible/lib/ansible/plugins/lookup/fileglob.py | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# (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 = """
name: fileglob
author: Michael DeHaan
version_added: "1.4"
short_descripti... | 3,056 | Python | .py | 74 | 32.905405 | 154 | 0.629081 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,420 | config.py | ansible_ansible/lib/ansible/plugins/lookup/config.py | # (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 = """
name: config
author: Ansible Core Team
version_added: "2.5"
short_description: Display the 'resolved' Ansible option values.
... | 6,907 | Python | .py | 140 | 40.828571 | 151 | 0.654149 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,421 | pipe.py | ansible_ansible/lib/ansible/plugins/lookup/pipe.py | # (c) 2012, Daniel Hokka Zakrisson <daniel@hozac.com>
# (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 = r"""
name: pipe
author: Daniel Hokka Zakrisson (!UNKNOWN) <daniel@hozac.com>
versi... | 3,031 | Python | .py | 63 | 41.285714 | 146 | 0.687183 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,422 | vars.py | ansible_ansible/lib/ansible/plugins/lookup/vars.py | # (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 = """
name: vars
author: Ansible Core Team
version_added: "2.5"
short_description: Lookup templated value of variables
description... | 3,424 | Python | .py | 88 | 31.693182 | 137 | 0.648689 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,423 | unvault.py | ansible_ansible/lib/ansible/plugins/lookup/unvault.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: unvault
author: Ansible Core Team
version_added: "2.10"
short_description: read vaulted file(s) contents
description:
... | 2,049 | Python | .py | 52 | 32.5 | 126 | 0.660282 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,424 | file.py | ansible_ansible/lib/ansible/plugins/lookup/file.py | # (c) 2012, Daniel Hokka Zakrisson <daniel@hozac.com>
# (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 = """
name: file
author: Daniel Hokka Zakrisson (!UNKNOWN) <daniel@hozac.com>
versio... | 3,271 | Python | .py | 78 | 33.653846 | 117 | 0.643823 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,425 | url.py | ansible_ansible/lib/ansible/plugins/lookup/url.py | # (c) 2015, Brian Coca <bcoca@ansible.com>
# (c) 2012-17 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: url
author: Brian Coca (@bcoca)
version_added: "1.9"
short_description: return contents from... | 9,583 | Python | .py | 259 | 29.745174 | 149 | 0.645144 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,426 | together.py | ansible_ansible/lib/ansible/plugins/lookup/together.py | # (c) 2013, Bradley Young <young.bradley@gmail.com>
# (c) 2012-17 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: together
author: Bradley Young (!UNKNOWN) <young.bradley@gmail.com>
ve... | 2,110 | Python | .py | 56 | 32.482143 | 95 | 0.647088 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,427 | sequence.py | ansible_ansible/lib/ansible/plugins/lookup/sequence.py | # (c) 2013, Jayson Vantuyl <jayson@aggressive.ly>
# (c) 2012-17 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: sequence
author: Jayson Vantuyl (!UNKNOWN) <jayson@aggressive.ly>
version... | 8,120 | Python | .py | 199 | 32.356784 | 157 | 0.604592 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,428 | __init__.py | ansible_ansible/lib/ansible/plugins/lookup/__init__.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... | 4,680 | Python | .py | 101 | 38.574257 | 155 | 0.668497 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,429 | lines.py | ansible_ansible/lib/ansible/plugins/lookup/lines.py | # (c) 2012, Daniel Hokka Zakrisson <daniel@hozac.com>
# (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 = """
name: lines
author: Daniel Hokka Zakrisson (!UNKNOWN) <daniel@hozac.com>
vers... | 2,254 | Python | .py | 52 | 37.884615 | 129 | 0.695255 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,430 | indexed_items.py | ansible_ansible/lib/ansible/plugins/lookup/indexed_items.py | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# (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 = """
name: indexed_items
author: Michael DeHaan
version_added: "1.3"
short_desc... | 1,532 | Python | .py | 41 | 32.658537 | 138 | 0.691425 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,431 | env.py | ansible_ansible/lib/ansible/plugins/lookup/env.py | # (c) 2012, Jan-Piet Mens <jpmens(at)gmail.com>
# (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 = """
name: env
author: Jan-Piet Mens (@jpmens) <jpmens(at)gmail.com>
version_added: "0.9"... | 2,621 | Python | .py | 64 | 35.453125 | 105 | 0.683445 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,432 | nested.py | ansible_ansible/lib/ansible/plugins/lookup/nested.py | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# (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 = """
name: nested
version_added: "1.1"
short_description: composes a list with nest... | 2,649 | Python | .py | 72 | 30.583333 | 123 | 0.649903 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,433 | inventory_hostnames.py | ansible_ansible/lib/ansible/plugins/lookup/inventory_hostnames.py | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2013, Steven Dossett <sdossett@panath.com>
# (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 = """
name: inventory_hostnames
author... | 1,716 | Python | .py | 44 | 33.795455 | 119 | 0.698918 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,434 | varnames.py | ansible_ansible/lib/ansible/plugins/lookup/varnames.py | # (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 = """
name: varnames
author: Ansible Core Team
version_added: "2.8"
short_description: Lookup matching variable names
description:... | 2,330 | Python | .py | 59 | 33.389831 | 119 | 0.666075 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,435 | random_choice.py | ansible_ansible/lib/ansible/plugins/lookup/random_choice.py | # (c) 2013, Michael DeHaan <michael.dehaan@gmail.com>
# (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 = """
name: random_choice
author: Michael DeHaan
version_added: "1.1"
short_desc... | 1,543 | Python | .py | 43 | 30.767442 | 138 | 0.686117 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,436 | list.py | ansible_ansible/lib/ansible/plugins/lookup/list.py | # (c) 2012-17 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: list
author: Ansible Core Team
version_added: "2.0"
short_description: simply returns what it is given.
descripti... | 1,058 | Python | .py | 33 | 28.090909 | 116 | 0.707389 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,437 | ini.py | ansible_ansible/lib/ansible/plugins/lookup/ini.py | # (c) 2015, Yannig Perre <yannig.perre(at)gmail.com>
# (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 = """
name: ini
author: Yannig Perre (!UNKNOWN) <yannig.perre(at)gmail.com>
version_a... | 8,421 | Python | .py | 189 | 34.116402 | 138 | 0.600829 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,438 | items.py | ansible_ansible/lib/ansible/plugins/lookup/items.py | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# (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 = """
name: items
author: Michael DeHaan
version_added: historical
short_descrip... | 1,815 | Python | .py | 60 | 25.95 | 145 | 0.664945 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,439 | subelements.py | ansible_ansible/lib/ansible/plugins/lookup/subelements.py | # (c) 2013, Serge van Ginderachter <serge@vanginderachter.be>
# (c) 2012-17 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: subelements
author: Serge van Ginderachter (!UNKNOWN) <serge@vang... | 6,272 | Python | .py | 148 | 31.527027 | 142 | 0.574705 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,440 | __init__.py | ansible_ansible/lib/ansible/plugins/terminal/__init__.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,420 | Python | .py | 103 | 36.427184 | 88 | 0.687966 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,441 | tree.py | ansible_ansible/lib/ansible/plugins/callback/tree.py | # (c) 2012-2014, Ansible, 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 = """
name: tree
type: notification
requirements:
- invoked in the command line
short_description... | 3,014 | Python | .py | 68 | 36.367647 | 143 | 0.64971 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,442 | minimal.py | ansible_ansible/lib/ansible/plugins/callback/minimal.py | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
# (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 = """
name: minimal
type: stdout
short_description: minimal Ansible screen out... | 3,008 | Python | .py | 58 | 44.482759 | 157 | 0.651877 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,443 | oneline.py | ansible_ansible/lib/ansible/plugins/callback/oneline.py | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
# (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 = """
name: oneline
type: stdout
short_description: oneline Ansible screen out... | 3,450 | Python | .py | 59 | 49.067797 | 149 | 0.617185 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,444 | default.py | ansible_ansible/lib/ansible/plugins/callback/default.py | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
# (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 = """
name: default
type: stdout
short_description: default Ansible screen out... | 16,883 | Python | .py | 324 | 40.774691 | 144 | 0.589621 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,445 | junit.py | ansible_ansible/lib/ansible/plugins/callback/junit.py | # (c) 2016 Matt Clay <matt@mystile.com>
# (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 = """
name: junit
type: aggregate
short_description: write playbook output to a JUnit file.
v... | 13,773 | Python | .py | 297 | 36.508418 | 158 | 0.615138 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,446 | __init__.py | ansible_ansible/lib/ansible/plugins/callback/__init__.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... | 25,579 | Python | .py | 520 | 38.657692 | 160 | 0.62146 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,447 | host_pinned.py | ansible_ansible/lib/ansible/plugins/strategy/host_pinned.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,875 | Python | .py | 37 | 46.864865 | 133 | 0.746179 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,448 | __init__.py | ansible_ansible/lib/ansible/plugins/strategy/__init__.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... | 57,303 | Python | .py | 1,061 | 39.187559 | 146 | 0.574611 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,449 | linear.py | ansible_ansible/lib/ansible/plugins/strategy/linear.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... | 17,418 | Python | .py | 298 | 38.35906 | 145 | 0.522919 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,450 | debug.py | ansible_ansible/lib/ansible/plugins/strategy/debug.py | # 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 in the hope that ... | 1,205 | Python | .py | 28 | 40.178571 | 84 | 0.758738 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,451 | free.py | ansible_ansible/lib/ansible/plugins/strategy/free.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... | 16,038 | Python | .py | 262 | 41.557252 | 147 | 0.54053 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,452 | urlsplit.py | ansible_ansible/lib/ansible/plugins/filter/urlsplit.py | # 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
DOCUMENTATION = r"""
name: urlsplit
version_added: "2.4"
short_description: get components from URL
description:
- Split a URL into its comp... | 2,571 | Python | .py | 68 | 32.867647 | 120 | 0.631791 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,453 | urls.py | ansible_ansible/lib/ansible/plugins/filter/urls.py | # -*- coding: utf-8 -*-
# Copyright: (c) 2012, Dag Wieers (@dagwieers) <dag@wieers.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
from functools import partial
from urllib.parse import unquote_plus
class FilterModule(object):
... | 457 | Python | .py | 12 | 33.5 | 92 | 0.687215 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,454 | encryption.py | ansible_ansible/lib/ansible/plugins/filter/encryption.py | # Copyright: (c) 2021, Ansible Project
from __future__ import annotations
from jinja2.runtime import Undefined
from jinja2.exceptions import UndefinedError
from ansible.errors import AnsibleFilterError, AnsibleFilterTypeError
from ansible.module_utils.common.text.converters import to_native, to_bytes
from ansible.mo... | 3,240 | Python | .py | 71 | 38.732394 | 116 | 0.687858 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,455 | mathstuff.py | ansible_ansible/lib/ansible/plugins/filter/mathstuff.py | # Copyright 2014, Brian Coca <bcoca@ansible.com>
# Copyright 2017, Ken Celenza <ken@networktocode.com>
# Copyright 2017, Jason Edelman <jason@networktocode.com>
# Copyright 2017, Ansible Project
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of ... | 8,101 | Python | .py | 196 | 34.045918 | 127 | 0.659279 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,456 | __init__.py | ansible_ansible/lib/ansible/plugins/filter/__init__.py | # (c) 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 import constants as C
from ansible.plugins import AnsibleJinja2Plugin
class AnsibleJinja2Filter(AnsibleJinja2Plugin):
def _no_options(self, *args, *... | 457 | Python | .py | 8 | 54 | 126 | 0.788288 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,457 | core.py | ansible_ansible/lib/ansible/plugins/filter/core.py | # (c) 2012, Jeroen Hoekx <jeroen@hoekx.be>
# 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 glob
import hashlib
import json
import ntpath
import os.path
import re
import shlex
import sys
import time
import uuid
import ... | 23,099 | Python | .py | 556 | 33.561151 | 129 | 0.627851 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,458 | jsonfile.py | ansible_ansible/lib/ansible/plugins/cache/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 = """
name: jsonfile
short_description: JSON formatted files.
description:
- This cache... | 1,901 | Python | .py | 54 | 27.981481 | 92 | 0.652529 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,459 | memory.py | ansible_ansible/lib/ansible/plugins/cache/memory.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 = """
name: memory
short_description: RAM backed, non persistent
description:
- RAM ba... | 1,218 | Python | .py | 36 | 27.833333 | 92 | 0.64494 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,460 | __init__.py | ansible_ansible/lib/ansible/plugins/cache/__init__.py | # (c) 2014, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2018, Ansible Project
#
# 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, o... | 12,303 | Python | .py | 305 | 30.744262 | 159 | 0.596462 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,461 | base.py | ansible_ansible/lib/ansible/plugins/cache/base.py | # (c) 2017, ansible by Red Hat
#
# 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... | 907 | Python | .py | 19 | 46.684211 | 103 | 0.78354 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,462 | url_windows.py | ansible_ansible/lib/ansible/plugins/doc_fragments/url_windows.py | # -*- coding: utf-8 -*-
# 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
class ModuleDocFragment:
# Common options for Ansible.ModuleUtils.WebRequest
DOCUMENTATION = r"""
options:
method:
... | 5,491 | Python | .py | 143 | 33.475524 | 92 | 0.716451 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,463 | vars_plugin_staging.py | ansible_ansible/lib/ansible/plugins/doc_fragments/vars_plugin_staging.py | # -*- coding: utf-8 -*-
# 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
class ModuleDocFragment(object):
DOCUMENTATION = r"""
options:
stage:
description:
- Control when this vars... | 896 | Python | .py | 18 | 45.611111 | 133 | 0.718213 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,464 | action_core.py | ansible_ansible/lib/ansible/plugins/doc_fragments/action_core.py | # -*- coding: utf-8 -*-
# Copyright: (c) , Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import annotations
# WARNING: this is mostly here as a convenience for documenting core behaviours, no plugin outside of ansible-core should use this ... | 2,855 | Python | .py | 75 | 32.573333 | 156 | 0.714337 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,465 | backup.py | ansible_ansible/lib/ansible/plugins/doc_fragments/backup.py | # -*- coding: utf-8 -*-
# Copyright: (c) 2015, Ansible, Inc
# 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 documentation fragment
DOCUMENTATION = r"""
options:
backup:
descripti... | 507 | Python | .py | 15 | 30.4 | 92 | 0.72541 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,466 | decrypt.py | ansible_ansible/lib/ansible/plugins/doc_fragments/decrypt.py | # -*- coding: utf-8 -*-
# Copyright: (c) 2017, Brian Coca <bcoca@redhat.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"""
options:
... | 487 | Python | .py | 15 | 29.066667 | 92 | 0.711538 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,467 | connection_pipelining.py | ansible_ansible/lib/ansible/plugins/doc_fragments/connection_pipelining.py | # 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
class ModuleDocFragment(object):
# common shelldocumentation fragment
DOCUMENTATION = """
options:
pipelining:
default: false
... | 1,182 | Python | .py | 27 | 34.296296 | 132 | 0.653646 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,468 | url.py | ansible_ansible/lib/ansible/plugins/doc_fragments/url.py | # -*- coding: utf-8 -*-
# Copyright: (c) 2018, John Barker <gundalow@redhat.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"""
optio... | 2,799 | Python | .py | 70 | 34.985714 | 113 | 0.712661 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,469 | checksum_common.py | ansible_ansible/lib/ansible/plugins/doc_fragments/checksum_common.py | # Copyright (c) 2024 ShIRann Chen <shirannx@gmail.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):
DOCUMENTATION = r"""
options:
checksum_algorithm:
description:
- Algorithm to... | 995 | Python | .py | 24 | 34.666667 | 109 | 0.673554 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,470 | default_callback.py | ansible_ansible/lib/ansible/plugins/doc_fragments/default_callback.py | # -*- 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)
from __future__ import annotations
class ModuleDocFragment(object):
DOCUMENTATION = r"""
options:
display_skipped_hosts:
name: Show skippe... | 3,212 | Python | .py | 88 | 27.522727 | 130 | 0.613782 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,471 | inventory_cache.py | ansible_ansible/lib/ansible/plugins/doc_fragments/inventory_cache.py | # -*- 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)
from __future__ import annotations
class ModuleDocFragment(object):
# inventory cache
DOCUMENTATION = r"""
options:
cache:
description:
- To... | 1,928 | Python | .py | 69 | 22.246377 | 115 | 0.663612 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,472 | template_common.py | ansible_ansible/lib/ansible/plugins/doc_fragments/template_common.py | # -*- coding: utf-8 -*-
# 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
class ModuleDocFragment(object):
# Standard template documentation fragment, use by template and win_template.
DOCUMEN... | 4,634 | Python | .py | 115 | 36.382609 | 120 | 0.717102 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,473 | constructed.py | ansible_ansible/lib/ansible/plugins/doc_fragments/constructed.py | # -*- 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)
from __future__ import annotations
class ModuleDocFragment(object):
DOCUMENTATION = r"""
options:
strict:
description:
- If V(yes) make invali... | 2,973 | Python | .py | 78 | 31.858974 | 136 | 0.677966 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,474 | validate.py | ansible_ansible/lib/ansible/plugins/doc_fragments/validate.py | # -*- coding: utf-8 -*-
# Copyright: (c) 2015, Ansible, Inc
# 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 documentation fragment
DOCUMENTATION = r"""
options:
validate:
descript... | 833 | Python | .py | 17 | 45.470588 | 120 | 0.746617 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,475 | return_common.py | ansible_ansible/lib/ansible/plugins/doc_fragments/return_common.py | # -*- 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)
from __future__ import annotations
class ModuleDocFragment(object):
# Standard documentation fragment
RETURN = r"""
changed:
description: Whether the modu... | 1,034 | Python | .py | 38 | 24.657895 | 95 | 0.747231 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,476 | shell_windows.py | ansible_ansible/lib/ansible/plugins/doc_fragments/shell_windows.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
class ModuleDocFragment(object):
# Windows shell documentation fragment
# FIXME: set_module_language don't belong here but must be set so they d... | 1,234 | Python | .py | 38 | 28.026316 | 98 | 0.691534 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,477 | files.py | ansible_ansible/lib/ansible/plugins/doc_fragments/files.py | # -*- coding: utf-8 -*-
# Copyright: (c) 2014, 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 ModuleDocFragment(object):
# Standard files documentation fragment
# Note: mode is overridden by t... | 4,760 | Python | .py | 85 | 51.164706 | 143 | 0.736346 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,478 | shell_common.py | ansible_ansible/lib/ansible/plugins/doc_fragments/shell_common.py | # 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
class ModuleDocFragment(object):
# common shelldocumentation fragment
DOCUMENTATION = """
options:
remote_tmp:
description:
- Tempor... | 3,282 | Python | .py | 86 | 32.476744 | 136 | 0.694018 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,479 | action_common_attributes.py | ansible_ansible/lib/ansible/plugins/doc_fragments/action_common_attributes.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
class ModuleDocFragment(object):
# Standard documentation fragment
DOCUMENTATION = r"""
attributes:
check_mode:
descri... | 2,442 | Python | .py | 62 | 34.387097 | 148 | 0.722597 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,480 | result_format_callback.py | ansible_ansible/lib/ansible/plugins/doc_fragments/result_format_callback.py | # -*- 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)
from __future__ import annotations
class ModuleDocFragment(object):
DOCUMENTATION = r"""
options:
result_format:
name: Format of the task ... | 1,946 | Python | .py | 45 | 34.2 | 109 | 0.639431 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,481 | __init__.py | ansible_ansible/lib/ansible/plugins/netconf/__init__.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... | 17,094 | Python | .py | 323 | 43.934985 | 135 | 0.676555 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,482 | __init__.py | ansible_ansible/lib/ansible/_vendor/__init__.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
import os
import pkgutil
import sys
import warnings
# This package exists to host vendored top-level Python packages for downstream packaging. Any Python packages... | 2,033 | Python | .py | 34 | 54.647059 | 140 | 0.738431 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,483 | release.py | ansible_ansible/packaging/release.py | #!/usr/bin/env python
# PYTHON_ARGCOMPLETE_OK
"""Manage upstream ansible-core releases."""
from __future__ import annotations
import argparse
import contextlib
import dataclasses
import datetime
import enum
import functools
import gzip
import hashlib
import http.client
import inspect
import json
import math
import os... | 53,871 | Python | .py | 1,131 | 41.22458 | 190 | 0.679004 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,484 | build.py | ansible_ansible/packaging/cli-doc/build.py | #!/usr/bin/env python
# PYTHON_ARGCOMPLETE_OK
"""Build documentation for ansible-core CLI programs."""
from __future__ import annotations
import argparse
import dataclasses
import importlib
import inspect
import io
import itertools
import json
import pathlib
import sys
import typing as t
import warnings
import jinja... | 9,918 | Python | .py | 204 | 41.681373 | 147 | 0.680984 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,485 | 83643-fix-sanity-ignore-for-copy.yml | ansible_ansible/changelogs/fragments/83643-fix-sanity-ignore-for-copy.yml | minor_changes:
- copy - parameter ``local_follow`` was incorrectly documented as having default value ``True`` (https://github.com/ansible/ansible/pull/83643).
- copy - fix sanity test failures (https://github.com/ansible/ansible/pull/83643).
| 247 | Python | .py | 3 | 80 | 146 | 0.75 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,486 | ansible-test-pylint-fix.yml | ansible_ansible/changelogs/fragments/ansible-test-pylint-fix.yml | bugfixes:
- ansible-test - Enable the ``sys.unraisablehook`` work-around for the ``pylint`` sanity test on Python 3.11.
Previously the work-around was only enabled for Python 3.12 and later.
However, the same issue has been discovered on Python 3.11.
| 261 | Python | .py | 4 | 61.75 | 111 | 0.747082 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,487 | return_skeleton_generator.py | ansible_ansible/hacking/return_skeleton_generator.py | #!/usr/bin/env python
# (c) 2017, Will Thames <will@thames.id.au>
#
# 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 op... | 3,276 | Python | .py | 78 | 37.730769 | 88 | 0.704939 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,488 | test-module.py | ansible_ansible/hacking/test-module.py | #!/usr/bin/env python
# (c) 2012, 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
# (... | 10,811 | Python | .py | 235 | 39.26383 | 146 | 0.668695 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,489 | create-bulk-issues.py | ansible_ansible/hacking/create-bulk-issues.py | #!/usr/bin/env python
# PYTHON_ARGCOMPLETE_OK
"""Create GitHub issues for deprecated features."""
from __future__ import annotations
import abc
import argparse
import dataclasses
import os
import pathlib
import re
import subprocess
import sys
import typing as t
import yaml
try:
# noinspection PyPackageRequireme... | 10,646 | Python | .py | 307 | 28.188925 | 153 | 0.643641 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,490 | report.py | ansible_ansible/hacking/report.py | #!/usr/bin/env python
# PYTHON_ARGCOMPLETE_OK
"""A tool to aggregate data about Ansible source and testing into a sqlite DB for reporting."""
from __future__ import annotations
import argparse
import json
import os
import sqlite3
import sys
DATABASE_PATH = os.path.expanduser('~/.ansible/report.db')
BASE_PATH = os.pa... | 6,046 | Python | .py | 163 | 28.239264 | 97 | 0.588973 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,491 | update-sanity-requirements.py | ansible_ansible/hacking/update-sanity-requirements.py | #!/usr/bin/env python
# PYTHON_ARGCOMPLETE_OK
"""Generate frozen sanity test requirements from source requirements files."""
from __future__ import annotations
import argparse
import dataclasses
import pathlib
import re
import subprocess
import tempfile
import typing as t
import venv
import packaging.version
import ... | 5,744 | Python | .py | 129 | 37.062016 | 147 | 0.658335 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,492 | ansible-profile.py | ansible_ansible/hacking/ansible-profile.py | #!/usr/bin/env python
from __future__ import annotations
import cProfile
import sys
import traceback
from ansible.module_utils.common.text.converters import to_text
target = sys.argv.pop(1)
myclass = "%sCLI" % target.capitalize()
module_name = f'ansible.cli.{target}'
try:
# define cli
mycli = getattr(__impo... | 915 | Python | .py | 29 | 28.724138 | 88 | 0.722919 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,493 | backport_of_line_adder.py | ansible_ansible/hacking/backport/backport_of_line_adder.py | #!/usr/bin/env python
# (c) 2020, Red Hat, Inc. <relrod@redhat.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 o... | 9,893 | Python | .py | 229 | 35.825328 | 112 | 0.631913 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,494 | gen_distribution_version_testcase.py | ansible_ansible/hacking/tests/gen_distribution_version_testcase.py | #!/usr/bin/env python
"""
This script generated test_cases for test_distribution_version.py.
To do so it outputs the relevant files from /etc/*release, the output of distro.linux_distribution()
and the current ansible_facts regarding the distribution version.
This assumes a working ansible version in the path.
"""
... | 2,657 | Python | .py | 83 | 27.650602 | 115 | 0.66771 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,495 | get_recent_coverage_runs.py | ansible_ansible/hacking/azp/get_recent_coverage_runs.py | #!/usr/bin/env python
# (c) 2020 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 ver... | 4,083 | Python | .py | 89 | 38.88764 | 156 | 0.654321 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,496 | download.py | ansible_ansible/hacking/azp/download.py | #!/usr/bin/env python
# PYTHON_ARGCOMPLETE_OK
# (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 yo... | 7,300 | Python | .py | 178 | 31.410112 | 141 | 0.591006 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,497 | run.py | ansible_ansible/hacking/azp/run.py | #!/usr/bin/env python
# PYTHON_ARGCOMPLETE_OK
# (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 yo... | 2,542 | Python | .py | 66 | 33.954545 | 118 | 0.690486 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,498 | incidental.py | ansible_ansible/hacking/azp/incidental.py | #!/usr/bin/env python
# PYTHON_ARGCOMPLETE_OK
# (c) 2020 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 yo... | 16,861 | Python | .py | 348 | 39.287356 | 154 | 0.634067 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,499 | ansible_pytest_coverage.py | ansible_ansible/test/lib/ansible_test/_util/target/pytest/plugins/ansible_pytest_coverage.py | """Monkey patch os._exit when running under coverage so we don't lose coverage data in forks, such as with `pytest --boxed`. PYTEST_DONT_REWRITE"""
from __future__ import annotations
def pytest_configure():
"""Configure this pytest plugin."""
try:
if pytest_configure.executed:
return
e... | 1,998 | Python | .pyt | 52 | 30.173077 | 147 | 0.656104 | ansible/ansible | 62,258 | 23,791 | 861 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |