<commit_before>/*********************************************
 *  Copyright (c) 2013 AnsibleWorks, Inc.
 *
 *  Inventories.js 
 *  List view object for Inventories data model.
 *
 * 
 */
angular.module('InventoriesListDefinition', [])
    .value(
    'InventoryList', {
        
        name: 'inventories',
        iterator: 'inventory',
        selectTitle: 'Add Inventories',
        editTitle: 'Inventories',
        selectInstructions: 'Click on a row to select it, and click Finished when done. Use the green <i class=\"icon-plus\"></i> button to create a new row.', 
        index: true,
        hover: true,
        
        fields: {
            name: {
                key: true,
                label: 'Name'
                },
            description: {
                label: 'Description'
                },
            organization: {
                label: 'Organization',
                ngBind: 'inventory.summary_fields.organization.name',
                sourceModel: 'organization',
                sourceField: 'name'
                },
            has_active_failures: {
                label: 'Failed Jobs?',
                showValue: false,
                text: 'View failures',
                ngShow: "\{\{ inventory.has_active_failures \}\}",
                icon: 'icon-exclamation-sign',
                "class": 'active-failures-\{\{ inventory.has_active_failures \}\}',
                ngClick: 'viewJobs(\{\{ inventory.id \}\})',
                searchField: 'has_active_failures',
                searchType: 'boolean',
                searchOptions: [{ name: "No", value: 0 }, { name: "Yes", value: 1 }],<commit_msg>Excluded Organization from Inventory list when inventory list displayed in a modal dialog.<commit_after>/*********************************************
 *  Copyright (c) 2013 AnsibleWorks, Inc.
 *
 *  Inventories.js 
 *  List view object for Inventories data model.
 *
 * 
 */
angular.module('InventoriesListDefinition', [])
    .value(
    'InventoryList', {
        
        name: 'inventories',
        iterator: 'inventory',
        selectTitle: 'Add Inventories',
        editTitle: 'Inventories',
        selectInstructions: 'Click on a row to select it, and click Finished when done. Use the green <i class=\"icon-plus\"></i> button to create a new row.', 
        index: true,
        hover: true,
        
        fields: {
            name: {
                key: true,
                label: 'Name'
                },
            description: {
                label: 'Description'
                },
            organization: {
                label: 'Organization',
                ngBind: 'inventory.summary_fields.organization.name',
                sourceModel: 'organization',
                sourceField: 'name',
                excludeModal: true
                },
            has_active_failures: {
                label: 'Failed Jobs?',
                showValue: false,
                text: 'View failures',
                ngShow: "\{\{ inventory.has_active_failures \}\}",
                icon: 'icon-exclamation-sign',
                "class": 'active-failures-\{\{ inventory.has_active_failures \}\}',
                ngClick: 'viewJobs(\{\{ inventory.id \}\})',
                searchField: 'has_active_failures',
                searchType: 'boolean',
                searchOptions: [{ name: "No", value: 0 }, { name: "Yes", value: 1 }],
{'fraction_non_alphanumeric': 0.14477917519742614, 'fraction_numerical': 0.0035097981866042704, 'mean_word_length': 1.6307692307692307, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 7, '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': '7470617', 'n_tokens_mistral': 938, 'n_tokens_neox': 865, 'n_words': 222}