<commit_before>package org.axway.grapes.commons.datamodel;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

/**
 * Simple model for passing promotion errors between server and client.
 */
public class PromotionEvaluationReport {

    //
    //  By passing a simple set of error messages, further validation don't
    // require updating the client modules as well.
    //
    private Set<String> errors = new HashSet<>();

    private boolean promotable = false;

    public void addError(String error) {
        this.errors.add(error);
        promotable = false;
    }

    public boolean isPromotable() {
        return promotable;
    }

    public Set<String> getErrors() {
        return Collections.unmodifiableSet(errors);
    }
}
<commit_msg>ECDDEV-813 - Fixing the problem with the missing promotable field.<commit_after>package org.axway.grapes.commons.datamodel;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

/**
 * Simple model for passing promotion errors between server and client.
 */
public class PromotionEvaluationReport {

    //
    //  By passing a simple set of error messages, further validation don't
    // require updating the client modules as well.
    //
    private Set<String> errors = new HashSet<>();
    private boolean promotable = true;

    public void addError(String error) {
        this.errors.add(error);
        promotable = false;
    }

    public boolean isPromotable() {
        return promotable;
    }

    public Set<String> getErrors() {
        return Collections.unmodifiableSet(errors);
    }
}

{'fraction_non_alphanumeric': 0.09226006191950464, 'fraction_numerical': 0.0018575851393188853, 'mean_word_length': 2.9607843137254903, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6082319', 'n_tokens_mistral': 453, 'n_tokens_neox': 438, 'n_words': 138}