<commit_before>package org.innovateuk.ifs.survey;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.hibernate.validator.constraints.NotBlank;
import org.innovateuk.ifs.commons.validation.constraints.WordCount;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class SurveyResource {

    private SurveyType surveyType;

    private SurveyTargetType targetType;

    private Long targetId;

    @NotNull(message = "{validation.standard.satisfaction.selectionrequired}")
    private Satisfaction satisfaction;

    @NotBlank(message = "{validation.standard.comments.required}")
    @Size(max = 5000, message = "{validation.field.too.many.characters}")
    @WordCount(max = 400, message = "{validation.field.max.word.count}")
    private String comments;

    public SurveyType getSurveyType() {
        return surveyType;
    }

    public void setSurveyType(SurveyType surveyType) {
        this.surveyType = surveyType;
    }

    public SurveyTargetType getTargetType() {
        return targetType;
    }

    public void setTargetType(SurveyTargetType targetType) {
        this.targetType = targetType;
    }

    public Long getTargetId() {
        return targetId;
    }

    public void setTargetId(Long targetId) {
        this.targetId = targetId;
    }

    public Satisfaction getSatisfaction() {
        return satisfaction;
    }<commit_msg>IFS-3603 remove duplicate validation<commit_after>package org.innovateuk.ifs.survey;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.hibernate.validator.constraints.NotBlank;
import org.innovateuk.ifs.commons.validation.constraints.WordCount;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class SurveyResource {

    private SurveyType surveyType;

    private SurveyTargetType targetType;

    private Long targetId;

    private Satisfaction satisfaction;

    private String comments;

    public SurveyType getSurveyType() {
        return surveyType;
    }

    public void setSurveyType(SurveyType surveyType) {
        this.surveyType = surveyType;
    }

    public SurveyTargetType getTargetType() {
        return targetType;
    }

    public void setTargetType(SurveyTargetType targetType) {
        this.targetType = targetType;
    }

    public Long getTargetId() {
        return targetId;
    }

    public void setTargetId(Long targetId) {
        this.targetId = targetId;
    }

    public Satisfaction getSatisfaction() {
        return satisfaction;
    }
{'fraction_non_alphanumeric': 0.08333333333333333, 'fraction_numerical': 0.005605381165919282, 'mean_word_length': 3.5760683760683762, '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': '6652599', 'n_tokens_mistral': 772, 'n_tokens_neox': 736, 'n_words': 155}