<commit_before>%h1 Edit Blackmail
= form_for(@blackmail, :html => {:multipart => true}) do |f|
  = render 'shared/error_messages', :object => f.object
  .field
    = f.hidden_field(:user_id, :value => @user_id)
  .field
    = f.label :title
    %br
    = f.text_field :title
  .field
    = f.label :description
    %br
    = f.text_area(:description, :rows => 3)
  .field
    = f.label :victim_name
    %br
    = f.text_field :victim_name
  .field
    = f.label :victim_email
    %br
    = f.text_field :victim_email
  .field
    = f.label :specify_blackmail_expiration_time
    %br
    Date:
    = f.date_select :expired_at  
    Time:
    = f.time_select :expired_at, :ignore_date => true 
  .field
    = f.fields_for @blackmail.demands do |builder|
      = builder.label 'List your demands. Use a new line to separate multiple demands.'
      = builder.text_area :description, rows: 3 
  .field
    - 5.times do |i|
      = label_tag :blackmail_image
      %br
      = file_field_tag "images_#{i}", :accept => 'image/png,image/gif,image/jpeg'<commit_msg>can now see all demands in edit view<commit_after>%h1 Edit Blackmail
= form_for(@blackmail, :html => {:multipart => true}) do |f|
  = render 'shared/error_messages', :object => f.object
  .field
    = f.hidden_field(:user_id, :value => @user_id)
  .field
    = f.label :title
    %br
    = f.text_field :title
  .field
    = f.label :description
    %br
    = f.text_area(:description, :rows => 3)
  .field
    = f.label :victim_name
    %br
    = f.text_field :victim_name
  .field
    = f.label :victim_email
    %br
    = f.text_field :victim_email
  .field
    = f.label :specify_blackmail_expiration_time
    %br
    Date:
    = f.date_select :expired_at  
    Time:
    = f.time_select :expired_at, :ignore_date => true 
  .field
    - for i in 0..@count
      = f.fields_for :demands, @blackmail.demands[i] do |builder|
        %br
        = builder.label 'Demand'
        %br
        = builder.text_field :description, rows: 3
  .field
    - 5.times do |i|
      = label_tag :blackmail_image
      %br
      = file_field_tag "images_#{i}", :accept => 'image/png,image/gif,image/jpeg'
{'fraction_non_alphanumeric': 0.13128491620111732, 'fraction_numerical': 0.004189944134078212, 'mean_word_length': 2.6178451178451176, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '2995229', 'n_tokens_mistral': 807, 'n_tokens_neox': 788, 'n_words': 175}