<commit_before>var selection = window.getSelection();
var urls = [];

function get_links(node) {
  var i;
  var child;
  var children;

  if (!node) {
    return;
  }

  children = node.childNodes;

  if (children === undefined || children.length === 0) {
    return;
  }

  for(i = 0; i < children.length; i++) {
    child = children[i];

    if (child.href) {
      urls.push(child.href);
    }

    get_links(child);
  }
}

function create_tabs() {
  var i;

  for (i = 0; i < urls.length; i++) {
    url = urls[i];
    window.open(url);
  }
}

get_links(selection.getRangeAt(0).cloneContents());
create_tabs(urls);
//debugger;
<commit_msg>Kill commented-out debugger statement<commit_after>var selection = window.getSelection();
var urls = [];

function get_links(node) {
  var i;
  var child;
  var children;

  if (!node) {
    return;
  }

  children = node.childNodes;

  if (children === undefined || children.length === 0) {
    return;
  }

  for(i = 0; i < children.length; i++) {
    child = children[i];

    if (child.href) {
      urls.push(child.href);
    }

    get_links(child);
  }
}

function create_tabs() {
  var i;

  for (i = 0; i < urls.length; i++) {
    url = urls[i];
    window.open(url);
  }
}

get_links(selection.getRangeAt(0).cloneContents());
create_tabs(urls);

{'fraction_non_alphanumeric': 0.16640986132511557, 'fraction_numerical': 0.0061633281972265025, 'mean_word_length': 2.9126506024096384, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3576773', 'n_tokens_mistral': 495, 'n_tokens_neox': 475, 'n_words': 104}