<commit_before>package lindar.acolyte.util

import org.joda.time.DateTime
import java.util.Date

object DateAcolyte {
    private val ISO_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZZ"

    @JvmStatic
    fun currentTime(): String {
        return DateTime.now().toString(ISO_DATE_FORMAT)
    }

    @JvmStatic
    fun formatDate(date: Date): String {
        return DateTime(date).toString(ISO_DATE_FORMAT)
    }

    @JvmStatic
    fun formatDate(date: DateTime): String {
        return date.toString(ISO_DATE_FORMAT)
    }
}<commit_msg>remove support for joda.DateTime, add support for java 8 LocalDateTime<commit_after>package lindar.acolyte.util

import java.time.LocalDateTime
import java.time.ZoneId
import java.time.format.DateTimeFormatter
import java.util.Date

object DateAcolyte {
    private const val ISO_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZZ"
    private val formatter = DateTimeFormatter.ofPattern(ISO_DATE_FORMAT)

    @JvmStatic
    fun currentTime(): String {
        return LocalDateTime.now().format(formatter)
    }

    @JvmStatic
    fun formatDate(date: Date): String {
        return LocalDateTime.ofInstant(date.toInstant(), ZoneId.systemDefault()).format(formatter)
    }

    @JvmStatic
    fun formatDate(date: LocalDateTime): String {
        return date.format(formatter)
    }
}
{'fraction_non_alphanumeric': 0.0989345509893455, 'fraction_numerical': 0.00076103500761035, 'mean_word_length': 3.6964285714285716, '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': '5445234', 'n_tokens_mistral': 424, 'n_tokens_neox': 410, 'n_words': 83}