<commit_before>package com.worth.ifs.competitionsetup.viewmodel;

import com.worth.ifs.competition.resource.MilestoneType;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.validator.constraints.Range;

import java.time.DateTimeException;
import java.time.LocalDateTime;

/**
 * Milestone Form Entry for the Milestones form.
 */
public class MilestoneViewModel {
    @Range(min = 1, max = 31)
    private Integer day;
    @Range(min = 1, max = 12)
    private Integer month;
    @Range(min = 2016, max = 9000)
    private Integer year;
    private MilestoneType milestoneType;
    private String dayOfWeek;

    private static final Log LOG = LogFactory.getLog(MilestoneViewModel.class);

    public MilestoneViewModel(MilestoneType milestoneType, LocalDateTime dateTime) {
        this.setMilestoneType(milestoneType);
        if(dateTime != null) {
            this.setDay(dateTime.getDayOfMonth());
            this.setMonth(dateTime.getMonth().getValue());
            this.setYear(dateTime.getYear());
        }
    }

    public Integer getDay() {
        return day;
    }

    public void setDay(Integer day) {<commit_msg>INFUND-5950 Fixing acc tests<commit_after>package com.worth.ifs.competitionsetup.viewmodel;

import com.worth.ifs.competition.resource.MilestoneType;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.validator.constraints.Range;

import java.time.DateTimeException;
import java.time.LocalDateTime;

/**
 * Milestone Form Entry for the Milestones form.
 */
public class MilestoneViewModel {
    @Range(min = 1, max = 31)
    private Integer day;
    @Range(min = 1, max = 12)
    private Integer month;
    @Range(min = 2016, max = 9000)
    private Integer year;
    private MilestoneType milestoneType;
    private String dayOfWeek;

    private static final Log LOG = LogFactory.getLog(MilestoneViewModel.class);

    public MilestoneViewModel() {
        
    }

    public MilestoneViewModel(MilestoneType milestoneType, LocalDateTime dateTime) {
        this.setMilestoneType(milestoneType);
        if(dateTime != null) {
            this.setDay(dateTime.getDayOfMonth());
            this.setMonth(dateTime.getMonth().getValue());
            this.setYear(dateTime.getYear());
        }
    }

    public Integer getDay() {
        return day;
    }

    public void setDay(Integer day) {
{'fraction_non_alphanumeric': 0.09971276159212146, 'fraction_numerical': 0.013130898645876077, 'mean_word_length': 3.361359570661896, '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': '6993631', 'n_tokens_mistral': 747, 'n_tokens_neox': 692, 'n_words': 159}