<commit_before>- url = submodule_item.url(@ref) rescue ''
- name = submodule_item.basename
- return '' unless url
%tr{ class: "tree-item", url: url }
  %td.tree-item-file-name
    = image_tag "submodule.png"
    %span= truncate(name, length: 40)
  %td
    %code= submodule_item.id[0..10]
  %td{ colspan: 2 }
    = link_to truncate(url, length: 40), url
<commit_msg>Fix 500 error on page with submodules<commit_after>%tr{ class: "tree-item" }
  %td.tree-item-file-name
    = image_tag "submodule.png"
    %span
      = link_to truncate(submodule_item.name, length: 40), '#'
    @
    %span.monospace #{submodule_item.id[0..10]}
  %td
  %td
  %td

{'fraction_non_alphanumeric': 0.15968992248062017, 'fraction_numerical': 0.024806201550387597, 'mean_word_length': 3.3945578231292517, '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': '2134317', 'n_tokens_mistral': 263, 'n_tokens_neox': 248, 'n_words': 54}