<commit_before><!--[if eq IE 8]>
<script src='//ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js'></script>
<![endif]-->
<script>
    function handle(e) {
        e = e || event;

        var source = parent || e.source,
            origin = e.origin;

        var data = JSON.parse(e.data),
            id = data.id,
            options = data.req,
            req = new XMLHttpRequest();

        req.open(options.method, options.uri);

        if (options.headers) {
            for (var name in options.headers) {
                req.setRequestHeader(name, options.headers[name]);
            }
        }

        req.onreadystatechange = function()
        {
            if (req.readyState !== 4) {
                return;
            }<commit_msg>Added workaround for bug in IE <= 8 with uncommon HTTP method<commit_after><!--[if eq IE 8]>
<script src='//ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js'></script>
<![endif]-->
<script>
    function handle(e) {
        e = e || event;

        var source = parent || e.source,
            origin = e.origin;

        var data = JSON.parse(e.data),
            id = data.id,
            options = data.req,
            req = new XMLHttpRequest();

        /**
         * IE8 and lower violates Section 9 of RFC 2616 and support only a certain list of HTTP methods
         * GET, POST, HEAD, PUT, DELETE, MOVE, PROPFIND, PROPPATCH, MKCOL, COPY, LOCK, UNLOCK, OPTIONS
         *
         * Thus API implementation MUST consider PROPPATCH method as synonym for PATCH
         */
        if (options.method === 'PATCH') {
            options.method = 'PROPPATCH';
        }

        req.open(options.method, options.uri);

        if (options.headers) {
            for (var name in options.headers) {
                req.setRequestHeader(name, options.headers[name]);
            }
        }

        req.onreadystatechange = function()
        {
            if (req.readyState !== 4) {
                return;
            }
{'fraction_non_alphanumeric': 0.12740141557128412, 'fraction_numerical': 0.015672396359959553, 'mean_word_length': 1.6563758389261745, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 13, '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': '4458356', 'n_tokens_mistral': 619, 'n_tokens_neox': 567, 'n_words': 149}