<commit_before><%@page import="java.util.Map"%>
<%@page import="net.oauth.OAuthProblemException"%>
<%@page import="net.oauth.example.provider.servlets.CookieProvider"%>
<HTML>
<body>
<jsp:include page="/banner.jsp" />
OAuthProblemException:<br/>
<form>
<table>
<%
    OAuthProblemException p = (OAuthProblemException) request.getAttribute("OAuthProblemException");
    for (Map.Entry<String, Object> parameter : p.getParameters().entrySet()) {
        Object v = parameter.getValue();
        if (v != null) {
        String value = v.toString();
        %>
    <tr valign="top">
        <td align="right"><%=CookieProvider.htmlEncode(parameter.getKey())%>:&nbsp;</td>
        <td><%
            if (value == null) {
                %>&nbsp;<%
            } else if (value.length() < 60 && value.indexOf('\n') < 0) {
                %><%=CookieProvider.htmlEncode(value)%><%
            } else {
                %><textarea cols="60" rows="4" wrap="off" readonly="true"><%=CookieProvider.htmlEncode(value)%></textarea><%
            }
            %></td>
    </tr><%
        }
    }
%>
</table>
</form>
</body>
</HTML><commit_msg>moved htmlEncode into core library<commit_after><%@page import="java.util.Map"%>
<%@page import="net.oauth.OAuthProblemException"%>
<%@page import="net.oauth.server.OAuthServlet"%>
<HTML>
<body>
<jsp:include page="/banner.jsp" />
OAuthProblemException:<br/>
<form>
<table>
<%
    OAuthProblemException p = (OAuthProblemException) request.getAttribute("OAuthProblemException");
    for (Map.Entry<String, Object> parameter : p.getParameters().entrySet()) {
        Object v = parameter.getValue();
        if (v != null) {
            String value = v.toString();
            %>
    <tr valign="top">
        <td align="right"><%=OAuthServlet.htmlEncode(parameter.getKey())%>:&nbsp;</td>
        <td><%
            if (value == null) {
                %>&nbsp;<%
            } else if (value.length() < 60 && value.indexOf('\n') < 0) {
                %><%=OAuthServlet.htmlEncode(value)%><%
            } else {
                %><textarea cols="60" rows="4" wrap="off" readonly="true"><%=OAuthServlet.htmlEncode(value)%></textarea><%
            }
            %></td>
    </tr><%
        }
    }
%>
</table>
</form>
</body>
</HTML>
{'fraction_non_alphanumeric': 0.20070733863837312, 'fraction_numerical': 0.005305039787798408, 'mean_word_length': 2.715927750410509, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 65, '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': '1211658', 'n_tokens_mistral': 753, 'n_tokens_neox': 720, 'n_words': 121}