<commit_before>package com.jamieadkins.gwent.model

import com.jamieadkins.commonutils.ui.RecyclerViewItem
import com.jamieadkins.gwent.base.GwentRecyclerViewAdapter

class GwentCard : RecyclerViewItem {
    private val DEFAULT_LOCALE = "en-US"

    var id: String? = null
    var info = mutableMapOf<String, String>()
    var flavor = mutableMapOf<String, String>()
    var name = mutableMapOf<String, String>()
    var categories = listOf<String>()
    var loyalties = listOf<Loyalty>()
    var faction: GwentFaction? = null
    var strength: Int? = null
    var colour: CardColour? = null
    var rarity: Rarity? = null
    var collectible = false

    var craftValues = mutableMapOf<String, Int>()
    var millValues = mutableMapOf<String, Int>()

    var relatedCards = listOf<String>()

    var cardArt: CardArt? = null

    override fun getItemType(): Int {
        return if (colour == CardColour.LEADER) {
            GwentRecyclerViewAdapter.TYPE_CARD_LEADER
        } else {
            GwentRecyclerViewAdapter.TYPE_CARD
        }
    }

    override fun equals(other: Any?): Boolean {
        return other is GwentCard && other.id == id
    }

    override fun areContentsTheSame(other: RecyclerViewItem): Boolean {
        return other is GwentCard && info[DEFAULT_LOCALE] == other.info[DEFAULT_LOCALE]
    }
}<commit_msg>Added toString for GwentCard<commit_after>package com.jamieadkins.gwent.model

import com.jamieadkins.commonutils.ui.RecyclerViewItem
import com.jamieadkins.gwent.base.GwentRecyclerViewAdapter

class GwentCard : RecyclerViewItem {
    private val DEFAULT_LOCALE = "en-US"

    var id: String? = null
    var info = mutableMapOf<String, String>()
    var flavor = mutableMapOf<String, String>()
    var name = mutableMapOf<String, String>()
    var categories = mutableListOf<String>()
    var loyalties = mutableListOf<Loyalty>()
    var faction: GwentFaction? = null
    var strength: Int? = null
    var colour: CardColour? = null
    var rarity: Rarity? = null
    var collectible = false

    var craftValues = mutableMapOf<String, Int>()
    var millValues = mutableMapOf<String, Int>()

    var relatedCards = listOf<String>()

    var cardArt: CardArt? = null

    override fun getItemType(): Int {
        return if (colour == CardColour.LEADER) {
            GwentRecyclerViewAdapter.TYPE_CARD_LEADER
        } else {
            GwentRecyclerViewAdapter.TYPE_CARD
        }
    }

    override fun equals(other: Any?): Boolean {
        return other is GwentCard && other.id == id
    }

    override fun areContentsTheSame(other: RecyclerViewItem): Boolean {
        return other is GwentCard && info[DEFAULT_LOCALE] == other.info[DEFAULT_LOCALE]
    }

    override fun toString(): String {
        return name[DEFAULT_LOCALE] ?: id ?: super.toString()
    }
}
{'fraction_non_alphanumeric': 0.09615384615384616, 'fraction_numerical': 0.0, 'mean_word_length': 3.256060606060606, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '4906574', 'n_tokens_mistral': 910, 'n_tokens_neox': 858, 'n_words': 215}