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

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

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import edu.wustl.common.util.Utility;
import edu.wustl.query.util.global.Constants;

/**
 * @author chitra_garg
 * removes the workflow related data from session . 
 * This is called when navigates back to the 
 * workflow after adding a query.
 */
public class RedirectToWorkflowAction extends Action
{

	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) throws Exception
	{
		HttpSession session = request.getSession();
		String workflowId = (String) session.getAttribute(Constants.WORKFLOW_ID);
		String workflowName = (String) session.getAttribute(Constants.WORKFLOW_NAME);
		request.setAttribute(Constants.WORKFLOW_ID, (String) session
				.getAttribute(Constants.WORKFLOW_ID));
		request.setAttribute(Constants.SYSTEM_IDENTIFIER, Long.valueOf(workflowId
				));
		
		
		if (workflowId != null && workflowName != null)
		{
			session.removeAttribute(Constants.WORKFLOW_ID);
			session.removeAttribute(Constants.WORKFLOW_NAME);

		}

		// added for get Count ->>>latest project Id
		String executedForProject = (String) session.getAttribute(Constants.EXECUTED_FOR_PROJECT);
		if(executedForProject!=null)
		{
			request.setAttribute(Constants.EXECUTED_FOR_PROJECT, Long.valueOf(executedForProject
			));
			session.removeAttribute(Constants.EXECUTED_FOR_PROJECT);

		}
		return (mapping.findForward(Constants.QUERYWIZARD));
	}

}<commit_msg>Changes for edit results view<commit_after>
package edu.wustl.query.action;

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

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import edu.wustl.common.util.Utility;
import edu.wustl.query.util.global.Constants;

/**
 * @author chitra_garg
 * removes the workflow related data from session . 
 * This is called when navigates back to the 
 * workflow after adding a query.
 */
public class RedirectToWorkflowAction extends Action
{

	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) throws Exception
	{
		HttpSession session = request.getSession();
		String workflowId = (String) session.getAttribute(Constants.WORKFLOW_ID);
		String workflowName = (String) session.getAttribute(Constants.WORKFLOW_NAME);
		request.setAttribute(Constants.WORKFLOW_ID, (String) session
				.getAttribute(Constants.WORKFLOW_ID));
		request.setAttribute(Constants.SYSTEM_IDENTIFIER, Long.valueOf(workflowId
				));
		
		
		if (workflowId != null && workflowName != null)
		{
			session.removeAttribute(Constants.WORKFLOW_ID);
			session.removeAttribute(Constants.WORKFLOW_NAME);
		}
		session.removeAttribute("queryName");
	    // added for get Count ->>>latest project Id
		String executedForProject = (String) session.getAttribute(Constants.EXECUTED_FOR_PROJECT);
		if(executedForProject!=null)
		{
			request.setAttribute(Constants.EXECUTED_FOR_PROJECT, Long.valueOf(executedForProject
			));
			session.removeAttribute(Constants.EXECUTED_FOR_PROJECT);

		}
		return (mapping.findForward(Constants.QUERYWIZARD));
	}

}
{'fraction_non_alphanumeric': 0.0975475337558556, 'fraction_numerical': 0.0, 'mean_word_length': 5.528776978417266, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6743117', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1065, 'n_words': 207}