<commit_before>= simple_form_for(@requirement) do |f|
  = f.error_notification
  = f.hidden_field :letter_id
  = f.input :label, as: :text
  -if @requirement.date
    = f.input :date, :as => :string, :input_html => {:class=>'datepicker', :value => @requirement.date.strftime("%d.%m.%Y")}
  -else
    = f.input :date, :as => :string, :input_html => {:class=>'datepicker', :value => Time.current.strftime("%d.%m.%Y")}

  = f.input :duedate, :as => :string, :input_html => {:class=>'datepicker'}
  = f.input :source if !@requirement.letter
  = f.input :body, as: :text
  = f.hidden_field :status
  = f.label :Статус
  = f.select :status_name, REQUIREMENT_STATUS.keys
  = f.input :result, as: :text
  = f.label 'Автор'
  = f.autocomplete_field :author_name, autocomplete_users_path
  -if @requirement.letter

    %p
    = "требование создано на основании: Вх.№ #{@requirement.letter.number} от #{@requirement.letter.date.strftime('%d.%m.%Y')}"

  %p
  = f.button :submit<commit_msg>upd: при создании Требования из Письма показываем тему и содержание Письма<commit_after>= simple_form_for(@requirement) do |f|
  = f.error_notification
  = f.hidden_field :letter_id
  = f.input :label, as: :text
  -if @requirement.date
    = f.input :date, :as => :string, :input_html => {:class=>'datepicker', :value => @requirement.date.strftime("%d.%m.%Y")}
  -else
    = f.input :date, :as => :string, :input_html => {:class=>'datepicker', :value => Time.current.strftime("%d.%m.%Y")}

  = f.input :duedate, :as => :string, :input_html => {:class=>'datepicker'}
  = f.input :source if !@requirement.letter
  = f.input :body, as: :text
  = f.hidden_field :status
  = f.label :Статус
  = f.select :status_name, REQUIREMENT_STATUS.keys
  = f.input :result, as: :text
  = f.label 'Автор'
  = f.autocomplete_field :author_name, autocomplete_users_path
  -if @requirement.letter
    %p
    = "требование создано на основании: Вх.№ #{@requirement.letter.number} от #{@requirement.letter.date.strftime('%d.%m.%Y')}"
    = "[#{@requirement.letter.subject}]"
    %br
    = "#{@requirement.letter.body}"

  %p
  = f.button :submit
{'fraction_non_alphanumeric': 0.1865778200856735, 'fraction_numerical': 0.0, 'mean_word_length': 4.164619164619165, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '6186392', 'n_tokens_mistral': 836, 'n_tokens_neox': 824, 'n_words': 160}