<commit_before>        <div class="span9 mainContent" id="admin_edit_items">

		  <?php echo $nav; ?>

		  <?php echo form_open('admin/edit/items', array('class' => 'form-horizontal')); ?>
				
		    <div class="row-fluid">
			  <div class="span2"></div>
			  <div class="span5"><strong>Add A Category</strong></div>
		    </div>
			  
		    <div class="row-fluid">
			  <div class="span1"></div>
		      <div class="span2">Name</div>
			  <div class="span4"><input type='text' name='category_name' value='' /></div>
			  <span class="help-inline"><?php echo form_error('category_name'); ?></span>	
	        </div>	
	        
		    <div class="row-fluid">
			  <div class="span1"></div>				
		      <div class="span2">Parent Category</div>
			  <div class="span4">
			    <select name='category_parent' autocomplete="off">					
				  <option value=''></option>
                  <option value='0'>Root Category</option>				  
<?php foreach($categories as $category) { ?>
				  <option value='<?php echo $category['id']; ?>'><?php echo $category['name']; ?></option>
<?php } ?>		
				</select>	
			  </div>
	          <span class="help-inline"><?php echo form_error('category_id'); ?></span>			  
		    </div>	
				
		    <div class="row-fluid">
			  <div class="span3"></div>
			  <div class="span4"><input type='submit' name='add_category' value='Add' class='btn btn-tiny' /></div>
	        </div>
		  </form>

			
		  <?php echo form_open('admin/edit/items', array('class' => 'form-horizontal')); ?>
		    <div class="row-fluid">
			  <div class="span2"></div>
			  <div class="span5"><strong>Rename Category</strong></div>
		    </div>
		    
		    <div class="row-fluid">
			  <div class="span1"></div>
			  <div class="span2">Category</div>
			  <div class="span5">
				<select name='category_id' autocomplete="off">
				  <option value=''></option>
<?php foreach($categories as $category) { ?>
				  <option value='<?php echo $category['id']; ?>'><?php echo $category['name']; ?></option>
<?php } ?>				  
				</select>
			  </div>
	          <span class="help-inline"><?php echo form_error('category_id'); ?></span>			  			  
		    </div>
		    
		    <div class="row-fluid">
			  <div class="span1"></div>
			  <div class="span2">New Name</div>
			  <div class="span5"><input type='text' name='category_name' value='' /></div>
	          <span class="help-inline"><?php echo form_error('category_name'); ?></span>			  			  
		    </div>
		    
		    <div class="row-fluid">
			  <div class="span3"></div>
			  <div class="span7"><input type='submit' name='rename_category' value='Rename' class='btn btn-tiny' /></div>
	        </div>
		  </form>
			
		  <?php echo form_open('admin/edit/items', array('class' => 'form-horizontal')); ?>
		    
			<div class="row-fluid">
			  <div class="span2"></div>
			  <div class="span5"><strong>Delete A Category</strong></div>
			</div>
			    
			<div class="row-fluid">
			  <div class="span1"></div>				
			  <div class="span2">Category</div>
			  <div class="span4">
				<select name='category_id' autocomplete="off">
				  <option value=''></option>
<?php foreach($categories as $category) { ?>
				  <option value='<?php echo $category['id']; ?>'><?php echo $category['name']; ?></option>
<?php } ?>		
				</select>
			  </div>
			  <span class="help-inline"><?php echo form_error('category_id'); ?></span>
			</div>
			
		    <div class="row-fluid">
			  <div class="span3"></div>
			  <div class="span7"><input type='submit' name='delete_category' value='Delete' class='btn btn-tiny' /></div>
	        </div>
	        
	      </form>
		</div><commit_msg>Improved formatting of items panel, others will soon follow<commit_after>        <div class="span9 mainContent" id="admin_edit_items">

		  <?php echo $nav; ?>

		  <?php echo form_open('admin/edit/items', array('class' => 'form-horizontal')); ?>
				
		    <div class="row-fluid">
			  <div class="span4 offset2"><strong>Add A Category</strong></div>
		    </div>
			  
		    <div class="row-fluid">
		      <div class="span2 offset1">Name</div>
			  <div class="span4"><input type='text' name='category_name' value='' /></div>
			  <span class="help-inline"><?php echo form_error('category_name'); ?></span>	
	        </div>	
	        
		    <div class="row-fluid">
		      <div class="span2 offset1">Parent Category</div>
			  <div class="span4">
			    <select name='category_parent' autocomplete="off">					
				  <option value=''></option>
                  <option value='0'>Root Category</option>				  
<?php foreach($categories as $category) { ?>
				  <option value='<?php echo $category['id']; ?>'><?php echo $category['name']; ?></option>
<?php } ?>		
				</select>	
			  </div>
	          <span class="help-inline"><?php echo form_error('category_id'); ?></span>			  
		    </div>	
				
		    <div class="row-fluid">
			  <div class="span4 offset3"><input type='submit' name='add_category' value='Add' class='btn btn-tiny' /></div>
	        </div>
		  </form>

			
		  <?php echo form_open('admin/edit/items', array('class' => 'form-horizontal')); ?>
		    <div class="row-fluid">
			  <div class="span4 offset2"><strong>Rename Category</strong></div>
		    </div>
		    
		    <div class="row-fluid">
			  <div class="span2 offset1">Category</div>
			  <div class="span4">
				<select name='category_id' autocomplete="off">
				  <option value=''></option>
<?php foreach($categories as $category) { ?>
				  <option value='<?php echo $category['id']; ?>'><?php echo $category['name']; ?></option>
<?php } ?>				  
				</select>
			  </div>
	          <span class="help-inline"><?php echo form_error('category_id'); ?></span>			  			  
		    </div>
		    
		    <div class="row-fluid">
			  <div class="span2 offset1">New Name</div>
			  <div class="span4"><input type='text' name='category_name' value='' /></div>
	          <span class="help-inline"><?php echo form_error('category_name'); ?></span>			  			  
		    </div>
		    
		    <div class="row-fluid">
			  <div class="span4 offset3"><input type='submit' name='rename_category' value='Rename' class='btn btn-tiny' /></div>
	        </div>
		  </form>
			
		  <?php echo form_open('admin/edit/items', array('class' => 'form-horizontal')); ?>
		    
			<div class="row-fluid">
			  <div class="span4 offset2"><strong>Delete A Category</strong></div>
			</div>
			    
			<div class="row-fluid">
			  <div class="span2 offset1">Category</div>
			  <div class="span4">
				<select name='category_id' autocomplete="off">
				  <option value=''></option>
<?php foreach($categories as $category) { ?>
				  <option value='<?php echo $category['id']; ?>'><?php echo $category['name']; ?></option>
<?php } ?>		
				</select>
			  </div>
			  <span class="help-inline"><?php echo form_error('category_id'); ?></span>
			</div>
			
		    <div class="row-fluid">
			  <div class="span4 offset3"><input type='submit' name='delete_category' value='Delete' class='btn btn-tiny' /></div>
	        </div>
	        
	      </form>
		</div>
{'fraction_non_alphanumeric': 0.20891046694273882, 'fraction_numerical': 0.008282164786520062, 'mean_word_length': 2.869613259668508, 'pattern_counts': {'":': 0, '<': 267, '<?xml version=': 0, '>': 273, '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': '7573882', 'n_tokens_mistral': 2694, 'n_tokens_neox': 2210, 'n_words': 466}