<commit_before>var sys = require("sys"), 
    dom = require("../../lib/level1/core").dom.level1.core,
    fs = require("fs");
    
global.window = require("../../lib/browser").windowAugmentation(dom);
global.document = global.window.document;
global.location = global.window.location;
var window = global;
global.navigator = { userAgent: "node-js" };

fs.readFile(__dirname + "/jquery.js", function(err, data) {
  for (var i = 0; i<10; i++)
  {
    var p = window.document.createElement("p")
    p.setAttribute("class", "paragraph-" + i);
    document.body.appendChild(window.document.createTextNode("Item #" + i));
  sys.puts(document.body.children.length);
  }
  
  
  global.window.document.compareDocumentPosition = function() {};
    dom.Node.prototype.addEventListener = 
    global.window.document.addEventListener = function() {};

  eval(data);
  
  jQuery("*").each(function() {
    sys.puts(sys.inspect(this.tagName));
  });
  
  sys.puts(jQuery("").length);
})<commit_msg>now running an unmodified version of jquery, something strange is going on though<commit_after>var sys = require("sys"), 
    dom = require("../../lib/level1/core").dom.level1.core,
    fs = require("fs");
    
global.window = require("../../lib/browser").windowAugmentation(dom);
global.document = global.window.document;
global.location = global.window.location;
var window = global;
global.navigator = { userAgent: "node-js" };

fs.readFile(__dirname + "/jquery.js", function(err, data) {
  for (var i = 0; i<10; i++)
  {
    var p = window.document.createElement("p")
    p.setAttribute("class", "p" + i);
    document.body.appendChild(window.document.createTextNode("Item #" + i));
  sys.puts(document.body.children.length);
  }
  
  
  global.window.document.compareDocumentPosition = function() {};
    dom.Node.prototype.addEventListener = 
    global.window.document.addEventListener = function() {};

  eval(data);
  
  
  
  jQuery("p0").each(function() {
    sys.puts(sys.inspect(this.tagName));
  });
  
  sys.puts(jQuery("").length);
})
{'fraction_non_alphanumeric': 0.1833824975417896, 'fraction_numerical': 0.005408062930186824, 'mean_word_length': 3.822274881516588, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5485029', 'n_tokens_mistral': 656, 'n_tokens_neox': 641, 'n_words': 106}