<commit_before>require 'English'
require 'byebug/core'

module Byebug
  #
  # Responsible for starting the debugger when started from the command line.
  #
  class Runner
    BYEBUG_SCRIPT = File.expand_path('../../../../bin/byebug')
    IGNORED_FILES << BYEBUG_SCRIPT

    def initialize(stop = false, quit = true)
      @stop, @quit = stop, quit
    end

    #
    # Set of options that byebug's script accepts.
    #
    def banner
      <<-EOB.gsub(/^ {8}/, '')

        byebug #{Byebug::VERSION}

        Usage: byebug [options] <script.rb> -- <script.rb parameters>
      EOB
    end

    #
    # Debugs a script only if syntax checks okay.
    #
    def debug_program
      output = `ruby -c "#{Byebug.debugged_program}" 2>&1`
      if $CHILD_STATUS.exitstatus != 0
        Byebug.puts output
        exit $CHILD_STATUS.exitstatus
      end<commit_msg>Docs and fix default value<commit_after>require 'English'
require 'byebug/core'

module Byebug
  #
  # Responsible for starting the debugger when started from the command line.
  #
  class Runner
    BYEBUG_SCRIPT = File.expand_path('../../../../bin/byebug')
    IGNORED_FILES << BYEBUG_SCRIPT

    #
    # @param stop [Boolean] Whether the runner should stop right before
    # starting the program.
    #
    # @param quit [Boolean] Whether the runner should quit right after
    # finishing the program.
    #
    def initialize(stop = true, quit = true)
      @stop, @quit = stop, quit
    end

    #
    # Set of options that byebug's script accepts.
    #
    def banner
      <<-EOB.gsub(/^ {8}/, '')

        byebug #{Byebug::VERSION}

        Usage: byebug [options] <script.rb> -- <script.rb parameters>
      EOB
    end

    #
    # Debugs a script only if syntax checks okay.
    #
    def debug_program
      output = `ruby -c "#{Byebug.debugged_program}" 2>&1`
      if $CHILD_STATUS.exitstatus != 0
        Byebug.puts output
        exit $CHILD_STATUS.exitstatus
      end
{'fraction_non_alphanumeric': 0.11139630390143737, 'fraction_numerical': 0.004106776180698152, 'mean_word_length': 2.325938566552901, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 9, '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': '2089353', 'n_tokens_mistral': 645, 'n_tokens_neox': 628, 'n_words': 183}