<commit_before>- if content.is_a?(Hash)
  tr.active data-tt-id="#{id}" data-tt-parent-id="#{parent_id}"
    - if key.nil?
      td colspan="2" = (content.has_key?('result') ? content['result'] : '')
    - else
      td = key
      td
  - parent_id = id
  - i = 0
  - content.each do |key, value|
    - next if key == "result"
    = render partial: 'endpoints/row', locals: {key: key, content: value, id: "#{parent_id}_#{i += 1}", parent_id: parent_id}
- elsif content.is_a?(Array)
  - i = 0
  - if content.size == 1 && !content[0].has_key?('result')
    - content[0].each do |key, value|
      - i += 1
      = render partial: 'endpoints/row', locals: {key: key, content: value, id: "#{parent_id}_#{i}", parent_id: parent_id}
  - else
    - content.each do |log|
      - i += 1
      = render partial: 'endpoints/row', locals: {key: nil, content: log, id: "#{parent_id}_#{i}", parent_id: parent_id}
- else
  tr data-tt-id="#{id}" data-tt-parent-id="#{parent_id}"
    td = key
    td = content<commit_msg>reflect feedback<commit_after>- if content.is_a?(Hash)
  tr.active data-tt-id="#{id}" data-tt-parent-id="#{parent_id}"
    - if key.nil?
      td colspan="2" = (content.has_key?('result') ? content['result'] : '')
    - else
      td = key
      td
  - parent_id = id
  - i = 0
  - content.each do |key, value|
    - next if key == "result"
    = render partial: 'endpoints/row', locals: {key: key, content: value, id: "#{parent_id}_#{i += 1}", parent_id: parent_id}
- elsif content.is_a?(Array)
  - i = 0
  - if content.size == 1 && !content[0].has_key?('result')
    - content[0].each do |key, value|
      = render partial: 'endpoints/row', locals: {key: key, content: value, id: "#{parent_id}_#{i += 1}", parent_id: parent_id}
  - else
    - content.each do |log|
      = render partial: 'endpoints/row', locals: {key: nil, content: log, id: "#{parent_id}_#{i += 1}", parent_id: parent_id}
- else
  tr data-tt-id="#{id}" data-tt-parent-id="#{parent_id}"
    td = key
    td = content
{'fraction_non_alphanumeric': 0.19889502762430938, 'fraction_numerical': 0.009040683073832245, 'mean_word_length': 3.032388663967611, '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': '4997166', 'n_tokens_mistral': 752, 'n_tokens_neox': 747, 'n_words': 184}