<commit_before><%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> 

<f:loadBundle basename="gov.nih.nci.evs.reportwriter.bean.Resources" var="reportwriterBundle"/>

<%@ page contentType="text/html;charset=windows-1252"%>

<%@ page import="gov.nih.nci.evs.reportwriter.bean.*" %>
<%@ page import="gov.nih.nci.evs.reportwriter.utils.*" %>

<%@ page import="java.io.*" %>

<html>
<head>
<title>Home</title>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/css/styleSheet.css" />
<script src="<%= request.getContextPath() %>/js/script.js" type="text/javascript"></script>

</head>
<body>

<f:view>

<table summary="" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
	
  <%@ include file="/pages/templates/nciHeader.jsp" %>
	
  <tr>
      <td height="100%" valign="top">
      
           <table summary="" cellpadding="0" cellspacing="0" border="0" height="100%">
			
               <%@ include file="/pages/templates/applicationHeader.jsp" %>
				
               <tr>
                    <td width="190" valign="top" class="subMenu">
          
<%@ include file="/pages/templates/sideMenu.jsp" %>
            
                    </td>
                    <td valign="top" width="100%">
                         <table summary="" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
                              <tr>
                                    <td height="20" width="100%" class="mainMenu">
                
<%@ include file="/pages/templates/menuBar.jsp" %>
                  
                                    </td>
                              </tr>
                              
                              <tr>
                                    <td>
                         
<!--_____ main content begins _____-->
<h:form id="MODIFY_STANDARD_REPORT_TEMPLATEForm">
	<tr>
		<td width="100%" valign="top"><br>
		<!-- target of anchor to skip menus --><a name="content" />
			<table summary="" cellpadding="0" cellspacing="0" border="0" class="contentPage" width="600">
				<tr>
					<td>
						<table summary="" cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td class="dataTablePrimaryLabel" height="20">MODIFY REPORT TEMPLATE</td>
							</tr>
							<tr>
								<td>
									<table summary="Enter summary of data here" cellpadding="3" cellspacing="0" border="0" class="dataTable" width="100%">

<%

        StandardReportTemplate standardReportTemplate = null;

    	String label = null;
    	String codingScheme = null;
    	String version = null;
    	String rootcode = null;
    	String associationname = null;
    	Boolean direction = null;
    	String level = null; 
    	Object obj = null;
        
        try{
        
            String templateLabel = (String) request.getSession().getAttribute("selectedStandardReportTemplate");
            SDKClientUtil sdkclientutil = new SDKClientUtil();
	    
	    String FQName = "gov.nih.nci.evs.reportwriter.bean.StandardReportTemplate";
	    String methodName = "setLabel";
	    String key = templateLabel;
	    
	    obj = sdkclientutil.search(FQName, methodName, key);
	    
	    if (obj != null) {
	          standardReportTemplate = (StandardReportTemplate) obj;
		  label = standardReportTemplate.getLabel();
		  codingScheme = standardReportTemplate.getCodingSchemeName();
		  version = standardReportTemplate.getCodingSchemeVersion();
		  rootcode = standardReportTemplate.getRootConceptCode();
		  associationname = standardReportTemplate.getAssociationName();
		  direction = standardReportTemplate.getDirection();
		  Integer level_obj = standardReportTemplate.getLevel();
		  level = level_obj.toString();
 	    }

%>        
		  
		  
										
										
										<tr class="dataRowDark">
											<td class="dataCellText">Label</td>
											<td class="dataCellText"><%=label%></td>
										</tr>
										
										<tr class="dataRowLight">
											<td class="dataCellText">Coding Scheme</td>
											<td class="dataCellText"><%=codingScheme%></td>
										</tr>
                                        <input type="hidden" name="codingScheme" value="<%=codingScheme%>">
										
										<tr class="dataRowDark">
                                            <td class="dataCellText">Version</td>
                                            <td class="dataCellText"><input type="text" name="version" value="<%=version%>"></td>
										</tr>
										
										<tr class="dataRowLight">
											<td class="dataCellText">Root Concept Code</td>
											<td class="dataCellText"><input type="text" name="rootConceptCode" value="<%=rootcode%>" ></td>
										</tr>
										
                                        <tr class="dataRowDark">
                                            <td class="dataCellText">                                           
                                                <h:outputText value="Association Name" />
                                            </td>
                                            <td class="dataCellText">
                                                <h:selectOneMenu id="associationName" value="#{ontologyBean.selectedAssociation}" valueChangeListener="#{ontologyBean.associationSelectionChanged}" >
                                                     <f:selectItems value="#{ontologyBean.associationList}" />
                                                </h:selectOneMenu>                                          
                                            </td>                                           
                                        </tr>

									
										<tr class="dataRowLight">
											<td class="dataCellText">Direction</td>
											<td class="dataCellText">
											
											<%
											if (direction.equals(Boolean.FALSE))
											{
											%>
											    <input type="radio" name="direction" value="source" checked>Source&nbsp;
											    <input type="radio" name="direction" value="target">Target</td>
											<%
											}
											else
											{
											%>
											    <input type="radio" name="direction" value="source" >Source&nbsp;
											    <input type="radio" name="direction" value="target" checked>Target</td>
											<%
											}
											%>
											
											
										</tr>										
										
										<tr class="dataRowDark">
											<td class="dataCellText">
												<h:outputText value="Level" />
											</td>

											<td class="dataCellText">
                                                <h:selectOneMenu id="LevelId" value="#{ontologyBean.selectedLevel}" valueChangeListener="#{ontologyBean.levelSelectionChanged}" >
                                                    <f:selectItems value="#{ontologyBean.levelList}" />
                                                </h:selectOneMenu>
   	                                        </td>
    									</tr>
									
									
<%
	} catch (Exception ex) {
	
	}

%>
									
									</table>
								</td>
							</tr>
							<tr>
								<td align="right" class="actionSection">
									<!-- bottom action buttons begins -->
									<table cellpadding="4" cellspacing="0" border="0">
										<tr>
											<td><h:commandButton id="save" action="#{userSessionBean.saveModifiedTemplateAction}" value="Save" /></td>
                                            <td><input type="reset" value="Reset" /></td>
											<td><h:commandButton id="back" action="back" value="Back" /></td>
										</tr>
									</table>
									<!-- bottom action buttons end -->
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</h:form>
<!--_____ main content ends _____-->


                                    </td>
                              </tr>
 
 <tr><td>&nbsp;&nbsp;</td></tr>
 
                               <tr>
                                    <td height="20" width="100%" class="footerMenu">
                
                                         <%@ include file="/pages/templates/applicationFooter.jsp" %>
                  
                                    </td>
                              </tr>
                        </table>
                    </td>
               </tr>
           </table>
       </td>
  </tr>
  <tr>
       <td>
    
        <%@ include file="/pages/templates/nciFooter.jsp" %>
    
       </td>
  </tr>
</table>

</f:view>
</body>
</html>
<commit_msg>GF23129: Resolved JSP warning in modify_standard_report_template.jsp.<commit_after><%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> 

<f:loadBundle basename="gov.nih.nci.evs.reportwriter.bean.Resources" var="reportwriterBundle"/>

<%@ page contentType="text/html;charset=windows-1252"%>

<%@ page import="gov.nih.nci.evs.reportwriter.bean.*" %>
<%@ page import="gov.nih.nci.evs.reportwriter.utils.*" %>

<%@ page import="java.io.*" %>

<html>
<head>
<title>Home</title>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/css/styleSheet.css" />
<script src="<%= request.getContextPath() %>/js/script.js" type="text/javascript"></script>

</head>
<body>

<f:view>

<table summary="" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
	
  <%@ include file="/pages/templates/nciHeader.jsp" %>
	
  <tr>
      <td height="100%" valign="top">
      
           <table summary="" cellpadding="0" cellspacing="0" border="0" height="100%">
			
               <%@ include file="/pages/templates/applicationHeader.jsp" %>
				
               <tr>
                    <td width="190" valign="top" class="subMenu">
          
<%@ include file="/pages/templates/sideMenu.jsp" %>
            
                    </td>
                    <td valign="top" width="100%">
                         <table summary="" cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
                              <tr>
                                    <td height="20" width="100%" class="mainMenu">
                
<%@ include file="/pages/templates/menuBar.jsp" %>
                  
                                    </td>
                              </tr>
                              
                              <tr>
                                    <td>
                         
<!--_____ main content begins _____-->
<h:form id="MODIFY_STANDARD_REPORT_TEMPLATEForm">
	<tr>
		<td width="100%" valign="top"><br>
		<!-- target of anchor to skip menus --><a name="content" />
			<table summary="" cellpadding="0" cellspacing="0" border="0" class="contentPage" width="600">
				<tr>
					<td>
						<table summary="" cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td class="dataTablePrimaryLabel" height="20">MODIFY REPORT TEMPLATE</td>
							</tr>
							<tr>
								<td>
									<table summary="Enter summary of data here" cellpadding="3" cellspacing="0" border="0" class="dataTable" width="100%">

<%

        StandardReportTemplate standardReportTemplate = null;

    	String label = null;
    	String codingScheme = null;
    	String version = null;
    	String rootcode = null;
    	String associationname = null;
    	Boolean direction = null;
    	String level = null; 
    	Object obj = null;
        
        try{
        
            String templateLabel = (String) request.getSession().getAttribute("selectedStandardReportTemplate");
            SDKClientUtil sdkclientutil = new SDKClientUtil();
	    
	    String FQName = "gov.nih.nci.evs.reportwriter.bean.StandardReportTemplate";
	    String methodName = "setLabel";
	    String key = templateLabel;
	    
	    obj = sdkclientutil.search(FQName, methodName, key);
	    
	    if (obj != null) {
	          standardReportTemplate = (StandardReportTemplate) obj;
		  label = standardReportTemplate.getLabel();
		  codingScheme = standardReportTemplate.getCodingSchemeName();
		  version = standardReportTemplate.getCodingSchemeVersion();
		  rootcode = standardReportTemplate.getRootConceptCode();
		  associationname = standardReportTemplate.getAssociationName();
		  direction = standardReportTemplate.getDirection();
		  Integer level_obj = standardReportTemplate.getLevel();
		  level = level_obj.toString();
 	    }

%>        
		  
		  
										
										
										<tr class="dataRowDark">
											<td class="dataCellText">Label</td>
											<td class="dataCellText"><%=label%></td>
										</tr>
										
										<tr class="dataRowLight">
											<td class="dataCellText">Coding Scheme</td>
											<td class="dataCellText"><%=codingScheme%></td>
										</tr>
                                        <input type="hidden" name="codingScheme" value="<%=codingScheme%>">
										
										<tr class="dataRowDark">
                                            <td class="dataCellText">Version</td>
                                            <td class="dataCellText"><input type="text" name="version" value="<%=version%>"></td>
										</tr>
										
										<tr class="dataRowLight">
											<td class="dataCellText">Root Concept Code</td>
											<td class="dataCellText"><input type="text" name="rootConceptCode" value="<%=rootcode%>" ></td>
										</tr>
										
                                        <tr class="dataRowDark">
                                            <td class="dataCellText">                                           
                                                <h:outputText value="Association Name" />
                                            </td>
                                            <td class="dataCellText">
                                                <h:selectOneMenu id="associationName" value="#{ontologyBean.selectedAssociation}" valueChangeListener="#{ontologyBean.associationSelectionChanged}" >
                                                     <f:selectItems value="#{ontologyBean.associationList}" />
                                                </h:selectOneMenu>                                          
                                            </td>                                           
                                        </tr>

									
										<tr class="dataRowLight">
											<td class="dataCellText">Direction</td>
											<td class="dataCellText">
											
											<%
											if (direction.equals(Boolean.FALSE))
											{
											%>
											    <input type="radio" name="direction" value="source" checked="checked">Source&nbsp;
											    <input type="radio" name="direction" value="target">Target
											<%
											}
											else
											{
											%>
											    <input type="radio" name="direction" value="source" >Source&nbsp;
											    <input type="radio" name="direction" value="target" checked="checked">Target
											<%
											}
											%>
									       </td>
											
										</tr>										
										
										<tr class="dataRowDark">
											<td class="dataCellText">
												<h:outputText value="Level" />
											</td>

											<td class="dataCellText">
                                                <h:selectOneMenu id="LevelId" value="#{ontologyBean.selectedLevel}" valueChangeListener="#{ontologyBean.levelSelectionChanged}" >
                                                    <f:selectItems value="#{ontologyBean.levelList}" />
                                                </h:selectOneMenu>
   	                                        </td>
    									</tr>
									
									
<%
	} catch (Exception ex) {
	
	}

%>
									
									</table>
								</td>
							</tr>
							<tr>
								<td align="right" class="actionSection">
									<!-- bottom action buttons begins -->
									<table cellpadding="4" cellspacing="0" border="0">
										<tr>
											<td><h:commandButton id="save" action="#{userSessionBean.saveModifiedTemplateAction}" value="Save" /></td>
                                            <td><input type="reset" value="Reset" /></td>
											<td><h:commandButton id="back" action="back" value="Back" /></td>
										</tr>
									</table>
									<!-- bottom action buttons end -->
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</h:form>
<!--_____ main content ends _____-->


                                    </td>
                              </tr>
 
 <tr><td>&nbsp;&nbsp;</td></tr>
 
                               <tr>
                                    <td height="20" width="100%" class="footerMenu">
                
                                         <%@ include file="/pages/templates/applicationFooter.jsp" %>
                  
                                    </td>
                              </tr>
                        </table>
                    </td>
               </tr>
           </table>
       </td>
  </tr>
  <tr>
       <td>
    
        <%@ include file="/pages/templates/nciFooter.jsp" %>
    
       </td>
  </tr>
</table>

</f:view>
</body>
</html>

{'fraction_non_alphanumeric': 0.13731039166855333, 'fraction_numerical': 0.008206927779035544, 'mean_word_length': 1.327931488801054, 'pattern_counts': {'":': 0, '<': 362, '<?xml version=': 0, '>': 362, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 90, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5528696', 'n_tokens_mistral': 6249, 'n_tokens_neox': 4590, 'n_words': 796}