<commit_before><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ page import="edu.wustl.catissuecore.util.global.Variables,edu.wustl.catissuecore.util.global.Constants"%>

<%
        String operation = (String) request.getAttribute(Constants.OPERATION);
		String formName,prevPage=null,nextPage=null;
		boolean readOnlyValue;
		if (operation.equals(Constants.EDIT))
        {
            formName = Constants.REPORTED_PROBLEM_EDIT_ACTION;
			Long identifier = (Long)request.getAttribute(Constants.PREVIOUS_PAGE);
			prevPage = Constants.PROBLEM_DETAILS_ACTION+"?"+Constants.IDENTIFIER+"="+identifier;
			identifier = (Long)request.getAttribute(Constants.NEXT_PAGE);
			nextPage = Constants.PROBLEM_DETAILS_ACTION+"?"+Constants.IDENTIFIER+"="+identifier;
            readOnlyValue = true;
        }
        else
        {
            formName = Constants.REPORTED_PROBLEM_ADD_ACTION;
            readOnlyValue = false;
        }
%>

	<html:errors/>
    
		<table summary="" cellpadding="0" cellspacing="0" border="0" class="contentPage" width="600">
			
		   <html:form action="<%=Constants.REPORTED_PROBLEM_ADD_ACTION%>">		
		   	<logic:equal name="<%=Constants.OPERATION%>" value="<%=Constants.EDIT%>">
  	    	  <tr>
			  	<td align="right" colspan="3">

					<!-- action buttons begins -->
					<table cellpadding="6" cellspacing="2" border="0">
						<tr>
							<% 
								String backPage = Constants.REPORTED_PROBLEM_SHOW_ACTION+"?"+Constants.PAGE_NUMBER+"="+Constants.START_PAGE; 
							%>
							<td>
								<a class="contentLink" href="<%=backPage%>">Reported Problem Home</a>
							</td>
							
							<td>
								<logic:notEmpty name="prevpage">
									<a class="contentLink" href="<%=prevPage%>">
										<bean:message key="approveUser.previous"/>
									</a>
								</logic:notEmpty> |
								<logic:notEmpty name="nextPage">
									<a class="contentLink" href="<%=nextPage%>">
										<bean:message key="approveUser.next"/>
									</a>
								</logic:notEmpty> 
							</td>
						</tr>
					</table>
					<!-- action buttons end -->
						
				</td>
			</tr>		   	
			</logic:equal>
	    	 <tr>
			    <td>
			 	 <table summary="" cellpadding="3" cellspacing="0" border="0">
			 	 <tr>
					<td>
						<html:hidden property="operation" value="<%=operation%>" />
					</td>
				</tr>	
				
				<tr>
					<td>
						<html:hidden property="systemIdentifier" />
					</td>
				</tr>
			 	 
                 <tr> 
		            <td colspan="3" class="formMessage">
		            	<font color="#000000" size="2" face="Verdana">
		            		<bean:message  key="pagesubtitle.contactus" />
		            	</font>
		            </td>
                 </tr>
                 
				 <tr>
				     <td class="formTitle" height="20" colspan="3">
				     	<bean:message key="reportProblem.title"/>
				     </td>
				 </tr>
					
				 <tr>
				     <td class="formRequiredNotice" width="5">*</td>
				     <td class="formRequiredLabel">
				     	<label for="from">
				     		<bean:message key="fields.from"/>
				     	</label>
				     </td>
				     <td class="formField">
				     	<html:text styleClass="formFieldSized" size="30" styleId="from" property="from" readonly="<%=readOnlyValue%>"/>
				     </td>
				 </tr>
				 <tr>
				     <td class="formRequiredNotice" width="5">*</td>
				     <td class="formRequiredLabel">
				     	<label for="subject">
				     		<bean:message key="fields.title"/>
				     	</label>
				     </td>
				     <td class="formField">
				     	<html:text styleClass="formFieldSized" size="30" styleId="subject" property="subject" readonly="<%=readOnlyValue%>"/>
				     </td>
				 </tr>
				 <tr>
				     <td class="formRequiredNotice" width="5">*</td>
				     <td class="formRequiredLabel">
				     	<label for="messageBody">
				     		<bean:message key="fields.message" />
				     	</label>
				     </td>
				     <td class="formField">
				     	<html:textarea styleClass="formFieldSized" property="messageBody" styleId="messageBody" cols="32" rows="2" readonly="<%=readOnlyValue%>"/>
				     </td>
				 </tr>
				 <logic:equal name="<%=Constants.OPERATION%>" value="<%=Constants.EDIT%>">
				 <tr>
					<td class="formRequiredNotice" width="5">*</td>
					<td class="formRequiredLabel">
						<label for="activityStatus">
							<bean:message key="reportProblem.status" />
						</label>
					</td>
					<td class="formField">
						<html:select property="activityStatus" styleClass="formFieldSized" styleId="activityStatus" size="1">
							<html:options name="activityStatusList" labelName="activityStatusList" />
						</html:select>
					</td>
				 </tr>
				 <tr>
					<td class="formRequiredNotice" width="5">&nbsp;</td>
					<td class="formLabel">
						<label for="comments">
							<bean:message key="approveUser.comments" />
						</label>
					</td>
					<td class="formField"><commit_msg>*** empty log message ***<commit_after><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ page import="edu.wustl.catissuecore.util.global.Variables,edu.wustl.catissuecore.util.global.Constants"%>

<%
        String operation = (String) request.getAttribute(Constants.OPERATION);
		String formName,prevPage=null,nextPage=null;
		boolean readOnlyValue;
		if (operation.equals(Constants.EDIT))
        {
            formName = Constants.REPORTED_PROBLEM_EDIT_ACTION;
			Long identifier = (Long)request.getAttribute(Constants.PREVIOUS_PAGE);
			prevPage = Constants.PROBLEM_DETAILS_ACTION+"?"+Constants.IDENTIFIER+"="+identifier;
			identifier = (Long)request.getAttribute(Constants.NEXT_PAGE);
			nextPage = Constants.PROBLEM_DETAILS_ACTION+"?"+Constants.IDENTIFIER+"="+identifier;
            readOnlyValue = true;
        }
        else
        {
            formName = Constants.REPORTED_PROBLEM_ADD_ACTION;
            readOnlyValue = false;
        }
%>

	<html:errors/>
    
		<table summary="" cellpadding="0" cellspacing="0" border="0" class="contentPage" width="600">
			
		   <html:form action="<%=Constants.REPORTED_PROBLEM_ADD_ACTION%>">		
		   	<logic:equal name="<%=Constants.OPERATION%>" value="<%=Constants.EDIT%>">
  	    	  <tr>
			  	<td align="right" colspan="3">

					<!-- action buttons begins -->
					<table cellpadding="6" cellspacing="2" border="0">
						<tr>
							<% 
								String backPage = Constants.REPORTED_PROBLEM_SHOW_ACTION+"?"+Constants.PAGE_NUMBER+"="+Constants.START_PAGE; 
							%>
							<td>
								<a class="contentLink" href="<%=backPage%>">Reported Problem Home</a>
							</td>
							
							<td>
								<logic:notEmpty name="prevpage">
									<a class="contentLink" href="<%=prevPage%>">
										<bean:message key="approveUser.previous"/>
									</a>
								</logic:notEmpty> |
								<logic:notEmpty name="nextPage">
									<a class="contentLink" href="<%=nextPage%>">
										<bean:message key="approveUser.next"/>
									</a>
								</logic:notEmpty> 
							</td>
						</tr>
					</table>
					<!-- action buttons end -->
						
				</td>
			</tr>		   	
			</logic:equal>
	    	 <tr>
			    <td>
			 	 <table summary="" cellpadding="3" cellspacing="0" border="0">
			 	 <tr>
					<td>
						<html:hidden property="operation" value="<%=operation%>" />
					</td>
				</tr>	
				
				<tr>
					<td>
						<html:hidden property="systemIdentifier" />
					</td>
				</tr>
			 	 
                 <tr> 
		            <td colspan="3" class="formMessage">
		            	<font color="#000000" size="2" face="Verdana">
		            		<bean:message  key="pagesubtitle.contactus" />
		            	</font>
		            </td>
                 </tr>
                 
				 <tr>
				     <td class="formTitle" height="20" colspan="3">
				     	<bean:message key="reportProblem.title"/>
				     </td>
				 </tr>
					
				 <tr>
				     <td class="formRequiredNotice" width="5">*</td>
				     <td class="formRequiredLabel">
				     	<label for="from">
				     		<bean:message key="fields.from"/>
				     	</label>
				     </td>
				     <td class="formField">
				     	<html:text styleClass="formFieldSized" size="30" styleId="from" property="from" readonly="<%=readOnlyValue%>"/>
				     </td>
				 </tr>
				 <tr>
				     <td class="formRequiredNotice" width="5">*</td>
				     <td class="formRequiredLabel">
				     	<label for="subject">
				     		<bean:message key="fields.title"/>
				     	</label>
				     </td>
				     <td class="formField">
				     	<html:text styleClass="formFieldSized" size="30" styleId="subject" property="subject" readonly="<%=readOnlyValue%>"/>
				     </td>
				 </tr>
				 <tr>
				     <td class="formRequiredNotice" width="5">*</td>
				     <td class="formRequiredLabel">
				     	<label for="messageBody">
				     		<bean:message key="fields.message" />
				     	</label>
				     </td>
				     <td class="formField">
				     	<html:textarea styleClass="formFieldSized" property="messageBody" styleId="messageBody" cols="150" rows="7" readonly="<%=readOnlyValue%>"/>
				     </td>
				 </tr>
				 <logic:equal name="<%=Constants.OPERATION%>" value="<%=Constants.EDIT%>">
				 <tr>
					<td class="formRequiredNotice" width="5">*</td>
					<td class="formRequiredLabel">
						<label for="activityStatus">
							<bean:message key="reportProblem.status" />
						</label>
					</td>
					<td class="formField">
						<html:select property="activityStatus" styleClass="formFieldSized" styleId="activityStatus" size="1">
							<html:options name="activityStatusList" labelName="activityStatusList" />
						</html:select>
					</td>
				 </tr>
				 <tr>
					<td class="formRequiredNotice" width="5">&nbsp;</td>
					<td class="formLabel">
						<label for="comments">
							<bean:message key="approveUser.comments" />
						</label>
					</td>
					<td class="formField">
{'fraction_non_alphanumeric': 0.1733585732788682, 'fraction_numerical': 0.007472352296502939, 'mean_word_length': 2.457802273510162, 'pattern_counts': {'":': 0, '<': 271, '<?xml version=': 0, '>': 271, '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': '2477741', 'n_tokens_mistral': 4331, 'n_tokens_neox': 3175, 'n_words': 511}