<commit_before>package edu.wustl.query.action;


import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.Action;
import edu.wustl.query.util.global.Constants;
import edu.wustl.common.action.BaseAction;
import edu.wustl.common.bizlogic.IBizLogic;
import edu.wustl.common.factory.AbstractBizLogicFactory;
import edu.wustl.common.querysuite.queryobject.IParameterizedQuery;
import edu.wustl.common.querysuite.queryobject.impl.ParameterizedQuery;
import edu.wustl.common.util.dbManager.DAOException;
import edu.wustl.common.util.global.ApplicationProperties;

public class DeleteQueryAction extends Action
{
	private static final String QUERY_ID="queryId";
	/**
	 * Action Handler for Deletes Save query from database 
	 */
	public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm,
			HttpServletRequest request, HttpServletResponse response) throws Exception {
		String target = Constants.FAILURE;

		String queryIdStr = request.getParameter(QUERY_ID);
		HttpSession session = request.getSession();
		String queryDeletedInLastRequest = (String)session.getAttribute(Constants.QUERY_ALREADY_DELETED);
		Long queryId = Long.parseLong(queryIdStr);
		if (queryId != null)
		{
			if(!queryIdStr.equalsIgnoreCase(queryDeletedInLastRequest))
			{
				session.setAttribute(Constants.QUERY_ALREADY_DELETED,queryIdStr);
				IBizLogic bizLogic = AbstractBizLogicFactory.getBizLogic(ApplicationProperties
						.getValue("app.bizLogicFactory"), "getBizLogic",
						Constants.CATISSUECORE_QUERY_INTERFACE_ID);
				try<commit_msg>Changed Constant for Bizlogic<commit_after>package edu.wustl.query.action;


import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.Action;
import edu.wustl.query.util.global.Constants;
import edu.wustl.common.action.BaseAction;
import edu.wustl.common.bizlogic.IBizLogic;
import edu.wustl.common.factory.AbstractBizLogicFactory;
import edu.wustl.common.querysuite.queryobject.IParameterizedQuery;
import edu.wustl.common.querysuite.queryobject.impl.ParameterizedQuery;
import edu.wustl.common.util.dbManager.DAOException;
import edu.wustl.common.util.global.ApplicationProperties;

public class DeleteQueryAction extends Action
{
	private static final String QUERY_ID="queryId";
	/**
	 * Action Handler for Deletes Save query from database 
	 */
	public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm,
			HttpServletRequest request, HttpServletResponse response) throws Exception {
		String target = Constants.FAILURE;

		String queryIdStr = request.getParameter(QUERY_ID);
		HttpSession session = request.getSession();
		String queryDeletedInLastRequest = (String)session.getAttribute(Constants.QUERY_ALREADY_DELETED);
		Long queryId = Long.parseLong(queryIdStr);
		if (queryId != null)
		{
			if(!queryIdStr.equalsIgnoreCase(queryDeletedInLastRequest))
			{
				session.setAttribute(Constants.QUERY_ALREADY_DELETED,queryIdStr);
				IBizLogic bizLogic = AbstractBizLogicFactory.getBizLogic(ApplicationProperties
						.getValue("app.bizLogicFactory"), "getBizLogic",
						Constants.QUERY_INTERFACE_BIZLOGIC_ID);
				try
{'fraction_non_alphanumeric': 0.09186351706036745, 'fraction_numerical': 0.0, 'mean_word_length': 6.272900763358779, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4820638', 'n_tokens_mistral': 1257, 'n_tokens_neox': 1186, 'n_words': 192}