<commit_before>#include "Output.h"

#include "Parameters.h"
#include "Parser.h"
#include "PerformanceTracker.h"

#include "pica/utility/Utility.h"
#include "pica/threading/OpenMPHelper.h"

#include <iostream>
#include <map>
#include <string>

using namespace pica;
using namespace std;


map<PerformanceTracker::Stage, string> getStageNames();

string getPrefix()
{
    return "   ";
}

void printHeader()
{
    cout << "pica benchmark\n";
}

string toString(ParticleRepresentation particleRepresentation)
{
    map<ParticleRepresentation, string> names;
    names[ParticleRepresentation_AoS] = "AoS";
    names[ParticleRepresentation_SoA] = "SoA";
    return names[particleRepresentation];
}

string toString(EnsembleRepresentation ensembleRepresentation)
{
    map<EnsembleRepresentation, string> names;
    names[EnsembleRepresentation_Unordered] = "unordered";
    names[EnsembleRepresentation_Ordered] = "ordered";
    return names[ensembleRepresentation];
}

void printParameters(const Parameters& parameters)
{
    string prefix = getPrefix();
    cout << "\nParameters:\n";
    if (useOpenMP())
        cout << prefix << toString(getNumThreads()) + " OpenMP threads\n";
    else
        cout << prefix << "OpenMP is disabled\n";
    cout << prefix << "Dimension: " << parameters.dimension << "\n";<commit_msg>Fix output of number of threads.<commit_after>#include "Output.h"

#include "Parameters.h"
#include "Parser.h"
#include "PerformanceTracker.h"

#include "pica/utility/Utility.h"
#include "pica/threading/OpenMPHelper.h"

#include <iostream>
#include <map>
#include <string>

using namespace pica;
using namespace std;


map<PerformanceTracker::Stage, string> getStageNames();

string getPrefix()
{
    return "   ";
}

void printHeader()
{
    cout << "pica benchmark\n";
}

string toString(ParticleRepresentation particleRepresentation)
{
    map<ParticleRepresentation, string> names;
    names[ParticleRepresentation_AoS] = "AoS";
    names[ParticleRepresentation_SoA] = "SoA";
    return names[particleRepresentation];
}

string toString(EnsembleRepresentation ensembleRepresentation)
{
    map<EnsembleRepresentation, string> names;
    names[EnsembleRepresentation_Unordered] = "unordered";
    names[EnsembleRepresentation_Ordered] = "ordered";
    return names[ensembleRepresentation];
}

void printParameters(const Parameters& parameters)
{
    string prefix = getPrefix();
    cout << "\nParameters:\n";
    if (useOpenMP())
        cout << prefix << toString(parameters.numThreads) + " OpenMP threads\n";
    else
        cout << prefix << "OpenMP is disabled\n";
    cout << prefix << "Dimension: " << parameters.dimension << "\n";
{'fraction_non_alphanumeric': 0.12786761940579164, 'fraction_numerical': 0.0, 'mean_word_length': 4.9375, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 15, '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': '4704884', 'n_tokens_mistral': 819, 'n_tokens_neox': 812, 'n_words': 176}