<commit_before>package edu.ucsf.lava.crms.enrollment.controller;

import org.springframework.webflow.execution.RequestContext;

import edu.ucsf.lava.crms.file.controller.BaseCrmsFileHandler;
import edu.ucsf.lava.crms.file.model.CrmsFile;
import edu.ucsf.lava.crms.session.CrmsSessionUtils;

public class ConsentAttachmentHandler extends BaseCrmsFileHandler {

	public ConsentAttachmentHandler() {
		super();
		CrmsSessionUtils.setIsPatientContext(this);
		this.setHandledEntity("consentAttachment", CrmsFile.class);
		// do not want the enrollStatId as done in the superclass as then the attachment
		// will be assigned to the EnrollmentStatus record and not the Consent record
		this.setRequiredFields(new String[]{"contentType"});
	}

	@Override
	protected Object initializeNewCommandInstance(RequestContext context, Object command) {
		((CrmsFile)command).setCategory("Consent");
		return super.initializeNewCommandInstance(context, command);
	}

	
}<commit_msg>got rid of outdated comments<commit_after>package edu.ucsf.lava.crms.enrollment.controller;

import org.springframework.webflow.execution.RequestContext;

import edu.ucsf.lava.crms.file.controller.BaseCrmsFileHandler;
import edu.ucsf.lava.crms.file.model.CrmsFile;
import edu.ucsf.lava.crms.session.CrmsSessionUtils;

public class ConsentAttachmentHandler extends BaseCrmsFileHandler {

	public ConsentAttachmentHandler() {
		super();
		CrmsSessionUtils.setIsPatientContext(this);
		this.setHandledEntity("consentAttachment", CrmsFile.class);
		this.setRequiredFields(new String[]{"contentType"});
	}

	@Override
	protected Object initializeNewCommandInstance(RequestContext context, Object command) {
		((CrmsFile)command).setCategory("Consent");
		return super.initializeNewCommandInstance(context, command);
	}

	
}
{'fraction_non_alphanumeric': 0.09865470852017937, 'fraction_numerical': 0.0, 'mean_word_length': 6.660944206008583, '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': '1698568', 'n_tokens_mistral': 561, 'n_tokens_neox': 540, 'n_words': 98}