<commit_before><% display_name = (User.find_by_id(params[:user_id])).display_name %>

<h2>Send a new message to <%= display_name %></h2>

<% if params[:display_name] %>
<p>Writing a new message to <%= params[:display_name] %></p>  
<p>TODO: drop down box of your friends</p>
<%end%>

<%= error_messages_for 'message' %>

<% form_for :message do |f| %>
  <table>
    <tr valign="top">
      <th>Subject</th>
      <td><%= f.text_field :title, :size => 60 %></td>
    </tr>
    <tr valign="top">
      <th>Body</th>
      <td><%= f.text_area :body, :cols => 80 %></td>
    </tr>
    <tr>
      <th></th>
      <td><%= f.submit_tag 'Send' %></td>
    </tr>
  </table>
<% end %>

<br />

<%= link_to 'Back to inbox', :controller => 'message', :action => 'inbox', :display_name => @user.display_name %>
<commit_msg>Fix typo.<commit_after><% display_name = (User.find_by_id(params[:user_id])).display_name %>

<h2>Send a new message to <%= display_name %></h2>

<% if params[:display_name] %>
<p>Writing a new message to <%= params[:display_name] %></p>  
<p>TODO: drop down box of your friends</p>
<%end%>

<%= error_messages_for 'message' %>

<% form_for :message do |f| %>
  <table>
    <tr valign="top">
      <th>Subject</th>
      <td><%= f.text_field :title, :size => 60 %></td>
    </tr>
    <tr valign="top">
      <th>Body</th>
      <td><%= f.text_area :body, :cols => 80 %></td>
    </tr>
    <tr>
      <th></th>
      <td><%= submit_tag 'Send' %></td>
    </tr>
  </table>
<% end %>

<br />

<%= link_to 'Back to inbox', :controller => 'message', :action => 'inbox', :display_name => @user.display_name %>

{'fraction_non_alphanumeric': 0.2342007434944238, 'fraction_numerical': 0.007434944237918215, 'mean_word_length': 3.3181818181818183, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 91, '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': '2331373', 'n_tokens_mistral': 679, 'n_tokens_neox': 624, 'n_words': 149}