<commit_before>package org.bscl.common;

import org.bscl.common.date.DateUtil;
import org.junit.Test;

import java.awt.*;
import java.util.Date;

/**
 * <p/>
 * User : <EMAIL>
 * Date: 2015/8/10
 * Time: 14:55
 */
public class DateTest {

    @Test
    public void test1() {

        Date date = DateUtil.parseDate("20150810145612", "yyyyMMddHHmmss");

        String dateStr = DateUtil.formatDate(date, "yyyy-MM-dd");
        String currentDate = DateUtil.getDateTimeStr();
        System.out.println(date);
        System.out.println(dateStr);
        System.out.println(currentDate);
        Date d = DateUtil.getPreMonth();

        System.out.println(DateUtil.formatDate(d, DateUtil.DATETIME_STR));

        Date date1 = DateUtil.getDate(-15);
        System.out.println(date1);
        Date date2 = DateUtil.getCurrentDayEndTime();
        System.out.println(date2);

        System.out.println(DateUtil.formatBeforeDate(new Date()));



    }
}<commit_msg>update date<commit_after>package org.bscl.common;

import org.bscl.common.date.DateUtil;
import org.junit.Test;

import java.util.Calendar;
import java.util.Date;

/**
 * <p/>
 * User : <EMAIL>
 * Date: 2015/8/10
 * Time: 14:55
 */
public class DateTest {

    @Test
    public void test1() {

        Date date = DateUtil.parseDate("20150810145612", "yyyyMMddHHmmss");

        String dateStr = DateUtil.formatDate(date, "yyyy-MM-dd");
        String currentDate = DateUtil.getDateTimeStr();
        System.out.println(date);
        System.out.println(dateStr);
        System.out.println(currentDate);
        Date d = DateUtil.getPreMonth();

        System.out.println(DateUtil.formatDate(d, DateUtil.DATETIME_STR));

        Date date1 = DateUtil.getDate(-15);
        System.out.println(date1);
        Date date2 = DateUtil.getCurrentDayEndTime();
        System.out.println(date2);

        System.out.println(DateUtil.formatBeforeDate(new Date()));

        Date date3 = DateUtil.getDate(0);
        System.out.println(date3);

        Calendar c = Calendar.getInstance();
        c.add(Calendar.DATE, -4);
        System.out.println(c.getTime());


        Calendar c3 = Calendar.getInstance();
        c3.add(Calendar.DATE, -3);
        Date d3 = new Date();
        boolean isBefore = c.getTime().before(c3.getTime());
        System.out.println(isBefore);
        boolean b1 = false, b2 = false, b3 = true;

        if (b1 || b2 || b3) {
            System.out.println("ddd");
        }
    }
}
{'fraction_non_alphanumeric': 0.141643059490085, 'fraction_numerical': 0.03197086199919061, 'mean_word_length': 2.646017699115044, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5996728', 'n_tokens_mistral': 851, 'n_tokens_neox': 789, 'n_words': 142}