<commit_before><%= form_for(@item, :html => { :multipart => true }) do |f| %>
	<%= render :partial => "shared/error_messages", :locals => { :model => @item } %>

	<div class="lhs">
		<ul class="form-holder">
			<% if @item.photo? %>
				<li class="clearfix">
					<%= image_tag @item.photo.url(:medium), :class => "item-pic" %>
				</li>
			<% else %>
				<li class="no-image-uploaded clearfix">

				</li>
			<% end %>
			<li class="button-holder">
				<%= image_tag("bt-upload-image.png", :alt => "Upload Image")  %>
	    		<%= f.file_field :photo, :class => 'realupload' %>
			</li>
		</ul>
	</div>
		
  <div class="rhs">
	<h2 class="edit">Edit Item</h2>
	<h2 class="new">New Item</h2>
	<ul class="form-holder">
		<li class="clearfix">
			<%= f.label :Purpose %>
		    <% if @item.purpose_update_available? || @item.new_record? %>
    		  <%= f.radio_button :purpose, 
                              Item::PURPOSE_SHARE, 
                              :checked => @item.share?, 
                              :id => :share %> 
           <%= f.label :Share, "Share", :class => "radio-labels-holder" %>
    		  <%= f.radio_button :purpose, 
                              Item::PURPOSE_GIFT, 
                              :checked => @item.gift?, 
                              :id => :gift %> 
            <%= f.label :Gift, "Gift", :class => "radio-labels-holder" %>

<!-- these buttons are not functional (shareage, communal) -->
		    	<%= f.radio_button :purpose, 
                               Item::PURPOSE_SHAREAGE, 
                               :checked => @item.share?, 
                               :id => :shareage,
                               :disabled => true %> 
            <%= f.label :Share, "Shareage", :class => "radio-labels-holder" %>
				
        		<%= f.radio_button :purpose, 
                               Item::PURPOSE_COMMUNAL, 
                               :checked => @item.gift?, 
                               :id => :communal,
                               :disabled => true %> 
           <%= f.label :Gift, "Communal", :class => "radio-labels-holder" %>


				<p class="description under-radio"><commit_msg>Fixed bug: When editing an Item, the 'Shareage' and 'Communage' options where sometimes being selected<commit_after><%= form_for(@item, :html => { :multipart => true }) do |f| %>
	<%= render :partial => "shared/error_messages", :locals => { :model => @item } %>

	<div class="lhs">
		<ul class="form-holder">
			<% if @item.photo? %>
				<li class="clearfix">
					<%= image_tag @item.photo.url(:medium), :class => "item-pic" %>
				</li>
			<% else %>
				<li class="no-image-uploaded clearfix">

				</li>
			<% end %>
			<li class="button-holder">
				<%= image_tag("bt-upload-image.png", :alt => "Upload Image")  %>
	    		<%= f.file_field :photo, :class => 'realupload' %>
			</li>
		</ul>
	</div>
		
  <div class="rhs">
	<h2 class="edit">Edit Item</h2>
	<h2 class="new">New Item</h2>
	<ul class="form-holder">
		<li class="clearfix">
			<%= f.label :Purpose %>
		    <% if @item.purpose_update_available? || @item.new_record? %>
    		  <%= f.radio_button :purpose, 
                              Item::PURPOSE_SHARE, 
                              :checked => @item.share?, 
                              :id => :share %> 
           <%= f.label :Share, "Share", :class => "radio-labels-holder" %>
    		  <%= f.radio_button :purpose, 
                              Item::PURPOSE_GIFT, 
                              :checked => @item.gift?, 
                              :id => :gift %> 
            <%= f.label :Gift, "Gift", :class => "radio-labels-holder" %>

<!-- these buttons are not functional (shareage, communal) -->
		    	<%= f.radio_button :purpose, 
                               Item::PURPOSE_SHAREAGE, 
                               :id => :shareage,
                               :disabled => true %> 
            <%= f.label :Share, "Shareage", :class => "radio-labels-holder" %>
				
        		<%= f.radio_button :purpose, 
                               Item::PURPOSE_COMMUNAL, 
                               :id => :communal,
                               :disabled => true %> 
           <%= f.label :Gift, "Communal", :class => "radio-labels-holder" %>


				<p class="description under-radio">
{'fraction_non_alphanumeric': 0.1782547830144657, 'fraction_numerical': 0.0018665422305179655, 'mean_word_length': 1.6188149053146, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 119, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2204810', 'n_tokens_mistral': 1530, 'n_tokens_neox': 1308, 'n_words': 257}