<commit_before><div id="message">
	
<% form_for [@message], :html => { :multipart => true } do |f| %>
<%= error_messages_for :message %>

<%= hidden_field_tag('message[user_id]', @user.id) %>
<!--%= hidden_field_tag('message[replyto]', @replyto) % -->
<%= hidden_field_tag('message[from_email]', @replyto) %>
<%= hidden_field_tag('message[to_email]', @to) %>
<!--<div class="right"><%= link_to "See Sent Messages", user_messages_path(current_user) %></div> -->
<p>
<h1>Send Message To: 
<% if ["Battalion Commander","Command Sergeant Major","FRSA","Battalion FRG Leader", "Battalion FRG Co-Leader","Rear-D Commander"].include?(@position) %>
<%= f.select(:bcc_email, [["Please Select", ""], ["All Next of Kin (Includes NOK Parents)", @bnok], ["Spouses", @bspouses], ["Battalion Soldiers Only", @bsoldiers], ["Battalion Soldiers & Spouses", @bsoldierspouse], ["All Battalion Contacts", @ballcontacts], ["All FRG Leaders", @bfrgleaders], ["Senior Spouses", @senior_spouse], ["Attached Company(s) Only", @attached_company]]) %></h1><br />

<% else ["Company Commander","1st Sergeant","FRG Leader"].include?(@position) %>
<%= f.select(:bcc_email, [["Please Select", ""], ["All Next of Kin (Includes NOK Parents)", @nok], ["Spouses", @spouses], ["Soldiers Only", @soldiers], ["Soldiers & Spouses", @soldierspouse], ["All Company Contacts", @allcontacts]]) %></h1>

<% end %>

<% @attached.each do |a| %>
	Attached Units<br />
	<%= a.name %>

<% end %>
<% @attach_soldiers.each do |s| %>
	Attached Units<br />
	<%= s.lastname %>

<% end %>
<p>To:<br /><%= f.text_field :cc_mail, :size => 50 %><br /> </p>
<p>Attachment:<br /><%= f.file_field :attachment %><br /> </p>
<p>Subject:<br /><%= f.text_field :subject, :size => 90 %><br /> </p>  
<p>Message:<br /><%= f.text_area :body, :cols => 90, :rows => 20 %><br />
</p>
    <%= f.submit "Send" %>
<% end %>
</div>
<commit_msg>fix message new<commit_after><div id="message">
	
<% form_for [@message], :html => { :multipart => true } do |f| %>
<%= error_messages_for :message %>

<%= hidden_field_tag('message[user_id]', @user.id) %>
<!--%= hidden_field_tag('message[replyto]', @replyto) % -->
<%= hidden_field_tag('message[from_email]', @replyto) %>
<%= hidden_field_tag('message[to_email]', @to) %>
<!--<div class="right"><%= link_to "See Sent Messages", user_messages_path(current_user) %></div> -->
<p>
<h1>Send Message To: 
<% if ["Battalion Commander","Command Sergeant Major","FRSA","Battalion FRG Leader", "Battalion FRG Co-Leader","Rear-D Commander"].include?(@position) %>
<%= f.select(:bcc_email, [["Please Select", ""], ["All Next of Kin (Includes NOK Parents)", @bnok], ["Spouses", @bspouses], ["Battalion Soldiers Only", @bsoldiers], ["Battalion Soldiers & Spouses", @bsoldierspouse], ["All Battalion Contacts", @ballcontacts], ["All FRG Leaders", @bfrgleaders], ["Senior Spouses", @senior_spouse], ["Attached Company(s) Only", @attached_company]]) %></h1><br />

<% else ["Company Commander","1st Sergeant","FRG Leader"].include?(@position) %>
<%= f.select(:bcc_email, [["Please Select", ""], ["All Next of Kin (Includes NOK Parents)", @nok], ["Spouses", @spouses], ["Soldiers Only", @soldiers], ["Soldiers & Spouses", @soldierspouse], ["All Company Contacts", @allcontacts]]) %></h1>

<% end %>


<p>To:<br /><%= f.text_field :cc_mail, :size => 50 %><br /> </p>
<p>Attachment:<br /><%= f.file_field :attachment %><br /> </p>
<p>Subject:<br /><%= f.text_field :subject, :size => 90 %><br /> </p>  
<p>Message:<br /><%= f.text_area :body, :cols => 90, :rows => 20 %><br />
</p>
    <%= f.submit "Send" %>
<% end %>
</div>

{'fraction_non_alphanumeric': 0.25, 'fraction_numerical': 0.006711409395973154, 'mean_word_length': 5.878846153846154, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 111, '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': '947664', 'n_tokens_mistral': 1410, 'n_tokens_neox': 1295, 'n_words': 298}