<commit_before>/*
 * Created on Aug 25, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package edu.wustl.catissuecore.action;

import java.util.List;

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

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.catissuecore.util.global.Constants;


/**
 * @author gautam_shetty
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class SpreadsheetViewAction extends Action
{
    
    /* (non-Javadoc)
     * @see org.apache.struts.action.Action#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     */
    public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) throws Exception
    {
        List list = (List)request.getAttribute(Constants.SPREADSHEET_DATA_LIST);
        String [] columnNames = (String [])request.getAttribute(Constants.SPREADSHEET_COLUMN_LIST);
        
        request.setAttribute(Constants.SPREADSHEET_COLUMN_LIST,columnNames);
        request.setAttribute(Constants.SPREADSHEET_DATA_LIST,list);
        
        String pageOf = (String)request.getAttribute(Constants.PAGEOF);
        request.setAttribute(Constants.PAGEOF, pageOf);
        return mapping.findForward(pageOf);
    }<commit_msg>Putting the results view column names and data in session. Required for Export functionality in simple query interface.<commit_after>/*
 * Created on Aug 25, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package edu.wustl.catissuecore.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.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import edu.wustl.catissuecore.util.global.Constants;


/**
 * @author gautam_shetty
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class SpreadsheetViewAction extends Action
{
    
    /* (non-Javadoc)
     * @see org.apache.struts.action.Action#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     */
    public ActionForward execute(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) throws Exception
    {
        List list = (List)request.getAttribute(Constants.SPREADSHEET_DATA_LIST);
        String [] columnNames = (String [])request.getAttribute(Constants.SPREADSHEET_COLUMN_LIST);

        //Putting the results view column names and data in session.
        //Required for Export functionality in simple query interface.
        HttpSession session = request.getSession();
        session.setAttribute(Constants.SPREADSHEET_COLUMN_LIST,columnNames);
        session.setAttribute(Constants.SPREADSHEET_DATA_LIST,list);
        
        String pageOf = (String)request.getAttribute(Constants.PAGEOF);
        request.setAttribute(Constants.PAGEOF, pageOf);
        return mapping.findForward(pageOf);
    }
{'fraction_non_alphanumeric': 0.09023551204022229, 'fraction_numerical': 0.0031754432389521038, 'mean_word_length': 4.026595744680851, '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': '1089050', 'n_tokens_mistral': 1048, 'n_tokens_neox': 1051, 'n_words': 244}