<commit_before><div class="control-group">
 
  <label class="control-label"  >{title}</label>
  <div class="controls">
	<select   name="{name}"  class="input-xlarge">
	<?php 
	$_modelname=ActiveRecord::plural_to_one(strtolower(d()->field_params[3]));
	$_first_letter=strtoupper(substr($_modelname,0,1));
	$_modelname = $_first_letter.substr($_modelname,1);

	d()->list_of_rows =  new $_modelname ();
	 
	?>
	<foreach list_of_rows>
	
			<?php
				$_id = d()->this->id;
				$_title = d()->this->title;
			?>
			<option <?php 

			if(!isset($_GET['$_field'])){
				if(d()->value==$_id) {
					print 'selected';
				}
			}else{
				if($_GET['$_field']==$_id) {
					print 'selected';
				}
			}
			
			?> value="<?php print $_id; ?>"><?php print $_title; ?></option>
		
		
	</foreach>
	</select>
	 
  </div>
</div>

<commit_msg>Для select_table последний параметр необязателен Closes #319<commit_after><div class="control-group">
 
  <label class="control-label"  >{title}</label>
  <div class="controls">
	<?php 
	if(count(d()->field_params)>3){
		$_table_name = d()->field_params[3];
	
	}else{
		$_table_name = ActiveRecord::one_to_plural( substr(d()->field_params[1],0,-3));
	}
	$_modelname=ActiveRecord::plural_to_one(strtolower($_table_name));
	$_first_letter=strtoupper(substr($_modelname,0,1));
	$_modelname = $_first_letter.substr($_modelname,1);

	d()->list_of_rows =  new $_modelname ();
	 
	?>
	<select   name="{name}"  class="input-xlarge">
	
	<foreach list_of_rows>
	
			<?php
				$_id = d()->this->id;
				$_title = d()->this->title;
			?>
			<option <?php 

			if(!isset($_GET['$_field'])){
				if(d()->value==$_id) {
					print 'selected';
				}
			}else{
				if($_GET['$_field']==$_id) {
					print 'selected';
				}
			}
			
			?> value="<?php print $_id; ?>"><?php print $_title; ?></option>
		
		
	</foreach>
	</select>
	 
  </div>
</div>


{'fraction_non_alphanumeric': 0.21204323211528564, 'fraction_numerical': 0.007720020586721565, 'mean_word_length': 3.1186440677966103, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 54, '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': '5264162', 'n_tokens_mistral': 841, 'n_tokens_neox': 711, 'n_words': 105}