<commit_before>(function (module) {
    module.controller('projectEditProcess', projectEditProcess);
    projectEditProcess.$inject = ["project", "modalInstance", "$state", "processTemplates", "template"];

    function projectEditProcess(project, modalInstance, $state, processTemplates, template) {
        var ctrl = this;
        ctrl.cancel = cancel;
        ctrl.openFile = openFile;
        ctrl.openSample = openSample;
        ctrl.done = done;

        ctrl.project = project;
        ctrl.template = template;

        function cancel() {
            $state.go('projects.project.processes.list.view');
        }

        function openFile(file) {
            modalInstance.openModal(file, 'datafile', ctrl.project);
        }

        function openSample(sample) {
            modalInstance.openModal(sample, 'sample', ctrl.project);
        }

        function done() {
            //mcapi('/processes/%', $scope.template.id)
            //    .success(function (proc) {
            //        //Currently i'm reloading all the projects , but we need to reload single project.
            //        Projects.getList(true).then(function (projects) {
            //            var i = _.indexOf(projects, function (p) {
            //                return p.id == project.id;
            //            });
            //            current.setProject(projects[i]);
            //            project.processes = projects[i].processes;
            //            project.samples = projects[i].samples;
            //            $scope.template = '';<commit_msg>Remove parameters.<commit_after>(function (module) {
    module.controller('projectEditProcess', projectEditProcess);
    projectEditProcess.$inject = ["project", "modalInstance", "$state"];

    function projectEditProcess(project, modalInstance, $state) {
        var ctrl = this;
        ctrl.cancel = cancel;
        ctrl.openFile = openFile;
        ctrl.openSample = openSample;
        ctrl.done = done;

        ctrl.project = project;

        function cancel() {
            $state.go('projects.project.processes.list.view');
        }

        function openFile(file) {
            modalInstance.openModal(file, 'datafile', ctrl.project);
        }

        function openSample(sample) {
            modalInstance.openModal(sample, 'sample', ctrl.project);
        }

        function done() {
            //mcapi('/processes/%', $scope.template.id)
            //    .success(function (proc) {
            //        //Currently i'm reloading all the projects , but we need to reload single project.
            //        Projects.getList(true).then(function (projects) {
            //            var i = _.indexOf(projects, function (p) {
            //                return p.id == project.id;
            //            });
            //            current.setProject(projects[i]);
            //            project.processes = projects[i].processes;
            //            project.samples = projects[i].samples;
            //            $scope.template = '';
{'fraction_non_alphanumeric': 0.12602559894978668, 'fraction_numerical': 0.0, 'mean_word_length': 1.70452528837622, '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': '2773495', 'n_tokens_mistral': 768, 'n_tokens_neox': 749, 'n_words': 153}