<commit_before>package seedu.address.model.activity;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

import seedu.address.commons.exceptions.IllegalValueException;
import seedu.address.commons.util.DateUtil;

//@@author A0125680H
public abstract class DateTime implements Comparable<DateTime>{
    public Calendar value;
    protected static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("EEE, MMM d, yyyy h:mm a");
    protected static final SimpleDateFormat SAVE_DATE_FORMAT = new SimpleDateFormat("d-MM-yyyy h:mm aa");
    protected static final DateUtil DATE_PARSER = new DateUtil();
    public boolean recurring;

    public DateTime(Calendar date) {
        if (date == null) {
            this.value = null;
        } else {
            this.value = Calendar.getInstance();
            this.value.setTime(date.getTime());
        }
    }

    public DateTime(String date) throws IllegalValueException {
        assert date != null;

        if (date.equals("")) {
            this.value = null;
        } else {
            this.value = Calendar.getInstance();
            this.value.set(Calendar.MILLISECOND, 0);
            this.value.set(Calendar.SECOND, 0);
        }
    }
    
    /**
     * Returns true if the stored time is before the current time.
     */
    public boolean isBeforeNow() {
        Date now = Calendar.getInstance().getTime();
        System.out.println(this.value.getTime().before(now));
        return this.value.getTime().before(now);
    }
    <commit_msg>removed redundant sysout<commit_after>package seedu.address.model.activity;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

import seedu.address.commons.exceptions.IllegalValueException;
import seedu.address.commons.util.DateUtil;

//@@author A0125680H
public abstract class DateTime implements Comparable<DateTime>{
    public Calendar value;
    protected static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("EEE, MMM d, yyyy h:mm a");
    protected static final SimpleDateFormat SAVE_DATE_FORMAT = new SimpleDateFormat("d-MM-yyyy h:mm aa");
    protected static final DateUtil DATE_PARSER = new DateUtil();
    public boolean recurring;

    public DateTime(Calendar date) {
        if (date == null) {
            this.value = null;
        } else {
            this.value = Calendar.getInstance();
            this.value.setTime(date.getTime());
        }
    }

    public DateTime(String date) throws IllegalValueException {
        assert date != null;

        if (date.equals("")) {
            this.value = null;
        } else {
            this.value = Calendar.getInstance();
            this.value.set(Calendar.MILLISECOND, 0);
            this.value.set(Calendar.SECOND, 0);
        }
    }
    
    /**
     * Returns true if the stored time is before the current time.
     */
    public boolean isBeforeNow() {
        Date now = Calendar.getInstance().getTime();
        return this.value.getTime().before(now);
    }
    
{'fraction_non_alphanumeric': 0.10529779532741033, 'fraction_numerical': 0.005923000987166831, 'mean_word_length': 2.675937122128174, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2492922', 'n_tokens_mistral': 867, 'n_tokens_neox': 833, 'n_words': 211}