<commit_before>require 'cerberus/version'

module Cerberus
  module Publisher
    class Base
      def self.formatted_message(state, manager, options)
        subject = 
        case state
        when :setup
          "Cerberus set up for project (##{manager.scm.current_revision})"
        when :broken
          "Build still broken (##{manager.scm.current_revision})"
        when :failure
          "Build broken by #{manager.scm.last_author} (##{manager.scm.current_revision})"
        when :revival
          "Build fixed by #{manager.scm.last_author} (##{manager.scm.current_revision})"
        else
          raise "Unknown build state #{state}"
        end

        subject = "[#{options[:application_name]}] #{subject}"
        generated_by = "--\nCerberus #{Cerberus::VERSION::STRING}, http://cerberus.rubyforge.com/"
        body = [ manager.scm.last_commit_message, manager.builder.output, generated_by ].join("\n\n")

        return subject, body
      end
    end
  end
end<commit_msg>Fixed Cerberus homepage url<commit_after>require 'cerberus/version'

module Cerberus
  module Publisher
    class Base
      def self.formatted_message(state, manager, options)
        subject = 
        case state
        when :setup
          "Cerberus set up for project (##{manager.scm.current_revision})"
        when :broken
          "Build still broken (##{manager.scm.current_revision})"
        when :failure
          "Build broken by #{manager.scm.last_author} (##{manager.scm.current_revision})"
        when :revival
          "Build fixed by #{manager.scm.last_author} (##{manager.scm.current_revision})"
        else
          raise "Unknown build state #{state}"
        end

        subject = "[#{options[:application_name]}] #{subject}"
        generated_by = "--\nCerberus #{Cerberus::VERSION::STRING}, http://cerberus.rubyforge.org/"
        body = [ manager.scm.last_commit_message, manager.builder.output, generated_by ].join("\n\n")

        return subject, body
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.1211519364448858, 'fraction_numerical': 0.0, 'mean_word_length': 2.6241007194244603, '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': '3078193', 'n_tokens_mistral': 613, 'n_tokens_neox': 601, 'n_words': 140}