<commit_before>package com.health;

import java.util.Objects;

/**
 * Represents a column of a {@link Table}.
 *
 * @author Martijn
 */
public final class Column {
    private final String name;
    private final int index;
    private final ValueType type;
    private boolean isFrequencyColumn = false;;

    /**
     * Constructs a new column with the given name, index and type.
     *
     * @param name
     *            the name of the column.
     * @param index
     *            the index of the column.
     * @param type
     *            the type of the value of the column.
     * @throws NullPointerException
     *             if name is null;
     * @throws IllegalArgumentException
     *             if index is negative.
     */
    public Column(final String name, final int index, final ValueType type) {
        Objects.requireNonNull(name, "Argument name cannot be null.");
        Objects.requireNonNull(type, "Argument type cannot be null.");

        if (index < 0) {
            throw new IllegalArgumentException(
                    "Argument index cannot be negative.");
        }

        this.name = name;
        this.index = index;
        this.type = type;
        this.isFrequencyColumn = false;
    }

    /**
     * Gets the name of this column.
     *
     * @return the name of this column.
     */
    public String getName() {
        return this.name;
    }

    /**
     * Gets the index of this column.
     *
     * @return the index of this column.
     */
    public int getIndex() {
        return this.index;
    }

    /**
     * Gets the type of the value of this column.
     *
     * @return the type of the value of this column.
     */
    public ValueType getType() {
        return this.type;
    }

    /**
     * Gets the boolean that describes whether this column is a frequency
     * column.
     *
     * @return the boolean that describes whether this column is a frequency
     *         column
     */
    public boolean getIsFrequencyColumn() {
        return this.isFrequencyColumn;
    }

    /**
     * Sets the boolean that describes whether this column is a frequency
     * column.
     *
     * @param param
     *            the boolean that describes whether this column is a frequency
     *            column
     */
    public void setIsFrequencyColumn(final boolean param) {
        this.isFrequencyColumn = param;
    }

    @Override
    public boolean equals(final Object other) {
        if (!(other instanceof Column)) {
            return false;
        }

        Column that = (Column) other;

        return this.isFrequencyColumn == that.isFrequencyColumn
                && this.type == that.type
                && this.name.equals(that.name);
    }

    @Override
    public int hashCode() {
        return Integer.hashCode(this.index)
                ^ Boolean.hashCode(this.isFrequencyColumn)
                ^ this.name.hashCode()
                ^ this.type.hashCode();
    }
}
<commit_msg>Simplified hashCode() for column.<commit_after>package com.health;

import java.util.Objects;

/**
 * Represents a column of a {@link Table}.
 *
 * @author Martijn
 */
public final class Column {
    private final String name;
    private final int index;
    private final ValueType type;
    private boolean isFrequencyColumn = false;;

    /**
     * Constructs a new column with the given name, index and type.
     *
     * @param name
     *            the name of the column.
     * @param index
     *            the index of the column.
     * @param type
     *            the type of the value of the column.
     * @throws NullPointerException
     *             if name is null;
     * @throws IllegalArgumentException
     *             if index is negative.
     */
    public Column(final String name, final int index, final ValueType type) {
        Objects.requireNonNull(name, "Argument name cannot be null.");
        Objects.requireNonNull(type, "Argument type cannot be null.");

        if (index < 0) {
            throw new IllegalArgumentException(
                    "Argument index cannot be negative.");
        }

        this.name = name;
        this.index = index;
        this.type = type;
        this.isFrequencyColumn = false;
    }

    /**
     * Gets the name of this column.
     *
     * @return the name of this column.
     */
    public String getName() {
        return this.name;
    }

    /**
     * Gets the index of this column.
     *
     * @return the index of this column.
     */
    public int getIndex() {
        return this.index;
    }

    /**
     * Gets the type of the value of this column.
     *
     * @return the type of the value of this column.
     */
    public ValueType getType() {
        return this.type;
    }

    /**
     * Gets the boolean that describes whether this column is a frequency
     * column.
     *
     * @return the boolean that describes whether this column is a frequency
     *         column
     */
    public boolean getIsFrequencyColumn() {
        return this.isFrequencyColumn;
    }

    /**
     * Sets the boolean that describes whether this column is a frequency
     * column.
     *
     * @param param
     *            the boolean that describes whether this column is a frequency
     *            column
     */
    public void setIsFrequencyColumn(final boolean param) {
        this.isFrequencyColumn = param;
    }

    @Override
    public boolean equals(final Object other) {
        if (!(other instanceof Column)) {
            return false;
        }

        Column that = (Column) other;

        return this.isFrequencyColumn == that.isFrequencyColumn
                && this.type == that.type
                && this.name.equals(that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(this.index, this.isFrequencyColumn, this.name, this.type);
    }
}

{'fraction_non_alphanumeric': 0.08436388277147214, 'fraction_numerical': 0.000338810774182619, 'mean_word_length': 1.7679324894514767, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5385060', 'n_tokens_mistral': 1561, 'n_tokens_neox': 1506, 'n_words': 549}