<commit_before><commit_msg>started trying to pass events through<commit_after>package net.hanekawa.papika.common.slack

import com.squareup.moshi.Json
import net.hanekawa.papika.common.slack.EventType


sealed class Event(val type: EventType)

sealed class MessageEvent(
        val subtype: MessageSubtype,
        val channel: String? = null,
        val user: String? = null,
        val text: String,
        val ts: String,
        val attachments: List<Attachment>? = null,
        val edited: EditedProperty? = null
) : Event(type = EventType.MESSAGE) {
    class EditedProperty(val user: String, val ts: String)
}


class Attachment(
        val fallback: String,
        val color: String,
        val pretext: String,
        @Json(name = "author_name") val authorName: String,
        @Json(name = "author_link") val authorLink: String,
        @Json(name = "author_icon") val authorIcon: String,
        val title: String,
        @Json(name = "title_link") val titleLink: String,
        val text: String,
        val fields: List<AttachmentField>,
        @Json(name = "image_url") val imageUrl: String,
        @Json(name = "thumb_url") val thumbUrl: String,
        val footer: String,
        @Json(name = "footer_icon") val footerIcon: String,
        val ts: Number
) {
    class AttachmentField(val title: String, val value: String, val short: Boolean)
}

{'fraction_non_alphanumeric': 0.10327272727272727, 'fraction_numerical': 0.0, 'mean_word_length': 2.9654178674351583, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '983540', 'n_tokens_mistral': 413, 'n_tokens_neox': 407, 'n_words': 124}