<commit_before>package com.garpr.android.models

import android.os.Parcel
import android.os.Parcelable
import com.garpr.android.extensions.*
import com.google.gson.annotations.SerializedName

data class RankingsBundle(
        @SerializedName("ranking") val rankings: List<RankedPlayer>? = null,
        @SerializedName("tournaments") val tournaments: List<String>? = null,
        @SerializedName("ranking_criteria") val rankingCriteria: AbsRegion,
        @SerializedName("time") val time: SimpleDate,
        @SerializedName("id") val id: String,
        @SerializedName("region") val region: String
) : Parcelable {

    companion object {
        @JvmField
        val CREATOR = createParcel {
            RankingsBundle(
                    it.createTypedArrayList(RankedPlayer.CREATOR),
                    it.createStringArrayList(),
                    it.readAbsRegion(),
                    it.requireParcelable(SimpleDate::class.java.classLoader),
                    it.requireString(),
                    it.requireString()
            )
        }
    }

    override fun equals(other: Any?): Boolean {
        return other is RankingsBundle && id.equals(other.id, ignoreCase = true)
    }

    override fun hashCode() = id.hashCode()

    fun hasPreviousRank(): Boolean {
        return rankings?.firstOrNull() != null
    }

    override fun describeContents() = 0

    override fun writeToParcel(dest: Parcel, flags: Int) {
        dest.writeTypedList(rankings)
        dest.writeStringList(tournaments)
        dest.writeAbsRegion(rankingCriteria, flags)
        dest.writeParcelable(time, flags)
        dest.writeString(id)
        dest.writeString(region)
    }

}<commit_msg>fixed a test<commit_after>package com.garpr.android.models

import android.os.Parcel
import android.os.Parcelable
import com.garpr.android.extensions.*
import com.google.gson.annotations.SerializedName

data class RankingsBundle(
        @SerializedName("ranking") val rankings: List<RankedPlayer>? = null,
        @SerializedName("tournaments") val tournaments: List<String>? = null,
        @SerializedName("ranking_criteria") val rankingCriteria: AbsRegion,
        @SerializedName("time") val time: SimpleDate,
        @SerializedName("id") val id: String,
        @SerializedName("region") val region: String
) : Parcelable {

    companion object {
        @JvmField
        val CREATOR = createParcel {
            RankingsBundle(
                    it.createTypedArrayList(RankedPlayer.CREATOR),
                    it.createStringArrayList(),
                    it.readAbsRegion(),
                    it.requireParcelable(SimpleDate::class.java.classLoader),
                    it.requireString(),
                    it.requireString()
            )
        }
    }

    override fun equals(other: Any?): Boolean {
        return other is RankingsBundle && id.equals(other.id, ignoreCase = true)
    }

    override fun hashCode() = id.hashCode()

    fun hasPreviousRank(): Boolean {
        return rankings?.asSequence()
                ?.filter { it.previousRank != null }
                ?.firstOrNull() != null
    }

    override fun describeContents() = 0

    override fun writeToParcel(dest: Parcel, flags: Int) {
        dest.writeTypedList(rankings)
        dest.writeStringList(tournaments)
        dest.writeAbsRegion(rankingCriteria, flags)
        dest.writeParcelable(time, flags)
        dest.writeString(id)
        dest.writeString(region)
    }

}
{'fraction_non_alphanumeric': 0.10146593848807128, 'fraction_numerical': 0.0005748778384593274, 'mean_word_length': 2.4765234765234765, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4827062', 'n_tokens_mistral': 971, 'n_tokens_neox': 931, 'n_words': 192}