<commit_before>require 'thor'
require 'romaji_cop/cop'

module RomajiCop

  # Command-line interface of {RomajiCop}
  class CLI < Thor
    desc 'search WORD', 'Search romaji'
    option :config, type: :string, banner: 'PATH OF THE CONFIGURATION FILE'
    option :dir, type: :string, banner: 'PATH OF TARGET DIRECTORY'
    option :extensions, type: :string, banner: 'COMMA-SEPARATED TARGET EXTENSIONS'

    # Search romaji in the source files
    def search(word = nil)
      cop_options = {}<commit_msg>Add missing documentation<commit_after>require 'thor'
require 'romaji_cop/cop'

# Automatic romaji spelling checker
module RomajiCop

  # Command-line interface of {RomajiCop}
  class CLI < Thor
    desc 'search WORD', 'Search romaji'
    option :config, type: :string, banner: 'PATH OF THE CONFIGURATION FILE'
    option :dir, type: :string, banner: 'PATH OF TARGET DIRECTORY'
    option :extensions, type: :string, banner: 'COMMA-SEPARATED TARGET EXTENSIONS'

    # Search romaji in the source files
    #
    # @param word [String] Target romaji
    def search(word = nil)
      cop_options = {}
{'fraction_non_alphanumeric': 0.09627611262488647, 'fraction_numerical': 0.0, 'mean_word_length': 3.9417040358744395, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2843144', 'n_tokens_mistral': 370, 'n_tokens_neox': 337, 'n_words': 121}