<commit_before>package com.chatalytics.core.model.data;

import org.joda.time.DateTime;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

@Getter
@EqualsAndHashCode
@ToString
public class ChatAlyticsEvent {

    public ChatAlyticsEvent(DateTime eventTime, String type, Serializable event) {
        this.eventTime = eventTime;
        this.type = type;
        this.event = event;
        this.clazz = event.getClass();
    }

    private final DateTime eventTime;
    private final String type;
    private final Serializable event;

    @Setter // null out clazz when it leaves the service
    private Class<? extends Serializable> clazz;
}<commit_msg>Make ChatAlyticsEvent not depend on Serializable<commit_after>package com.chatalytics.core.model.data;

import com.fasterxml.jackson.annotation.JsonIgnore;

import org.joda.time.DateTime;

import lombok.Data;
import lombok.Setter;

@Data
public class ChatAlyticsEvent {

    private final DateTime eventTime;
    private final String type;
    private final Object event;

    public ChatAlyticsEvent(DateTime eventTime, String type, Object event) {
        this.eventTime = eventTime;
        this.type = type;
        this.event = event;
        this.clazz = event.getClass();
    }

    @Setter // null out clazz when it leaves the service
    @JsonIgnore
    private Class<?> clazz;
}
{'fraction_non_alphanumeric': 0.08070175438596491, 'fraction_numerical': 0.0, 'mean_word_length': 3.526984126984127, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '2894360', 'n_tokens_mistral': 430, 'n_tokens_neox': 415, 'n_words': 120}