<commit_before>#
# Postage plugin installation script
#

$LOAD_PATH << File.join(File.dirname(__FILE__), 'lib')

require 'postage'

# -- Configuration ----------------------------------------------------------

unless (Postage.config.exists?)
  Postage.config.create!
end

# -- Announcement -----------------------------------------------------------

puts "==========================================================================="
puts "  Postage plugin successfully installed"
puts "==========================================================================="
puts ""
puts "  Check the configuration file and make any changes as required:"
puts ""
puts "     #{Postage.config.file_path}"
puts ""
puts "  Testing required Ruby Gems:"
<commit_msg>Clarification of configuration files created during install procedure<commit_after>#
# Postage plugin installation script
#

$LOAD_PATH << File.join(File.dirname(__FILE__), 'lib')

require 'postage'

# -- Configuration ----------------------------------------------------------

# -- Announcement -----------------------------------------------------------

puts "==========================================================================="
puts "  Postage plugin successfully installed"
puts "==========================================================================="
puts ""

unless (Postage.config.exists?)
  puts "  No configuration file found, so generating an example one."
  Postage.config.create!
  puts ""
end

puts "  Check the configuration file and make any changes as required:"
puts ""
puts "     #{Postage.config.file_path}"
puts ""
puts "  Testing required Ruby Gems:"

{'fraction_non_alphanumeric': 0.401954795357361, 'fraction_numerical': 0.0, 'mean_word_length': 2.7227272727272727, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5056187', 'n_tokens_mistral': 377, 'n_tokens_neox': 360, 'n_words': 106}