<commit_before>package com.uwetrottmann.seriesguide;

import javax.persistence.Entity;

@Entity
public class Show extends BaseEntity {

    private int tvdbId;

    private boolean isFavorite;

    private boolean isHidden;

    private boolean isSyncEnabled;

    private String getGlueId;

    public Show() {
    }

    public boolean isFavorite() {
        return isFavorite;
    }

    public void setFavorite(boolean isFavorite) {
        this.isFavorite = isFavorite;
    }

    public int getTvdbId() {
        return tvdbId;
    }

    public void setTvdbId(int tvdbId) {
        this.tvdbId = tvdbId;
    }

    public void copyPropertyValues(Show show) {
        setFavorite(show.isFavorite());
    }

    public boolean isHidden() {
        return isHidden;
    }

    public void setHidden(boolean isHidden) {
        this.isHidden = isHidden;
    }

    public boolean isSyncEnabled() {
        return isSyncEnabled;
    }

    public void setSyncEnabled(boolean isSyncEnabled) {
        this.isSyncEnabled = isSyncEnabled;
    }

    public String getGetGlueId() {
        return getGlueId;
    }

    public void setGetGlueId(String getGlueId) {
        this.getGlueId = getGlueId;
    }
}
<commit_msg>Copy all possible show properties, add hasSameValues check.<commit_after>package com.uwetrottmann.seriesguide;

import org.datanucleus.util.StringUtils;

import javax.persistence.Entity;

@Entity
public class Show extends BaseEntity {

    private int tvdbId;

    private boolean isFavorite;

    private boolean isHidden;

    private boolean isSyncEnabled;

    private String getGlueId;

    public Show() {
    }

    public boolean isFavorite() {
        return isFavorite;
    }

    public void setFavorite(boolean isFavorite) {
        this.isFavorite = isFavorite;
    }

    public int getTvdbId() {
        return tvdbId;
    }

    public void setTvdbId(int tvdbId) {
        this.tvdbId = tvdbId;
    }

    /**
     * If any of the show specific properties differ returns false.
     */
    public boolean hasSameValues(Show show) {
        if (isFavorite() != show.isFavorite()) {
            return false;
        }
        if (isHidden() != show.isHidden()) {
            return false;
        }
        if (isSyncEnabled() != show.isSyncEnabled()) {
            return false;
        }
        if (!StringUtils.areStringsEqual(getGetGlueId(), show.getGetGlueId())) {
            return false;
        }
        return true;
    }

    public void copyPropertyValues(Show show) {
        setFavorite(show.isFavorite());
        setHidden(show.isHidden());
        setSyncEnabled(show.isSyncEnabled());
        setGetGlueId(show.getGetGlueId());
    }

    public boolean isHidden() {
        return isHidden;
    }

    public void setHidden(boolean isHidden) {
        this.isHidden = isHidden;
    }

    public boolean isSyncEnabled() {
        return isSyncEnabled;
    }

    public void setSyncEnabled(boolean isSyncEnabled) {
        this.isSyncEnabled = isSyncEnabled;
    }

    public String getGetGlueId() {
        return getGlueId;
    }

    public void setGetGlueId(String getGlueId) {
        this.getGlueId = getGlueId;
    }
}

{'fraction_non_alphanumeric': 0.08456460232631248, 'fraction_numerical': 0.0, 'mean_word_length': 2.349473684210526, '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': '4116027', 'n_tokens_mistral': 976, 'n_tokens_neox': 941, 'n_words': 222}