<commit_before>module BubbleWrap
  module Ext
    module BuildTask

      def self.extended(base)
        base.instance_eval do
          def setup_with_bubblewrap(&block)
            bw_config = proc do |app|
              app.files = ::BubbleWrap::Requirement.files(app.files)
              app.files_dependencies ::BubbleWrap::Requirement.files_dependencies
              app.frameworks = ::BubbleWrap::Requirement.frameworks(app.frameworks)
              block.call(app) unless block.nil?
            end
            config.setup_blocks << bw_config<commit_msg>Properly call the original `setup` implementation; fixes #326<commit_after>module BubbleWrap
  module Ext
    module BuildTask

      def self.extended(base)
        base.instance_eval do
          def setup_with_bubblewrap(*args, &block)
            bw_config = proc do |app|
              app.files = ::BubbleWrap::Requirement.files(app.files)
              app.files_dependencies ::BubbleWrap::Requirement.files_dependencies
              app.frameworks = ::BubbleWrap::Requirement.frameworks(app.frameworks)
              block.call(app) unless block.nil?
            end

            setup_without_bubblewrap *args, &bw_config
{'fraction_non_alphanumeric': 0.08361204013377926, 'fraction_numerical': 0.002508361204013378, 'mean_word_length': 2.489795918367347, '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': '5924686', 'n_tokens_mistral': 337, 'n_tokens_neox': 322, 'n_words': 64}