<commit_before>// Copyright (c) 2014 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate stringer -type Type

/*
Package lexer provides a lexical analyser for the language.
The lexer passes the tokens to a channel from which a client can read.

	lexer := Lex(filename, reader)
	for token := range lexer.Tokens {
		// do something with the token
		if token.Type == EOF {
			break // we are done
		}
	}
*/
package lexer

import (
	"fmt"
	"io"
	"text/scanner"
)
<commit_msg>lexer: fix sample in documentation.<commit_after>// Copyright (c) 2014 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:generate stringer -type Type

/*
Package lexer provides a lexical analyser for the language.
The lexer passes the tokens to a channel from which a client can read.

	l := lexer.Lex(filename, reader)
	for token := range l.Tokens {
		// do something with the token
		if token.Type == lexer.EOF {
			break // we are done
		}
	}
*/
package lexer

import (
	"fmt"
	"io"
	"text/scanner"
)

{'fraction_non_alphanumeric': 0.09827586206896552, 'fraction_numerical': 0.006896551724137931, 'mean_word_length': 3.117021276595745, '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': '1493361', 'n_tokens_mistral': 394, 'n_tokens_neox': 363, 'n_words': 162}