<commit_before>package me.nithanim.gw2api.v2.api.items.details;

import java.util.Arrays;
import java.util.Objects;
import org.apache.commons.lang.builder.ToStringBuilder;

public class InfixUpgrade {
    private Attribute[] attributes;
    private Buff buff;

    public Attribute[] getAttributes() {
        return attributes;
    }

    public Buff getBuff() {
        return buff;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + Arrays.deepHashCode(this.attributes);
        hash = 89 * hash + Objects.hashCode(this.buff);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final InfixUpgrade other = (InfixUpgrade) obj;
        return Arrays.deepEquals(this.attributes, other.attributes)
            && Objects.equals(this.buff, other.buff);
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    public static class Attribute {
        private AttributeType attribute;
        private int modifier;

        public AttributeType getAttribute() {
            return attribute;
        }

        public int getModifier() {
            return modifier;
        }

        @Override
        public int hashCode() {
            int hash = 7;
            hash = 37 * hash + Objects.hashCode(this.attribute);
            hash = 37 * hash + this.modifier;
            return hash;
        }

        @Override
        public boolean equals(Object obj) {
            if (obj == null || getClass() != obj.getClass()) {
                return false;
            }
            final Attribute other = (Attribute) obj;
            return this.attribute == other.attribute
                && this.modifier == other.modifier;
        }

        @Override
        public String toString() {
            return ToStringBuilder.reflectionToString(this);
        }

        public static enum AttributeType {
            CONDITION_DAMAGE, CRIT_DAMAGE, HEALING, POWER, PRECISION, TOUGHNESS,
            VITALITY;
        }
    }

    public static class Buff {
        private int skillId;
        private String description;

        @Override
        public int hashCode() {
            int hash = 5;
            hash = 97 * hash + this.skillId;
            hash = 97 * hash + Objects.hashCode(this.description);
            return hash;
        }

        @Override
        public boolean equals(Object obj) {
            if (obj == null || getClass() != obj.getClass()) {
                return false;
            }
            final Buff other = (Buff) obj;
            return this.skillId == other.skillId
                && Objects.equals(this.description, other.description);
        }<commit_msg>Added getters and setters for Buff in InfixUpgrade in items(). Fixes #2<commit_after>package me.nithanim.gw2api.v2.api.items.details;

import java.util.Arrays;
import java.util.Objects;
import org.apache.commons.lang.builder.ToStringBuilder;

public class InfixUpgrade {
    private Attribute[] attributes;
    private Buff buff;

    public Attribute[] getAttributes() {
        return attributes;
    }

    public Buff getBuff() {
        return buff;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + Arrays.deepHashCode(this.attributes);
        hash = 89 * hash + Objects.hashCode(this.buff);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final InfixUpgrade other = (InfixUpgrade) obj;
        return Arrays.deepEquals(this.attributes, other.attributes)
            && Objects.equals(this.buff, other.buff);
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    public static class Attribute {
        private AttributeType attribute;
        private int modifier;

        public AttributeType getAttribute() {
            return attribute;
        }

        public int getModifier() {
            return modifier;
        }

        @Override
        public int hashCode() {
            int hash = 7;
            hash = 37 * hash + Objects.hashCode(this.attribute);
            hash = 37 * hash + this.modifier;
            return hash;
        }

        @Override
        public boolean equals(Object obj) {
            if (obj == null || getClass() != obj.getClass()) {
                return false;
            }
            final Attribute other = (Attribute) obj;
            return this.attribute == other.attribute
                && this.modifier == other.modifier;
        }

        @Override
        public String toString() {
            return ToStringBuilder.reflectionToString(this);
        }

        public static enum AttributeType {
            CONDITION_DAMAGE, CRIT_DAMAGE, HEALING, POWER, PRECISION, TOUGHNESS,
            VITALITY;
        }
    }

    public static class Buff {
        private int skillId;
        private String description;

        public int getSkillId() {
            return skillId;
        }

        public String getDescription() {
            return description;
        }

        @Override
        public int hashCode() {
            int hash = 5;
            hash = 97 * hash + this.skillId;
            hash = 97 * hash + Objects.hashCode(this.description);
            return hash;
        }

        @Override
        public boolean equals(Object obj) {
            if (obj == null || getClass() != obj.getClass()) {
                return false;
            }
            final Buff other = (Buff) obj;
            return this.skillId == other.skillId
                && Objects.equals(this.description, other.description);
        }
{'fraction_non_alphanumeric': 0.0911062906724512, 'fraction_numerical': 0.0058401468379776405, 'mean_word_length': 1.706094808126411, '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': '260008', 'n_tokens_mistral': 1599, 'n_tokens_neox': 1535, 'n_words': 421}