<commit_before>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#include "AtomSpaceBenchmark.h"


int main(int argc, char** argv)
{
    const char* benchmark_desc = "Benchmark tool OpenCog AtomSpace\n"
     "Usage: atomspace_bm [-m <method>] [options]\n"
     "-t        \tPrint information on type sizes\n"
     "-A        \tBenchmark all methods\n"
     "-x        \tTest the AtomSpaceImpl instead of the public AtomSpace API\n"
     "-X        \tTest the AtomTable instead of the public AtomSpace API\n"
     "-g        \tTest the Scheme API instead of the public AtomSpace API\n"
     "-c        \tTest the Python API instead of the public AtomSpace API\n"
     "-m <methodname>\tMethod to benchmark\n" 
     "-l        \tList valid method names to benchmark\n"
     "-n <int>  \tHow many times to call the method in the measurement loop\n" 
     "          \t(default: 100000)\n"
     "-r <int>  \tLooping count; how many times a python/scheme operation is looped\n"
     "          \t(default: 1)\n"
     "-S <int>  \tHow many random atoms to add after each measurement\n"
     "          \t(default: 0)\n"
     "-- Build test data --\n"
     "-p <float> \tSet the connection probability or coordination number\n"
     "         \t(default: 0.2)\n"
     "         \t(-p impact behaviour of -S too)\n"
     "-s <int> \tSet how many atoms are created (default: 256K)\n"
     "-d <float> \tChance of using default truth value (default: 0.8)\n"
     "-- Saving data --\n"
     "-k       \tCalculate stats (warning, this will affect rss memory reporting)\n"
     "-f       \tSave a csv file with records for every repeated event\n"
     "-i <int> \tSet interval of data to save\n";
<commit_msg>Add missing namespace delcaration<commit_after>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#include "AtomSpaceBenchmark.h"

using namespace std;

int main(int argc, char** argv)
{
    const char* benchmark_desc = "Benchmark tool OpenCog AtomSpace\n"
     "Usage: atomspace_bm [-m <method>] [options]\n"
     "-t        \tPrint information on type sizes\n"
     "-A        \tBenchmark all methods\n"
     "-x        \tTest the AtomSpaceImpl instead of the public AtomSpace API\n"
     "-X        \tTest the AtomTable instead of the public AtomSpace API\n"
     "-g        \tTest the Scheme API instead of the public AtomSpace API\n"
     "-c        \tTest the Python API instead of the public AtomSpace API\n"
     "-m <methodname>\tMethod to benchmark\n" 
     "-l        \tList valid method names to benchmark\n"
     "-n <int>  \tHow many times to call the method in the measurement loop\n" 
     "          \t(default: 100000)\n"
     "-r <int>  \tLooping count; how many times a python/scheme operation is looped\n"
     "          \t(default: 1)\n"
     "-S <int>  \tHow many random atoms to add after each measurement\n"
     "          \t(default: 0)\n"
     "-- Build test data --\n"
     "-p <float> \tSet the connection probability or coordination number\n"
     "         \t(default: 0.2)\n"
     "         \t(-p impact behaviour of -S too)\n"
     "-s <int> \tSet how many atoms are created (default: 256K)\n"
     "-d <float> \tChance of using default truth value (default: 0.8)\n"
     "-- Saving data --\n"
     "-k       \tCalculate stats (warning, this will affect rss memory reporting)\n"
     "-f       \tSave a csv file with records for every repeated event\n"
     "-i <int> \tSet interval of data to save\n";

{'fraction_non_alphanumeric': 0.1195369030390738, 'fraction_numerical': 0.008683068017366137, 'mean_word_length': 2.1970397779833486, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '226386', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1109, 'n_words': 414}