<commit_before>var fs = require("fs"),
    sys = require("sys"),
    jsdom = require("jsdom"),
    argv = require("optimist").argv,
    scripts = [
        "http://d3js.org/d3.v3.min.js"
    ],
    render = require("./" + argv._[0]),
    write = sys.puts;

jsdom.env("<svg></svg>", scripts, function(errors, window) {
    render(window, argv, function(error, node) {
      node.setAttribute("xmlns", "http://www.w3.org/2000/svg");
      write('<?xml version="1.0" standalone="yes"?>');
      write(node.outerHTML);
    });
});<commit_msg>use local d3<commit_after>var fs = require("fs"),
    sys = require("sys"),
    jsdom = require("jsdom"),
    argv = require("optimist").argv,
    scripts = [
        "vendor/d3.v3.min.js"
    ],
    render = require("./" + argv._[0]),
    write = sys.puts;

jsdom.env("<svg></svg>", scripts, function(errors, window) {
    render(window, argv, function(error, node) {
      node.setAttribute("xmlns", "http://www.w3.org/2000/svg");
      write('<?xml version="1.0" standalone="yes"?>');
      write(node.outerHTML);
    });
});
{'fraction_non_alphanumeric': 0.22326454033771106, 'fraction_numerical': 0.020637898686679174, 'mean_word_length': 3.135658914728682, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 2, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '3642013', 'n_tokens_mistral': 378, 'n_tokens_neox': 369, 'n_words': 62}