<commit_before>MetricsStateConfig.$inject = ['$stateProvider'];

export function MetricsStateConfig($stateProvider) {
    $stateProvider.state('<%=jhiPrefix%>-metrics', {
        parent: 'admin',
        url: '/metrics',
        data: {
            authorities: ['ROLE_ADMIN'],
            pageTitle: 'metrics.title'
        },
        views: {
            'content@': {
                template: '<jhi-metrics></jhi-metrics>'
            }
        },
        resolve: {
            translatePartialLoader: ['$translate', '$translatePartialLoader', function ($translate, $translatePartialLoader) {
                $translatePartialLoader.addPart('metrics');
                return $translate.refresh();
            }]
        }
    });
}<commit_msg>ng2: (admin) add metrics state<commit_after>import { <%=jhiPrefixCapitalized%>MetricsMonitoringComponent } from './metrics.component';

export const metricsState = {
    name: '<%=jhiPrefix%>-metrics',
    parent: 'admin',
    url: '/metrics',
    data: {
        authorities: ['ROLE_ADMIN'],
        pageTitle: 'metrics.title'
    },
    views: {
        'content@': { component: <%=jhiPrefixCapitalized%>MetricsMonitoringComponent }
    },
    resolve: {
        translatePartialLoader: ['$translate', '$translatePartialLoader', function ($translate, $translatePartialLoader) {
            $translatePartialLoader.addPart('metrics');
            return $translate.refresh();
        }]
    }
}
{'fraction_non_alphanumeric': 0.14750692520775624, 'fraction_numerical': 0.0006925207756232687, 'mean_word_length': 2.5591133004926108, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '20588', 'n_tokens_mistral': 391, 'n_tokens_neox': 378, 'n_words': 65}