<commit_before>/**
 * The fake sandbox of browser environment
 */

exports.document = {

  getElementById: function(id) {
    // Return the fake loader script node
    if (id === "seajsnode") {
      return {
        hasAttribute: true,
        getAttribute: function() {},
        src: __filename
      }
    }
  },

  getElementsByTagName: function(tag) {
    // Return the fake head node
    if (tag === "head") {
      return [{
          getElementsByTagName: function() {
            return []
          }
      }]
    }

    return []
  }
}

exports.location = {
  href: __filename,
  search: ""
}

exports.navigator = {
  userAgent: ""
}

exports.console = console

exports.process = process
<commit_msg>Make pageUri equal to process.cwd() in Node.js<commit_after>/**
 * The fake sandbox of browser environment
 */

exports.document = {

  getElementById: function(id) {
    // Return the fake loader script node
    if (id === "seajsnode") {
      return {
        hasAttribute: true,
        getAttribute: function() {},
        src: __filename
      }
    }
  },

  getElementsByTagName: function(tag) {
    // Return the fake head node
    if (tag === "head") {
      return [{
          getElementsByTagName: function() {
            return []
          }
      }]
    }

    return []
  }
}

exports.location = {
  href: process.cwd() + "/index.js",
  search: ""
}

exports.navigator = {
  userAgent: ""
}

exports.console = console

exports.process = process

{'fraction_non_alphanumeric': 0.13025780189959293, 'fraction_numerical': 0.0, 'mean_word_length': 2.111814345991561, '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': '2523716', 'n_tokens_mistral': 458, 'n_tokens_neox': 445, 'n_words': 109}