<commit_before>//Copyright (c) 2018 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.

#include <cstring> //For strtok and strcopy.
#include <fstream> //To check if files exist.
#include <libgen.h> //To get the parent directory of a file path.
#include <numeric> //For std::accumulate.
#include <omp.h> //To change the number of threads to slice with.
#include <rapidjson/error/en.h> //Loading JSON documents to get settings from them.
#include <rapidjson/filereadstream.h>
#include <rapidjson/rapidjson.h>
#include <unordered_set>

#include "CommandLine.h"
#include "../Application.h" //To get the extruders for material estimates.
#include "../FffProcessor.h" //To start a slice and get time estimates.
#include "../settings/SettingRegistry.h" //To load JSON files with setting definitions.

namespace cura
{

CommandLine::CommandLine(const std::vector<std::string>& arguments)
: arguments(arguments)<commit_msg>Reorder RapidJSON headers<commit_after>//Copyright (c) 2018 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.

#include <cstring> //For strtok and strcopy.
#include <fstream> //To check if files exist.
#include <libgen.h> //To get the parent directory of a file path.
#include <numeric> //For std::accumulate.
#include <omp.h> //To change the number of threads to slice with.
#include <rapidjson/rapidjson.h>
#include <rapidjson/error/en.h> //Loading JSON documents to get settings from them.
#include <rapidjson/filereadstream.h>
#include <unordered_set>

#include "CommandLine.h"
#include "../Application.h" //To get the extruders for material estimates.
#include "../FffProcessor.h" //To start a slice and get time estimates.
#include "../settings/SettingRegistry.h" //To load JSON files with setting definitions.

namespace cura
{

CommandLine::CommandLine(const std::vector<std::string>& arguments)
: arguments(arguments)
{'fraction_non_alphanumeric': 0.12407991587802314, 'fraction_numerical': 0.005257623554153523, 'mean_word_length': 4.580645161290323, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '4492395', 'n_tokens_mistral': 586, 'n_tokens_neox': 571, 'n_words': 215}