<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="java.util.Hashtable"%>
<%@ page import="edu.wustl.catissuecore.actionForm.ShoppingCartForm"%>
<%@ page import="edu.wustl.catissuecore.domain.Specimen"%>
<%@ page import="edu.wustl.catissuecore.query.ShoppingCart"%>
<%@ page import="edu.wustl.catissuecore.util.global.Constants"%>

<%
	ShoppingCartForm form = (ShoppingCartForm)request.getAttribute("shoppingCartForm");
%>
<head>
	<script language="javascript" src="jss/script.js"></script>
	<script language="javascript">
		function onDelete()
		{
			var flag = confirm("Are you sure you want to delete the selected item(s)?");
			if(flag)
			{
				var action = "/catissuecore/ShoppingCart.do?operation=delete";
				document.forms[0].operation.value="delete";
				document.forms[0].action = action;
				document.forms[0].submit();
			}
		}
		
		function onExport()
		{
			var action = "/catissuecore/ShoppingCart.do?operation=export";
			document.forms[0].operation.value="export";
			document.forms[0].action = action;
			document.forms[0].submit();
		}
		
	</script>
</head>

<table summary="" cellpadding="0" cellspacing="0" border="0" class="contentPage" width="600"><commit_msg>Scripting functions modification<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="java.util.Hashtable"%>
<%@ page import="edu.wustl.catissuecore.actionForm.ShoppingCartForm"%>
<%@ page import="edu.wustl.catissuecore.domain.Specimen"%>
<%@ page import="edu.wustl.catissuecore.query.ShoppingCart"%>
<%@ page import="edu.wustl.catissuecore.util.global.Constants"%>

<%
	ShoppingCartForm form = (ShoppingCartForm)request.getAttribute("shoppingCartForm");
%>
<head>
	<script language="javascript" src="jss/script.js"></script>
	<script language="javascript">
		function onDelete()
		{
			var isChecked = "false";
			for (var i=0;i < document.forms[0].elements.length;i++)
		    {
		    	var e = document.forms[0].elements[i];

		        if (e.type == "checkbox" && e.checked == true)
		        {
		        	isChecked = "true";
		        	break;
		        }
		    }
		    
		    if(isChecked == "true")
		    {
				var flag = confirm("Are you sure you want to delete the selected item(s)?");
				if(flag)
				{
					var action = "/catissuecore/ShoppingCart.do?operation=delete";
					document.forms[0].operation.value="delete";
					document.forms[0].action = action;
					document.forms[0].target = "_parent";
					document.forms[0].submit();
				}
			}
		}
		
		function onExport()
		{
			var action = "/catissuecore/ShoppingCart.do?operation=export";
			document.forms[0].operation.value="export";
			document.forms[0].action = action;
			document.forms[0].target = "_blank";
			document.forms[0].submit();
		}
		
	</script>
</head>

<table summary="" cellpadding="0" cellspacing="0" border="0" class="contentPage" width="600">
{'fraction_non_alphanumeric': 0.18350383631713554, 'fraction_numerical': 0.009271099744245524, 'mean_word_length': 4.1976744186046515, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 35, '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': '4995711', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1070, 'n_words': 163}