<commit_before>%{
#include <string>
#include <iostream>
#include "nfa.hxx"
#include "parser.hxx"
%}

%pointer
%option yylineno

%%

[[:space:]]+
#.*$			/* ignore comments */
"{"			{ return '{'; }
"}"			{ return '}'; }
","                     { return ','; }
->			{ return TOK_ARROW; }
state			{ return TOK_STATE; }
initial|start(ing)?	{ return TOK_START; }
name			{ return TOK_NAME; }
final|accepting		{ return TOK_FINAL; }
[[:alnum:]_-]+		{ yylval.str = new std::string(yytext); return TOK_ID; }

%%
<commit_msg>Akceptuj i znak "." jako TOK_ID.<commit_after>%{
#include <string>
#include <iostream>
#include "nfa.hxx"
#include "parser.hxx"
%}

%pointer
%option yylineno

%%

[[:space:]]+
#.*$			/* ignore comments */
"{"			{ return '{'; }
"}"			{ return '}'; }
","                     { return ','; }
->			{ return TOK_ARROW; }
state			{ return TOK_STATE; }
initial|start(ing)?	{ return TOK_START; }
name			{ return TOK_NAME; }
final|accepting		{ return TOK_FINAL; }
([[:alnum:]_-]|".")+	{ yylval.str = new std::string(yytext); 
			  return TOK_ID; }

%%

{'fraction_non_alphanumeric': 0.20596205962059622, 'fraction_numerical': 0.0, 'mean_word_length': 2.7306397306397305, 'pattern_counts': {'":': 0, '<': 7, '<?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': '25813', 'n_tokens_mistral': 475, 'n_tokens_neox': 474, 'n_words': 80}