<commit_before>package com.CMPUT301W15T02.teamtoapp;

import java.util.ArrayList;
import java.util.Calendar;

import com.CMPUT301W15T02.teamtoapp.Claim.Status;

public class ClaimController {
	
	private Claim currentClaim;
	
	public ClaimController() {
		this.currentClaim = ClaimSingleton.getInstance().getClaim();
	}
	
	public void setClaimName(String name) {
		currentClaim.setClaimName(name);
	}
	
	public void setExpense(Expense expense) {
		ExpenseSingleton.getInstance().setExpense(expense);
	}
	
	
	public void addExpense(Expense expense) {
		currentClaim.addExpense(expense);
		ExpenseSingleton.getInstance().setExpense(expense);
	}
	
	public void removeExpense(Expense expense) {
		currentClaim.removeExpense(expense);
	}
	
	public void addTag(Tag tag) {
		currentClaim.addTag(tag);
	}
	
	public void removeTag(Tag tag) {
		currentClaim.removeTag(tag);
	}
	
	public void submitClaim() {
		currentClaim.setStatus(Status.SUBMITTED);
	}
	
	public void returnClaim() {
		currentClaim.setStatus(Status.RETURNED);
	}
	
	public void approvedClaim() {
		currentClaim.setStatus(Status.APPROVED);
	}
	
	public void setStartDate(Calendar date) {
		currentClaim.setStartDate(date);
	}
	
	public Calendar getStartDate() {
		return currentClaim.getStartDate();
	}
	
	public void setEndDate(Calendar date) {
		currentClaim.setEndDate(date);
	}
	
	public Calendar getEndDate() {
		return currentClaim.getEndDate();
	}
	
	public void setUser(String name) {
		currentClaim.setUser(name);
	}
	
	public void addComment(String comment) {
		currentClaim.setComment(comment);
	}
	
	public void addDestination(String destination, String reason) {
		StringTuple newDestination = new StringTuple(destination, reason);
		currentClaim.addDestination(newDestination);
	}
	
	public ArrayList<Expense> getExpenses() {
		return currentClaim.getExpenses();
	}
	

}
<commit_msg>Added formatting for getting start and end date to controller<commit_after>package com.CMPUT301W15T02.teamtoapp;

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

import com.CMPUT301W15T02.teamtoapp.Claim.Status;

public class ClaimController {
	
	private Claim currentClaim;
	SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
	
	public ClaimController() {
		this.currentClaim = ClaimSingleton.getInstance().getClaim();
	}
	
	public void setClaimName(String name) {
		currentClaim.setClaimName(name);
	}
	
	public void setExpense(Expense expense) {
		ExpenseSingleton.getInstance().setExpense(expense);
	}
	
	
	public void addExpense(Expense expense) {
		currentClaim.addExpense(expense);
		ExpenseSingleton.getInstance().setExpense(expense);
	}
	
	public void removeExpense(Expense expense) {
		currentClaim.removeExpense(expense);
	}
	
	public void addTag(Tag tag) {
		currentClaim.addTag(tag);
	}
	
	public void removeTag(Tag tag) {
		currentClaim.removeTag(tag);
	}
	
	public void submitClaim() {
		currentClaim.setStatus(Status.SUBMITTED);
	}
	
	public void returnClaim() {
		currentClaim.setStatus(Status.RETURNED);
	}
	
	public void approvedClaim() {
		currentClaim.setStatus(Status.APPROVED);
	}
	
	public void setStartDate(Calendar date) {
		currentClaim.setStartDate(date);
	}
	
	public Calendar getStartDate() {
		return currentClaim.getStartDate();
	}
	
	public String getStartDateFormatted() {
		return formatter.format(getStartDate().getTime());
	}
	
	public void setEndDate(Calendar date) {
		currentClaim.setEndDate(date);
	}
	
	public Calendar getEndDate() {
		return currentClaim.getEndDate();
	}
	
	public String getEndDateFormatted() {
		return formatter.format(getEndDate().getTime());
	}
	
	public void setUser(String name) {
		currentClaim.setUser(name);
	}
	
	public void addComment(String comment) {
		currentClaim.setComment(comment);
	}
	
	public void addDestination(String destination, String reason) {
		StringTuple newDestination = new StringTuple(destination, reason);
		currentClaim.addDestination(newDestination);
	}
	
	public ArrayList<Expense> getExpenses() {
		return currentClaim.getExpenses();
	}
	

}

{'fraction_non_alphanumeric': 0.10293754628486794, 'fraction_numerical': 0.006911873611453962, 'mean_word_length': 5.084084084084084, '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': '2142029', 'n_tokens_mistral': 1405, 'n_tokens_neox': 1254, 'n_words': 241}