<commit_before>:ruby
  all_related_nodes = node.all_related_nodes

%ul.tabs{"data-tab" => ""}
  - node.association_methods.each do |am|
    %li.tab-title
      %a{:href => "#related_#{am}"}
        = am

.tabs-content
  - node.association_methods.each do |am|
    .content{id: "related_#{am}"}
      %ul.inline-list
        - all_related_nodes[am].each do |related_node|
          %li
            = render 'small_node', node: related_node, link_path: url_for(related_node)<commit_msg>* small fix<commit_after>:ruby
  all_related_nodes = node.all_related_nodes

%ul.tabs{"data-tab" => ""}
  %li.tab-title.active
    %a{:href => "#all_related"}
      %strong
        all related nodes
  - node.association_methods.each do |am|
    %li.tab-title
      %a{:href => "#related_#{am}"}
        = am

.tabs-content
  .content.active#all_related
    %ul.inline-list
      - all_related_nodes.values.flatten.each do |related_node|
        %li
          = render 'small_node', node: related_node, link_path: url_for(related_node)
  - node.association_methods.each do |am|
    .content{id: "related_#{am}"}
      %ul.inline-list
        - all_related_nodes[am].each do |related_node|
          %li
            = render 'small_node', node: related_node, link_path: url_for(related_node)
{'fraction_non_alphanumeric': 0.14375490966221524, 'fraction_numerical': 0.0, 'mean_word_length': 2.9079754601226995, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '7587945', 'n_tokens_mistral': 451, 'n_tokens_neox': 451, 'n_words': 76}