<commit_before>// This is a simple wrapper around XMLHttpRequest so that it can be unit tested.

class XMLHttpRequestWrap {
  constructor(...funcArgs) {
    this.req = new XMLHttpRequest(...funcArgs);
  }

  addEventListener(...funcArgs) {
    this.req.addEventListener(...funcArgs);
  }

  open(...funcArgs) {
    this.req.open(...funcArgs);
  }

  send(...funcArgs) {
    this.req.send(...funcArgs);
  }

  setRequestHeader(...funcArgs) {
    this.req.setRequestHeader(...funcArgs);
  }

  abort(...funcArgs) {
    this.req.abort();
  }
}

module.exports = XMLHttpRequestWrap;<commit_msg>Fix minor linting issue<commit_after>// This is a simple wrapper around XMLHttpRequest so that it can be unit tested.

class XMLHttpRequestWrap {
  constructor(...funcArgs) {
    this.req = new XMLHttpRequest(...funcArgs);
  }

  addEventListener(...funcArgs) {
    this.req.addEventListener(...funcArgs);
  }

  open(...funcArgs) {
    this.req.open(...funcArgs);
  }

  send(...funcArgs) {
    this.req.send(...funcArgs);
  }

  setRequestHeader(...funcArgs) {
    this.req.setRequestHeader(...funcArgs);
  }

  abort(...funcArgs) {
    this.req.abort(...funcArgs);
  }
}

module.exports = XMLHttpRequestWrap;
{'fraction_non_alphanumeric': 0.16569525395503748, 'fraction_numerical': 0.0, 'mean_word_length': 2.8899676375404533, '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': '4645736', 'n_tokens_mistral': 410, 'n_tokens_neox': 400, 'n_words': 68}