<commit_before>- title "Rules for #{@account.name}"

%table
  %tr
    %th Matched Description
    %th Matched Debit
    %th Matched Sender
    %th Matched Recipient
    %th New Sender
    %th New Recipient
    %th New Account
  - for rule in collection
    %tr
      %td=h rule.matched_description
      %td= rule.matched_debit
      %td=h rule.matched_sender.name if @rule.matched_sender
      %td=h rule.matched_recipient.name if @rule.matched_recipient
      %td=h rule.new_sender.name  if @rule.new_sender
      %td=h rule.new_recipient.name if @rule.new_recipient
      %td=h rule.new_account.name
      %td= link_to "Show", resource_path(rule)
      %td= link_to "Edit", edit_resource_path(rule)
      %td= link_to "Delete", resource_path(rule), :confirm => 'Are you sure?', :method => :delete

.footer= link_to "New rule", new_account_rule_path<commit_msg>Oops.<commit_after>- title "Rules for #{@account.name}"

%table
  %tr
    %th Matched Description
    %th Matched Debit
    %th Matched Sender
    %th Matched Recipient
    %th New Sender
    %th New Recipient
    %th New Account
  - for rule in collection
    %tr
      %td=h rule.matched_description
      %td= rule.matched_debit
      %td=h rule.matched_sender.name if rule.matched_sender
      %td=h rule.matched_recipient.name if rule.matched_recipient
      %td=h rule.new_sender.name  if rule.new_sender
      %td=h rule.new_recipient.name if rule.new_recipient
      %td=h rule.new_account.name
      %td= link_to "Show", resource_path(rule)
      %td= link_to "Edit", edit_resource_path(rule)
      %td= link_to "Delete", resource_path(rule), :confirm => 'Are you sure?', :method => :delete

.footer= link_to "New rule", new_account_rule_path
{'fraction_non_alphanumeric': 0.10793465577596266, 'fraction_numerical': 0.0, 'mean_word_length': 3.2875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7635724', 'n_tokens_mistral': 600, 'n_tokens_neox': 589, 'n_words': 155}