<commit_before>module Byebug
  module Helpers
    #
    # Utilities to assist command parsing
    #
    module ParseHelper
      #
      # Parses +str+ of command +cmd+ as an integer between +min+ and +max+.
      #
      # If either +min+ or +max+ is nil, that value has no bound.
      #
      def get_int(str, cmd, min = nil, max = nil)
        if str !~ /\A[0-9]+\z/
          err = pr('parse.errors.int.not_number', cmd: cmd, str: str)
          return nil, errmsg(err)
        end

        int = str.to_i<commit_msg>make frame cmd work with negative arg<commit_after>module Byebug
  module Helpers
    #
    # Utilities to assist command parsing
    #
    module ParseHelper
      #
      # Parses +str+ of command +cmd+ as an integer between +min+ and +max+.
      #
      # If either +min+ or +max+ is nil, that value has no bound.
      #
      def get_int(str, cmd, min = nil, max = nil)
        if str !~ /\A-?[0-9]+\z/
          err = pr('parse.errors.int.not_number', cmd: cmd, str: str)
          return nil, errmsg(err)
        end

        int = str.to_i
{'fraction_non_alphanumeric': 0.11401869158878504, 'fraction_numerical': 0.003738317757009346, 'mean_word_length': 1.9262295081967213, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5420113', 'n_tokens_mistral': 359, 'n_tokens_neox': 352, 'n_words': 119}