<commit_before>var createLink = function(root, path) {
  $(root).parent().append("<a class='skipper-link' href='" + path + "'>skip -></a>");
}

var grabTree = function(root, current) {

  $.ajax({
    url: $(current).attr("href"),
    success: function(result) {
      objects = $('table.files tr td.content a', result);
      if(objects.length == 1)
      {
        grabTree(root, objects.first());
      }
      else if(root != current)
      {
        createLink(root, $(current).attr("href"));
      }
    }<commit_msg>Add check for directory with current version of GitHub<commit_after>var createLink = function(root, path) {
  $(root).parent().append("<a class='skipper-link' href='" + path + "'>skip -></a>");
}

var grabTree = function(root, current) {

  $.ajax({
    url: $(current).attr("href"),
    success: function(result) {
      objects = $('table.files tr td.content a', result);
      if(objects.length == 1)
      {
        grabTree(root, objects.first());
      }
      else if(root != current && $(current).parent().parent().find('.icon span').hasClass('octicon-file-directory'))
      {
        createLink(root, $(current).attr("href"));
      }
    }
{'fraction_non_alphanumeric': 0.19948849104859334, 'fraction_numerical': 0.0017050298380221654, 'mean_word_length': 3.006825938566553, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '4168761', 'n_tokens_mistral': 368, 'n_tokens_neox': 361, 'n_words': 78}