<commit_before>package net.pureal.traits.math

public trait MatchingVariable : Variable {
    var matchingReal: Real? protected set
    inline val hasMatch: Boolean get() = matchingReal != null
    override fun matchWithThisPattern(other: Real): Boolean {
        if(hasMatch) return matchingReal == other
        if(super.matchWithThisPattern(other)) {
            matchingReal = other
            return true
        }
        return false
    }

    fun reset() {
        matchingReal = null
    }

    override fun calculate(): Real = matchingReal?.calculate() ?: this
    override fun equals(other: Any?): Boolean {
        if(other is Variable)
        if(matchingReal != null) return matchingReal == other
    }
}<commit_msg>fixed build<commit_after>package net.pureal.traits.math

public trait MatchingVariable : Variable {
    var matchingReal: Real? protected set
    inline val hasMatch: Boolean get() = matchingReal != null
    override fun matchWithThisPattern(other: Real): Boolean {
        if(hasMatch) return matchingReal == other
        if(super.matchWithThisPattern(other)) {
            matchingReal = other
            return true
        }
        return false
    }

    fun reset() {
        matchingReal = null
    }

    override fun calculate(): Real = matchingReal?.calculate() ?: this
    override fun equals(other: Any?): Boolean {
        if(other is Variable) return other.name == name && other.requiredSet == requiredSet
        if(matchingReal != null) return matchingReal == other
        return false
    }
}
{'fraction_non_alphanumeric': 0.08932038834951456, 'fraction_numerical': 0.0, 'mean_word_length': 2.6635071090047395, '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': '1786670', 'n_tokens_mistral': 404, 'n_tokens_neox': 388, 'n_words': 122}