<commit_before>require 'pronto'
require 'poper'

module Pronto
  class Poper < Runner
    def run(patches, commit)
      return [] unless patches

      poper_runner = ::Poper::Runner.new(commit, patches.repo.path.to_s)
      errors = poper_runner.run

      messages_for(errors)
    end

    def messages_for(errors)
      errors.map do |error|
        Message.new(nil, nil, :warning, error.message.capitalize, error.commit)
      end
    end
  end
end<commit_msg>Don't include errors of commit that pronto runs against<commit_after>require 'pronto'
require 'poper'

module Pronto
  class Poper < Runner
    def run(patches, commit)
      return [] unless patches

      poper_runner = ::Poper::Runner.new(commit, patches.repo.path.to_s)

      poper_runner.run
        .select { |error| error.commit != commit }
        .map { |error| message_for(error) }
    end

    def message_for(error)
      Message.new(nil, nil, :warning, error.message.capitalize, error.commit)
    end
  end
end
{'fraction_non_alphanumeric': 0.10111223458038422, 'fraction_numerical': 0.0, 'mean_word_length': 3.024390243902439, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6158096', 'n_tokens_mistral': 327, 'n_tokens_neox': 315, 'n_words': 80}