<commit_before>desc "Show configuration values"

namespace :adhearsion do

  namespace :config do

    desc "Show configuration values in STDOUT"
    task :show, :name do |t, args|
      name = args.name.nil? ? :platform : args.name.to_sym
      puts Adhearsion.config.description name, :show_values => true
    end

    desc "Show configuration description options in STDOUT"
    task :desc, :name do |t, args|
      name = args.name.nil? ? :platform : args.name.to_sym<commit_msg>load punchblock_plugin configuration in configuration tasks<commit_after>require 'adhearsion/punchblock_plugin'

begin
  require "#{Dir.pwd}/config/startup.rb"
rescue Exception => ex
  STDERR.puts "\nCannot find the Adhearsion application startup file: #{ex}"
end

namespace :adhearsion do

  namespace :config do

    desc "Show configuration values in STDOUT; it accepts a parameter: [nil|platform|<plugin-name>|all]"
    task :show, :name do |t, args|
      name = args.name.nil? ? :all : args.name.to_sym
      puts Adhearsion.config.description name, :show_values => true
    end

    desc "Show configuration description in STDOUT; it accepts a parameter: [nil|platform|<plugin-name>|all]"
    task :desc, :name do |t, args|
      name = args.name.nil? ? :all : args.name.to_sym
{'fraction_non_alphanumeric': 0.10584518167456557, 'fraction_numerical': 0.0, 'mean_word_length': 3.83587786259542, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '7470873', 'n_tokens_mistral': 403, 'n_tokens_neox': 393, 'n_words': 125}