<commit_before>namespace 'cuke_modeler' do

  desc 'Check that things look good before trying to release'
  task :prerelease_check do
    puts Rainbow('Checking that gem is in a good, releasable state...').cyan

    Rake::Task['cuke_modeler:full_check'].invoke
    Rake::Task['cuke_modeler:check_dependencies'].invoke

    puts Rainbow("I'd ship it. B)").green
  end

end<commit_msg>Add release Rake task<commit_after>namespace 'cuke_modeler' do

  desc 'Check that things look good before trying to release'
  task :prerelease_check do
    puts Rainbow('Checking that gem is in a good, releasable state...').cyan

    Rake::Task['cuke_modeler:full_check'].invoke
    Rake::Task['cuke_modeler:check_dependencies'].invoke

    puts Rainbow("I'd ship it. B)").green
  end

  desc 'Builds the gem and tags the current commit as a release commit'
  task :build_and_tag do
    puts Rainbow('Building gem for release...').cyan
    CukeModeler::CukeModelerHelper.run_command(['gem', 'build', 'cuke_modeler.gemspec'])

    release_tag = "v#{CukeModeler::VERSION}"
    puts Rainbow("Tagging commit as '#{release_tag}'").cyan
    CukeModeler::CukeModelerHelper.run_command(['git', 'tag', release_tag])
  end

end
{'fraction_non_alphanumeric': 0.11647254575707154, 'fraction_numerical': 0.0, 'mean_word_length': 4.6745283018867925, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6170543', 'n_tokens_mistral': 401, 'n_tokens_neox': 383, 'n_words': 107}