<commit_before>%tr.nested-form-item[line_item.object]
  %td= line_item.text_field :date, :style => 'width: 85px', 'date-picker' => 'true'
  %td= line_item.text_field :title, :required => true, :style => 'width: 30em'
  %td= line_item.text_field :times, :required => true, :style => 'width: 3em', :autocomplete => "off"
  %td= line_item.select :quantity, ['x', 'hours', 'overall', '%'].map{|quantity| [t(quantity, :scope => 'line_items.quantity'), quantity]}, {}, :style => 'width: 6em'
  %td= line_item.text_field :price, :required => true, :style => 'width: 5em', :autocomplete => "off"
  %td.currency.total_amount= currency_fmt(line_item.object.accounted_amount)
  %td= line_item.select :credit_account_id, accounts_as_collection(resource_class.available_credit_accounts), {:include_blank => true}, :class => 'combobox'
  %td= line_item.select :debit_account_id, accounts_as_collection(resource_class.available_debit_accounts), {:include_blank => true}, :class => 'combobox'
  %td.action_links
    = line_item.hidden_field :position
    = line_item.hidden_field :code
    = line_item.hidden_field :reference_code
    = line_item.hidden_field :booking_template_id
    = line_item.hidden_field :include_in_saldo_list
    = line_item.hidden_field :_destroy
    = link_to boot_icon('trash'), '#', :class => 'delete-nested-form-item'<commit_msg>Include direct_account in credit and debit account combobox for line items.<commit_after>%tr.nested-form-item[line_item.object]
  %td= line_item.text_field :date, :style => 'width: 85px', 'date-picker' => 'true'
  %td= line_item.text_field :title, :required => true, :style => 'width: 30em'
  %td= line_item.text_field :times, :required => true, :style => 'width: 3em', :autocomplete => "off"
  %td= line_item.select :quantity, ['x', 'hours', 'overall', '%'].map{|quantity| [t(quantity, :scope => 'line_items.quantity'), quantity]}, {}, :style => 'width: 6em'
  %td= line_item.text_field :price, :required => true, :style => 'width: 5em', :autocomplete => "off"
  %td.currency.total_amount= currency_fmt(line_item.object.accounted_amount)
  %td= line_item.select :credit_account_id, accounts_as_collection((resource_class.available_credit_accounts + [resource.direct_account]).uniq), {:include_blank => true}, :class => 'combobox'
  %td= line_item.select :debit_account_id, accounts_as_collection((resource_class.available_debit_accounts + [resource.direct_account]).uniq), {:include_blank => true}, :class => 'combobox'
  %td.action_links
    = line_item.hidden_field :position
    = line_item.hidden_field :code
    = line_item.hidden_field :reference_code
    = line_item.hidden_field :booking_template_id
    = line_item.hidden_field :include_in_saldo_list
    = line_item.hidden_field :_destroy
    = link_to boot_icon('trash'), '#', :class => 'delete-nested-form-item'
{'fraction_non_alphanumeric': 0.16015625, 'fraction_numerical': 0.004971590909090909, 'mean_word_length': 6.149746192893401, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 37, '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': '4921319', 'n_tokens_mistral': 996, 'n_tokens_neox': 953, 'n_words': 183}