<commit_before>module Bnr
  module Webhooks
    module Controller
      def create
        if Bnr::Webhooks::Receiver.process(request.raw_post,
                                           request.headers,
                                           worker: worker,
                                           dispatcher: dispatcher)
          head status: :no_content
        else
          head status: :unprocessable_entity
        end
      end

      private

      def worker
        Bnr::Webhooks::Worker
      end

      def dispatcher
        Bnr::Webhooks::Dispatcher.new(mapping)
      end

      def mapping
        {}
      end
    end
  end
end<commit_msg>Mapping is a keyword argument.<commit_after>module Bnr
  module Webhooks
    module Controller
      def create
        if Bnr::Webhooks::Receiver.process(request.raw_post,
                                           request.headers,
                                           worker: worker,
                                           dispatcher: dispatcher)
          head status: :no_content
        else
          head status: :unprocessable_entity
        end
      end

      private

      def worker
        Bnr::Webhooks::Worker
      end

      def dispatcher
        Bnr::Webhooks::Dispatcher.new(mapping: mapping)
      end

      def mapping
        {}
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.05154639175257732, 'fraction_numerical': 0.0, 'mean_word_length': 1.167464114832536, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6790422', 'n_tokens_mistral': 313, 'n_tokens_neox': 310, 'n_words': 82}