<commit_before>import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateHelper
{

    public static String getNowAsFormatted() {
        Calendar c = Calendar.getInstance();
        Date d = c.getTime();
        
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd HH:mm:ss");
        return sdf.format(d);
    
    }

}<commit_msg>refactor<commit_after>import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateHelper
{

    public static final String STR_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";

    public static String getNowAsFormatted() {
        Calendar c = Calendar.getInstance();
        Date d = c.getTime();
        
        SimpleDateFormat sdf = new SimpleDateFormat(STR_DATE_FORMAT);
        return sdf.format(d);
    
    }
    public static Date getNowAsFormatted() {
        Calendar c = Calendar.getInstance();
        Date d = c.getTime();
        return d;
    }


}
{'fraction_non_alphanumeric': 0.10050761421319797, 'fraction_numerical': 0.0, 'mean_word_length': 2.763358778625954, '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': '5525953', 'n_tokens_mistral': 304, 'n_tokens_neox': 288, 'n_words': 70}