<commit_before>class Pry
  module Helpers

    module CommandHelpers
      include OptionsHelpers

      module_function

      # if start_line is not false then add line numbers starting with start_line
      def render_output(should_flood, start_line, text, color=:blue)
        if start_line
          text = Pry::Helpers::Text.with_line_numbers text, start_line, color
        end

        if should_flood
          output.puts text
        else
          stagger_output(text)
        end
      end

      # Open a temp file and yield it to the block, closing it after
      # @return [String] The path of the temp file
      def temp_file opts = { :unlink => true }
        file = Tempfile.new(['pry', '.rb'])
        yield file
      ensure
        file.close(opts[:unlink])
      end

      def get_method_or_raise(name, target, opts={}, omit_help=false)
        meth = Pry::Method.from_str(name, target, opts)

        if name && !meth
          command_error("The method '#{name}' could not be found.", omit_help)
        elsif !meth
          command_error("No method name given, and context is not a method.", omit_help)
        end

        (opts[:super] || 0).times do
          if meth.super<commit_msg>Remove 'opts' argument from temp_file(…) helper.<commit_after>class Pry
  module Helpers

    module CommandHelpers
      include OptionsHelpers

      module_function

      # if start_line is not false then add line numbers starting with start_line
      def render_output(should_flood, start_line, text, color=:blue)
        if start_line
          text = Pry::Helpers::Text.with_line_numbers text, start_line, color
        end

        if should_flood
          output.puts text
        else
          stagger_output(text)
        end
      end

      # Open a temp file and yield it to the block, closing it after
      # @return [String] The path of the temp file
      def temp_file
        file = Tempfile.new(['pry', '.rb'])
        yield file
      ensure
        file.close(true)
      end

      def get_method_or_raise(name, target, opts={}, omit_help=false)
        meth = Pry::Method.from_str(name, target, opts)

        if name && !meth
          command_error("The method '#{name}' could not be found.", omit_help)
        elsif !meth
          command_error("No method name given, and context is not a method.", omit_help)
        end

        (opts[:super] || 0).times do
          if meth.super
{'fraction_non_alphanumeric': 0.08096999588984792, 'fraction_numerical': 0.0008220304151253596, 'mean_word_length': 2.2026315789473685, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2868079', 'n_tokens_mistral': 711, 'n_tokens_neox': 684, 'n_words': 231}