<commit_before><%@ include file="/WEB-INF/jsp/taglib.jsp" %>

<link rel="stylesheet" type="text/css" media="screen" href="/wasp/css/reset.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/wasp/css/base.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/wasp/css/jquery/jquery-ui.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/wasp/css/jquery/ui.jqgrid.css" />
	
<script src="/wasp/scripts/jquery/jquery-1.7.1.js" type="text/javascript"></script>
<script type="text/javascript" src="/wasp/scripts/jquery/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript" src="/wasp/scripts/js/date_validate_modified.js"></script> 
<script>

$(document).ready(function(){
	$( "#runStartDate" ).datepicker();
	$("#resourceId").change(function(){
		var id = $(this).val();
		//alert('jquery test; resourceId = ' + resourceId);		
		//$(".readType").html('<option value="">---SELECT A READ TYPE---</option><option value="50">---50---</option>');
		if(id != ''){
			$.ajax({
				type: "POST",
				url: "/wasp/facility/platformunit/ajaxReadType.do",
				data: "resourceId=" + id,
				cache: false,
				success: function(response){
					var partsArray = response.split('****');
					$("#readType").html(partsArray[0]);
					$("#readLength").html(partsArray[1]);
					$("#submitButtonCreateNewRun").attr("disabled", false);
				} 
			}); 
		}
	});
});

function toggleDisplayOfCreateNewRunForm(action){
	//alert("in new div; action = " + action);
	var newCreateRunButtonDiv = document.getElementById("newCreateRunButtonDiv");
	var newCreateRunFormDiv = document.getElementById("newCreateRunFormDiv");
	if(action=="create"){
		newCreateRunButtonDiv.style.display = 'none';
		newCreateRunFormDiv.style.display = 'block';
	}
	if(action=="cancel"){
		newCreateRunButtonDiv.style.display = 'block';
		newCreateRunFormDiv.style.display = 'none';
		var runName = document.getElementById("runName");
		var resourceId = document.getElementById("resourceId");
		var readLength = document.getElementById("readLength");
		var readType = document.getElementById("readType");
		var technicianId = document.getElementById("technicianId");
		var runStartDate = document.getElementById("runStartDate");
		var submitButtonCreateNewRun = document.getElementById("submitButtonCreateNewRun");
		runName.value="";
		resourceId.value="";
		readLength.innerHTML="";
		readType.innerHTML="";
		technicianId.value="";
		runStartDate.value="";
		<commit_msg><empty commit message><commit_after><%@ include file="/WEB-INF/jsp/taglib.jsp" %>

<link rel="stylesheet" type="text/css" media="screen" href="/wasp/css/reset.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/wasp/css/base.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/wasp/css/jquery/jquery-ui.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/wasp/css/jquery/ui.jqgrid.css" />
	
<script src="/wasp/scripts/jquery/jquery-1.7.1.js" type="text/javascript"></script>
<script type="text/javascript" src="/wasp/scripts/jquery/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript" src="/wasp/scripts/js/date_validate_modified.js"></script> 
<script>

$(document).ready(function(){
	$( "#runStartDate" ).datepicker();
	$("#resourceId").change(function(){
		var id = $(this).val();
		//alert('jquery test; resourceId = ' + resourceId);		
		//$(".readType").html('<option value="">---SELECT A READ TYPE---</option><option value="50">---50---</option>');
		if(id != ''){
			$.ajax({
				type: "POST",
				url: "/wasp/facility/platformunit/ajaxReadType.do",
				data: "resourceId=" + id,
				cache: false,
				success: function(response){
					var partsArray = response.split('****');
					$("#readType").html(partsArray[0]);
					$("#readLength").html(partsArray[1]);
					$("#submitButtonCreateNewRun").attr("disabled", false);
				} 
			}); 
		}
		if(id == ''){
			$("#readType").html("");
			$("#readLength").html("");
			$("#submitButtonCreateNewRun").attr("disabled", true);			
		}
	});
});

function toggleDisplayOfCreateNewRunForm(action){
	//alert("in new div; action = " + action);
	var newCreateRunButtonDiv = document.getElementById("newCreateRunButtonDiv");
	var newCreateRunFormDiv = document.getElementById("newCreateRunFormDiv");
	if(action=="create"){
		newCreateRunButtonDiv.style.display = 'none';
		newCreateRunFormDiv.style.display = 'block';
	}
	if(action=="cancel"){
		newCreateRunButtonDiv.style.display = 'block';
		newCreateRunFormDiv.style.display = 'none';
		var runName = document.getElementById("runName");
		var resourceId = document.getElementById("resourceId");
		var readLength = document.getElementById("readLength");
		var readType = document.getElementById("readType");
		var technicianId = document.getElementById("technicianId");
		var runStartDate = document.getElementById("runStartDate");
		var submitButtonCreateNewRun = document.getElementById("submitButtonCreateNewRun");
		runName.value="";
		resourceId.value="";
		readLength.innerHTML="";
		readType.innerHTML="";
		technicianId.value="";
		runStartDate.value="";
		
{'fraction_non_alphanumeric': 0.2009765625, 'fraction_numerical': 0.005078125, 'mean_word_length': 5.275735294117647, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 36, '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': '5714779', 'n_tokens_mistral': 1756, 'n_tokens_neox': 1607, 'n_words': 247}