<commit_before>/**
 * Prepros
 * (c) <NAME>
 * <EMAIL>
 * License: MIT
 */

/*jshint browser: true, node: true, unused: false*/
/*global prepros,  _, $*/

//Title Bar controls
prepros.controller('SidebarCtrl', [

    '$scope',
    'config',
    'projectsManager',
    'utils',
    'liveServer',

    function ($scope, config, projectsManager, utils, liveServer) {

        'use strict';

        var fs = require('fs'),
            path = require('path');


        $scope.openProjectFolder = function (folder) {

            require('nw.gui').Shell.openItem(folder);

        };

        //function to refresh project files
        $scope.refreshFiles = function () {

            projectsManager.refreshProjectFiles($scope.selectedProject.id);

        };

        //Function to open live url
        $scope.openLiveUrl = function () {

            if($scope.selectedProject.config.useCustomServer) {

                utils.openBrowser($scope.selectedProject.config.customServerUrl);

            } else {

                utils.openBrowser(liveServer.getLiveUrl($scope.selectedProject));
            }
        };

        //Function to remove project
        $scope.removeProject = function () {

            var confirmMsg = utils.notifier.notify({
                message: "Are you sure you want to remove this project?",
                type: "warning",
                buttons: [
                    {'data-role': 'ok', text: 'Yes'},
                    {'data-role': 'cancel', text: 'No'}
                ],
                destroy: true
            });

            confirmMsg.on('click:ok', function(){

                this.destroy();
                $scope.$apply(function () {
                    projectsManager.removeProject($scope.selectedProject.id);
                });
            });

            confirmMsg.on('click:cancel', 'destroy');
        };

        $scope.ftpDeploy = function() {

            utils.openBrowser(config.online.url);

        }
<commit_msg>fixed build<commit_after>/**
 * Prepros
 * (c) <NAME>
 * <EMAIL>
 * License: MIT
 */

/*jshint browser: true, node: true, unused: false*/
/*global prepros,  _, $*/

//Title Bar controls
prepros.controller('SidebarCtrl', [

    '$scope',
    'config',
    'projectsManager',
    'utils',
    'liveServer',

    function ($scope, config, projectsManager, utils, liveServer) {

        'use strict';

        var fs = require('fs'),
            path = require('path');


        $scope.openProjectFolder = function (folder) {

            require('nw.gui').Shell.openItem(folder);

        };

        //function to refresh project files
        $scope.refreshFiles = function () {

            projectsManager.refreshProjectFiles($scope.selectedProject.id);

        };

        //Function to open live url
        $scope.openLiveUrl = function () {

            if($scope.selectedProject.config.useCustomServer) {

                utils.openBrowser($scope.selectedProject.config.customServerUrl);

            } else {

                utils.openBrowser(liveServer.getLiveUrl($scope.selectedProject));
            }
        };

        //Function to remove project
        $scope.removeProject = function () {

            var confirmMsg = utils.notifier.notify({
                message: "Are you sure you want to remove this project?",
                type: "warning",
                buttons: [
                    {'data-role': 'ok', text: 'Yes'},
                    {'data-role': 'cancel', text: 'No'}
                ],
                destroy: true
            });

            confirmMsg.on('click:ok', function(){

                this.destroy();
                $scope.$apply(function () {
                    projectsManager.removeProject($scope.selectedProject.id);
                });
            });

            confirmMsg.on('click:cancel', 'destroy');
        };

        $scope.ftpDeploy = function() {

            utils.openBrowser(config.online.url);

        };

{'fraction_non_alphanumeric': 0.1347946586041824, 'fraction_numerical': 0.0, 'mean_word_length': 1.7006802721088434, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5894325', 'n_tokens_mistral': 1078, 'n_tokens_neox': 1001, 'n_words': 207}