<commit_before>module App {
    import NotifyType = csComp.Services.NotifyType;
    angular
        .module('csWebApp')
        .directive('simList', [function (): ng.IDirective {
            return {
                templateUrl: 'app/simlist/simlist.directive.html',
                restrict: 'E',
                scope: {
                    webserviceUrl: '@simWebserviceUrl',
                    simulation: '@simName',
                    version: '@simVersion'
                },
                controller: SimListController,
                controllerAs: 'vm',
                bindToController: true
            };
        }]);

    export class SimListController {
        public static $inject = ['SimWebService', 'messageBusService'];

        private webserviceUrl: string;
        private simulation: string;
        private version: string;
        private tasks: ITask[];
        private status: string;

        constructor(private SimWebService: App.SimWebService,
                    private messageBusService: csComp.Services.MessageBusService) {
            this.updateView();
        }

        public updateView = (): ng.IPromise<void> => {
            return this.SimWebService.list(this.webserviceUrl, this.simulation, this.version)
                .then((response: ng.IHttpPromiseCallbackArg<ISimWebList<ITask>>) => {
                    this.tasks = response.data.rows.map(el => el.value);
                    if (this.status) {
                        delete this.status;
                    }
                }, response => {
                    if (this.status) {
                        var status;
                        if (response.status === 0) {
                            status = '';
                        } else {
                            status = '(code ' + response.status + ')';
                        }
                        this.status = 'Cannot load infrastructure overview ' + status;
                    }
                });
        };

        public remove = (task: ITask) => {
            this.messageBusService.confirm(
                'Remove simulation',
                'Are you sure you want to remove simulation "' + task.input.simulation +
                ' (with id "' + task.id + '" from ensemble ' + task.ensemble + ')',
                (confirmed: boolean) => {<commit_msg>Fixed remove message<commit_after>module App {
    import NotifyType = csComp.Services.NotifyType;
    angular
        .module('csWebApp')
        .directive('simList', [function (): ng.IDirective {
            return {
                templateUrl: 'app/simlist/simlist.directive.html',
                restrict: 'E',
                scope: {
                    webserviceUrl: '@simWebserviceUrl',
                    simulation: '@simName',
                    version: '@simVersion'
                },
                controller: SimListController,
                controllerAs: 'vm',
                bindToController: true
            };
        }]);

    export class SimListController {
        public static $inject = ['SimWebService', 'messageBusService'];

        private webserviceUrl: string;
        private simulation: string;
        private version: string;
        private tasks: ITask[];
        private status: string;

        constructor(private SimWebService: App.SimWebService,
                    private messageBusService: csComp.Services.MessageBusService) {
            this.updateView();
        }

        public updateView = (): ng.IPromise<void> => {
            return this.SimWebService.list(this.webserviceUrl, this.simulation, this.version)
                .then((response: ng.IHttpPromiseCallbackArg<ISimWebList<ITask>>) => {
                    this.tasks = response.data.rows.map(el => el.value);
                    if (this.status) {
                        delete this.status;
                    }
                }, response => {
                    if (this.status) {
                        var status;
                        if (response.status === 0) {
                            status = '';
                        } else {
                            status = '(code ' + response.status + ')';
                        }
                        this.status = 'Cannot load infrastructure overview ' + status;
                    }
                });
        };

        public remove = (task: ITask) => {
            this.messageBusService.confirm(
                'Remove simulation',
                'Are you sure you want to remove simulation "' + task.input.simulation +
                ' (with id "' + task.id + '" from ensemble ' + task.input.ensemble + ')',
                (confirmed: boolean) => {
{'fraction_non_alphanumeric': 0.10444586258242927, 'fraction_numerical': 0.00042544139544777704, 'mean_word_length': 1.3254203758654797, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 21, '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': '7136207', 'n_tokens_mistral': 1145, 'n_tokens_neox': 1080, 'n_words': 238}