<commit_before>namespace :fiesta do
  task :report do
    last_release = nil
    on roles(:web) do
      releases = capture("ls #{releases_path}")
      last_release = releases.split("\n").sort.last
    end
    Capistrano::Fiesta::Report.new(last_release).run if last_release
  end
end

# after 'deploy:finished', 'fiesta:report'
<commit_msg>some servers have no previous releases<commit_after>namespace :fiesta do
  task :report do
    last_release = nil
    on roles(:web) do
      releases = capture("ls #{releases_path}")
      last_release ||= releases.split("\n").sort.last
    end
    Capistrano::Fiesta::Report.new(last_release).run if last_release
  end
end

# after 'deploy:finished', 'fiesta:report'

{'fraction_non_alphanumeric': 0.1209563994374121, 'fraction_numerical': 0.0, 'mean_word_length': 4.014084507042254, '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': '2468708', 'n_tokens_mistral': 227, 'n_tokens_neox': 228, 'n_words': 55}