<commit_before>require 'optparse'
require 'rubygame'

options = {}

OptionParser.new do |opts|
  opts.on( '-b BPM' ) do |bpm|
    options[:bpm] = bpm
  end
end.parse!

s = Rubygame::Sound.load('../sounds/tap_short.wav')

t = Thread.new do<commit_msg>Added tempo flag validation<commit_after>require 'optparse'
require 'rubygame'

options = {}

OptionParser.new do |opts|
  opts.on( '-t BPM', '--tempo BPM', /^[0-9]+/ ) do |bpm|
    options[:bpm] = bpm
  end
end.parse!

s = Rubygame::Sound.load('../sounds/tap_short.wav')

t = Thread.new do
{'fraction_non_alphanumeric': 0.17962962962962964, 'fraction_numerical': 0.003703703703703704, 'mean_word_length': 3.830357142857143, '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': '5955087', 'n_tokens_mistral': 221, 'n_tokens_neox': 219, 'n_words': 49}