<commit_before>package org.wikipedia.analytics.eventplatform

import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient

@Serializable
sealed class TimedEvent(@Transient private val streamNameStr: String = "") : MobileAppsEvent(streamNameStr) {

    @Transient
    private var startTime = 0L

    @Transient
    private var pauseTime = 0L

    @Transient
    val duration = System.currentTimeMillis() - startTime

    fun start() {
        startTime = System.currentTimeMillis()<commit_msg>Get the updated value of duration in timed events. (#3237)<commit_after>package org.wikipedia.analytics.eventplatform

import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient

@Serializable
sealed class TimedEvent(@Transient private val streamNameStr: String = "") : MobileAppsEvent(streamNameStr) {

    @Transient
    private var startTime = 0L

    @Transient
    private var pauseTime = 0L

    @Transient
    val duration: Long
        get() = System.currentTimeMillis() - startTime

    fun start() {
        startTime = System.currentTimeMillis()
{'fraction_non_alphanumeric': 0.07791017415215398, 'fraction_numerical': 0.007332722273143905, 'mean_word_length': 4.1753554502369665, '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': '6079603', 'n_tokens_mistral': 320, 'n_tokens_neox': 306, 'n_words': 78}