<commit_before>/*global cordova, module*/

var exec = require("cordova/exec")

/*
 * Format of the returned value:
 * {
 *    "connectUrl": "...",
 *    "isSkipAuth": true/false,
 *    "googleWebAppClientID": "...",
 *    "ios": {
 *       "googleClientID": "...",
 *       "googleClientSecret": "...",
 *       "parseAppID": "...",
 *       "parseClientID": "...",
 *    }
 * }
 */

var ConnectionSettings = {
    getSettings: function (successCallback, errorCallback) {
        exec(successCallback, errorCallback, "ConnectionSettings", "getSettings", []);
    }
}

module.exports = ConnectionSettings;<commit_msg>added Promise to getSetting function<commit_after>/*global cordova, module*/

var exec = require("cordova/exec")

/*
 * Format of the returned value:
 * {
 *    "connectUrl": "...",
 *    "isSkipAuth": true/false,
 *    "googleWebAppClientID": "...",
 *    "ios": {
 *       "googleClientID": "...",
 *       "googleClientSecret": "...",
 *       "parseAppID": "...",
 *       "parseClientID": "...",
 *    }
 * }
 */

var ConnectionSettings = {
    getSettings: function () {
    	return new Promise(function(resolve, reject) {	
    		exec(resolve, reject, "ConnectionSettings", "getSettings", []);
    	});
    }
}

module.exports = ConnectionSettings;
{'fraction_non_alphanumeric': 0.19763779527559056, 'fraction_numerical': 0.0, 'mean_word_length': 2.7492625368731565, 'pattern_counts': {'":': 16, '<': 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': '5687368', 'n_tokens_mistral': 401, 'n_tokens_neox': 399, 'n_words': 69}