<commit_before>package com.ghosty.desktop.clock.widget;

import org.jnativehook.GlobalScreen;
import org.jnativehook.NativeHookException;

public class Main {

    public static void main(String[] args) {
        Runtime.getRuntime().addShutdownHook(new Thread(Main::cleanUp));
        new DateTimeWidget();
    }

    private static void cleanUp() {
        try {
            GlobalScreen.unregisterNativeHook();
        } catch (NativeHookException e1) {
            System.exit(1);
        }
        System.runFinalization();
        System.exit(0);
    }
}<commit_msg>Wrapped new DateTimeWidget with invokeLater<commit_after>package com.ghosty.desktop.clock.widget;

import org.jnativehook.GlobalScreen;
import org.jnativehook.NativeHookException;

import javax.swing.SwingUtilities;

public class Main {

    public static void main(String[] args) {
        Runtime.getRuntime().addShutdownHook(new Thread(Main::cleanUp));
        SwingUtilities.invokeLater(DateTimeWidget::new);
    }

    private static void cleanUp() {
        try {
            GlobalScreen.unregisterNativeHook();
        } catch (NativeHookException e1) {
            System.exit(1);
        }
        System.runFinalization();
        System.exit(0);
    }
}
{'fraction_non_alphanumeric': 0.10509296685529507, 'fraction_numerical': 0.004850444624090542, 'mean_word_length': 2.9177215189873418, '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': '4329219', 'n_tokens_mistral': 351, 'n_tokens_neox': 345, 'n_words': 65}