<commit_before>package org.kethereum.crypto.model

import org.kethereum.extensions.hexToBigInteger
import org.kethereum.extensions.toBigInteger
import java.math.BigInteger

class PrivateKey(val key: BigInteger) {
    constructor(privateKey: ByteArray) : this(privateKey.toBigInteger())

    override fun equals(other: Any?) = when (other) {
        is PrivateKey -> other.key == key
        else -> false
    }

    override fun hashCode() = key.hashCode()
    override fun toString() = key.toString()
}

class PublicKey(val key: BigInteger) {

    constructor(privateKey: ByteArray) : this(privateKey.toBigInteger())
    constructor(privateKey: String) : this(privateKey.hexToBigInteger())

    override fun equals(other: Any?) = when (other) {
        is PublicKey -> other.key == key
        else -> false
    }

    override fun hashCode() = key.hashCode()
    override fun toString() = key.toString()
}

data class ECKeyPair(val privateKey: PrivateKey, val publicKey: PublicKey)
<commit_msg>Fix variable name<commit_after>package org.kethereum.crypto.model

import org.kethereum.extensions.hexToBigInteger
import org.kethereum.extensions.toBigInteger
import java.math.BigInteger

class PrivateKey(val key: BigInteger) {
    constructor(privateKey: ByteArray) : this(privateKey.toBigInteger())

    override fun equals(other: Any?) = when (other) {
        is PrivateKey -> other.key == key
        else -> false
    }

    override fun hashCode() = key.hashCode()
    override fun toString() = key.toString()
}

class PublicKey(val key: BigInteger) {

    constructor(publicKey: ByteArray) : this(publicKey.toBigInteger())
    constructor(publicKey: String) : this(publicKey.hexToBigInteger())

    override fun equals(other: Any?) = when (other) {
        is PublicKey -> other.key == key
        else -> false
    }

    override fun hashCode() = key.hashCode()
    override fun toString() = key.toString()
}

data class ECKeyPair(val privateKey: PrivateKey, val publicKey: PublicKey)

{'fraction_non_alphanumeric': 0.11244979919678715, 'fraction_numerical': 0.0, 'mean_word_length': 3.8256658595641646, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4739248', 'n_tokens_mistral': 589, 'n_tokens_neox': 576, 'n_words': 148}