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

import javax.servlet.http.HttpServletRequest;

import edu.wustl.catissuecore.actionForm.EventParametersForm;
import edu.wustl.catissuecore.actionForm.FluidSpecimenReviewEventParametersForm;

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

public class FluidSpecimenReviewEventParametersAction extends SpecimenEventParametersAction
{
@Override
protected void setRequestParameters(HttpServletRequest request, EventParametersForm eventParametersForm) throws Exception
{
	 String operation=Constants.OPERATION ;
     String formName,specimenId=null;
     
     FluidSpecimenReviewEventParametersForm fluidSpecimenReviewEventParametersForm=(FluidSpecimenReviewEventParametersForm)eventParametersForm;

     boolean readOnlyValue;
     if (fluidSpecimenReviewEventParametersForm.getOperation().equals(Constants.EDIT))
     {
         formName = Constants.FLUID_SPECIMEN_REVIEW_EVENT_PARAMETERS_EDIT_ACTION;
         readOnlyValue = true;
     }
     else
     {
         formName = Constants.FLUID_SPECIMEN_REVIEW_EVENT_PARAMETERS_ADD_ACTION;
			specimenId = (String) request.getAttribute(Constants.SPECIMEN_ID);
         readOnlyValue = false;
     }
        String changeAction = "setFormAction('" + formName + "');";
	    request.setAttribute("formName", formName);
		request.setAttribute("readOnlyValue", readOnlyValue);
		request.setAttribute("changeAction", changeAction);
		request.setAttribute("specimenId", specimenId);
		request.setAttribute("fluidSpecimenReviewEventParametersAddAction", Constants.FLUID_SPECIMEN_REVIEW_EVENT_PARAMETERS_ADD_ACTION);
		

	// TODO Auto-generated method stub
	
}
}
<commit_msg>SpecimenId was not getting set in case of edit operation.<commit_after>package edu.wustl.catissuecore.action;

import javax.servlet.http.HttpServletRequest;

import edu.wustl.catissuecore.actionForm.EventParametersForm;
import edu.wustl.catissuecore.actionForm.FluidSpecimenReviewEventParametersForm;

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

public class FluidSpecimenReviewEventParametersAction extends SpecimenEventParametersAction
{
@Override
protected void setRequestParameters(HttpServletRequest request, EventParametersForm eventParametersForm) throws Exception
{
	 String operation=Constants.OPERATION ;
     String formName,specimenId=null;
     specimenId = (String) request.getAttribute(Constants.SPECIMEN_ID);
     
     FluidSpecimenReviewEventParametersForm fluidSpecimenReviewEventParametersForm=(FluidSpecimenReviewEventParametersForm)eventParametersForm;

     boolean readOnlyValue;
     if (fluidSpecimenReviewEventParametersForm.getOperation().equals(Constants.EDIT))
     {
         formName = Constants.FLUID_SPECIMEN_REVIEW_EVENT_PARAMETERS_EDIT_ACTION;
         readOnlyValue = true;
     }
     else
     {
         formName = Constants.FLUID_SPECIMEN_REVIEW_EVENT_PARAMETERS_ADD_ACTION;
			
         readOnlyValue = false;
     }
        String changeAction = "setFormAction('" + formName + "');";
	    request.setAttribute("formName", formName);
		request.setAttribute("readOnlyValue", readOnlyValue);
		request.setAttribute("changeAction", changeAction);
		request.setAttribute("specimenId", specimenId);
		request.setAttribute("fluidSpecimenReviewEventParametersAddAction", Constants.FLUID_SPECIMEN_REVIEW_EVENT_PARAMETERS_ADD_ACTION);
		

	// TODO Auto-generated method stub
	
}
}

{'fraction_non_alphanumeric': 0.07431850789096127, 'fraction_numerical': 0.0, 'mean_word_length': 4.888513513513513, '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': '1223871', 'n_tokens_mistral': 997, 'n_tokens_neox': 961, 'n_words': 137}