<commit_before>package group5.trackerexpress;

// Simple date object that consists of an integer
// in the form of DDMMYYYY
public class Date implements Comparable<Date>{
	private Integer dd;
	private Integer mm;
	private Integer yyyy;
	
	public Date ( int yyyy, int mm, int dd ){
		this.dd = dd;
		this.mm = mm;
		this.yyyy = yyyy;
	}
	
	public Date() {
	}

	public Integer getDate(){
		return yyyy * 10000 + mm * 100 + dd;
	}
	
	public void setDD( int dd ){
		this.dd = dd;
	}
	
	public int getDD(){
		return dd;
	}
	
	public void setMM( int mm ){
		this.mm = mm;
	}
	
	public int getMM(){
		return mm;
	}
	
	public void setYYYY( int yyyy ){
		this.yyyy = yyyy;
	}
	
	public int getYYYY(){
		return yyyy;
	}
	
	@Override
	public int compareTo(Date d) {
		// TODO Auto-generated method stub
		if ( ! (d instanceof Date) ){
			// Just return they are not equal. 
			// Should not be used in practice.
			// This is just a safeguard.
			return 1;
		}
		
		Integer int1 = (Integer) this.getDate();
		Integer int2 = (Integer) d.getDate();
		
		return int1.compareTo(int2);
	}
	
}
<commit_msg>Added check to ensure start date is before after date. Still need to add into Activities.<commit_after>package group5.trackerexpress;

// Simple date object that consists of an integer
// in the form of DDMMYYYY
public class Date implements Comparable<Date>{
	private Integer dd;
	private Integer mm;
	private Integer yyyy;
	
	public Date ( int yyyy, int mm, int dd ){
		this.dd = dd;
		this.mm = mm;
		this.yyyy = yyyy;
	}
	
	public Date() {
	}

	public Integer getDate(){
		return yyyy * 10000 + mm * 100 + dd;
	}
	
	public void setDD( int dd ){
		this.dd = dd;
	}
	
	public int getDD(){
		return dd;
	}
	
	public void setMM( int mm ){
		this.mm = mm;
	}
	
	public int getMM(){
		return mm;
	}
	
	public void setYYYY( int yyyy ){
		this.yyyy = yyyy;
	}
	
	public int getYYYY(){
		return yyyy;
	}
	
	@Override
	public int compareTo(Date d) {
		// TODO Auto-generated method stub
		if ( ! (d instanceof Date) ){
			// Just return they are not equal. 
			// Should not be used in practice.
			// This is just a safeguard.
			return 1;
		}
		
		Integer int1 = (Integer) this.getDate();
		Integer int2 = (Integer) d.getDate();
		
		return int1.compareTo(int2);
	}
	
	public boolean beforeAfterCheck(Date before, Date after){
		return (after.getDate() > before.getDate());
	}
	
}

{'fraction_non_alphanumeric': 0.11120507399577167, 'fraction_numerical': 0.011839323467230444, 'mean_word_length': 2.7735247208931417, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '2361863', 'n_tokens_mistral': 961, 'n_tokens_neox': 816, 'n_words': 288}