<commit_before><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<!-- browse.jsp -->
<script type="text/javascript" src="js/browse.js"></script>
<script type="text/javascript">
function updateExample(value) {
	if(value=='ids') {
	   document.getElementById('quickSearchInput').value = '<fmt:bundle basename="model"><fmt:message key="model.quickSearch.example"/></fmt:bundle>';
	} else if (value=='tpls') {
	   document.getElementById('quickSearchInput').value = '<fmt:bundle basename="model"><fmt:message key="model.template.example"/></fmt:bundle>';
	} else if (value='bgs') {
	   document.getElementById('quickSearchInput').value = '<fmt:bundle basename="model"><fmt:message key="model.bag.example"/></fmt:bundle>';
	}
}
</script>
<tiles:importAttribute name="menuItem" ignore="true"/>
<html:form action="/browseAction" style="display:inline;">
  <fmt:message key="header.search.pre"/>
  <select name="quickSearchType" onchange="updateExample(this.value);" >
	<option value="ids" <c:if test="${quickSearchType=='ids'}">selected</c:if>>Identifiers</option>
	<option value="tpls" <c:if test="${quickSearchType=='tpls'}">selected</c:if>>Templates</option>
	<option value="bgs" <c:if test="${quickSearchType=='bgs'}">selected</c:if>>Lists</option>
  </select>
<fmt:message key="header.search.mid"/>
<input style="color:#666; font-style:italic;" type="text" id="quickSearchInput" name="value" size="20" value="<fmt:bundle basename="model"><fmt:message key="model.quickSearch.example"/></fmt:bundle>" onFocus="clearElement(this);">  
<html:submit><fmt:message key="header.search.button"/></html:submit>
<script type="text/javascript">
  updateExample('${quickSearchType}');
</script>
  
</html:form>
<!-- /browse.jsp --><commit_msg>example identifiers now are the default display in the quicksearch.<commit_after><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<!-- browse.jsp -->
<script type="text/javascript" src="js/browse.js"></script>
<script type="text/javascript">
function updateExample(value) {
	if (value=='tpls') {
	   document.getElementById('quickSearchInput').value = '<fmt:bundle basename="model"><fmt:message key="model.template.example"/></fmt:bundle>';
	} else if (value='bgs') {
	   document.getElementById('quickSearchInput').value = '<fmt:bundle basename="model"><fmt:message key="model.bag.example"/></fmt:bundle>';
	} else {
	   document.getElementById('quickSearchInput').value = '<fmt:bundle basename="model"><fmt:message key="model.quickSearch.example"/></fmt:bundle>';
	}
}
</script>
<tiles:importAttribute name="menuItem" ignore="true"/>
<html:form action="/browseAction" style="display:inline;">
  <fmt:message key="header.search.pre"/>
  <select name="quickSearchType" onchange="updateExample(this.value);" >
	<option value="ids" selected>Identifiers</option>
	<option value="tpls" <c:if test="${quickSearchType=='tpls'}">selected</c:if>>Templates</option>
	<option value="bgs" <c:if test="${quickSearchType=='bgs'}">selected</c:if>>Lists</option>
  </select>
<fmt:message key="header.search.mid"/>
<input style="color:#666; font-style:italic;" type="text" id="quickSearchInput" name="value" size="20" value="<fmt:bundle basename="model"><fmt:message key="model.quickSearch.example"/></fmt:bundle>" onFocus="clearElement(this);">  
<html:submit><fmt:message key="header.search.button"/></html:submit>

</html:form>
<!-- /browse.jsp -->
{'fraction_non_alphanumeric': 0.22584925690021232, 'fraction_numerical': 0.002653927813163482, 'mean_word_length': 7.3017621145374445, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, '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': '5706852', 'n_tokens_mistral': 1282, 'n_tokens_neox': 1234, 'n_words': 175}