<commit_before>#include "Parser.h"

#include <algorithm>

using Hasm::Parser;

Parser::Parser(std::istream& input)
    : input(input) {
}

const std::string& Parser::getCommand() const {
  return command;
}

int Parser::getLineNumber() const {
  return lineNumber;
}

void removeSpaces(std::string& str) {
  str.erase(
      std::remove_if(
          str.begin(),
          str.end(),
          [](char c) { return (c == '\r' || c == '\t' || c == ' ' || c == '\n'); }
      ), str.end()
  );<commit_msg>Parser fix first advance<commit_after>#include "Parser.h"

#include <algorithm>

using Hasm::Parser;

Parser::Parser(std::istream& input)
    : input(input) {
  advance();
}

const std::string& Parser::getCommand() const {
  return command;
}

int Parser::getLineNumber() const {
  return lineNumber;
}

void removeSpaces(std::string& str) {
  str.erase(
      std::remove_if(
          str.begin(),
          str.end(),
          [](char c) { return (c == '\r' || c == '\t' || c == ' ' || c == '\n'); }
      ), str.end()
  );
{'fraction_non_alphanumeric': 0.20097087378640777, 'fraction_numerical': 0.0, 'mean_word_length': 2.9806949806949805, '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': '3461035', 'n_tokens_mistral': 364, 'n_tokens_neox': 366, 'n_words': 80}