<commit_before>var sys    = require("sys"),
    jsdom  = require("../../lib/jsdom"),
    window = jsdom.jsdom().createWindow();

// this also works:
// jQueryTag.src = "http://code.jquery.com/jquery-1.4.2.js";
jsdom.jQueryify(window, __dirname + "/jquery.js", function() {
  window.jQuery('body').append("<div class='testing'>Hello World, It works!</div>");
  sys.puts(window.jQuery(".testing").text());
});
<commit_msg>Using a path relative to document.URL, i.e. the run.js script itself.<commit_after>var sys    = require("sys"),
    jsdom  = require("../../lib/jsdom"),
    window = jsdom.jsdom().createWindow();

// this also works:
// jQueryTag.src = "http://code.jquery.com/jquery-1.4.2.js";
jsdom.jQueryify(window, "jquery.js", function() {
  window.jQuery('body').append("<div class='testing'>Hello World, It works!</div>");
  sys.puts(window.jQuery(".testing").text());
});

{'fraction_non_alphanumeric': 0.2287655719139298, 'fraction_numerical': 0.006795016987542469, 'mean_word_length': 4.051428571428572, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6398447', 'n_tokens_mistral': 294, 'n_tokens_neox': 293, 'n_words': 53}