<commit_before>/**
 * <p>Title: AdvanceQueryInterfaceAction Class>
 * <p>Description:	This class initializes the fields of AdvanceQueryInterface.jsp Page</p>
 * Copyright:    Copyright (c) year
 * Company: Washington University, School of Medicine, St. Louis.
 * @author <NAME>
 * @version 1.00
 * Created on Oct 11, 2005
 */

package edu.wustl.catissuecore.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.swing.tree.DefaultMutableTreeNode;

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

import edu.wustl.common.action.BaseAction;
import edu.wustl.common.util.global.Constants;
import edu.wustl.common.util.logger.Logger;

public class AdvanceQueryInterfaceAction extends BaseAction
{
    /**
     * Overrides the execute method of Action class.
     * Initializes the various fields in AdvanceQueryInterface.jsp Page.
     * */
    public ActionForward executeAction(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
            throws IOException, ServletException
    {         
    	String operation = (String)request.getParameter("operation");
    	Logger.out.debug("Advanced operation "+operation);
    	
    	//First time the Advance Search page loads set the Query view root as empty
    	if(operation==null)
    	{
    		Logger.out.debug("Inside initialization of root node");
    		DefaultMutableTreeNode root = new DefaultMutableTreeNode();
    		//DefaultMutableTreeNode queryViewRoot = new DefaultMutableTreeNode();;
    		HttpSession session = request.getSession();
    		session.setAttribute(Constants.ADVANCED_CONDITIONS_ROOT,root);
    		//session.setAttribute(Constants.ADVANCED_CONDITIONS_QUERY_VIEW,queryViewRoot);
    		//root = (DefaultMutableTreeNode)session.getAttribute(Constants.ADVANCED_CONDITIONS_ROOT);
    		//Logger.out.debug("child count in init action:"+root.getChildCount());
    	}
    	
    	String pageOf = (String)request.getParameter(Constants.PAGEOF);
    	request.setAttribute(Constants.MENU_SELECTED,new String("17") );
    	Logger.out.debug(Constants.MENU_SELECTED +" set in Advance Query Interface Action : 17  -- "  ); 
    	return mapping.findForward(pageOf);
    }
}<commit_msg>code cleanup<commit_after>/**
 * <p>Title: AdvanceQueryInterfaceAction Class>
 * <p>Description:	This class initializes the fields of AdvanceQueryInterface.jsp Page</p>
 * Copyright:    Copyright (c) year
 * Company: Washington University, School of Medicine, St. Louis.
 * @author <NAME>
 * @version 1.00
 * Created on Oct 11, 2005
 */

package edu.wustl.catissuecore.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.swing.tree.DefaultMutableTreeNode;

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

import edu.wustl.common.action.BaseAction;
import edu.wustl.common.util.global.Constants;
import edu.wustl.common.util.logger.Logger;

public class AdvanceQueryInterfaceAction extends BaseAction
{
    /**
     * Overrides the execute method of Action class.
     * Initializes the various fields in AdvanceQueryInterface.jsp Page.
     * */
    public ActionForward executeAction(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response)
            throws IOException, ServletException
    {         
    	String operation = (String)request.getParameter(Constants.OPERATION);
    	Logger.out.debug("Advanced operation "+operation);
    	HttpSession session = request.getSession();
    	
    	//First time the Advance Search page loads set the Query view root as empty
    	if(operation==null)
    	{
    		Logger.out.debug("Inside initialization of root node");
    		DefaultMutableTreeNode root = new DefaultMutableTreeNode();
    		session.setAttribute(Constants.ADVANCED_CONDITIONS_ROOT,root);
    	}
    	
    	String pageOf = (String)request.getParameter(Constants.PAGEOF);
    	request.setAttribute(Constants.MENU_SELECTED,new String("17") );
    	Logger.out.debug(Constants.MENU_SELECTED +" set in Advance Query Interface Action : 17  -- "  ); 
    	return mapping.findForward(pageOf);
    }
}
{'fraction_non_alphanumeric': 0.09582148326405601, 'fraction_numerical': 0.0056880332531174796, 'mean_word_length': 4.15445321307779, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '7152668', 'n_tokens_mistral': 1338, 'n_tokens_neox': 1289, 'n_words': 295}