<commit_before>:ruby
  audits = Audit.active

- if audits.present?
  %li.divider

- audits.each do |audit|
  %li.text-left
    = link_to audit_results_path(:audit_filter => audit.id, :types_filter => audit.audit_results.first.class_name, :audit_result_type_filter => [AuditResultType::AUDIT_RESULT_FAILED]) do
      %i.fa.fa-line-chart.fa-fw
      = "#{audit.name} results"

%li.divider
%li.text-left
  = link_to audit_results_path do
    %i.fa.fa-line-chart.fa-fw
    = "All audit results"
<commit_msg>chcek if no audit results<commit_after>:ruby
  audits = Audit.active

- if audits.present?
  %li.divider

- audits.each do |audit|
  %li.text-left
    - type_filter = audit.audit_results.count > 0 ? audit.audit_results.first.class_name : ''
    = link_to audit_results_path(:audit_filter => audit.id, :types_filter => type_filter, :audit_result_type_filter => [AuditResultType::AUDIT_RESULT_FAILED]) do
      %i.fa.fa-line-chart.fa-fw
      = "#{audit.name} results"

%li.divider
%li.text-left
  = link_to audit_results_path do
    %i.fa.fa-line-chart.fa-fw
    = "All audit results"

{'fraction_non_alphanumeric': 0.13707451701931922, 'fraction_numerical': 0.0009199632014719411, 'mean_word_length': 3.7719298245614037, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '246960', 'n_tokens_mistral': 427, 'n_tokens_neox': 423, 'n_words': 68}