(TXT) generate_patterns_tk.rb