<commit_before>/// \file delete_task.h
/// Defines action for deleting tasks.
/// \author A0112054Y

#pragma once
#ifndef YOU_QUERYENGINE_INTERNAL_ACTION_DELETE_TASK_H_
#define YOU_QUERYENGINE_INTERNAL_ACTION_DELETE_TASK_H_

#include "../../api.h"

namespace You {
namespace QueryEngine {
namespace Internal {

/// Define action for deleting task
class DeleteTask : public Query {
public:
	/// Constructor
	explicit DeleteTask(Task::ID id) : id(id) { }

	/// Disable assignment operator
	DeleteTask& operator=(const DeleteTask&) = delete;
	
	/// Destructor
	virtual ~DeleteTask() = default;
private:
	/// Execute delete task.
	Response execute(State& const tasks) override;

	const Task::ID id;  ///< ID of the task to delete
};

}  // namespace Internal
}  // namespace QueryEngine
}  // namespace You

#endif  // YOU_QUERYENGINE_INTERNAL_ACTION_DELETE_TASK_H_<commit_msg>Remove trailing whitespace<commit_after>/// \file delete_task.h
/// Defines action for deleting tasks.
/// \author A0112054Y

#pragma once
#ifndef YOU_QUERYENGINE_INTERNAL_ACTION_DELETE_TASK_H_
#define YOU_QUERYENGINE_INTERNAL_ACTION_DELETE_TASK_H_

#include "../../api.h"

namespace You {
namespace QueryEngine {
namespace Internal {

/// Define action for deleting task
class DeleteTask : public Query {
public:
	/// Constructor
	explicit DeleteTask(Task::ID id) : id(id) { }

	/// Disable assignment operator
	DeleteTask& operator=(const DeleteTask&) = delete;

	/// Destructor
	virtual ~DeleteTask() = default;
private:
	/// Execute delete task.
	Response execute(State& const tasks) override;

	const Task::ID id;  ///< ID of the task to delete
};

}  // namespace Internal
}  // namespace QueryEngine
}  // namespace You

#endif  // YOU_QUERYENGINE_INTERNAL_ACTION_DELETE_TASK_H_
{'fraction_non_alphanumeric': 0.11149032992036405, 'fraction_numerical': 0.007963594994311717, 'mean_word_length': 4.083815028901734, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2225927', 'n_tokens_mistral': 577, 'n_tokens_neox': 553, 'n_words': 153}