<commit_before>// (c) COPYRIGHT URI/MIT 1994-1999
// Please read the full copyright statement in the file COPYRIGHT.
//
// Authors:
//      pwest       <NAME> (<EMAIL>)

// pwest 12/02/2002

#ifdef __GNUG__
#pragma implementation
#endif

#include "LongIterAdapter.h"

LongIterAdapter::
LongIterAdapter( std::vector<long> &vec ) :
    _vec( vec )
{
}

LongIterAdapter::
~LongIterAdapter(void)
{
}

void LongIterAdapter::
first(void)
{
    _i = _vec.begin() ;
}

void LongIterAdapter::
next(void)
{
    _i++ ;
}

LongIterAdapter::
operator bool(void)
{
    return ( _i != _vec.end() ) ;
}

bool LongIterAdapter::
operator==( const IteratorAdapter &i )
{ 
    return _i == ((const LongIterAdapter &)i)._i ; 
}

long LongIterAdapter::
entry(void)
{
    return *_i ;
}

LongIterAdapter::iter &LongIterAdapter::
getIterator(void)
{
    return _i ;<commit_msg>reformatted source file and replaced (void) with ()<commit_after>// (c) COPYRIGHT URI/MIT 1994-1999
// Please read the full copyright statement in the file COPYRIGHT.
//
// Authors:
//      pwest       <NAME> (<EMAIL>)

// pwest 12/02/2002

#ifdef __GNUG__
#pragma implementation
#endif

#include "LongIterAdapter.h"

LongIterAdapter::LongIterAdapter( std::vector<long> &vec ) :
    _vec( vec )
{
}

LongIterAdapter::~LongIterAdapter( )
{
}

void
LongIterAdapter::first( )
{
    _i = _vec.begin() ;
}

void
LongIterAdapter::next( )
{
    _i++ ;
}

LongIterAdapter::operator bool( )
{
    return ( _i != _vec.end() ) ;
}

bool
LongIterAdapter::operator==( const IteratorAdapter &i )
{ 
    return _i == ((const LongIterAdapter &)i)._i ; 
}

long
LongIterAdapter::entry( )
{
    return *_i ;
}

LongIterAdapter::iter &
LongIterAdapter::getIterator( )
{
    return _i ;
{'fraction_non_alphanumeric': 0.1489237929028505, 'fraction_numerical': 0.01861547411285631, 'mean_word_length': 3.712328767123288, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2194245', 'n_tokens_mistral': 646, 'n_tokens_neox': 612, 'n_words': 143}