<commit_before>package seedu.scheduler.model.entry;


import seedu.scheduler.commons.exceptions.IllegalValueException;

//@@author A0161210A
/**
 * Represents a Entry's endDate in the scheduler.
 * Guarantees: immutable; is valid as declared in {@link #isValidEndDate(String)}
 */
public class EndDate {
    
    public static final String MESSAGE_DATE_CONSTRAINTS = "Item's endDate should be in the format dd-mm-yyyy in numbers separated by a '-'";
    public static final String DATE_VALIDATION_REGEX = "((0?[1-9]|[12][0-9]|3[01])-(0?[1-9]|1[012])-((18|19|20|21)\\d\\d)|empty)"; 

    public final String value;

    /**
     * ValiendDates given endDate.
     *
     * @throws IllegalValueException if given endDate string is invalid.
     */
    public EndDate(String endDate) throws IllegalValueException {
        assert endDate != null;
        if (endDate == null) {
            endDate = "empty";
        }
        if (!isValidEndDate(endDate)) {
            throw new IllegalValueException(MESSAGE_DATE_CONSTRAINTS);<commit_msg>Remove assertion to fix failures and errors<commit_after>package seedu.scheduler.model.entry;


import seedu.scheduler.commons.exceptions.IllegalValueException;

//@@author A0161210A
/**
 * Represents a Entry's endDate in the scheduler.
 * Guarantees: immutable; is valid as declared in {@link #isValidEndDate(String)}
 */
public class EndDate {
    
    public static final String MESSAGE_DATE_CONSTRAINTS = "Item's endDate should be in the format dd-mm-yyyy in numbers separated by a '-'";
    public static final String DATE_VALIDATION_REGEX = "((0?[1-9]|[12][0-9]|3[01])-(0?[1-9]|1[012])-((18|19|20|21)\\d\\d)|empty)"; 

    public final String value;

    /**
     * ValiendDates given endDate.
     *
     * @throws IllegalValueException if given endDate string is invalid.
     */
    public EndDate(String endDate) throws IllegalValueException {
        if (endDate == null) {
            endDate = "empty";
        }
        if (!isValidEndDate(endDate)) {
            throw new IllegalValueException(MESSAGE_DATE_CONSTRAINTS);
{'fraction_non_alphanumeric': 0.11909353905496625, 'fraction_numerical': 0.03085824493731919, 'mean_word_length': 3.386892177589852, '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': '6716263', 'n_tokens_mistral': 686, 'n_tokens_neox': 640, 'n_words': 166}