<commit_before>#ifndef TASKLIST_H
#define TASKLIST_H


#include "Task.h"

#include <list>


namespace engine {

class TaskListManager;

class TaskList {
	public:
		typedef std::list<std::unique_ptr<Task>> TaskContainer;
		
									TaskList(TaskListManager& owner,
										std::string title = "");
									~TaskList();
								// Non-copyable
									TaskList(const TaskList&) = delete;
		TaskList& 					operator=(const TaskList&) = delete;
		
		void						SetTitle(std::string title);
		std::string					GetTitle() const;
		std::string					GetId() const;
		const TaskContainer &		GetTaskList() const;
		void						Delete();
		bool						IsDeleted() const;
		void						DeleteCompletedTasks();
		void						ClearDeletedTasks();
		Task*						GetRootTask() const;
		TaskListManager&			GetOwner() const;
		Task*						AddTask(Task* parent,
										std::string title = "",
										std::string notes = "",
										time_t dueDate = 0);
		
		
	public:
		static TaskList*			GetById(std::string id);
		
		
	private:
		void						_ChangeId(std::string id);
		
		
	private:
		std::string					fTitle;
		std::string					fId;
		bool						fDeleted;
		
		TaskContainer				fTaskList;
		<commit_msg>[engine] Changed default task name<commit_after>#ifndef TASKLIST_H
#define TASKLIST_H


#include "Task.h"

#include <list>


namespace engine {

class TaskListManager;

class TaskList {
	public:
		typedef std::list<std::unique_ptr<Task>> TaskContainer;
		
									TaskList(TaskListManager& owner,
										std::string title = "");
									~TaskList();
								// Non-copyable
									TaskList(const TaskList&) = delete;
		TaskList& 					operator=(const TaskList&) = delete;
		
		void						SetTitle(std::string title);
		std::string					GetTitle() const;
		std::string					GetId() const;
		const TaskContainer &		GetTaskList() const;
		void						Delete();
		bool						IsDeleted() const;
		void						DeleteCompletedTasks();
		void						ClearDeletedTasks();
		Task*						GetRootTask() const;
		TaskListManager&			GetOwner() const;
		Task*						AddTask(Task* parent,
										std::string title = "Unnamed task",
										std::string notes = "",
										time_t dueDate = 0);
		
		
	public:
		static TaskList*			GetById(std::string id);
		
		
	private:
		void						_ChangeId(std::string id);
		
		
	private:
		std::string					fTitle;
		std::string					fId;
		bool						fDeleted;
		
		TaskContainer				fTaskList;
		
{'fraction_non_alphanumeric': 0.11254689453939141, 'fraction_numerical': 0.0008336807002917883, 'mean_word_length': 2.592814371257485, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1255994', 'n_tokens_mistral': 1108, 'n_tokens_neox': 779, 'n_words': 180}