<commit_before>vg.data.load = function(uri, callback) {
  if (vg.config.isNode) {
    // in node.js, consult base url and select file or http
    var url = vg_load_hasProtocol(uri) ? uri : vg.config.baseURL + uri,
        get = vg_load_isFile(url) ? vg_load_file : vg_load_http;
    get(url, callback);
  } else {
    // in browser, use xhr
    vg_load_xhr(uri, callback);
  }  <commit_msg>Add baseURL support for XHR loading.<commit_after>vg.data.load = function(uri, callback) {
  var url = vg_load_hasProtocol(uri) ? uri : vg.config.baseURL + uri;
  if (vg.config.isNode) {
    // in node.js, consult url and select file or http
    var get = vg_load_isFile(url) ? vg_load_file : vg_load_http;
    get(url, callback);
  } else {
    // in browser, use xhr
    vg_load_xhr(url, callback);
  }  
{'fraction_non_alphanumeric': 0.12185929648241206, 'fraction_numerical': 0.0, 'mean_word_length': 3.1727748691099475, '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': '1628821', 'n_tokens_mistral': 304, 'n_tokens_neox': 297, 'n_words': 73}