<commit_before>namespace :sql_metrics do

  desc 'Insert the events table'
  task :create_events_table => :environment do
    SqlMetrics.create_events_table
  end

end<commit_msg>improve rake tasks return messages<commit_after>namespace :sql_metrics do

  desc 'Insert the events table'
  task :create_events_table => :environment do
    begin
      SqlMetrics.create_events_table
      puts "Succesfully inserted #{SqlMetrics.configuration.event_table_name} table!"
    rescue => e
      puts e
    end
  end

end
{'fraction_non_alphanumeric': 0.0622568093385214, 'fraction_numerical': 0.0, 'mean_word_length': 4.099009900990099, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '6481032', 'n_tokens_mistral': 152, 'n_tokens_neox': 150, 'n_words': 44}