<commit_before><?php include('header.php'); ?>

	<?php 
        (null !== ($this->session->userdata('language_set')) ? $DefaultLanguage = $this->session->userdata('language_set') : $DefaultLanguage = 1);
    ?>

	<div class="container">
		<div style ="width:80%;margin:auto;">
			<?php
				if(isset($_GET['search']))
				{
					$searchValue= $_GET['search'];
					$display = "block";
					$display2 = "none";
				}
				else
				{
				    $searchValue = NULL;
				    $display = "none";
				    $display2 = "block";
				}
			?>
			<div  id="home_header" style="display:<?php echo $display2 ?>;">
				<center><img id="home_header" alt="Brand" style="filter:invert(90%);width: 80px;" class="img-responsive" src="<?php echo base_url("resources/images/Nazarene Logo-White.png"); ?>">
					<h1 style="font-family:'Constantia';font-size: 60px;">NAZARENE LEXICON</h1>
					<hr><h3><i>Begin typing the term, then select from the list</i></h3>
				</center>
				<br>
			</div>
			<div class="row">
				<div class="form-group col-md-5">
			    	<div class="form-group">
				      <label for="Language" class="col-md-4 control-label">Set target language:</label>
				     	<div class="col-md-8">
				    		<?php
								$lists = array();
								foreach($languages as $record)
								{
									$lists[$record->LanguageID]=$record->Language;
								}
							echo form_dropdown(['name' => 'Language','id' => 'Language', 'class' => 'form-control',
								'autocomplete' => 'on', 'onchange' => "insertParam(this,'Language');"],$lists,(isset($_GET['Language']) ? $_GET['Language'] : $DefaultLanguage)); ?>
				    	</div>
			    	</div>
			    </div>
				<div class="autocomplete_container col-md-7">
					<?php echo form_open("home/search",['class' => 'form','method' => 'get','id' => 'frm_dictionary']); ?>
					<div class="input-group">
						<?php echo form_input(['type' => 'text','name' => 'search','id' => 'search', 'class' => 'form-control','autocomplete' => 'off', 'placeholder' => 'Lookup','value' => $searchValue,'autofocus' => true]); ?>
						<span class="input-group-btn">
							<?php echo form_button(['type' => 'submit','class' => 'btn btn-default','content' => "<span class='btn-label'><i class='glyphicon glyphicon-search'></i></span>"]); ?>
						</span>
					</div>
				</div>

	    	</div>
	    	<!--<div class="row">
		    	<div class="form-group col-md-12">
			    	<div class="radio">
						<label class="col-md-2">
				        	<?php echo form_radio('option', 'Exact Match', TRUE); ?>
				            Exact Match
				        </label>
				    </div>
				    <div class="radio">
				          <label class="col-md-5">
							<?php echo form_radio('option', 'Manual Term', False); ?>
				            Manual Term
						</label>
					</div>
			    </div>
		    </div>-->
		    <div style="display:<?php echo $display;?>">
				<div class="col-md-11 col-center-block">
					<?php if(count($_record)): ?>
						<?php //foreach($_record as $record) { ?><commit_msg>Move form open<commit_after><?php include('header.php'); ?>

	<?php 
        (null !== ($this->session->userdata('language_set')) ? $DefaultLanguage = $this->session->userdata('language_set') : $DefaultLanguage = 1);
    ?>

	<div class="container">
		<div style ="width:80%;margin:auto;">
			<?php
				if(isset($_GET['search']))
				{
					$searchValue= $_GET['search'];
					$display = "block";
					$display2 = "none";
				}
				else
				{
				    $searchValue = NULL;
				    $display = "none";
				    $display2 = "block";
				}
			?>
			<div  id="home_header" style="display:<?php echo $display2 ?>;">
				<center><img id="home_header" alt="Brand" style="filter:invert(90%);width: 80px;" class="img-responsive" src="<?php echo base_url("resources/images/Nazarene Logo-White.png"); ?>">
					<h1 style="font-family:'Constantia';font-size: 60px;">NAZARENE LEXICON</h1>
					<hr><h3><i>Begin typing the term, then select from the list</i></h3>
				</center>
				<br>
			</div>
			<div class="row">
				<?php echo form_open("home/search",['class' => 'form','method' => 'get','id' => 'frm_dictionary']); ?>
				<div class="form-group col-md-5">
			    	<div class="form-group">
				      <label for="Language" class="col-md-4 control-label">Set target language:</label>
				     	<div class="col-md-8">
				    		<?php
								$lists = array();
								foreach($languages as $record)
								{
									$lists[$record->LanguageID]=$record->Language;
								}
							echo form_dropdown(['name' => 'Language','id' => 'Language', 'class' => 'form-control',
								'autocomplete' => 'on', 'onchange' => "insertParam(this,'Language');"],$lists,(isset($_GET['Language']) ? $_GET['Language'] : $DefaultLanguage)); ?>
				    	</div>
			    	</div>
			    </div>
				<div class="autocomplete_container col-md-7">
					<div class="input-group">
						<?php echo form_input(['type' => 'text','name' => 'search','id' => 'search', 'class' => 'form-control','autocomplete' => 'off', 'placeholder' => 'Lookup','value' => $searchValue,'autofocus' => true]); ?>
						<span class="input-group-btn">
							<?php echo form_button(['type' => 'submit','class' => 'btn btn-default','content' => "<span class='btn-label'><i class='glyphicon glyphicon-search'></i></span>"]); ?>
						</span>
					</div>
				</div>

	    	</div>
	    	<!--<div class="row">
		    	<div class="form-group col-md-12">
			    	<div class="radio">
						<label class="col-md-2">
				        	<?php echo form_radio('option', 'Exact Match', TRUE); ?>
				            Exact Match
				        </label>
				    </div>
				    <div class="radio">
				          <label class="col-md-5">
							<?php echo form_radio('option', 'Manual Term', False); ?>
				            Manual Term
						</label>
					</div>
			    </div>
		    </div>-->
		    <div style="display:<?php echo $display;?>">
				<div class="col-md-11 col-center-block">
					<?php if(count($_record)): ?>
						<?php //foreach($_record as $record) { ?>
{'fraction_non_alphanumeric': 0.21926574604243854, 'fraction_numerical': 0.008757157292017514, 'mean_word_length': 2.846502590673575, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 181, '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': '6517566', 'n_tokens_mistral': 2482, 'n_tokens_neox': 1914, 'n_words': 372}