<commit_before><style>
.table td:nth-child(7){width:30%}
.hbox .flex1{width:20%;}
.hbox .flex2{width:10%;}
</style>
<script>
	$(document).ready(function() {
		var rolename = "<?php echo $role_data['rname'];?>";
		if(rolename != "Manager" && rolename!= "News dept leader"){
			$("#searching").hide();
		}
	})
</script>
<div id = "searching">
<form method = "post">
    <div class="hbox">
	<div class="form-group">
	  <label>Search by news ID or news title</label>
	   <input type="text" name ="news" class="form-control" placeholder="Enter exact ID or part of title name here"> 
	</div>
	<div class="form-group">
	    <button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span>  Search</button>
	</div>
  </div>
</form>
<form method = "post">
     <div class="form-group">
	  <p><b>News type:</b>
        	<input value="'Sports'" name="type[]" type="checkbox"> Sports
        	<input value="'Academic'" name="type[]" type = "checkbox"> Academic
        	<input value="'Social'" name="type[]" type="checkbox" > Social
        	<input value="'International'" name="type[]" type="checkbox" > International
        	<input value="'Others'" name= "type[]" type ="checkbox"> Others
         </p>
	<div class="hbox">
		<div class = "flex1"><b>Submitted date</b></div>
		<div class = "flex2">from</div>
		<div class = "flex1"><input type = "date" name = "submit_start" class="form-control" ></div>
		<div class = "flex2">to</div>
		<div class = "flex1"><input type = "date" name = "submit_end" class="form-control" ></div>
	</div>
	<p><b>Order by: </b>
		<input value="nid" name="order[]" type="checkbox" > News ID
		<input value="title" name="order[]" type="checkbox" > Birthday
        	<input value="author" name= "order[]" type ="checkbox"> Author name
        	<input value="submit_time" name="order[]" type="checkbox"> submited time
        	<input value="last_modified_time" name="order[]" type = "checkbox"> modified time
       
        </p>
	</div>
	<div class="form-group">
	    <button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span>  Search</button><commit_msg>Update news.php<commit_after><style>
.table td:nth-child(7){width:30%}
.hbox .flex1{width:20%;}
.hbox .flex2{width:10%;}
</style>
<script>
	$(document).ready(function() {
		var rolename = "<?php echo $role_data['rname'];?>";
		if(rolename != "Manager" && rolename!= "News dept leader"){
			$("#searching").hide();
		}
	})
</script>
<div id = "searching">
<form method = "post">
    <div class="hbox">
	<div class="form-group">
	  <label>Search by news ID or news title</label>
	   <input type="text" name ="news" class="form-control" placeholder="Enter exact ID or part of title name here"> 
	</div>
	<div class="form-group">
	    <button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span>  Search</button>
	</div>
  </div>
</form>
<form method = "post">
     <div class="form-group">
	  <p><b>News type:</b>
        	<input value="'Sports'" name="type[]" type="checkbox"> Sports
        	<input value="'Academic'" name="type[]" type = "checkbox"> Academic
        	<input value="'Social'" name="type[]" type="checkbox" > Social
        	<input value="'International'" name="type[]" type="checkbox" > International
        	<input value="'Others'" name= "type[]" type ="checkbox"> Others
         </p>
	<div class="hbox">
		<div class = "flex1"><b>Submitted date</b></div>
		<div class = "flex2">from</div>
		<div class = "flex1"><input type = "date" name = "submit_start" class="form-control" ></div>
		<div class = "flex2">to</div>
		<div class = "flex1"><input type = "date" name = "submit_end" class="form-control" ></div>
	</div>
	<p><b>Order by: </b>
		<input value="nid" name="order[]" type="checkbox" > News ID
		<input value="title" name="order[]" type="checkbox" > News title
        	<input value="author" name= "order[]" type ="checkbox"> Author name
        	<input value="submit_time" name="order[]" type="checkbox"> submited time
        	<input value="last_modified_time" name="order[]" type = "checkbox"> modified time
       
        </p>
	</div>
	<div class="form-group">
	    <button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span>  Search</button>
{'fraction_non_alphanumeric': 0.20761326482951892, 'fraction_numerical': 0.006539000467071462, 'mean_word_length': 4.197815533980583, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, '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': '339276', 'n_tokens_mistral': 1501, 'n_tokens_neox': 1428, 'n_words': 361}