<commit_before>package com.icapps.niddler.ui.model

import org.java_websocket.util.Base64
import java.nio.charset.Charset


/**
 * @author <NAME>
 * @date 14/11/16.
 */

class NiddlerMessage {

    var requestId: String? = null
    var url: String? = null
    var method: String? = null
    var body: String? = null
    var headers: Map<String, List<String>>? = null
    var statusCode: Int? = null

    val isRequest: Boolean
        get() = statusCode == null

    val isResponse: Boolean
        get() = !isRequest

    val getBodyAsString: String
        get() = String(Base64.decode(body!!), Charset.forName("UTF-8"))

}
<commit_msg>Added message id and hash<commit_after>package com.icapps.niddler.ui.model

import org.java_websocket.util.Base64
import java.nio.charset.Charset


/**
 * @author <NAME>
 * @date 14/11/16.
 */

class NiddlerMessage {

    lateinit var requestId: String
    lateinit var messageId: String
    var url: String? = null
    var method: String? = null
    var body: String? = null
    var headers: Map<String, List<String>>? = null
    var statusCode: Int? = null

    val isRequest: Boolean
        get() = statusCode == null

    val isResponse: Boolean
        get() = !isRequest

    val getBodyAsString: String
        get() = String(Base64.decode(body!!), Charset.forName("UTF-8"))

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other?.javaClass != javaClass) return false

        other as NiddlerMessage

        if (messageId != other.messageId) return false

        return true
    }

    override fun hashCode(): Int {
        return messageId.hashCode()
    }


}

{'fraction_non_alphanumeric': 0.11538461538461539, 'fraction_numerical': 0.013221153846153846, 'mean_word_length': 2.7584650112866815, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '18325', 'n_tokens_mistral': 546, 'n_tokens_neox': 515, 'n_words': 147}