<commit_before><%@ page import="java.util.Objects" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<jsp:useBean id="entity" type="com.sdl.dxa.modules.search.model.SearchBox" scope="request"/>
<jsp:useBean id="markup" type="com.sdl.webapp.common.markup.Markup" scope="request"/>
<%
    String query = request.getParameter("q");
    query = Objects.equals(query, "null") ? query : "";
%>

<form class="navbar-form navbar-right ${entity.htmlClasses}" action="${entity.resultsLink}" method="get">
    <div class="form-group" ${markup.entity(entity)}>
        <input name="q" type="text" class="form-control" placeholder="${entity.searchBoxPlaceholderText}" value="<%=query%>">
    </div>
</form><commit_msg>TSI-1163 query text in search box<commit_after><%@ page import="java.util.Objects" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<jsp:useBean id="entity" type="com.sdl.dxa.modules.search.model.SearchBox" scope="request"/>
<jsp:useBean id="markup" type="com.sdl.webapp.common.markup.Markup" scope="request"/>
<%
    String query = request.getParameter("q");
    query = Objects.equals(query, "null") ? "" : query;
%>

<form class="navbar-form navbar-right ${entity.htmlClasses}" action="${entity.resultsLink}" method="get">
    <div class="form-group" ${markup.entity(entity)}>
        <input name="q" type="text" class="form-control" placeholder="${entity.searchBoxPlaceholderText}" value="<%=query%>">
    </div>
</form>
{'fraction_non_alphanumeric': 0.20965608465608465, 'fraction_numerical': 0.005291005291005291, 'mean_word_length': 6.037209302325581, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '6083316', 'n_tokens_mistral': 514, 'n_tokens_neox': 491, 'n_words': 84}