<commit_before>/// <reference path="../../../typings/main.d.ts" />

import { INodeDetailResolverService } from '../../app/services/nodedetailresolver';
import { IMinemeldConfigService } from '../../app/services/config';
import { NodeDetailInfoController } from './nodedetail.info.controller';
import { IMinemeldStatusService } from  '../../app/services/status';
import { IThrottleService } from '../../app/services/throttle';

/** @ngInject */
function credentialsListConfig($stateProvider: ng.ui.IStateProvider) {
    $stateProvider
        .state('nodedetail.credentialsinfo', {
            templateUrl: 'app/nodedetail/credentials.info.html',
            controller: NodeDetailCredentialsInfoController,
            controllerAs: 'nodedetailinfo'
        })
        .state('nodedetail.phishmeinfo', {
            templateUrl: 'app/nodedetail/credentials.info.html',
            controller: NodeDetailCredentialsInfoController,
            controllerAs: 'nodedetailinfo',
            params: {
                secretName: {
                    value: 'API KEY'
                },
                secretField: {
                    value: 'api_key'
                }
            }
        })
        .state('nodedetail.anomaliinfo', {
            templateUrl: 'app/nodedetail/credentials.info.html',
            controller: NodeDetailCredentialsInfoController,
            controllerAs: 'nodedetailinfo',
            params: {
                secretName: {
                    value: 'API KEY'
                },
                secretField: {
                    value: 'api_key'
                }
            }
        })
        .state('nodedetail.vtinfo', {
            templateUrl: 'app/nodedetail/credentials.info.html',
            controller: NodeDetailCredentialsInfoController,
            controllerAs: 'nodedetailinfo',
            params: {
                usernameEnabled: {
                    value: false
                },
                secretName: {
                    value: 'API KEY'
                },
                secretField: {
                    value: 'api_key'
                }
            }
        })
        .state('nodedetail.tmtinfo', {
            templateUrl: 'app/nodedetail/credentials.info.html',
            controller: NodeDetailCredentialsInfoController,
            controllerAs: 'nodedetailinfo',
            params: {
                usernameEnabled: {
                    value: false
                },
                secretName: {
                    value: 'API KEY'
                },
                secretField: {
                    value: 'api_key'
                }
            }
        })
        ;
}

/** @ngInject */
function credentialsRegisterClasses(NodeDetailResolver: INodeDetailResolverService) {
    NodeDetailResolver.registerClass('minemeld.ft.auscert.MaliciousURLFeed', {
        tabs: [{
            icon: 'fa fa-circle-o',
            tooltip: 'INFO',
            state: 'nodedetail.credentialsinfo',
            active: false
        },
        {
            icon: 'fa fa-area-chart',
            tooltip: 'STATS',
            state: 'nodedetail.stats',
            active: false
        },
        {
            icon: 'fa fa-asterisk',
            tooltip: 'GRAPH',
            state: 'nodedetail.graph',
            active: false
        }]
    });

    NodeDetailResolver.registerClass('minemeld.ft.mm.JSONSEQMiner', {
        tabs: [{
            icon: 'fa fa-circle-o',<commit_msg>Move AusCERT from u+p to api key<commit_after>/// <reference path="../../../typings/main.d.ts" />

import { INodeDetailResolverService } from '../../app/services/nodedetailresolver';
import { IMinemeldConfigService } from '../../app/services/config';
import { NodeDetailInfoController } from './nodedetail.info.controller';
import { IMinemeldStatusService } from  '../../app/services/status';
import { IThrottleService } from '../../app/services/throttle';

/** @ngInject */
function credentialsListConfig($stateProvider: ng.ui.IStateProvider) {
    $stateProvider
        .state('nodedetail.credentialsinfo', {
            templateUrl: 'app/nodedetail/credentials.info.html',
            controller: NodeDetailCredentialsInfoController,
            controllerAs: 'nodedetailinfo'
        })
        .state('nodedetail.phishmeinfo', {
            templateUrl: 'app/nodedetail/credentials.info.html',
            controller: NodeDetailCredentialsInfoController,
            controllerAs: 'nodedetailinfo',
            params: {
                secretName: {
                    value: 'API KEY'
                },
                secretField: {
                    value: 'api_key'
                }
            }
        })
        .state('nodedetail.auscertinfo', {
            templateUrl: 'app/nodedetail/credentials.info.html',
            controller: NodeDetailCredentialsInfoController,
            controllerAs: 'nodedetailinfo',
            params: {
                usernameEnabled: {
                    value: false
                },
                secretName: {
                    value: 'API KEY'
                },
                secretField: {
                    value: 'api_key'
                }
            }
        })
        .state('nodedetail.anomaliinfo', {
            templateUrl: 'app/nodedetail/credentials.info.html',
            controller: NodeDetailCredentialsInfoController,
            controllerAs: 'nodedetailinfo',
            params: {
                secretName: {
                    value: 'API KEY'
                },
                secretField: {
                    value: 'api_key'
                }
            }
        })
        .state('nodedetail.vtinfo', {
            templateUrl: 'app/nodedetail/credentials.info.html',
            controller: NodeDetailCredentialsInfoController,
            controllerAs: 'nodedetailinfo',
            params: {
                usernameEnabled: {
                    value: false
                },
                secretName: {
                    value: 'API KEY'
                },
                secretField: {
                    value: 'api_key'
                }
            }
        })
        .state('nodedetail.tmtinfo', {
            templateUrl: 'app/nodedetail/credentials.info.html',
            controller: NodeDetailCredentialsInfoController,
            controllerAs: 'nodedetailinfo',
            params: {
                usernameEnabled: {
                    value: false
                },
                secretName: {
                    value: 'API KEY'
                },
                secretField: {
                    value: 'api_key'
                }
            }
        })
        ;
}

/** @ngInject */
function credentialsRegisterClasses(NodeDetailResolver: INodeDetailResolverService) {
    NodeDetailResolver.registerClass('minemeld.ft.auscert.MaliciousURLFeed', {
        tabs: [{
            icon: 'fa fa-circle-o',
            tooltip: 'INFO',
            state: 'nodedetail.auscertinfo',
            active: false
        },
        {
            icon: 'fa fa-area-chart',
            tooltip: 'STATS',
            state: 'nodedetail.stats',
            active: false
        },
        {
            icon: 'fa fa-asterisk',
            tooltip: 'GRAPH',
            state: 'nodedetail.graph',
            active: false
        }]
    });

    NodeDetailResolver.registerClass('minemeld.ft.mm.JSONSEQMiner', {
        tabs: [{
            icon: 'fa fa-circle-o',
{'fraction_non_alphanumeric': 0.10969729440128582, 'fraction_numerical': 0.0, 'mean_word_length': 1.386385426653883, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7579766', 'n_tokens_mistral': 1975, 'n_tokens_neox': 1910, 'n_words': 301}