<commit_before>
/* BetterDiscordApp Core JavaScript
 * Version: 1.53
 * Author: Jiiks | http://jiiks.net
 * Date: 27/08/2015 - 16:36
 * Last Update: 01/05/2016
 * https://github.com/Jiiks/BetterDiscordApp
 */

/*Localstorage fix*/
(function() {

    let __fs = window.require("fs");
    var data = {};
    if(__fs.existsSync("localStorage.json")) {
        try {
            data = JSON.parse(__fs.readFileSync("localStorage.json"));
        }catch(err) {
            console.log(err);
        }
    }

    let __ls = data;
    __ls.setItem = function(i, v) {
        __ls[i] = v;
    };
    __ls.getItem = function(i) {
        return __ls[i];
    };<commit_msg>Actually write on setItem<commit_after>
/* BetterDiscordApp Core JavaScript
 * Version: 1.53
 * Author: Jiiks | http://jiiks.net
 * Date: 27/08/2015 - 16:36
 * Last Update: 01/05/2016
 * https://github.com/Jiiks/BetterDiscordApp
 */

/*Localstorage fix*/
(function() {

    let __fs = window.require("fs");
    var data = {};
    if(__fs.existsSync("localStorage.json")) {
        try {
            data = JSON.parse(__fs.readFileSync("localStorage.json"));
        }catch(err) {
            console.log(err);
        }
    }

    let __ls = data;
    __ls.setItem = function(i, v) {
        __ls[i] = v;
        __fs.writeFileSync("localStorage.json", JSON.stringify(__ls), null, 4);
    };
    __ls.getItem = function(i) {
        return __ls[i];
    };
{'fraction_non_alphanumeric': 0.1614950634696756, 'fraction_numerical': 0.03314527503526093, 'mean_word_length': 2.323185011709602, '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': '2422383', 'n_tokens_mistral': 529, 'n_tokens_neox': 486, 'n_words': 91}