<commit_before>/*********************************************
 *  Copyright (c) 2015 AnsibleWorks, Inc.
 *
 *  Adhoc.js
 *  Form definition for the Adhoc model.
 *
 */
 /**
 * @ngdoc function
 * @name forms.function:Adhoc
 * @description This form is for executing an adhoc command
*/

export default
    angular.module('AdhocFormDefinition', [])
        .value('AdhocForm', {
            editTitle: 'Execute Command',
            name: 'adhoc',
            well: true,
            forceListeners: true,

            fields: {
                module_name: {
                    label: 'Module',
                    excludeModal: true,
                    type: 'select',
                    ngOptions: 'module.label for module in adhoc_module_options' +
                        ' track by module.value',
                    ngChange: 'moduleChange()',
                    editRequired: true,
                    awPopOver:'<p>These are the modules that Tower supports ' +
                        'running commands against.',
                    dataTitle: 'Module',
                    dataPlacement: 'right',
                    dataContainer: 'body'
                },
                module_args: {
                    label: 'Arguments',
                    type: 'text',
                    awPopOverWatch: 'argsPopOver',
                    awPopOver: 'See adhoc controller...set as argsPopOver',
                    dataTitle: 'Arguments',
                    dataPlacement: 'right',
                    dataContainer: 'body',
                    editRequired: false,
                    autocomplete: false
                },
                limit: {
                    label: 'Host Pattern',
                    type: 'text',
                    addRequired: false,
                    editRequired: false,
                    awPopOver: '<p>The pattern used to target hosts in the ' +
                        'inventory. Leaving the field blank, all, and * will ' +
                        'all target all hosts in the inventory.  You can find ' +
                        'more information about Ansible\'s host patterns ' +
                        '<a id=\"adhoc_form_hostpatterns_doc_link\"' +
                        'href=\"http://docs.ansible.com/intro_patterns.html\" ' +
                        'target=\"_blank\">here</a>.</p>',
                    dataTitle: 'Host Pattern',
                    dataPlacement: 'right',
                    dataContainer: 'body'
                },
                credential: {
                    label: 'Machine Credential',
                    type: 'lookup',
                    sourceModel: 'credential',
                    sourceField: 'name',
                    ngClick: 'lookUpCredential()',
                    class: 'squeeze',
                    awPopOver: '<p>Select the credential you want to use when ' +
                        'accessing the remote hosts to run the command. ' +
                        'Choose the credential containing ' +
                        'the username and SSH key or password that <PASSWORD>ile ' +
                        'will need to log into the remote hosts.</p>',
                    dataTitle: 'Credential',
                    dataPlacement: 'right',
                    dataContainer: 'body',
                    awRequiredWhen: {
                        variable: 'credRequired',
                        init: 'false'
                    }
                },
                become_enabled: {
                    label: 'Enable Privilege Escalation',
                    type: 'checkbox',
                    addRequired: false,
                    editRequird: false,
                    column: 2,
                    awPopOver: "<p>If enabled,  run this playbook as an administrator. This is the equivalent of passing the<code> --become</code> option to the <code> ansible</code> command. </p>",
                    dataPlacement: 'right',
                    dataTitle: 'Become Privilege Escalation',
                    dataContainer: "body"
                },
                verbosity: {
                    label: 'Verbosity',
                    excludeModal: true,
                    type: 'select',
                    ngOptions: 'verbosity.label for verbosity in ' +
                        'adhoc_verbosity_options ' +
                        'track by verbosity.value',
                    "default": 1,
                    editRequired: true,
                    awPopOver:'<p>These are the verbosity levels for standard ' +
                        'out of the command run that are supported.',
                    dataTitle: 'Module',
                    dataPlacement: 'right',
                    dataContainer: 'body',
                    default: 1
                },
                forks: {
                    label: 'Forks',
                    id: 'forks-number',
                    type: 'number',
                    integer: true,
                    min: 0,
                    spinner: true,
                    "default": 0,
                    addRequired: false,
                    editRequired: false,
                    'class': "input-small",
                    column: 1,
                    awPopOver: '<p>The number of parallel or simultaneous processes to use while executing the command. 0 signifies ' +
                        'the default value from the <a id="ansible_forks_docs" href=\"http://docs.ansible.com/intro_configuration.html#the-ansible-configuration-file\" ' +
                        ' target=\"_blank\">ansible configuration file</a>.</p>',
                    dataTitle: 'Forks',
                    dataPlacement: 'right',
                    dataContainer: "body"
                },
            },

            buttons: {
                launch: {
                    label: 'Launch',
                    ngClick: 'launchJob()',
                    ngDisabled: true
                },
                reset: {
                    ngClick: 'formReset()',
                    ngDisabled: true
                }
            },

            related: {}
        });
<commit_msg>fix grunt errors<commit_after>/*********************************************
 *  Copyright (c) 2015 AnsibleWorks, Inc.
 *
 *  Adhoc.js
 *  Form definition for the Adhoc model.
 *
 */
 /**
 * @ngdoc function
 * @name forms.function:Adhoc
 * @description This form is for executing an adhoc command
*/

export default
    angular.module('AdhocFormDefinition', [])
        .value('AdhocForm', {
            editTitle: 'Execute Command',
            name: 'adhoc',
            well: true,
            forceListeners: true,

            fields: {
                module_name: {
                    label: 'Module',
                    excludeModal: true,
                    type: 'select',
                    ngOptions: 'module.label for module in adhoc_module_options' +
                        ' track by module.value',
                    ngChange: 'moduleChange()',
                    editRequired: true,
                    awPopOver:'<p>These are the modules that Tower supports ' +
                        'running commands against.',
                    dataTitle: 'Module',
                    dataPlacement: 'right',
                    dataContainer: 'body'
                },
                module_args: {
                    label: 'Arguments',
                    type: 'text',
                    awPopOverWatch: 'argsPopOver',
                    awPopOver: 'See adhoc controller...set as argsPopOver',
                    dataTitle: 'Arguments',
                    dataPlacement: 'right',
                    dataContainer: 'body',
                    editRequired: false,
                    autocomplete: false
                },
                limit: {
                    label: 'Host Pattern',
                    type: 'text',
                    addRequired: false,
                    editRequired: false,
                    awPopOver: '<p>The pattern used to target hosts in the ' +
                        'inventory. Leaving the field blank, all, and * will ' +
                        'all target all hosts in the inventory.  You can find ' +
                        'more information about Ansible\'s host patterns ' +
                        '<a id=\"adhoc_form_hostpatterns_doc_link\"' +
                        'href=\"http://docs.ansible.com/intro_patterns.html\" ' +
                        'target=\"_blank\">here</a>.</p>',
                    dataTitle: 'Host Pattern',
                    dataPlacement: 'right',
                    dataContainer: 'body'
                },
                credential: {
                    label: 'Machine Credential',
                    type: 'lookup',
                    sourceModel: 'credential',
                    sourceField: 'name',
                    ngClick: 'lookUpCredential()',
                    class: 'squeeze',
                    awPopOver: '<p>Select the credential you want to use when ' +
                        'accessing the remote hosts to run the command. ' +
                        'Choose the credential containing ' +
                        'the username and SSH key or password that <PASSWORD> ' +
                        'will need to log into the remote hosts.</p>',
                    dataTitle: 'Credential',
                    dataPlacement: 'right',
                    dataContainer: 'body',
                    awRequiredWhen: {
                        variable: 'credRequired',
                        init: 'false'
                    }
                },
                become_enabled: {
                    label: 'Enable Privilege Escalation',
                    type: 'checkbox',
                    addRequired: false,
                    editRequird: false,
                    column: 2,
                    awPopOver: "<p>If enabled,  run this playbook as an administrator. This is the equivalent of passing the<code> --become</code> option to the <code> ansible</code> command. </p>",
                    dataPlacement: 'right',
                    dataTitle: 'Become Privilege Escalation',
                    dataContainer: "body"
                },
                verbosity: {
                    label: 'Verbosity',
                    excludeModal: true,
                    type: 'select',
                    ngOptions: 'verbosity.label for verbosity in ' +
                        'adhoc_verbosity_options ' +
                        'track by verbosity.value',
                    editRequired: true,
                    awPopOver:'<p>These are the verbosity levels for standard ' +
                        'out of the command run that are supported.',
                    dataTitle: 'Module',
                    dataPlacement: 'right',
                    dataContainer: 'body',
                    "default": 1
                },
                forks: {
                    label: 'Forks',
                    id: 'forks-number',
                    type: 'number',
                    integer: true,
                    min: 0,
                    spinner: true,
                    "default": 0,
                    addRequired: false,
                    editRequired: false,
                    'class': "input-small",
                    column: 1,
                    awPopOver: '<p>The number of parallel or simultaneous processes to use while executing the command. 0 signifies ' +
                        'the default value from the <a id="ansible_forks_docs" href=\"http://docs.ansible.com/intro_configuration.html#the-ansible-configuration-file\" ' +
                        ' target=\"_blank\">ansible configuration file</a>.</p>',
                    dataTitle: 'Forks',
                    dataPlacement: 'right',
                    dataContainer: "body"
                },
            },

            buttons: {
                launch: {
                    label: 'Launch',
                    ngClick: 'launchJob()',
                    ngDisabled: true
                },
                reset: {
                    ngClick: 'formReset()',
                    ngDisabled: true
                }
            },

            related: {}
        });

{'fraction_non_alphanumeric': 0.0978633175664655, 'fraction_numerical': 0.0017126080574131463, 'mean_word_length': 1.0606620736010755, 'pattern_counts': {'":': 4, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3373708', 'n_tokens_mistral': 2939, 'n_tokens_neox': 2638, 'n_words': 748}