<commit_before>/*************************************************
 * Copyright (c) 2015 Ansible, Inc.
 *
 * All Rights Reserved
 *************************************************/

// import listGenerator from 'tower/shared/list-generator/main';

export default
    [   'Wait', '$location' , '$compile',  'CreateDialog',
        'GetBasePath' , 'SearchInit' , 'PaginateInit',
        'SchedulesList',
        'Rest' , 'ProcessErrors', 'managementJobsListObject', '$rootScope',
        '$state','$scope',
        function( Wait, $location, $compile, CreateDialog,
            GetBasePath, SearchInit, PaginateInit,
            SchedulesList,
            Rest, ProcessErrors, managementJobsListObject, $rootScope,
            $state, $scope) {

                var defaultUrl = GetBasePath('system_job_templates');

                var getManagementJobs = function(){
                    Rest.setUrl(defaultUrl);
                    Rest.get()
                        .success(function(data){
                            console.info(data.results);
                            $scope.mgmtCards = data.results;
                            Wait('stop');
                        })
                        .error(function(data, status){
                            ProcessErrors($scope, data, status, null, {hdr: 'Error!',
                            msg: 'Call to '+ defaultUrl + ' failed. Return status: '+ status});
                        });<commit_msg>Removing debug statement that slipped by.<commit_after>/*************************************************
 * Copyright (c) 2015 Ansible, Inc.
 *
 * All Rights Reserved
 *************************************************/

// import listGenerator from 'tower/shared/list-generator/main';

export default
    [   'Wait', '$location' , '$compile',  'CreateDialog',
        'GetBasePath' , 'SearchInit' , 'PaginateInit',
        'SchedulesList',
        'Rest' , 'ProcessErrors', 'managementJobsListObject', '$rootScope',
        '$state','$scope',
        function( Wait, $location, $compile, CreateDialog,
            GetBasePath, SearchInit, PaginateInit,
            SchedulesList,
            Rest, ProcessErrors, managementJobsListObject, $rootScope,
            $state, $scope) {

                var defaultUrl = GetBasePath('system_job_templates');

                var getManagementJobs = function(){
                    Rest.setUrl(defaultUrl);
                    Rest.get()
                        .success(function(data){
                            $scope.mgmtCards = data.results;
                            Wait('stop');
                        })
                        .error(function(data, status){
                            ProcessErrors($scope, data, status, null, {hdr: 'Error!',
                            msg: 'Call to '+ defaultUrl + ' failed. Return status: '+ status});
                        });
{'fraction_non_alphanumeric': 0.17998610145934676, 'fraction_numerical': 0.002779708130646282, 'mean_word_length': 1.8336614173228347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2765558', 'n_tokens_mistral': 708, 'n_tokens_neox': 665, 'n_words': 148}