<commit_before># @Author: <NAME>
# @Date:   2015-10-21 15:11:07
# @Last Modified by:   <NAME>
# @Last Modified time: 2016-03-13 12:17:09

require_relative '../main/main_module'

# singleton class to deliver a simple terminal menu to provide values for the
# available configuration parameter
class ConfigurationMenu

  # public entry point for the configuration menu
  def self.print_menu
    is_running = true
     # necessary to clear the script parameter, which has already been
     # processed by the parameter_repository
    ARGF.argv.clear

    while(is_running)
      puts 'Configuration Menu. Select parameter:'.light_yellow
      puts '(1) Extended data legend.'
      puts '(2) Determine y-resolution for timeline.'
      puts '(3) Use scaled output.'
      puts '(4) Save parameters to file.'
      puts '(5) Exit.'
      is_running = process_input(get_entry('Input (1-5): '.blue.bright).to_i)
    end
  end

  private
<commit_msg>adjusted comment indentation<commit_after># @Author: <NAME>
# @Date:   2015-10-21 15:11:07
# @Last Modified by:   <NAME>
# @Last Modified time: 2016-08-19 16:59:30

require_relative '../main/main_module'

# singleton class to deliver a simple terminal menu to provide values for the
# available configuration parameter
class ConfigurationMenu

  # public entry point for the configuration menu
  def self.print_menu
    is_running = true
    # necessary to clear the script parameter, which has already been
    # processed by the parameter_repository
    ARGF.argv.clear

    while(is_running)
      puts 'Configuration Menu. Select parameter:'.light_yellow
      puts '(1) Extended data legend.'
      puts '(2) Determine y-resolution for timeline.'
      puts '(3) Use scaled output.'
      puts '(4) Save parameters to file.'
      puts '(5) Exit.'
      is_running = process_input(get_entry('Input (1-5): '.blue.bright).to_i)
    end
  end

  private

{'fraction_non_alphanumeric': 0.0947867298578199, 'fraction_numerical': 0.03686150605581885, 'mean_word_length': 3.367816091954023, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2751377', 'n_tokens_mistral': 611, 'n_tokens_neox': 555, 'n_words': 200}