<commit_before>package com.wandrell.tabletop.business.model.pendragon.manor;

import static com.google.common.base.Preconditions.checkNotNull;

import java.util.Objects;

import com.google.common.base.MoreObjects;
import com.wandrell.tabletop.business.model.pendragon.inventory.Money;

public final class DefaultAnimalYearResult implements AnimalYearResult {

    private final Boolean dying;
    private final Money   money;
    private final String  name;
    private final Boolean producesMoney;
    private final Boolean puppies;
    private final Pet     puppy;

    public DefaultAnimalYearResult(final String name, final Money money,
            final Pet puppy, final Boolean dying, final Boolean producesMoney,
            final Boolean puppies) {
        super();

        checkNotNull(name, "Received a null pointer as name");
        checkNotNull(money, "Received a null pointer as money");
        checkNotNull(puppy, "Received a null pointer as puppy");
        checkNotNull(dying, "Received a null pointer as dying flag");
        checkNotNull(producesMoney,
                "Received a null pointer as produces money flag");
        checkNotNull(puppies, "Received a null pointer as puppies flag");

        this.name = name;

        this.money = money;
        this.puppy = puppy;
        this.dying = dying;
        this.producesMoney = producesMoney;
        this.puppies = puppies;
    }

    @Override
    public final boolean equals(final Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        DefaultAnimalYearResult other = (DefaultAnimalYearResult) obj;
        return Objects.equals(name, other.name);
    }

    @Override
    public final Money getMoney() {
        return money;
    }

    @Override
    public final String getName() {
        return name;
    }

    @Override
    public final Pet getPuppy() {
        return puppy;
    }

    @Override<commit_msg>Adapted to the latest API changes.<commit_after>package com.wandrell.tabletop.business.model.pendragon.manor;

import static com.google.common.base.Preconditions.checkNotNull;

import java.util.Objects;

import com.google.common.base.MoreObjects;
import com.wandrell.tabletop.business.model.pendragon.inventory.Money;

public final class DefaultAnimalYearResult implements AnimalYearResult {

    private final Boolean dying;
    private final Money   money;
    private final String  name;
    private final Boolean producesMoney;
    private final Boolean puppies;
    private final String  puppy;

    public DefaultAnimalYearResult(final String name, final Money money,
            final String puppy, final Boolean dying,
            final Boolean producesMoney, final Boolean puppies) {
        super();

        checkNotNull(name, "Received a null pointer as name");
        checkNotNull(money, "Received a null pointer as money");
        checkNotNull(puppy, "Received a null pointer as puppy");
        checkNotNull(dying, "Received a null pointer as dying flag");
        checkNotNull(producesMoney,
                "Received a null pointer as produces money flag");
        checkNotNull(puppies, "Received a null pointer as puppies flag");

        this.name = name;

        this.money = money;
        this.puppy = puppy;
        this.dying = dying;
        this.producesMoney = producesMoney;
        this.puppies = puppies;
    }

    @Override
    public final boolean equals(final Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        DefaultAnimalYearResult other = (DefaultAnimalYearResult) obj;
        return Objects.equals(name, other.name);
    }

    @Override
    public final String getDescription() {
        return name;
    }

    @Override
    public final Money getMoney() {
        return money;
    }

    @Override
    public final String getPuppy() {
        return puppy;
    }

    @Override
{'fraction_non_alphanumeric': 0.077880859375, 'fraction_numerical': 0.0, 'mean_word_length': 2.568815331010453, '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': '6445188', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1057, 'n_words': 344}