<commit_before>
window.infrastructure = window.infrastructure || {};

window.infrastructure.storage = (function (Promise, localStorage) {
    'use strict';

    var exports = {};

    exports.get = function (key, defaultValue) {

        var value = localStorage[key];

        if (value == null) {
            return Promise.resolve(defaultValue);
        }

        return Promise.resolve(JSON.parse(value));
    };

    exports.set = function (key, value) {

        localStorage[key] = JSON.strigify(value);
<commit_msg>Fix typo<commit_after>
window.infrastructure = window.infrastructure || {};

window.infrastructure.storage = (function (Promise, localStorage) {
    'use strict';

    var exports = {};

    exports.get = function (key, defaultValue) {

        var value = localStorage[key];

        if (value == null) {
            return Promise.resolve(defaultValue);
        }

        return Promise.resolve(JSON.parse(value));
    };

    exports.set = function (key, value) {

        localStorage[key] = JSON.stringify(value);

{'fraction_non_alphanumeric': 0.13026819923371646, 'fraction_numerical': 0.0, 'mean_word_length': 2.758992805755396, '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': '3363031', 'n_tokens_mistral': 299, 'n_tokens_neox': 284, 'n_words': 63}