<commit_before>package psidev.psi.mi.jami.model.impl;

import psidev.psi.mi.jami.model.*;
import psidev.psi.mi.jami.utils.XrefUtils;
import psidev.psi.mi.jami.utils.collection.AbstractListHavingPoperties;
import psidev.psi.mi.jami.utils.comparator.interaction.UnambiguousExactInteractionEvidenceComparator;
import psidev.psi.mi.jami.utils.factory.CvTermFactory;

import java.util.ArrayList;
import java.util.Collection;

/**
 * Default implementation for InteractionEvidence
 *
 * @author <NAME> (<EMAIL>)
 * @version $Id$
 * @since <pre>05/02/13</pre>
 */

public class DefaultInteractionEvidence extends DefaultInteraction<ParticipantEvidence> implements InteractionEvidence {

    private Xref imexId;
    private Experiment experiment;
    private String availability;
    private Collection<Parameter> parameters;
    private boolean isInferred = false;

    public DefaultInteractionEvidence(Experiment experiment) {
        super();
        this.parameters = new ArrayList<Parameter>();

        if (experiment == null){
            throw new IllegalArgumentException("The Experiment is required for an InteractionEvidence, it cannot be null.");
        }
        this.experiment = experiment;
    }

    public DefaultInteractionEvidence(Experiment experiment, String shortName) {
        super(shortName);
        this.parameters = new ArrayList<Parameter>();
        if (experiment == null){
            throw new IllegalArgumentException("The Experiment is required for an InteractionEvidence, it cannot be null.");
        }
        this.experiment = experiment;
    }

    public DefaultInteractionEvidence(Experiment experiment, String shortName, Source source) {
        super(shortName, source);
        this.parameters = new ArrayList<Parameter>();
        if (experiment == null){
            throw new IllegalArgumentException("The Experiment is required for an InteractionEvidence, it cannot be null.");
        }
        this.experiment = experiment;
    }

    public DefaultInteractionEvidence(Experiment experiment, String shortName, CvTerm type) {
        super(shortName, type);<commit_msg>InteractionEvidence properties are now protected<commit_after>package psidev.psi.mi.jami.model.impl;

import psidev.psi.mi.jami.model.*;
import psidev.psi.mi.jami.utils.XrefUtils;
import psidev.psi.mi.jami.utils.collection.AbstractListHavingPoperties;
import psidev.psi.mi.jami.utils.comparator.interaction.UnambiguousExactInteractionEvidenceComparator;
import psidev.psi.mi.jami.utils.factory.CvTermFactory;

import java.util.ArrayList;
import java.util.Collection;

/**
 * Default implementation for InteractionEvidence
 *
 * @author <NAME> (<EMAIL>)
 * @version $Id$
 * @since <pre>05/02/13</pre>
 */

public class DefaultInteractionEvidence extends DefaultInteraction<ParticipantEvidence> implements InteractionEvidence {

    protected Xref imexId;
    protected Experiment experiment;
    protected String availability;
    protected Collection<Parameter> parameters;
    protected boolean isInferred = false;

    public DefaultInteractionEvidence(Experiment experiment) {
        super();
        this.parameters = new ArrayList<Parameter>();

        if (experiment == null){
            throw new IllegalArgumentException("The Experiment is required for an InteractionEvidence, it cannot be null.");
        }
        this.experiment = experiment;
    }

    public DefaultInteractionEvidence(Experiment experiment, String shortName) {
        super(shortName);
        this.parameters = new ArrayList<Parameter>();
        if (experiment == null){
            throw new IllegalArgumentException("The Experiment is required for an InteractionEvidence, it cannot be null.");
        }
        this.experiment = experiment;
    }

    public DefaultInteractionEvidence(Experiment experiment, String shortName, Source source) {
        super(shortName, source);
        this.parameters = new ArrayList<Parameter>();
        if (experiment == null){
            throw new IllegalArgumentException("The Experiment is required for an InteractionEvidence, it cannot be null.");
        }
        this.experiment = experiment;
    }

    public DefaultInteractionEvidence(Experiment experiment, String shortName, CvTerm type) {
        super(shortName, type);
{'fraction_non_alphanumeric': 0.08978255786766424, 'fraction_numerical': 0.0028057049333645077, 'mean_word_length': 3.7480577136514985, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '5565743', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1072, 'n_words': 291}