<commit_before>package nl.homeserver.energie;

import static java.math.RoundingMode.HALF_UP;

import java.math.BigDecimal;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public class VerbruikKosten {

    private static final int KOSTEN_SCALE = 3;

    @Getter
    private final BigDecimal verbruik;

    private final BigDecimal kosten;

    public static final VerbruikKosten UNKNOWN = new VerbruikKosten(null, null);

    public BigDecimal getKosten() {
        if (kosten == null) {
            return null;
        }
        return kosten.setScale(KOSTEN_SCALE, HALF_UP);
    }
}
<commit_msg>Fix issues found by SonarCloud<commit_after>package nl.homeserver.energie;

import static java.math.RoundingMode.HALF_UP;

import java.math.BigDecimal;

import javax.annotation.Nullable;

import lombok.Getter;

class VerbruikKosten {

    private static final int KOSTEN_SCALE = 3;

    @Getter
    private final BigDecimal verbruik;

    private final BigDecimal kosten;

    static final VerbruikKosten UNKNOWN = new VerbruikKosten(null, null);

    VerbruikKosten(@Nullable final BigDecimal verbruik, @Nullable final BigDecimal kosten) {
        this.verbruik = verbruik;
        this.kosten = kosten;
    }

    BigDecimal getKosten() {
        if (kosten == null) {
            return null;
        }
        return kosten.setScale(KOSTEN_SCALE, HALF_UP);
    }
}

{'fraction_non_alphanumeric': 0.07462686567164178, 'fraction_numerical': 0.0014214641080312722, 'mean_word_length': 3.292682926829268, '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': '4672488', 'n_tokens_mistral': 457, 'n_tokens_neox': 447, 'n_words': 110}