<commit_before>

<!-- Generic Object Editor Form -->
{% if form %}

<form action="view_object/id={{my_object.id}}" method="post">{% csrf_token %}	
	<div class="attribute_contact">
	<fieldset id="attribute_contact" class="attribute_{{object_type}}">
	  <legend>{{my_object.object_type}} - {{ my_object.description }}</legend>
	  {% for field in form %}	  	
	  <div class="{{ field.field.widget.attrs.class }}">
	  	<p><label> {{ field.label }} </label>
	  	{{ field }} {{ field.errors}} {{ field.help_text }} </p>
	  </div>
	  {% endfor %}
	 </fieldset>

		<INPUT type="submit" value="Save">	  	
	</div>
</form>

{% else %}
<form action="view_object/id={{my_object.id}}" method="post">{% csrf_token %}	
	<div class="attribute_contact">
	<fieldset id="attribute_contact" class="attribute_{{object_type}}">
	  <legend>{{my_object.object_type}} - {{ my_object.description }}</legend>
	  {% for field in defined_attributes %}	  	
	  <div class="{{ field.field.widget.attrs.class }}">
	  	<p><label> {{ field.label }} </label>
	  	{{ field }} {{ field.errors}} {{ field.help_text }} </p>
	  </div>
	  {% endfor %}
	 </fieldset>
<commit_msg>Switched back to defined/inherited/undefined view.<commit_after>

<!-- Generic Object Editor Form -->
{% if form_not_used %}

<form action="#" method="post"> 

{% csrf_token %}	
	<div class="attribute_contact">
	<fieldset id="attribute_contact" class="attribute_{{object_type}}">
	  <legend>{{my_object.object_type}} - {{ my_object.description }}</legend>
	  {% for field in form %}	  	
	  <div class="{{ field.field.widget.attrs.class }}">
	  	<p><label> {{ field.label }} </label>
	  	{{ field }} {{ field.errors}} {{ field.help_text }} </p>
	  </div>
	  {% endfor %}
	 </fieldset>

		<INPUT type="submit" value="Save">	  	
	</div>

 </form> 


{% else %}
<form action="view_object/id={{my_object.id}}" method="post">{% csrf_token %}	
	<div class="attribute_contact">
	<fieldset id="attribute_contact" class="attribute_{{object_type}}">
	  <legend>{{my_object.object_type}} - {{ my_object.description }}</legend>
	  {% for field in defined_attributes %}	  	
	  <div class="{{ field.field.widget.attrs.class }}">
	  	<p><label> {{ field.label }} </label>
	  	{{ field }} {{ field.errors}} {{ field.help_text }} </p>
	  </div>
	  {% endfor %}
	 </fieldset>


	<fieldset id="inherited_attributes" class="attribute_{{object_type}}">
	  <legend>Inherited Attributes	</legend>
	  {% for field in inherited_attributes %}	  	
	  <div class="{{ field.field.widget.attrs.class }}">
	  	<p><label> {{ field.label }} </label>
	  	{{ field }} {{ field.errors}} {{ field.help_text }} </p>
	  </div>
	  {% endfor %}
	 </fieldset>

{'fraction_non_alphanumeric': 0.2135043379856658, 'fraction_numerical': 0.0, 'mean_word_length': 3.9477611940298507, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '3623743', 'n_tokens_mistral': 992, 'n_tokens_neox': 893, 'n_words': 169}