<commit_before>package org.innovateuk.ifs.assessment.domain;

import org.innovateuk.ifs.application.domain.Application;

/**
 * Domain object that holds the total number of assessments for
 * an application that an assessor is assessing.
 */
public class AssessmentApplicationAssessorCount {

    private Assessment assessment;
    private Application application;
    private int assessorCount;

    public AssessmentApplicationAssessorCount(Assessment assessment, Application application, int assessorCount) {
        this.assessment = assessment;
        this.application = application;
        this.assessorCount = assessorCount;
    }

    public AssessmentApplicationAssessorCount() {
    }

    public Assessment getAssessment() {
        return assessment;
    }

    public Application getApplication() {
        return application;
    }

    public int getAssessorCount() {
        return assessorCount;
    }<commit_msg>IFS-398 Fix for assessor count issue<commit_after>package org.innovateuk.ifs.assessment.domain;

import org.innovateuk.ifs.application.domain.Application;

/**
 * Domain object that holds the total number of assessments for
 * an application that an assessor is assessing.
 */
public class AssessmentApplicationAssessorCount {

    private Assessment assessment;
    private Application application;
    private Integer assessorCount;

    public AssessmentApplicationAssessorCount(Assessment assessment, Application application, Integer assessorCount) {
        this.assessment = assessment;
        this.application = application;
        this.assessorCount = assessorCount != null ? assessorCount : 0;
    }

    public AssessmentApplicationAssessorCount() {
    }

    public Assessment getAssessment() {
        return assessment;
    }

    public Application getApplication() {
        return application;
    }

    public Integer getAssessorCount() {
        return assessorCount;
    }
{'fraction_non_alphanumeric': 0.06486766995329528, 'fraction_numerical': 0.0020757654385054488, 'mean_word_length': 3.5364705882352943, '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': '1380155', 'n_tokens_mistral': 495, 'n_tokens_neox': 462, 'n_words': 134}