<commit_before>package model;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;

public final class CourierSystem {
	
	public ArrayList<Employee> Employees;
	public ArrayList<Client> Clients;
	public ArrayList<Delivery> Deliveries;
	public Settings SystemSettings;
	
	@SuppressWarnings("unused")
	private static String settingsFile = "settings.xml";
	
	public CourierSystem() throws FileNotFoundException, IOException {
		LoadEmployees(Settings.EmployeeFile);
		
	}
	
	@SuppressWarnings("unchecked")
	private void LoadEmployees(String s) throws FileNotFoundException, IOException {
		try {
			Employees = (ArrayList<Employee>)Serialize.LoadObject(s);
		}
		catch (FileNotFoundException fnfe) {
			Employees = new ArrayList<Employee>();
			SaveEmployees(s);
		}
	}
	
	private void SaveEmployees(String s) throws FileNotFoundException, IOException {
		
		Serialize.SaveObject(s, Employees);
	}
}<commit_msg>Removed need to call Save/Load with a settings file each time<commit_after>package model;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;

public final class CourierSystem {
	
	public ArrayList<Employee> Employees;
	public ArrayList<Client> Clients;
	public ArrayList<Delivery> Deliveries;
	public Settings SystemSettings;
	
	@SuppressWarnings("unused")
	private static String settingsFile = "settings.xml";
	
	public CourierSystem() throws FileNotFoundException, IOException {
		LoadEmployees();
		
	}
	
	@SuppressWarnings("unchecked")
	private void LoadEmployees() throws FileNotFoundException, IOException {
		try {
			Employees = (ArrayList<Employee>)Serialize.LoadObject(Settings.EmployeeFile);
		}
		catch (FileNotFoundException fnfe) {
			Employees = new ArrayList<Employee>();
			SaveEmployees();
		}
	}
	
	private void SaveEmployees() throws FileNotFoundException, IOException {
		
		Serialize.SaveObject(Settings.EmployeeFile, Employees);
	}
}
{'fraction_non_alphanumeric': 0.09128205128205129, 'fraction_numerical': 0.0, 'mean_word_length': 5.750865051903114, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3009007', 'n_tokens_mistral': 600, 'n_tokens_neox': 529, 'n_words': 134}