<commit_before>/** \file tokenizer.h
 * definitions of input output classes that read and write from string.
 */


#ifndef __tokenizer_h__
#define __tokenizer_h__

#include "lispstring.h"
#include "lispio.h"
#include "lisphash.h"
class LispTokenizer
{
    
public:
    /// NextToken returns a string representing the next token,
    /// or an empty list.
    virtual LispStringPtr NextToken(LispInput& aInput,
                                    LispHashTable& aHashTable);
private:
    LispString iToken; //Can be used as a token container.
};

// utility functions
LispBoolean IsAlpha(LispChar c);
LispBoolean IsSymbolic(LispChar c);



#endif

<commit_msg>Made a destructor virtual to eliminate a gcc warning<commit_after>/** \file tokenizer.h
 * definitions of input output classes that read and write from string.
 */


#ifndef __tokenizer_h__
#define __tokenizer_h__

#include "lispstring.h"
#include "lispio.h"
#include "lisphash.h"
class LispTokenizer
{
    
public:
    /// NextToken returns a string representing the next token,
    /// or an empty list.
    virtual LispStringPtr NextToken(LispInput& aInput,
                                    LispHashTable& aHashTable);
    virtual ~LispTokenizer(){}
private:
    LispString iToken; //Can be used as a token container.
};

// utility functions
LispBoolean IsAlpha(LispChar c);
LispBoolean IsSymbolic(LispChar c);



#endif


{'fraction_non_alphanumeric': 0.08717579250720461, 'fraction_numerical': 0.0, 'mean_word_length': 3.1963746223564953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6765625', 'n_tokens_mistral': 436, 'n_tokens_neox': 424, 'n_words': 138}