<commit_before>
package ca.corefacility.bioinformatics.irida.web.assembler.resource.sequencingrun;

import ca.corefacility.bioinformatics.irida.model.run.MiseqRun;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Resource class for a MiseqRun
 * @author <NAME> <<EMAIL>>
 */
@XmlRootElement(name = "miseqRun")
public class MiseqRunResource extends SequencingRunResource {
	
	MiseqRun miseqRun;

    public MiseqRunResource() {
        this(new MiseqRun());
    }

    public MiseqRunResource(MiseqRun miseqRun) {
        super(miseqRun);
        this.miseqRun = miseqRun;
    }
    
    @XmlElement
    public String getInvestigatorName() {
        return miseqRun.getInvestigatorName();
    }

    public void setInvestigatorName(String investigatorName) {<commit_msg>overriding setResource so that it sets the local element resource as well as the parent<commit_after>
package ca.corefacility.bioinformatics.irida.web.assembler.resource.sequencingrun;

import ca.corefacility.bioinformatics.irida.model.run.MiseqRun;
import ca.corefacility.bioinformatics.irida.model.run.SequencingRun;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Resource class for a MiseqRun
 * @author <NAME> <<EMAIL>>
 */
@XmlRootElement(name = "miseqRun")
public class MiseqRunResource extends SequencingRunResource {
	
	MiseqRun miseqRun;

    public MiseqRunResource() {
        this(new MiseqRun());
    }

    public MiseqRunResource(MiseqRun miseqRun) {
        super(miseqRun);
        this.miseqRun = miseqRun;
    }
    
    /**
     * {@inheritDoc}
     * Overriding here to set the local resource as well as the parent one
     */
    @Override
    public void setResource(SequencingRun resource) {
    	miseqRun = (MiseqRun) resource;
    	super.setResource(resource);
    }
    
    @XmlElement
    public String getInvestigatorName() {
        return miseqRun.getInvestigatorName();
    }

    public void setInvestigatorName(String investigatorName) {
{'fraction_non_alphanumeric': 0.09361287176986836, 'fraction_numerical': 0.0, 'mean_word_length': 3.75, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '7065397', 'n_tokens_mistral': 669, 'n_tokens_neox': 650, 'n_words': 131}