<commit_before>(function (root, factory) {
    if (typeof define === 'function' && define.amd) {
        // AMD. Register as an anonymous module.
        define(['exports', 'PLAYGROUND'], factory);
    } else if (typeof exports === 'object') {
        // CommonJS
        factory(exports, require('PLAYGROUND'));
    } else {
        // Browser globals
        factory((root.commonJsStrict = {}), root.PLAYGROUND);
    }
}(this, function (exports, PLAYGROUND) {
    // Polyfill
    (function (isStorage) {
          'use strict';
          if (!isStorage) {
                var data = {},
                    undef;
                window.localStorage = {
                    key         : function(id) { return Object.keys(data)[id]; },
                    setItem     : function(id, val) { return data[id] = String(val); },
                    getItem     : function(id) { return data.hasOwnProperty(id) ? data[id] : undef; },
                    removeItem  : function(id) { return delete data[id]; },
                    clear       : function() { return data = {}; }
                };
          }
    })((function () {
        'use strict';
        try {
            return 'localStorage' in window && window.localStorage !== null;
        } catch (e) {
            return false;
        }
    })());
    var MemoryCard = function (app) {
        this.app = app;
        this.ls = window.localStorage;
        this.app.on('ready', this.handleDefaults.bind(this));
        return this;
    };
    PLAYGROUND.MemoryCard = MemoryCard;
    var plugin = PLAYGROUND.MemoryCard;
    plugin.plugin = true;
    plugin.prototype = {
        handleDefaults: function () {
            var self = this;
            this.app.loader.on('load', function (id) {
                self.save(self.app.data.defaults);
            });
            this.app.loadData('defaults');
        },<commit_msg>feat: privatize `handleDefaults`<commit_after>(function (root, factory) {
    if (typeof define === 'function' && define.amd) {
        // AMD. Register as an anonymous module.
        define(['exports', 'PLAYGROUND'], factory);
    } else if (typeof exports === 'object') {
        // CommonJS
        factory(exports, require('PLAYGROUND'));
    } else {
        // Browser globals
        factory((root.commonJsStrict = {}), root.PLAYGROUND);
    }
}(this, function (exports, PLAYGROUND) {
    // Polyfill
    (function (isStorage) {
          'use strict';
          if (!isStorage) {
                var data = {},
                    undef;
                window.localStorage = {
                    key         : function(id) { return Object.keys(data)[id]; },
                    setItem     : function(id, val) { return data[id] = String(val); },
                    getItem     : function(id) { return data.hasOwnProperty(id) ? data[id] : undef; },
                    removeItem  : function(id) { return delete data[id]; },
                    clear       : function() { return data = {}; }
                };
          }
    })((function () {
        'use strict';
        try {
            return 'localStorage' in window && window.localStorage !== null;
        } catch (e) {
            return false;
        }
    })());
    var MemoryCard = function (app) {
        this.app = app;
        this.ls = window.localStorage;
        this.app.on('ready', handleDefaults.bind(this));
        return this;
    };
    PLAYGROUND.MemoryCard = MemoryCard;
    var plugin = PLAYGROUND.MemoryCard;
    var handleDefaults = function () {
        var self = this;
        self.app.loader.on('load', function (id) {
            self.save(self.app.data.defaults);
        });
        self.app.loadData('defaults');
    };
    plugin.plugin = true;
    plugin.prototype = {
{'fraction_non_alphanumeric': 0.14000532339632685, 'fraction_numerical': 0.0, 'mean_word_length': 1.6804564907275321, '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': '3067067', 'n_tokens_mistral': 1042, 'n_tokens_neox': 994, 'n_words': 231}