<commit_before>package dbnp.calculation

import org.apache.jasper.compiler.Node.ParamsAction
import org.apache.poi.ss.usermodel.*
import org.apache.poi.xssf.usermodel.XSSFWorkbook
import grails.plugins.springsecurity.Secured
import dbnp.authentication.AuthenticationService
import dbnp.studycapturing.Study
import dbnp.studycapturing.SamplingEvent
import dbnp.studycapturing.EventGroup
import dbnp.studycapturing.Sample
import grails.converters.JSON
import java.util.zip.ZipEntry
import java.util.zip.ZipOutputStream
import javax.servlet.http.HttpServletResponse

/**
 * Cookdata Controller
 * Allows the user to select datasets, combine these with calculations,
 * and download the results.
 * 
 * Uses ajaxflow for the wizard.
 */
@Secured(['IS_AUTHENTICATED_REMEMBERED'])
class CookdataController {
    // the pluginManager is used to check if the Grom
    // plugin is available so we can 'Grom' development
    // notifications to the unified notifications daemon
    // (see http://www.grails.org/plugin/grom)
    def pluginManager
    def authenticationService
    def moduleCommunicationService
    def cookdataService
	def assayService
	
	static final int BUFFER = 2048;

    /**
     * index method, redirect to the webflow
     * @void
     */
    def index = {<commit_msg>Removed two unused variables from CookdataContr.<commit_after>package dbnp.calculation

import org.apache.jasper.compiler.Node.ParamsAction
import org.apache.poi.ss.usermodel.*
import org.apache.poi.xssf.usermodel.XSSFWorkbook
import grails.plugins.springsecurity.Secured
import dbnp.authentication.AuthenticationService
import dbnp.studycapturing.Study
import dbnp.studycapturing.SamplingEvent
import dbnp.studycapturing.EventGroup
import dbnp.studycapturing.Sample
import grails.converters.JSON
import java.util.zip.ZipEntry
import java.util.zip.ZipOutputStream
import javax.servlet.http.HttpServletResponse

/**
 * Cookdata Controller
 * Allows the user to select datasets, combine these with calculations,
 * and download the results.
 * 
 * Uses ajaxflow for the wizard.
 */
@Secured(['IS_AUTHENTICATED_REMEMBERED'])
class CookdataController {
    // the pluginManager is used to check if the Grom
    // plugin is available so we can 'Grom' development
    // notifications to the unified notifications daemon
    // (see http://www.grails.org/plugin/grom)
    def pluginManager
    def authenticationService
    def moduleCommunicationService
    def cookdataService

    /**
     * index method, redirect to the webflow
     * @void
     */
    def index = {
{'fraction_non_alphanumeric': 0.07647058823529412, 'fraction_numerical': 0.001568627450980392, 'mean_word_length': 4.1955193482688395, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4823531', 'n_tokens_mistral': 762, 'n_tokens_neox': 723, 'n_words': 200}