<commit_before>package com.dwalldorf.timetrack.backend.config;

import static org.junit.Assert.assertTrue;

import com.dwalldorf.timetrack.backend.BaseTest;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormatter;
import org.junit.Test;

public class GraphDateTimeFormatterConfigTest extends BaseTest {

    private GraphDateTimeFormatterConfig graphDateTimeFormatterConfig;

    @Override
    protected void setUp() {
        this.graphDateTimeFormatterConfig = new GraphDateTimeFormatterConfig();
    }

    @Test
    public void dateTimeFormatter() throws Exception {
        final String expectedPattern = "^\\d{4}-\\d{2}-\\d{2}$";

        DateTimeFormatter dateTimeFormatter = graphDateTimeFormatterConfig.dateTimeFormatter();
        String printedDateTime = dateTimeFormatter.print(new DateTime());

        assertTrue(printedDateTime.matches(expectedPattern));
    }
}<commit_msg>naming<commit_after>package com.dwalldorf.timetrack.backend.config;

import static org.junit.Assert.assertTrue;

import com.dwalldorf.timetrack.backend.BaseTest;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormatter;
import org.junit.Test;

public class GraphDateTimeFormatterConfigTest extends BaseTest {

    private GraphDateTimeFormatterConfig graphDateTimeFormatterConfig;

    @Override
    protected void setUp() {
        this.graphDateTimeFormatterConfig = new GraphDateTimeFormatterConfig();
    }

    @Test
    public void testDateTimeFormatter() throws Exception {
        final String expectedPattern = "^\\d{4}-\\d{2}-\\d{2}$";

        DateTimeFormatter dateTimeFormatter = graphDateTimeFormatterConfig.dateTimeFormatter();
        String printedDateTime = dateTimeFormatter.print(new DateTime());

        assertTrue(printedDateTime.matches(expectedPattern));
    }
}
{'fraction_non_alphanumeric': 0.09356081452944413, 'fraction_numerical': 0.003302146395156852, 'mean_word_length': 4.559633027522936, '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': '1379898', 'n_tokens_mistral': 478, 'n_tokens_neox': 468, 'n_words': 92}