<commit_before>package gov.nih.nci.cabig.caaers.domain;

import static gov.nih.nci.cabig.ctms.domain.CodedEnumHelper.getByClassAndCode;
import static gov.nih.nci.cabig.ctms.domain.CodedEnumHelper.register;
import static gov.nih.nci.cabig.ctms.domain.CodedEnumHelper.toStringHelper;
import static gov.nih.nci.cabig.ctms.domain.EnumHelper.sentenceCasedName;
import gov.nih.nci.cabig.ctms.domain.CodedEnum;

/**
 * @author <NAME>
 */
public enum Grade implements CodedEnum<Integer>, CodedGrade {
    NORMAL(0), MILD(1), MODERATE(2), SEVERE(3), LIFE_THREATENING(4, "Life-threatening or disabling"), DEATH(
                    5);

    private int code;

    private String displayName;

    Grade(int code) {
        this(code, null);
    }

    Grade(int code, String longName) {
        this.code = code;
        this.displayName = longName;
        register(this);
    }

    public static Grade getByCode(int code) {
        return getByClassAndCode(Grade.class, code);<commit_msg>caaers-230<commit_after>package gov.nih.nci.cabig.caaers.domain;

import static gov.nih.nci.cabig.ctms.domain.CodedEnumHelper.getByClassAndCode;
import static gov.nih.nci.cabig.ctms.domain.CodedEnumHelper.register;
import static gov.nih.nci.cabig.ctms.domain.CodedEnumHelper.toStringHelper;
import static gov.nih.nci.cabig.ctms.domain.EnumHelper.sentenceCasedName;
import gov.nih.nci.cabig.ctms.domain.CodedEnum;

/**
 * @author <NAME>
 */
public enum Grade implements CodedEnum<Integer>, CodedGrade {
    NOT_EVALUATED(-1,"Not evaluated"), NORMAL(0, "Normal or Evaluated"), MILD(1), MODERATE(2), SEVERE(3), LIFE_THREATENING(4, "Life-threatening or disabling"), DEATH(5);

    private int code;

    private String displayName;

    Grade(int code) {
        this(code, null);
    }

    Grade(int code, String longName) {
        this.code = code;
        this.displayName = longName;
        register(this);
    }

    public static Grade getByCode(int code) {
        return getByClassAndCode(Grade.class, code);
{'fraction_non_alphanumeric': 0.12074148296593186, 'fraction_numerical': 0.008016032064128256, 'mean_word_length': 3.7434679334916865, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7322265', 'n_tokens_mistral': 728, 'n_tokens_neox': 699, 'n_words': 125}