<commit_before>- item_action ||= lambda{|object| url_for(object)}

%tr[booking_template]
  %td
    = link_to booking_template.title, item_action.call(booking_template)
    - if booking_template.comments.present?
      %hr{:style => "height: 1px; margin: 0"}/
      %i= booking_template.comments
  %td= link_to booking_template.credit_account.code, account_path(booking_template.credit_account), :title => booking_template.credit_account.title unless booking_template.credit_account.nil?
  %td= link_to booking_template.debit_account.code, account_path(booking_template.debit_account), :title => booking_template.debit_account.title unless booking_template.debit_account.nil?
  %td.currency= currency_fmt(booking_template.amount)
  %td.action-links
    = icon_edit_link_to edit_booking_template_path(booking_template)
    = icon_delete_link_to booking_template, booking_template_path(booking_template)
    =# link_to image_tag('16x16/copy.png', :title => 'Copy'), copy_booking_template_path(booking_template), :remote => true
<commit_msg>Include booking template code in list.<commit_after>- item_action ||= lambda{|object| url_for(object)}

%tr[booking_template]
  %td
    = link_to "%s (%s)" % [booking_template.title, booking_template.code], item_action.call(booking_template)
    - if booking_template.comments.present?
      %hr{:style => "height: 1px; margin: 0"}/
      %i= booking_template.comments
  %td= link_to booking_template.credit_account.code, account_path(booking_template.credit_account), :title => booking_template.credit_account.title unless booking_template.credit_account.nil?
  %td= link_to booking_template.debit_account.code, account_path(booking_template.debit_account), :title => booking_template.debit_account.title unless booking_template.debit_account.nil?
  %td.currency= currency_fmt(booking_template.amount)
  %td.action-links
    = icon_edit_link_to edit_booking_template_path(booking_template)
    = icon_delete_link_to booking_template, booking_template_path(booking_template)
    =# link_to image_tag('16x16/copy.png', :title => 'Copy'), copy_booking_template_path(booking_template), :remote => true

{'fraction_non_alphanumeric': 0.11142322097378277, 'fraction_numerical': 0.0056179775280898875, 'mean_word_length': 6.799270072992701, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '7585954', 'n_tokens_mistral': 704, 'n_tokens_neox': 681, 'n_words': 106}