<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.Constants,edu.wustl.catissuecore.storage.StorageContainerGridObject"%>

<script>
function setParentWindowValue(elementName,elementValue)
{ 
	for (var i=0;i < top.opener.document.forms[0].elements.length;i++)
    {
    	if (top.opener.document.forms[0].elements[i].name == elementName)
		{
			top.opener.document.forms[0].elements[i].value = elementValue;
		}
    }
}

function closeFramedWindow()
{
	top.window.close();
}
</script>

<%
	StorageContainerGridObject storageContainerGridObject 
			= (StorageContainerGridObject)request.getAttribute(Constants.STORAGE_CONTAINER_GRID_OBJECT);
	int [][]fullStatus = (int [][])request.getAttribute(Constants.STORAGE_CONTAINER_CHILDREN_STATUS);
	int [][] childContainerSystemIdentifiers = (int [][])request.getAttribute(Constants.CHILD_CONTAINER_SYSTEM_IDENTIFIERS);
	String pageOf = (String)request.getAttribute(Constants.PAGEOF);
	String storageContainerType = null;
	Integer startNumber = null;
	if (pageOf.equals(Constants.PAGEOF_STORAGE_LOCATION))
	{
		storageContainerType = (String)request.getAttribute(Constants.STORAGE_CONTAINER_TYPE);
		startNumber = (Integer)request.getAttribute(Constants.START_NUMBER);
	}
%>

<html:errors/>

</br>
<!-- target of anchor to skip menus -->
<table summary="" cellpadding="0" cellspacing="0" border="0" class="contentPage" width="600">
	<tr>
		<td>
		<table summary="" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td>
					<table summary="Enter summary of data here" cellpadding="3" 
							cellspacing="0" border="0" class="dataTable" width="100%">
					<% for (int i=0;i<storageContainerGridObject.getOneDimensionCapacity().intValue();i++){%>
						<tr class="dataRowLight">	
					<% for (int j=0;j<storageContainerGridObject.getTwoDimensionCapacity().intValue();j++){
						if (fullStatus[i][j] != 0)
						{
							String openStorageContainer = null;
							if (pageOf.equals(Constants.PAGEOF_SPECIMEN))
							{
								openStorageContainer = Constants.SHOW_STORAGE_CONTAINER_GRID_VIEW_ACTION
                    			+ "?" + Constants.IDENTIFIER + "=" + childContainerSystemIdentifiers[i][j]
                    			+ "&" + Constants.PAGEOF + "=" + pageOf;
							}
							else
							{
								openStorageContainer = Constants.SHOW_STORAGE_CONTAINER_GRID_VIEW_ACTION
                    			+ "?" + Constants.IDENTIFIER + "=" + childContainerSystemIdentifiers[i][j]
                    			+ "&" + Constants.STORAGE_CONTAINER_TYPE + "=" + storageContainerType
								+ "&" + Constants.PAGEOF + "=" + pageOf;
							}
							if (fullStatus[i][j] == 1)
							{%>
							<td class="dataCellText">
								<a href="<%=openStorageContainer%>">
									<img src="images/redbox.gif" width="40" height="40" border="0">
								</a>
 							</td>
					   	  <%}
							else{%>
							<td class="dataCellText">
								<img src="images/specimen.jpg" width="40" height="40" border="0">
 							</td>
							<%}%>
						<%}
						else
						{ 
							String setParentWindowContainer = null;
							if (pageOf.equals(Constants.PAGEOF_SPECIMEN))
							{
								setParentWindowContainer = "javascript:setParentWindowValue('positionDimensionOne','"+
															  + i + "');"+"javascript:setParentWindowValue('positionDimensionTwo','"+
															  + j + "');"+"javascript:setParentWindowValue('storageContainer','"+
															  + storageContainerGridObject.getSystemIdentifier() + "');closeFramedWindow()";
							}
							else
							{
								setParentWindowContainer = "javascript:setParentWindowValue('positionInParentContainer','"
															  + storageContainerGridObject.getType() + " : " 
															  + storageContainerGridObject.getSystemIdentifier()
															  + " Pos (" + i + "," + j + ")');"
															  + "javascript:setParentWindowValue('positionDimensionOne','"+
															  + i + "');"+"javascript:setParentWindowValue('positionDimensionTwo','"+
															  + j + "');"
															  + "javascript:setParentWindowValue('parentContainerId','"+
															  + storageContainerGridObject.getSystemIdentifier() + "');"
															  + "javascript:setParentWindowValue('startNumber','"+
															  + startNumber.intValue() + "');closeFramedWindow()";
							}
						%>
						<td class="dataCellText">
						 	<a href="<%=setParentWindowContainer%>">
								<img src="images/bluebox.gif" width="40" height="40" border="0">
							</a>
						</td><commit_msg>Changed the set attributes of Specimen<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.Constants,edu.wustl.catissuecore.storage.StorageContainerGridObject"%>

<script>
function setParentWindowValue(elementName,elementValue)
{ 
	for (var i=0;i < top.opener.document.forms[0].elements.length;i++)
    {
    	if (top.opener.document.forms[0].elements[i].name == elementName)
		{
			top.opener.document.forms[0].elements[i].value = elementValue;
		}
    }
}

function closeFramedWindow()
{
	top.window.close();
}
</script>

<%
	StorageContainerGridObject storageContainerGridObject 
			= (StorageContainerGridObject)request.getAttribute(Constants.STORAGE_CONTAINER_GRID_OBJECT);
	int [][]fullStatus = (int [][])request.getAttribute(Constants.STORAGE_CONTAINER_CHILDREN_STATUS);
	int [][] childContainerSystemIdentifiers = (int [][])request.getAttribute(Constants.CHILD_CONTAINER_SYSTEM_IDENTIFIERS);
	String pageOf = (String)request.getAttribute(Constants.PAGEOF);
	String storageContainerType = null;
	Integer startNumber = null;
	if (pageOf.equals(Constants.PAGEOF_STORAGE_LOCATION))
	{
		storageContainerType = (String)request.getAttribute(Constants.STORAGE_CONTAINER_TYPE);
		startNumber = (Integer)request.getAttribute(Constants.START_NUMBER);
	}
%>

<html:errors/>

</br>
<!-- target of anchor to skip menus -->
<table summary="" cellpadding="0" cellspacing="0" border="0" class="contentPage" width="600">
	<tr>
		<td>
		<table summary="" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td>
					<table summary="Enter summary of data here" cellpadding="3" 
							cellspacing="0" border="0" class="dataTable" width="100%">
					<% for (int i=0;i<storageContainerGridObject.getOneDimensionCapacity().intValue();i++){%>
						<tr class="dataRowLight">	
					<% for (int j=0;j<storageContainerGridObject.getTwoDimensionCapacity().intValue();j++){
						if (fullStatus[i][j] != 0)
						{
							String openStorageContainer = null;
							if (pageOf.equals(Constants.PAGEOF_SPECIMEN))
							{
								openStorageContainer = Constants.SHOW_STORAGE_CONTAINER_GRID_VIEW_ACTION
                    			+ "?" + Constants.IDENTIFIER + "=" + childContainerSystemIdentifiers[i][j]
                    			+ "&" + Constants.PAGEOF + "=" + pageOf;
							}
							else
							{
								openStorageContainer = Constants.SHOW_STORAGE_CONTAINER_GRID_VIEW_ACTION
                    			+ "?" + Constants.IDENTIFIER + "=" + childContainerSystemIdentifiers[i][j]
                    			+ "&" + Constants.STORAGE_CONTAINER_TYPE + "=" + storageContainerType
								+ "&" + Constants.PAGEOF + "=" + pageOf;
							}
							if (fullStatus[i][j] == 1)
							{%>
							<td class="dataCellText">
								<a href="<%=openStorageContainer%>">
									<img src="images/redbox.gif" width="40" height="40" border="0">
								</a>
 							</td>
					   	  <%}
							else{%>
							<td class="dataCellText">
								<img src="images/specimen.jpg" width="40" height="40" border="0">
 							</td>
							<%}%>
						<%}
						else
						{ 
							String setParentWindowContainer = null;
							if (pageOf.equals(Constants.PAGEOF_SPECIMEN))
							{
								setParentWindowContainer = "javascript:setParentWindowValue('positionDimensionOne','"+
															  + i + "');"+"javascript:setParentWindowValue('positionDimensionTwo','"+
															  + j + "');"+"javascript:setParentWindowValue('storageContainer','"+
															  + storageContainerGridObject.getSystemIdentifier() + "');"+
																"javascript:setParentWindowValue('positionInStorageContainer','"
															  + storageContainerGridObject.getType() + " : " 
															  + storageContainerGridObject.getSystemIdentifier()
															  + " Pos (" + i + "," + j + ")');"+"closeFramedWindow()";
							}
							else
							{
								setParentWindowContainer = "javascript:setParentWindowValue('positionInParentContainer','"
															  + storageContainerGridObject.getType() + " : " 
															  + storageContainerGridObject.getSystemIdentifier()
															  + " Pos (" + i + "," + j + ")');"
															  + "javascript:setParentWindowValue('positionDimensionOne','"+
															  + i + "');"+"javascript:setParentWindowValue('positionDimensionTwo','"+
															  + j + "');"
															  + "javascript:setParentWindowValue('parentContainerId','"+
															  + storageContainerGridObject.getSystemIdentifier() + "');"
															  + "javascript:setParentWindowValue('startNumber','"+
															  + startNumber.intValue() + "');closeFramedWindow()";
							}
						%>
						<td class="dataCellText">
						 	<a href="<%=setParentWindowContainer%>">
								<img src="images/bluebox.gif" width="40" height="40" border="0">
							</a>
						</td>
{'fraction_non_alphanumeric': 0.15585360781867333, 'fraction_numerical': 0.007901850696610521, 'mean_word_length': 3.1514889943892963, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 79, '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': '6346460', 'n_tokens_mistral': 4047, 'n_tokens_neox': 2991, 'n_words': 380}