<commit_before><%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="chrome" tagdir="/WEB-INF/tags/chrome" %>
<%@taglib prefix="tags" tagdir="/WEB-INF/tags"%>


<%@page language="java" isErrorPage="true"%>

<%@ page isErrorPage="true" %>
<%@ page language="java" %>

<%
    Object statusCode = request.getAttribute("javax.servlet.error.status_code");
    Object exceptionType = request.getAttribute("javax.servlet.error.exception_type");
    Object message = request.getAttribute("javax.servlet.error.message");
%>

<page:applyDecorator  name="standard">

<html>
<head>
    <title>Error Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script type="text/javascript" language="JavaScript">
        function PanelCombo(element) {
            panelDiv = $(element+"-interior");
            imageId= element+'-image';
            imageSource=document.getElementById(imageId).src;
            if (panelDiv.style.display == 'none') {
                new Effect.OpenUp(panelDiv, arguments[1] || {});
                document.getElementById(imageId).src=imageSource.replace('minimize','maximize');
            } else {
                new Effect.CloseDown(panelDiv, arguments[1] || {});
                document.getElementById(imageId).src=imageSource.replace('maximize','minimize');
            }
        }
        Effect.OpenUp = function(element) {
            element = $(element);
            new Effect.BlindDown(element, arguments[1] || {});
        }

        Effect.CloseDown = function(element) {
            element = $(element);
            new Effect.BlindUp(element, arguments[1] || {});
        }

        Effect.Combo = function(element) {
            element = $(element);
            if (element.style.display == 'none') {
                new Effect.OpenUp(element, arguments[1] || {});
            } else {
                new Effect.CloseDown(element, arguments[1] || {});
            }
        }
    </script>
</head>

<body>

<chrome:box title="Error" autopad="true">

    <div class="row">
        <div class="error">
            <div class="label">
                ERROR:
            </div>
        </div>
        <div class="value">
            The system encountered an error. Please contact your system administrator
        </div>
    </div>

    <div class="row">
        <div class="value">
            <a href="<c:url value="/"/>">Return Home</a>
        </div>
    </div>
</chrome:box>


<div class="box">
<!-- header -->
<div class="header"><div class="background-L"><div class="background-R">
    <table width="100%"><tr>
        <td>
            <h2>Detailed Error</h2>
        </td>
        <td align="right">
            <div id="error-image-div">
                <a href="javascript:
			PanelCombo('error');
				">
                    <img id="error-image" src="<tags:imageUrl name="minimize.gif"/>"
                         border="0" alt="toggle button"></a>
            </div>
        </td>
    </tr>
    </table>
</div></div></div>
<!-- end header --><!-- end header -->

<!-- inner border -->
<div class="border-T"><div class="border-L"><div class="border-R"><div class="border-B"><div class="border-TL"><div class="border-TR"><div class="border-BL"><div class="border-BR">
    <div id="error-interior" class="interior" style="display:none;">
        <div class="content">

            <TABLE CELLPADDING="2" CELLSPACING="2" BORDER="1" WIDTH="50%">
                <TR>
                    <TD WIDTH="20%"><B>Status Code</B></TD>
                    <TD WIDTH="80%"><%= statusCode %></TD>
                </TR>
                <TR>
                    <TD WIDTH="20%"><B>Exception Type</B></TD>
                    <TD WIDTH="80%"><%= exceptionType %></TD>
                </TR>
                <TR>
                    <TD WIDTH="20%"><B>Message</B></TD>
                    <TD WIDTH="80%"><%= message %></TD>
                </TR>
            </TABLE>

            <hr>
            <b>  Header List </b>
            <table border=3>
                <tr>
                    <td>Name</td>
                    <td>Value</td>
                </tr>
                <%
                    String name  = "";
                    String value = "";

                    java.util.Enumeration headers = request.getHeaderNames();
                    while(headers.hasMoreElements())
                    {
                        name  = (String) headers.nextElement();
                        value = request.getHeader(name);
                %>
                <tr>
                    <td><%=name%></td>
                    <td><%=value%></td>
                </tr>
                <%
                    }
                %>
            </table>

            <hr>
            <b>Attribute List:</b>

            <table border=3>
                <%
                    java.util.Enumeration attributes = request.getAttributeNames();
                    while(attributes.hasMoreElements())
                    {
                        name  = (String) attributes.nextElement();

                        if (request.getAttribute(name) == null)
                        {
                            value = "null";
                        }
                        else
                        {
                            value = request.getAttribute(name).toString();
                        }
                %>
                <tr>
                    <td><%=name%></td>
                    <td><%=value%></td>
                </tr>
                <%
                    }
                %>
            </table>

        </div>
    </div></div></div></div></div></div></div></div>
    <!-- end inner border -->
</div>




</div>
</body>
</html>
</page:applyDecorator><commit_msg>imported the error page from caAERS. Related to CPR-1173.<commit_after><%@taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %>
<%@page language="java" isErrorPage="true" %>
<%@page isErrorPage="true" %>
<%@page language="java" %>

<%@include file="/WEB-INF/tags/taglibs.jsp" %>

<%
    Object statusCode = request.getAttribute("javax.servlet.error.status_code");
    Object exceptionType = request.getAttribute("javax.servlet.error.exception_type");
    Object message = request.getAttribute("javax.servlet.error.message");
%>

<%@page import="java.io.PrintStream" %>
<%@page import="java.io.PrintWriter" %>
 <page:applyDecorator name="standard">
    <html>
    <head>
        <style>
            div.error {
                font-size: 26px;
                text-align: left;
                color: #333366;
				margin-left:-2px;
				padding-bottom:16px;
            }

            div.errorMessage {
                font-size: 12px;
                text-align: left;
            }

            table.errortd {
                border: 0px gray dotted;
                font-size: 11px;
            }

            table.errortd td {
                border: 1px gray dotted;
                font-size: 11px;
				background-color:white;
            }
        </style>
        
        <title>Oops! You found a bug</title>

        <script type="text/javascript" language="JavaScript">
            function PanelCombo(element) {
                panelDiv = $(element + "-interior");
                
                if (panelDiv.style.display == 'none') {
                    new Effect.OpenUp(panelDiv, arguments[1] || {});
					$('errorlink').innerHTML = "Hide error code";
                } else {
                    new Effect.CloseDown(panelDiv, arguments[1] || {});
					$('errorlink').innerHTML = "View error code";
                }
            }
            
            Effect.OpenUp = function(element) {
                element = $(element);
                new Effect.BlindDown(element, arguments[1] || {});
            }

            Effect.CloseDown = function(element) {
                element = $(element);
                new Effect.BlindUp(element, arguments[1] || {});
            }

            Effect.Combo = function(element) {
                element = $(element);
                if (element.style.display == 'none') {
                    new Effect.OpenUp(element, arguments[1] || {});
                } else {
                    new Effect.CloseDown(element, arguments[1] || {});
                }
            }
        </script>
    </head>
    <body>
    <div style="overflow:auto; margin-bottom:10px;">
        <img src="<c:url value="/images/blue/error.png" />" style="float:left; margin:10px;">
        <div style="float:left; padding-left:20px; padding-top:12px;">
            <div class="error">
                Oops! We thought we squashed that bug.
            </div>
            <div class="errorMessage">
                Try refreshing the page, if that doesn't work you may need to start over.
            </div>
            <br/>
            <div class="errorMessage">
                <!--[if IE]>
                    &nbsp;&nbsp;
                <![endif]--><tags:button color="blue" onclick="javascript:location.reload(true)" value="Refresh" />
                <c:set var="homeHref">
                    <c:url value='/'/>
                </c:set>
                <!--[if IE]>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <![endif]--><tags:button color="blue" onclick="javascript:location.href='${homeHref}'" value="Go Home" />
                <br/>
                <br/>
                <a id="errorlink" href="javascript:PanelCombo('error');">View error code</a>
            </div>
			<br style="clear:both;"/>
        </div>
    </div>
		<div>
            <div id="error-interior" class="interior" style="display:none;">
                <TABLE class="errortd" WIDTH="100%" cellspacing="1">
                    <TR>
                    <td width="100px">
                    <B>
                        <font color="blue">
                            Status Code
                        </font>
                    </B>
                    </TD>
                    <TD>
                        <%= statusCode %>
                    </TD>
                </TR>
                <TR>
                    <TD>
                        <B>
                            <font color="blue">
                                Exception Type
                            </font>
                        </B>
                    </TD>
                    <TD>
                        <%= exceptionType %>
                    </TD>
                </TR>
                <TR>
                    <TD>
                        <B>
                            <font color="blue">
                                Message
                            </font>
                        </B>
                    </TD>
                    <TD>
                        <%= message %>
                    </TD>
                </TR>
                </TABLE>
                <br/>
                <b>Header List:</b>
                <table class="errortd" width="100%" cellspacing="1">
                    <tr>
                        <td width="100px">
                            <b>Name</b>
                        </td>
                        <td>
                            <b>Value</b>
                        </td>
                    </tr>
                    <%
                String name  = "";
                    String value = "";
                    java.util.Enumeration headers = request.getHeaderNames();
                    while(headers.hasMoreElements())
                    {
                    name  = (String) headers.nextElement();
                    value = request.getHeader(name); %>
                    <tr>
                        <td>
                            <font color="blue">
                                <%=name %>
                            </font>
                        </td>
                        <td>
                            <%=value %>
                        </td>
                    </tr>
                    <%
                } %>
                </table>
                <br/>
                <b>Attribute List:</b>
                <table class="errortd" width="100%" cellspacing="1">
                    <%
                java.util.Enumeration attributes = request.getAttributeNames();
                    while(attributes.hasMoreElements())
                    {
                    name  = (String) attributes.nextElement();
                    if (request.getAttribute(name) == null)
                    {
                    value = "null";
                    }
                    else
                    {
                    value = request.getAttribute(name).toString();
                    } %>
                    <tr>
                        <td>
                            <font color="blue">
                                <%=name %>
                            </font>
                        </td>
                        <td>
                            <%=value %>
                        </td>
                    </tr>
                    <%
                } %>
                    <tr>
                        <td colspan="2">
                            <b>StackTrace :</b>
                            <br/>
                            <pre>
                                             <%
                                                 exception.printStackTrace(new PrintWriter(out));
                                             %>
                                  </pre>
                        </td>
                    </tr>
                </table>
            </div>
            </td>
        </tr>
        </table>
		</div>

    </body>
    </html>
    </page:applyDecorator>
<!-- END decorated-error.jsp -->
{'fraction_non_alphanumeric': 0.14482908144829082, 'fraction_numerical': 0.0066488400664884, 'mean_word_length': 1.0740407673860912, 'pattern_counts': {'":': 0, '<': 301, '<?xml version=': 0, '>': 301, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6806318', 'n_tokens_mistral': 3794, 'n_tokens_neox': 3434, 'n_words': 631}