<commit_before>/*!
                        
       ##    #####      Copyright (c) - <NAME>
     # _ #  ###        
    #   #  #            AtomicFrameworks
    
*/
/*global document*/
var xStorage = (function (globals) {
    'use strict';
    // Setting - The base domain of the proxy
    var proxyDomain = 'http://atomicframeworks.github.io',
        // Setting - The page where the proxy JavaScript is stored
        proxyPage = '/xStorage.js',
        // Setting - The variable on proxy localStorage that wil used as an object store
        storageKey = 'xStorage',
        // Object to store deferred callbacks
        deferredObject = {},
        // Create proxy iframe
        iframe = document.createElement("iframe"),
        // Window object used to pass messages between the iframes
        proxyWindowObject,
        Deferred = globals.Promise || function (func) {
            var that = this;
            // Fake promise interface if Promise not available
            that.callbacks = [];
            that.errorbacks = [];
            that.then = function (callback, errorback) {
                if (errorback) {
                    that.errorbacks[that.callbacks.length] = errorback;
                }
                that.callbacks.push(callback);
                return that;
            };
            that.resolve = function (data) {
                var i = 0, l = that.callbacks.length;
                for (i; i < l; i += 1) {
                    try {
                        data = that.callbacks[i](data);
                    } catch (e) {
                        if (that.errorbacks[i]) {
                            that.errorbacks[i](e);
                        } else {
                            throw new Error(e);
                        }
                    }
                }
            };
            that.reject = function (e) {
                if (that.errorbacks.length) {
                    that.errorbacks[that.errorbacks.length](e);
                } else {
                    throw new Error(e);
                }
            };
            if (func) {
                func(that.resolve, that.reject);
            }
        };
    // Add the proxy iframe to DOM and style it
    iframe.src = proxyDomain + proxyPage;
    iframe.style.display = "none";
    iframe = document.body.appendChild(iframe);
    proxyWindowObject = iframe.contentWindow;

    // IE7 and lower uses attachEvent
    globals.addEventListener = globals.addEventListener || globals.attachEvent;
    
    // Helper function to determine if the item is an object (not including arrays)
    function isObject(item) {
        return (item instanceof Object && typeof item === 'object' && !(item instanceof Array));
    }

    // Helper to return a random string to serve as a simple hash
    function randomHash() {
        return Math.random().toString(36).substr(2);<commit_msg>Whitespace<commit_after>/*!
                        
       ##    #####      Copyright (c) - <NAME>
     # _ #  ###        
    #   #  #            AtomicFrameworks
    
*/
/*global document*/
var xStorage = (function (globals) {
    'use strict';
    // Setting - The base domain of the proxy
    var proxyDomain = 'http://atomicframeworks.github.io',
        // Setting - The page where the proxy JavaScript is stored
        proxyPage = '/xStorage.js',
        // Setting - The variable on proxy localStorage that wil used as an object store
        storageKey = 'xStorage',
        // Object to store deferred callbacks
        deferredObject = {},
        // Create proxy iframe
        iframe = document.createElement("iframe"),
        // Window object used to pass messages between the iframes
        proxyWindowObject,
        Deferred = globals.Promise || function (func) {
            var that = this;
            // Fake promise interface if Promise not available
            that.callbacks = [];
            that.errorbacks = [];
            that.then = function (callback, errorback) {
                if (errorback) {
                    that.errorbacks[that.callbacks.length] = errorback;
                }
                that.callbacks.push(callback);
                return that;
            };
            that.resolve = function (data) {
                var i = 0, l = that.callbacks.length;
                for (i; i < l; i += 1) {
                    try {
                        data = that.callbacks[i](data);
                    } catch (e) {
                        if (that.errorbacks[i]) {
                            that.errorbacks[i](e);
                        } else {
                            throw new Error(e);
                        }
                    }
                }
            };
            that.reject = function (e) {
                if (that.errorbacks.length) {
                    that.errorbacks[that.errorbacks.length](e);
                } else {
                    throw new Error(e);
                }
            };
            if (func) {
                func(that.resolve, that.reject);
            }
        };
    // Add the proxy iframe to DOM and style it
    iframe.src = proxyDomain + proxyPage;
    iframe.style.display = "none";
    iframe = document.body.appendChild(iframe);
    proxyWindowObject = iframe.contentWindow;

    // IE7 and lower uses attachEvent
    globals.addEventListener = globals.addEventListener || globals.attachEvent;

    // Helper function to determine if the item is an object (not including arrays)
    function isObject(item) {
        return (item instanceof Object && typeof item === 'object' && !(item instanceof Array));
    }

    // Helper to return a random string to serve as a simple hash
    function randomHash() {
        return Math.random().toString(36).substr(2);
{'fraction_non_alphanumeric': 0.10077922077922077, 'fraction_numerical': 0.002077922077922078, 'mean_word_length': 1.3877635386523357, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '1486591', 'n_tokens_mistral': 1474, 'n_tokens_neox': 1390, 'n_words': 407}