<commit_before>var PreferencesManager = function() {
};

PreferencesManager.exec = function() {

    var logRestoredValue = function(value) {
      console.log(value)
    }
    var successfully = function () {
        console.log("Success");
        cordova.exec(logRestoredValue, failed, "PreferencesManager", "restore", [2, "test"]);
    };

    var failed = function ()  {
        console.log("Failed");
    };
    cordova.exec(successfully, failed, "PreferencesManager", "store", [2, "test", 1080982423420]);
};

module.exports = PreferencesManager;<commit_msg>Add function do restore data from SharedPreferences<commit_after>var PreferencesManager = function() {
};

PreferencesManager.store = function(type, key, value) {

    var logStoredValue = function(value) {
      console.log(value)
    }

    var successfully = function () {
        cordova.exec(logStoredValue, failed, "PreferencesManager", "restore", [type, key]);
    };

    var failed = function ()  {
        console.log("Failed");
    };
    cordova.exec(successfully, failed, "PreferencesManager", "store", [type, key, value]);
};

PreferencesManager.restore = function(type, key) {

    var successfully = function (value) {
        console.log(value)
    };

    var failed = function ()  {
        console.log("Failed");
    };
    cordova.exec(successfully, failed, "PreferencesManager", "restore", [type, key]);
};

module.exports = PreferencesManager;
{'fraction_non_alphanumeric': 0.1453529000698812, 'fraction_numerical': 0.010482180293501049, 'mean_word_length': 3.6193548387096772, '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': '4007603', 'n_tokens_mistral': 421, 'n_tokens_neox': 402, 'n_words': 88}