<commit_before>/* Copyright (C) 2015 the ownShell authors and contributors
 * <see AUTHORS file>
 *
 * This module is part of ownShell and is released under
 * the MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "shell_module_default_iterator.h"

#define __LOCAL_DEFAULT_IT_DEBUG

#ifdef __LOCAL_DEFAULT_IT_DEBUG
#include <iostream>
#endif

using namespace std;

namespace ownshell {

void ShellModuleDefaultIterator::reset()
{
    position_ = 0;
    iterators_.push_back(this);
}

unsigned int ShellModuleDefaultIterator::getPosition()
{
    return position_;
}

void ShellModuleDefaultIterator::incPosition()
{
    position_++;<commit_msg>style(iterator): remove debug compilation flag<commit_after>/* Copyright (C) 2015 the ownShell authors and contributors
 * <see AUTHORS file>
 *
 * This module is part of ownShell and is released under
 * the MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "shell_module_default_iterator.h"

//#define __LOCAL_DEFAULT_IT_DEBUG

#ifdef __LOCAL_DEFAULT_IT_DEBUG
#include <iostream>
#endif

using namespace std;

namespace ownshell {

void ShellModuleDefaultIterator::reset()
{
    position_ = 0;
    iterators_.push_back(this);
}

unsigned int ShellModuleDefaultIterator::getPosition()
{
    return position_;
}

void ShellModuleDefaultIterator::incPosition()
{
    position_++;
{'fraction_non_alphanumeric': 0.09672727272727273, 'fraction_numerical': 0.007272727272727273, 'mean_word_length': 5.4, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1207515', 'n_tokens_mistral': 417, 'n_tokens_neox': 406, 'n_words': 109}