<commit_before>(function (module) {
    module.component('mcProcess', {
        templateUrl: 'project/processes/process/mc-process.html',
        controller: 'MCProcessComponentController'
    });

    module.controller('MCProcessComponentController', MCProcessComponentController);
    MCProcessComponentController.$inject = ["$stateParams", "projectsService"];
    function MCProcessComponentController($stateParams, projectsService) {
        var ctrl = this;
        projectsService.getProjectProcess($stateParams.project_id, $stateParams.process_id)
            .then(function(process) {
                ctrl.process = process;
            });
    }
}(angular.module('materialscommons')));<commit_msg>Add edit process.<commit_after>(function (module) {
    module.component('mcProcess', {
        templateUrl: 'project/processes/process/mc-process.html',
        controller: 'MCProcessComponentController'
    });

    module.controller('MCProcessComponentController', MCProcessComponentController);
    MCProcessComponentController.$inject = ['process', '$state', '$stateParams'];
    function MCProcessComponentController(process, $state, $stateParams) {
        var ctrl = this;
        ctrl.process = process.get();
        ctrl.edit = edit;

        ///////////////////

        function edit() {
            $state.go('project.processes.edit', {process_id: $stateParams.process_id});
        }
    }
}(angular.module('materialscommons')));
{'fraction_non_alphanumeric': 0.14, 'fraction_numerical': 0.0, 'mean_word_length': 3.437308868501529, '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': '3226421', 'n_tokens_mistral': 364, 'n_tokens_neox': 356, 'n_words': 55}