<commit_before>module Travis
  module Build
    class Script
      module Helpers
        Shell::Dsl.instance_methods(false).each do |name|
          define_method(name) do |*args, &block|
            options = args.last if args.last.is_a?(Hash)
            args.last[:timeout] = config.timeout(options[:timeout]) if options && options.key?(:timeout)
            sh.send(name, *args, &stacking(&block))
          end
        end

        alias :sh_if :if
        alias :sh_elif :elif
        alias :sh_else :else

        def sh
          stack.last
        end

        def failure(message)
          echo message
          raw '/usr/bin/false' # TODO will this actually fail the build? shouldn't we exit?
        end

        def stacking
          ->(sh) {
            stack.push(sh)
            yield if block_given?
            stack.pop
          }
        end

        def announce?(stage)
          stage && stage != :after_result
        end
      end
    end<commit_msg>false should be found, but it's not always at /bin/false<commit_after>module Travis
  module Build
    class Script
      module Helpers
        Shell::Dsl.instance_methods(false).each do |name|
          define_method(name) do |*args, &block|
            options = args.last if args.last.is_a?(Hash)
            args.last[:timeout] = config.timeout(options[:timeout]) if options && options.key?(:timeout)
            sh.send(name, *args, &stacking(&block))
          end
        end

        alias :sh_if :if
        alias :sh_elif :elif
        alias :sh_else :else

        def sh
          stack.last
        end

        def failure(message)
          echo message
          raw 'false'
        end

        def stacking
          ->(sh) {
            stack.push(sh)
            yield if block_given?
            stack.pop
          }
        end

        def announce?(stage)
          stage && stage != :after_result
        end
      end
    end
{'fraction_non_alphanumeric': 0.09156751163993793, 'fraction_numerical': 0.0, 'mean_word_length': 1.5380577427821522, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7039277', 'n_tokens_mistral': 547, 'n_tokens_neox': 532, 'n_words': 150}