<commit_before>(function () {
    'use strict';
    angular
            .module('tierraDeColoresApp')
            .service('settingService', settingService);

    settingService.$inject = ['$q', 'localStorageService'];

    function settingService($q, localStorageService) {
        var storage = require('electron-json-storage');
        var Config = require('electron-config');
        var config = new Config();

        this.setColor = function (palette) {
            config.set('Color', palette);
        };

        storage.has('BaseUrl', function (error, hasKey) {
            if (error) {
                throw error;
            }
            if (hasKey) {
                console.log('Configuración guardada apropiadamente.`');
            } else {
                console.log("Reconfiguración");
                storage.set('BaseUrl', {BaseUrl: 'https://tierradecoloresapi.herokuapp.com/'}, function (error) {
                    console.log(error);
                    var data = {BaseUrl: 'https://tierradecoloresapi.herokuapp.com/'};
//                    localStorageService.set('BaseURL', data);
                    if (error)
                        throw error;
                });
            }
        });


        this.getURL = function () {
            var datosRecu = null;
            var deferred = $q.defer();
            storage.get('BaseUrl', function (error, data) {
                datosRecu = data;
                deferred.resolve(datosRecu);
            });
            return deferred.promise;
        };

        this.setURL = function (url) {
            var datosRecu = null;
            var deferred = $q.defer();
            storage.set('BaseUrl', {BaseUrl: url}, function (error) {
                if (error) {
                    throw error;
                } else {
                    datosRecu = true;
                    deferred.resolve(datosRecu);
                }
            });
            return deferred.promise;
        };
    }
})();
<commit_msg>funciones eliminadas<commit_after>(function () {
    'use strict';
    angular
            .module('tierraDeColoresApp')
            .service('settingService', settingService);

    settingService.$inject = ['$q', 'localStorageService'];

    function settingService($q, localStorageService) {
        var Config = require('electron-config');
        var config = new Config();

        this.setColor = function (palette) {
            config.set('Color', palette);
        };
    }
})();

{'fraction_non_alphanumeric': 0.12715603690332933, 'fraction_numerical': 0.0, 'mean_word_length': 1.568486096807415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2354411', 'n_tokens_mistral': 670, 'n_tokens_neox': 630, 'n_words': 126}