<commit_before>module CapistranoDeploy
  module Campfire
    def self.load_into(configuration)
      configuration.load do
        namespace :campfire do
          require 'campy'

          desc 'Set notification in campfire for deployment start'
          task :start_msg do
            campy = Campy::Room.new(account: campfire_account, token: <PASSWORD>_token, room_id: campfire_room_id)
            campy.speak "#{campfire_speaker.upcase} is starting deploy of '#{app_name.upcase}' from branch '#{branch}' to #{current_stage.upcase}"
          end

          desc 'Set notification in campfire for deployment end'
          task :end_msg do
            campy = Campy::Room.new(account: campfire_account, token: <PASSWORD>fire_token, room_id: campfire_room_id)
            campy.speak "Deployment of '#{app_name.upcase}' from branch '#{branch}' to #{current_stage.upcase} was successful!"
            campy.play "pushit"
          end
        end

        before 'deploy:update', 'campfire:start_msg'
        after 'deploy:update', 'campfire:end_msg'
      end
    end
  end
end<commit_msg>Strip trailing newlines from Campfire speaker<commit_after>module CapistranoDeploy
  module Campfire
    def self.load_into(configuration)
      configuration.load do
        namespace :campfire do
          require 'campy'

          desc 'Set notification in campfire for deployment start'
          task :start_msg do
            campy = Campy::Room.new(account: campfire_account, token: campfire_token, room_id: campfire_room_id)
            campy.speak "#{campfire_speaker.chomp} is starting deploy of '#{app_name.upcase}' from branch '#{branch}' to #{current_stage.upcase}"
          end

          desc 'Set notification in campfire for deployment end'
          task :end_msg do
            campy = Campy::Room.new(account: campfire_account, token: <PASSWORD>fire_token, room_id: campfire_room_id)
            campy.speak "Deployment of '#{app_name.upcase}' from branch '#{branch}' to #{current_stage.upcase} was successful!"
            campy.play "pushit"
          end
        end

        before 'deploy:update', 'campfire:start_msg'
        after 'deploy:update', 'campfire:end_msg'
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08930987821380243, 'fraction_numerical': 0.0, 'mean_word_length': 2.797945205479452, 'pattern_counts': {'":': 0, '<': 6, '<?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': '6064776', 'n_tokens_mistral': 650, 'n_tokens_neox': 640, 'n_words': 178}