<commit_before>#ifndef TASKLIST_H
#define TASKLIST_H

#include "EventData.h"
#include <map>
#include <functional>

using namespace std;
class TaskList{
public:
	typedef std::function<void(Event&)> EventOperator;
	TaskList();
protected:
	map<Event::UUID, Event> userTaskList;
	//string name;
public:
	//void setName(string name);
	Event::UUID addEvent(std::string name);
	//update using a functional.
		//This enforces that all changes are done at once.
	void updateEvent(Event::UUID id, EventOperator); 
	void deleteEvent(Event::UUID id);
	Event& getEvent(Event::UUID id); 
	vector<Event> getAllEvents();
};

#endif<commit_msg>[DB] decided against returning a reference.<commit_after>#ifndef TASKLIST_H
#define TASKLIST_H

#include "EventData.h"
#include <map>
#include <functional>

using namespace std;
class TaskList{
public:
	typedef std::function<void(Event&)> EventOperator;
	TaskList();
protected:
	map<Event::UUID, Event> userTaskList;
	//string name;
public:
	//void setName(string name);
	Event::UUID addEvent(std::string name);
	//update using a functional.
		//This enforces that all changes are done at once.
	void updateEvent(Event::UUID id, EventOperator op); 
	void deleteEvent(Event::UUID id);
	Event getEvent(Event::UUID id);  //Note that this returns a copy.
	vector<Event> getAllEvents();
};

#endif
{'fraction_non_alphanumeric': 0.12964366944655042, 'fraction_numerical': 0.0, 'mean_word_length': 5.839378238341969, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4307612', 'n_tokens_mistral': 436, 'n_tokens_neox': 431, 'n_words': 129}