<commit_before>/*

  Scanner that will break down every character, word, whitespace, and number
  that is in a file.

*/
package scanner

import (
  "fmt"
  "io/ioutil"
  "regexp"
)

// Scanner definitions that are added to ScannerMap
type ScannerDefinition struct {
  Regex *regexp.Regexp
  Type  string
}

/*

ScannerMap holds the regexes that we are wanting to match throughout the
file. It also contains the type that we want to return if the regex is
matched.

*/
var ScannerMap = []ScannerDefinition{
  ScannerDefinition{regexp.MustCompile("^(?i)[a-z][a-z0-9]+"), "WORD"},
  ScannerDefinition{regexp.MustCompile("^\\s+"), "WHITESPACE"},<commit_msg>Update scanner.go overview text<commit_after>/*

  Scanner that will break down every character, word, whitespace, and number
  that is passed into it.

*/
package scanner

import (
  "fmt"
  "io/ioutil"
  "regexp"
)

// Scanner definitions that are added to ScannerMap
type ScannerDefinition struct {
  Regex *regexp.Regexp
  Type  string
}

/*

ScannerMap holds the regexes that we are wanting to match throughout the
file. It also contains the type that we want to return if the regex is
matched.

*/
var ScannerMap = []ScannerDefinition{
  ScannerDefinition{regexp.MustCompile("^(?i)[a-z][a-z0-9]+"), "WORD"},
  ScannerDefinition{regexp.MustCompile("^\\s+"), "WHITESPACE"},
{'fraction_non_alphanumeric': 0.11194590533433509, 'fraction_numerical': 0.003005259203606311, 'mean_word_length': 4.264822134387352, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5466437', 'n_tokens_mistral': 443, 'n_tokens_neox': 427, 'n_words': 146}