(TXT) generate_patterns_kk.rb