<commit_before>package org.shopkeeper.util;

import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;

public class DateTimeGenerator {

    /**
     * Generate a DateTime object from the moment of method-calling.
     *
     * @return The generated DateTime object
     * @see DateTime
     */
    public static DateTime generateDateTimeNow() {
        DateTime time = new DateTime();
        return time;
    }

    /**
     * Converts given DateTime object to string in format of 'yyyy-MM-dd HH:mm:ss'
     *
     * @param time The DateTime object liked to be parsed to string
     * @return The parsed string from te given DateTime object
     * @see DateTime
     */
    public static String dateTimeToString(DateTime time) {
        if (time != null) {
            DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss");
            return fmt.print(time);
        } else {
            return null;
        }
    }

}<commit_msg>FIX: Clash with subjectresultparser, added fixme<commit_after>package org.shopkeeper.util;

import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;

public class DateTimeGenerator {

    /**
     * Generate a DateTime object from the moment of method-calling.
     *
     * @return The generated DateTime object
     * @see DateTime
     */
    public static DateTime generateDateTimeNow() {
        DateTime time = new DateTime();
        return time;
    }

    /**
     * Converts given DateTime object to string in format of 'yyyy-MM-dd HH:mm:ss'
     *
     * @param time The DateTime object liked to be parsed to string
     * @return The parsed string from te given DateTime object
     * @see DateTime
     */
    public static String dateTimeToString(DateTime time) {
        if (time != null) {
           // DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss");
            //return fmt.print(time);

            // FIXME: Clashed with Subjectresultparser!
            return time.toString();
        } else {
            return null;
        }
    }

}
{'fraction_non_alphanumeric': 0.09040590405904059, 'fraction_numerical': 0.0, 'mean_word_length': 2.3943661971830985, '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': '7555323', 'n_tokens_mistral': 586, 'n_tokens_neox': 572, 'n_words': 185}