<commit_before><% avatar_for_object = eval("#{@avatar_for}.find(#{@avatar_for_id})") -%>
<h1>Upload <%= @avatar_for.humanize -%> Picture: <%= link_to avatar_for_object.title, url_for(avatar_for_object) -%></h1>

<%= error_messages_for :avatar -%>

<%= form_tag({:action => :create}, :multipart => true) do %>

  <%= hidden_field_tag(:owner_type, @avatar_for ) -%>
  <%= hidden_field_tag(:owner_id, @avatar_for_id ) -%>
  <%= hidden_field_tag(:return_to, params[:return_to] ? params[:return_to] : eval("#{@avatar_for.downcase}_avatars_path(#{@avatar_for_id})")) -%>
  <br/>
	<p>
    <center>
      <b>Picture file: </b>
      <br/>
	  <h2><%= file_field 'avatar', 'image_file' %></h2>
	</center>
  </p>
	
  <br/>
  
  <p>
  	<center>
      <%= submit_tag "Upload", :disable_with => "Uploading..." %>
	    or <%= link_to "Cancel", params[:return_to] ? params[:return_to] : eval("#{@avatar_for.downcase}_avatars_path(#{@avatar_for_id})") -%>
	</center>
  </p>
<% end %><commit_msg>fix to formatting of new avatar<commit_after><% avatar_for_object = eval("#{@avatar_for}.find(#{@avatar_for_id})") -%>
<h1>Upload <%= @avatar_for.humanize -%>
  Picture: <%= link_to avatar_for_object.title, url_for(avatar_for_object) -%></h1>

<%= error_messages_for :avatar -%>

<%= form_tag({:action => :create}, :multipart => true) do %>

    <%= hidden_field_tag(:owner_type, @avatar_for) -%>
    <%= hidden_field_tag(:owner_id, @avatar_for_id) -%>
    <%= hidden_field_tag(:return_to, params[:return_to] ? params[:return_to] : eval("#{@avatar_for.downcase}_avatars_path(#{@avatar_for_id})")) -%>
    <br/>
    <p>

      <b>Picture file: </b>
      <br/>
      <%= file_field 'avatar', 'image_file' %>
    </p>

    <br/>

    <p>

    <%= submit_tag "Upload", :disable_with => "Uploading...", :class => "btn btn-primary" %>
    or <%= link_to "Cancel", params[:return_to] ? params[:return_to] : eval("#{@avatar_for.downcase}_avatars_path(#{@avatar_for_id})") -%>

    </p>
<% end %>
{'fraction_non_alphanumeric': 0.2288911495422177, 'fraction_numerical': 0.003051881993896236, 'mean_word_length': 4.556497175141243, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 62, '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': '5604366', 'n_tokens_mistral': 849, 'n_tokens_neox': 791, 'n_words': 112}