<commit_before>package org.atlasapi.schedule;

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

import org.atlasapi.content.Broadcast;
import org.atlasapi.content.Item;
import org.atlasapi.equivalence.Equivalent;

import com.google.common.base.Objects;

/**
 * Value type of a {@link Broadcast} and the (possibly filtered)
 * {@link Equivalent} {@link Item}s related to it.
 * 
 */
public final class EquivalentScheduleEntry implements Comparable<EquivalentScheduleEntry>{

    private final Broadcast broadcast;
    private final Equivalent<Item> items;

    public EquivalentScheduleEntry(Broadcast broadcast, Equivalent<Item> items) {
        this.broadcast = checkNotNull(broadcast);
        this.items = checkNotNull(items);
    }

    public Broadcast getBroadcast() {
        return broadcast;
    }

    public Equivalent<Item> getItems() {
        return items;
    }
    
    @Override
    public int compareTo(EquivalentScheduleEntry other) {
        return Broadcast.startTimeOrdering().compare(broadcast, other.broadcast);
    }
    
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that instanceof EquivalentScheduleEntry) {
            EquivalentScheduleEntry other = (EquivalentScheduleEntry) that;
            return broadcast.equals(other.broadcast)
                && items.equals(other.items);
        }
        return false;
    }
    
    @Override
    public int hashCode() {<commit_msg>EquivalentScheduleEntry.equals only uses broadcast<commit_after>package org.atlasapi.schedule;

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

import org.atlasapi.content.Broadcast;
import org.atlasapi.content.Item;
import org.atlasapi.equivalence.Equivalent;

import com.google.common.base.Objects;

/**
 * Value type of a {@link Broadcast} and the (possibly filtered)
 * {@link Equivalent} {@link Item}s related to it.
 * 
 */
public final class EquivalentScheduleEntry implements Comparable<EquivalentScheduleEntry>{

    private final Broadcast broadcast;
    private final Equivalent<Item> items;

    public EquivalentScheduleEntry(Broadcast broadcast, Equivalent<Item> items) {
        this.broadcast = checkNotNull(broadcast);
        this.items = checkNotNull(items);
    }

    public Broadcast getBroadcast() {
        return broadcast;
    }

    public Equivalent<Item> getItems() {
        return items;
    }
    
    @Override
    public int compareTo(EquivalentScheduleEntry other) {
        return Broadcast.startTimeOrdering().compare(broadcast, other.broadcast);
    }
    
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that instanceof EquivalentScheduleEntry) {
            EquivalentScheduleEntry other = (EquivalentScheduleEntry) that;
            return broadcast.equals(other.broadcast);
        }
        return false;
    }
    
    @Override
    public int hashCode() {
{'fraction_non_alphanumeric': 0.08809840425531915, 'fraction_numerical': 0.0, 'mean_word_length': 3.0607287449392713, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1466048', 'n_tokens_mistral': 817, 'n_tokens_neox': 801, 'n_words': 198}