<commit_before>class MCProjectSettingsComponentController {
    /*@ngInject*/

    /*@ngInject*/
    constructor(projectsAPI, mcprojstore, toast, $mdDialog, $state) {
        this.projectsAPI = projectsAPI;
        this.mcprojstore = mcprojstore;
        this.toast = toast;
        this.$mdDialog = $mdDialog;
        this.$state = $state;
        this.projectName = "";
    }

    $onInit() {
        this.project = this.mcprojstore.currentProject;
        this.projectName = this.project.name;
    }

    update() {
        let update = {
            name: this.projectName
        };
        this.projectsAPI.updateProject(this.project.id, update).then(
            () => {
                this.mcprojstore.updateCurrentProject(currentProj => {
                    currentProj.name = this.projectName;
                    return currentProj;
                }).then(
                    () => this.$state.go('project.home')
                );
            },
            () => this.toast.error('Unable to update project')
        );
    }

    deleteProject() {
        let deleteDialog = this.$mdDialog.confirm()
            .title(`Delete project: ${this.project.name}`)
            .textContent('Deleting a project is a permanent operation - all information with the project will be removed.')
            .ariaLabel('Delete Project')
            .ok('Delect Project')
            .cancel('cancel');

        this.$mdDialog.show(deleteDialog).then(
            () => {
                this.projectsAPI.deleteProject(this.project.id).then(
                    () => this.mcprojstore.removeCurrentProject().then(() => this.$state.go('projects.list')),
                    () => this.toast.error('Failed to delete project')
                )
            }
        );
    };


    cancel() {
        this.$state.go('project.home');
    }
}

angular.module('materialscommons').component('mcProjectSettings', {
    template: require('./mc-project-settings.html'),
    controller: MCProjectSettingsComponentController
});<commit_msg>Remove semi-colon that is causing build issues<commit_after>class MCProjectSettingsComponentController {
    /*@ngInject*/

    /*@ngInject*/
    constructor(projectsAPI, mcprojstore, toast, $mdDialog, $state) {
        this.projectsAPI = projectsAPI;
        this.mcprojstore = mcprojstore;
        this.toast = toast;
        this.$mdDialog = $mdDialog;
        this.$state = $state;
        this.projectName = "";
    }

    $onInit() {
        this.project = this.mcprojstore.currentProject;
        this.projectName = this.project.name;
    }

    update() {
        let update = {
            name: this.projectName
        };
        this.projectsAPI.updateProject(this.project.id, update).then(
            () => {
                this.mcprojstore.updateCurrentProject(currentProj => {
                    currentProj.name = this.projectName;
                    return currentProj;
                }).then(
                    () => this.$state.go('project.home')
                );
            },
            () => this.toast.error('Unable to update project')
        );
    }

    deleteProject() {
        let deleteDialog = this.$mdDialog.confirm()
            .title(`Delete project: ${this.project.name}`)
            .textContent('Deleting a project is a permanent operation - all information with the project will be removed.')
            .ariaLabel('Delete Project')
            .ok('Delect Project')
            .cancel('cancel');

        this.$mdDialog.show(deleteDialog).then(
            () => {
                this.projectsAPI.deleteProject(this.project.id).then(
                    () => this.mcprojstore.removeCurrentProject().then(() => this.$state.go('projects.list')),
                    () => this.toast.error('Failed to delete project')
                )
            }
        );
    }

    cancel() {
        this.$state.go('project.home');
    }
}

angular.module('materialscommons').component('mcProjectSettings', {
    template: require('./mc-project-settings.html'),
    controller: MCProjectSettingsComponentController
});
{'fraction_non_alphanumeric': 0.13333333333333333, 'fraction_numerical': 0.0, 'mean_word_length': 1.8743859649122807, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '4823733', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1062, 'n_words': 176}