<commit_before>// Package scan terminal input scan golang package
package scan

import "fmt"

// CliScan scans.
type CliScan struct {
	Scans []Scan
}

// Scan data.
type Scan struct {
	Name  string
	Value string
	Usage string
}

// Scan terminal scan.
func (c *CliScan) Scan(name string) string {
	s := c.findScan(name)

	fmt.Print(s.Usage, ": ")
	fmt.Scanln(&s.Value)
	return s.Value
}

// Get result scan value.
func (c *CliScan) Get(name string) string {
	s := c.findScan(name)
	return s.Value
}

func (c *CliScan) findScan(name string) *Scan {
	var s Scan
	for _, s = range c.Scans {
		if s.Name == name {
			break
		}
	}

	if s.Name != name {
		return nil
	}

	return &s
}
<commit_msg>fix: added scan param env<commit_after>// Package scan terminal input scan golang package
package scan

import "fmt"

// CliScan scans.
type CliScan struct {
	Scans []Scan
}

// Scan data.
type Scan struct {
	Name  string
	Value string
	Usage string
	Env   string
}

// Scan terminal scan.
func (c *CliScan) Scan(name string) string {
	s := c.findScan(name)

	fmt.Print(s.Usage, ": ")
	fmt.Scanln(&s.Value)
	return s.Value
}

// Get result scan value.
func (c *CliScan) Get(name string) string {
	s := c.findScan(name)
	return s.Value
}

func (c *CliScan) findScan(name string) *Scan {
	var s Scan
	for _, s = range c.Scans {
		if s.Name == name {
			break
		}
	}

	if s.Name != name {
		return nil
	}

	return &s
}

{'fraction_non_alphanumeric': 0.12588904694167852, 'fraction_numerical': 0.0, 'mean_word_length': 2.997159090909091, 'pattern_counts': {'":': 2, '<': 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': '5332765', 'n_tokens_mistral': 561, 'n_tokens_neox': 522, 'n_words': 172}