<commit_before>%h2 All topics

%ul.small-block-grid-3
  - @topics.each do |topic|
    %li
      .left= image_tag "http://placehold.it/100x100&text=[icon]"

      = link_to topic.name, edit_topic_path(topic)
      = truncate topic.content, length: 80*5
      = topic.tags.join(', ')
      = topic.sub_topics.map { |t| link_to t.name, edit_topic_path(t) }.join(', ').html_safe
      how many subtopics are contained here?
      
      = link_to "#{topic.creator.try(:name)}", public_profile_path(topic.creator)
      %br 
      = link_to "number", "#", title:"contributors?"
      = link_to 'Destroy', topic, method: :delete, data: { confirm: 'Are you sure?' }

/ %table
/   %tbody
/     - @topics.each do |topic|
/       %tr
/         %td= link_to topic.name, edit_topic_path(topic)<commit_msg>stop the madness<commit_after>%h2 All topics

%ul.small-block-grid-3
  - @topics.each do |topic|
    %li
      .left= image_tag "http://placehold.it/100x100&text=[icon]"

      = link_to topic.name, edit_topic_path(topic)
      = truncate topic.content, length: 80*5
      = topic.tags.join(', ')
      = topic.sub_topics.map { |t| link_to t.name, edit_topic_path(t) }.join(', ').html_safe
      how many subtopics are contained here?
      
      = link_to "#{topic.creator.name}", public_profile_path(topic.creator) if topic && topic.creator
      %br 
      = link_to "number", "#", title:"contributors?"
      = link_to 'Destroy', topic, method: :delete, data: { confirm: 'Are you sure?' }

/ %table
/   %tbody
/     - @topics.each do |topic|
/       %tr
/         %td= link_to topic.name, edit_topic_path(topic)
{'fraction_non_alphanumeric': 0.15786202610316968, 'fraction_numerical': 0.013673088875077687, 'mean_word_length': 2.851674641148325, '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': '5809127', 'n_tokens_mistral': 598, 'n_tokens_neox': 577, 'n_words': 122}