<commit_before>(function(){
    var encode = window.encodeURIComponent,
        emptyFn = function(){},
        JSONP = function(options) {
            var callback,
                isLoaded = false,
                head = window.document.getElementsByTagName('head')[0],
                params = {
                    data: options.data || {},
                    error: options.error || emptyFn,
                    success: options.success || emptyFn,
                    url: options.url || ''
                },
                script= window.document.createElement('script');
            options = options ? options : {};
            if (params.url.length === 0) {
                throw new Error('No URL Provided...');
            }
            callback = params.data[options.callback_name || 'callback'] = 'jsonp_' + random_string(15);
            window[callback] = function(data) {
                params.success(data);
                return delete window[callback];
            };
            script.src = params.url;
            script.src += params.url.indexOf('?' === -1) ? '?' : '&';
            script.src += object_to_uri(params.data);
            script.async = true;
            script.onerror = function(evt) {
                return params.error({
                    url: script.src,
                    event: evt
                });
            };
            script.onload = script.onreadystatechange = function() {
                if (!isLoaded && (!this.readyState || this.readyState === 'loaded' || this.readyState === 'complete')) {
                    isLoaded = true;
                    script.onload = script.onreadystatechange = null;
                    if (script && script.parentNode) {
                        return script.parentNode.removeChild(script);
                    }
                }
            };
            return head.appendChild(script);
        };


    if ((typeof module !== "undefined" && module !== null) && module.exports) {
        module.exports = JSONP;
    } else if ((typeof module !== "undefined" && module !== null) && module.exports) {
        module.exports = JSONP;
    } else {
        this.JSONP = JSONP;
    }

}).call(this);


<commit_msg>Updated the URL to JSONP<commit_after>(function(){
    var encode = window.encodeURIComponent,
        emptyFn = function(){},
        object_to_uri = function(obj) {
            var data = [], key;
            for (key in obj) {
                data.push(encode(key) + '=' + encode(obj[key]));
            }
            return data.join('&');
        },
        JSONP = function(options) {
            var src=[],
                callback,
                isLoaded = false,
                head = window.document.getElementsByTagName('head')[0],
                params = {
                    data: options.data || {},
                    error: options.error || emptyFn,
                    success: options.success || emptyFn,
                    url: options.url || ''
                },
                script= window.document.createElement('script');
            options = options ? options : {};
            if (params.url.length === 0) {
                throw new Error('No URL Provided...');
            }
            callback = params.data[options.callback_name || 'callback'] = 'jsonp_' + random_string(15);
            window[callback] = function(data) {
                params.success(data);
                return delete window[callback];
            };
            src = [
                params.url,
                params.url.indexOf('?' === -1) ? '?' : '&',
                object_to_uri(params.data)
            ];
            script.src = params.url;
            script.async = true;
            script.onerror = function(evt) {
                return params.error({
                    url: script.src,
                    event: evt
                });
            };
            script.onload = script.onreadystatechange = function() {
                if (!isLoaded && (!this.readyState || this.readyState === 'loaded' || this.readyState === 'complete')) {
                    isLoaded = true;
                    script.onload = script.onreadystatechange = null;
                    if (script && script.parentNode) {
                        return script.parentNode.removeChild(script);
                    }
                }
            };
            return head.appendChild(script);
        };


    if ((typeof module !== "undefined" && module !== null) && module.exports) {
        module.exports = JSONP;
    } else if ((typeof module !== "undefined" && module !== null) && module.exports) {
        module.exports = JSONP;
    } else {
        this.JSONP = JSONP;
    }

}).call(this);



{'fraction_non_alphanumeric': 0.1317289423685877, 'fraction_numerical': 0.0021110407430863414, 'mean_word_length': 1.3630922693266834, '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': '707911', 'n_tokens_mistral': 1203, 'n_tokens_neox': 1148, 'n_words': 240}