<commit_before># encoding: utf-8

require 'tty-prompt'

prompt = TTY::Prompt.new

prompt.ask("What is your secret?") do |q|
  q.mask "*"
end
<commit_msg>Change example.<commit_after># encoding: utf-8

require 'tty-prompt'

prompt = TTY::Prompt.new

prompt.mask('What is your secret?') do |q|
  q.validate /[a-z]{5,8}/
end

{'fraction_non_alphanumeric': 0.17391304347826086, 'fraction_numerical': 0.012422360248447204, 'mean_word_length': 4.383333333333334, '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': '4070731', 'n_tokens_mistral': 134, 'n_tokens_neox': 127, 'n_words': 32}