<commit_before>
/*!
 * jquery-xdr - jQuery XDR shim, mainly for IE.
 * v0.1.0
 * 
 * copyright <NAME> 2013
 * MIT License
*/
(function() {
  var _this = this;

  (function(jQuery) {
    if (_this.XDomainRequest) {
      return jQuery.ajaxTransport(function(s) {
        var xdr;
        if (s.crossDomain && s.async) {
          xdr = new XDomainRequest();
          return {
            send: function(headers, complete) {
              var headerThroughUriParameters, response;
              response = function(status, statusText, responses, responseHeaders) {
                xdr.onload = xdr.onerror = xdr.ontimeout = jQuery.noop;
                return complete(status, statusText, responses, responseHeaders);
              };
              xdr.onload = function() {
                return response(200, 'OK', {
                  text: xdr.responseText
                }, "Content-Type: " + xdr.contentType);
              };
              if (s.timeout) {
                xdr.ontimeout = function() {
                  return response(0, 'Timeout');
                };
                xdr.timeout = s.timeout;
              }
              if (s.dataType) {
                headerThroughUriParameters = "header_Accept=" + (encodeURIComponent(s.dataType));
                s.url = s.url + (s.url.indexOf('?') === -1 ? '?' : '&') + headerThroughUriParameters;
              }
              s.contentType = 'text/plain';
              xdr.open(s.type, s.url);
              xdr.onprogress = function() {};
              xdr.send((s.hasContent && s.data) || null);
              xdr.onerror = function(e) {
                return response(404, 'Not Found');
              };
            },
            abort: function() {
              if (xdr) {
                xdr.onerror = jQuery.noop();
                xdr.abort();
              }
            }
          };
        }
      });
    }
  })(jQuery);

}).call(this);<commit_msg>fixed jquery-xdr<commit_after>
/*!
 * jquery-xdr - jQuery XDR shim, mainly for IE.
 * v0.1.0
 * 
 * copyright <NAME> 2013
 * MIT License
*/
module.exports = (function() {
  var _this = window;

  return {
    load: function(jQuery) {
    if (_this.XDomainRequest) {
      return jQuery.ajaxTransport(function(s) {
        var xdr;
        if (s.crossDomain && s.async) {
          xdr = new XDomainRequest();
          return {
            send: function(headers, complete) {
              var headerThroughUriParameters, response;
              response = function(status, statusText, responses, responseHeaders) {
                xdr.onload = xdr.onerror = xdr.ontimeout = jQuery.noop;
                return complete(status, statusText, responses, responseHeaders);
              };
              xdr.onload = function() {
                return response(200, 'OK', {
                  text: xdr.responseText
                }, "Content-Type: " + xdr.contentType);
              };
              if (s.timeout) {
                xdr.ontimeout = function() {
                  return response(0, 'Timeout');
                };
                xdr.timeout = s.timeout;
              }
              if (s.dataType) {
                headerThroughUriParameters = "header_Accept=" + (encodeURIComponent(s.dataType));
                s.url = s.url + (s.url.indexOf('?') === -1 ? '?' : '&') + headerThroughUriParameters;
              }
              s.contentType = 'text/plain';
              xdr.open(s.type, s.url);
              xdr.onprogress = function() {};
              xdr.send((s.hasContent && s.data) || null);
              xdr.onerror = function(e) {
                return response(404, 'Not Found');
              };
            },
            abort: function() {
              if (xdr) {
                xdr.onerror = jQuery.noop();
                xdr.abort();
              }
            }
          };
        }
      });
    }
  }
  }

}).call(this);
{'fraction_non_alphanumeric': 0.13191598360655737, 'fraction_numerical': 0.007684426229508197, 'mean_word_length': 1.3695388349514563, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1879083', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1082, 'n_words': 210}