<commit_before>package model;

import java.util.ArrayList;

public class TimeWindow {

	private String start;
	private String end;
	private ArrayList<Delivery> deliveries = new ArrayList<Delivery>();

	public TimeWindow(String start, String end) {
		this.start = start;
		this.end = end;
	}

	/**
	 * Add a delivery to the time window
	 * 
	 * @param d
	 */
	public void addDelivery(Delivery d) {
		deliveries.add(d);
	}

	/**
	 * Return the starting hour of the time window
	 * 
	 * @return
	 */
	public String getStart() {
		return start;
	}

	/**
	 * Return the ending hour of the time window
	 * 
	 * @return
	 */
	public String getEnd() {
		return end;
	}

	/**
	 * Return the list of deliveries
	 * 
	 * @return
	 */
	public ArrayList<Delivery> getDeliveries() {
		return deliveries;
	}
}
<commit_msg>Add of missing methods<commit_after>package model;

import java.util.ArrayList;

public class TimeWindow {

	private String start;
	private String end;
	private ArrayList<Delivery> deliveries = new ArrayList<Delivery>();

	public TimeWindow(String start, String end) {
		this.start = start;
		this.end = end;
	}

	/**
	 * Add a delivery to the time window
	 * 
	 * @param d
	 */
	public void addDelivery(Delivery d) {
		deliveries.add(d);
	}

	/**
	 * Delete a delivery from the list of deliveries
	 * @param d
	 */
	public void deleteDelivery(Delivery d){
		for(int i=0;i<deliveries.size();++i){
			if(deliveries.get(i).equals(d)){
				deliveries.remove(i);
				break;
			}
		}
	}
	
	/**
	 * Swap two deliveries
	 * @param d1
	 * @param d2
	 */
	public void swapDeliveries(Delivery d1, Delivery d2){
		int i,j;
		for(i=0;i<deliveries.size();++i)
			if(deliveries.get(i).equals(d1))
				break;
		for(j=0;j<deliveries.size();++j)
			if(deliveries.get(j).equals(d2))
				break;
		if(i!=deliveries.size() && j!=deliveries.size())
		{
			Delivery tmp = deliveries.get(i);
			deliveries.set(i, deliveries.get(j));
			deliveries.set(j, tmp);
		}
	}
	
	
	/**
	 * Return the starting hour of the time window
	 * 
	 * @return
	 */
	public String getStart() {
		return start;
	}

	/**
	 * Return the ending hour of the time window
	 * 
	 * @return
	 */
	public String getEnd() {
		return end;
	}

	/**
	 * Return the list of deliveries
	 * 
	 * @return
	 */
	public ArrayList<Delivery> getDeliveries() {
		return deliveries;
	}
	
	
}

{'fraction_non_alphanumeric': 0.13427713427713428, 'fraction_numerical': 0.003861003861003861, 'mean_word_length': 3.0556521739130433, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 9, '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': '1193294', 'n_tokens_mistral': 921, 'n_tokens_neox': 797, 'n_words': 212}