<commit_before>#include "lexer.h"
#include <iostream>

void lexer::Lexer::scan() {
    // lexer implementation goes here
    auto it = source.begin();   
    while(it != source.end()) {
        auto word =  getWord(it);
        
        it += word.len;
    }
}<commit_msg>Added whitespace and if keywords parsing<commit_after>#include "lexer.h"
#include <iostream>

void lexer::Lexer::scan() {
    // lexer implementation goes here
    auto it = source.begin();   
    while(it != source.end()) {
        auto word =  getWord(it);
        if (word.len == 1 && *word.it == ' ') {
            buf.emplace_back(TokenType::Whitespace);
        } else if (
            word.len == 2 && 
            *word.it == 'i' &&
            *(word.it + 1) == 'f') {
            buf.emplace_back(TokenType::If);
        }
        it += word.len;
    }
}
{'fraction_non_alphanumeric': 0.1638755980861244, 'fraction_numerical': 0.0035885167464114833, 'mean_word_length': 1.9892857142857143, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3655713', 'n_tokens_mistral': 286, 'n_tokens_neox': 273, 'n_words': 60}