<commit_before>#pragma once
#ifndef YOU_NLP_CONTROLLER_CONTEXT_H_
#define YOU_NLP_CONTROLLER_CONTEXT_H_

#include "controller.h"
#include "task_list.h"

namespace You {
namespace NLP {

/// Represents a context of a query. This is usually a task list so that
/// relative indices can be used in a query.
class Controller::Context {
	/// The set of possible types that can form a context.
	typedef boost::variant<void*, TaskList> Types;

public:
	/// Task List conversion constructor.
	Context(const TaskList& taskList);  // NOLINT

	/// Checks if the given context is the default context.
	///
	/// \return true if the current context is the default context.
	bool isDefault() const;

	/// Checks if the given context is a task list context.
	///
	/// \return true if the current context is a task list context.
	/// \ref getTaskList
	bool isTaskList() const;

	/// Gets the task list if the current context is a task list
	/// context.
	///
	/// \return The task list if this is a task list context. Behaviour
	///         is undefined otherwise.
	const TaskList& getTaskList() const;

public:
	/// This is the global default context.
	static const Context DEFAULT;

private:
	/// Hidden default constructor. Use \ref Context::DEFAULT for the
	/// default context.
	///
	/// \see Context::DEFAULT
	Context() = default;

private:
	/// The actual context.
	Types type;
};

}
}

#endif  // YOU_NLP_CONTROLLER_CONTEXT_H_<commit_msg>Lint fix.<commit_after>#pragma once
#ifndef YOU_NLP_CONTROLLER_CONTEXT_H_
#define YOU_NLP_CONTROLLER_CONTEXT_H_

#include "controller.h"
#include "task_list.h"

namespace You {
namespace NLP {

/// Represents a context of a query. This is usually a task list so that
/// relative indices can be used in a query.
class Controller::Context {
	/// The set of possible types that can form a context.
	typedef boost::variant<void*, TaskList> Types;

public:
	/// Task List conversion constructor.
	Context(const TaskList& taskList);  // NOLINT

	/// Checks if the given context is the default context.
	///
	/// \return true if the current context is the default context.
	bool isDefault() const;

	/// Checks if the given context is a task list context.
	///
	/// \return true if the current context is a task list context.
	/// \ref getTaskList
	bool isTaskList() const;

	/// Gets the task list if the current context is a task list
	/// context.
	///
	/// \return The task list if this is a task list context. Behaviour
	///         is undefined otherwise.
	const TaskList& getTaskList() const;

public:
	/// This is the global default context.
	static const Context DEFAULT;

private:
	/// Hidden default constructor. Use \ref Context::DEFAULT for the
	/// default context.
	///
	/// \see Context::DEFAULT
	Context() = default;

private:
	/// The actual context.
	Types type;
};

}  // namespace NLP
}  // namespace You

#endif  // YOU_NLP_CONTROLLER_CONTEXT_H_
{'fraction_non_alphanumeric': 0.10553633217993079, 'fraction_numerical': 0.0, 'mean_word_length': 3.0661040787623066, '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': '6584619', 'n_tokens_mistral': 876, 'n_tokens_neox': 867, 'n_words': 354}