<commit_before>/// \file update_task.h
/// Defines action for updating tasks.
/// \author A0112054Y

#pragma once
#ifndef YOU_QUERYENGINE_INTERNAL_ACTION_FILTER_TASK_H_
#define YOU_QUERYENGINE_INTERNAL_ACTION_FILTER_TASK_H_

#include <functional>
#include "../../filter.h"
#include "../../api.h"

namespace You {
namespace QueryEngine {
namespace Internal {
namespace Action {

/// Action for getting tasks by applying a filter and optionally a sorter.
class GetTask : public Query {
public:
	/// Constructor
	explicit GetTask(const Filter& filter) : filter(filter) {}

	/// Destructor
	virtual ~GetTask() = default;
private:
	/// Execute add task.
	Response execute(State& tasks) override;
	GetTask& operator=(const GetTask&) = delete;
	Filter filter;
};

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

#endif  // YOU_QUERYENGINE_INTERNAL_ACTION_FILTER_TASK_H_<commit_msg>Fix lint<commit_after>/// \file get_task.h
/// Defines action for getting a list of tasks by applying
/// a filter and a sorter.
/// \author A0112054Y

#pragma once
#ifndef YOU_QUERYENGINE_INTERNAL_ACTION_GET_TASK_H_
#define YOU_QUERYENGINE_INTERNAL_ACTION_GET_TASK_H_

#include <functional>
#include "../../filter.h"
#include "../../api.h"

namespace You {
namespace QueryEngine {
namespace Internal {
namespace Action {

/// Action for getting tasks by applying a filter and optionally a sorter.
class GetTask : public Query {
public:
	/// Constructor
	explicit GetTask(const Filter& filter) : filter(filter) {}

	/// Destructor
	virtual ~GetTask() = default;
private:
	/// Execute add task.
	Response execute(State& tasks) override;
	GetTask& operator=(const GetTask&) = delete;
	Filter filter;
};

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

#endif  // YOU_QUERYENGINE_INTERNAL_ACTION_GET_TASK_H_
{'fraction_non_alphanumeric': 0.11460554371002132, 'fraction_numerical': 0.007462686567164179, 'mean_word_length': 4.072972972972973, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5313394', 'n_tokens_mistral': 608, 'n_tokens_neox': 591, 'n_words': 172}