<commit_before># Copyright (C) 2011  <NAME>

class String
  alias_method :original_to_i, :to_i
  
  remove_method :to_i

  # @overload to_i(base_number)
  #   @param [Fixnum] base_number Delegate to standard to_i
  # @overload to_i(positional_chars)
  #   @param [Array<#to_sym>] positional_chars
  # @return [Integer]
  def to_i(base=10)
    case base
    when Enumerable
      ::Integer::Base.parse self, base
    else
      original_to_i base
    end
  end
end

class Integer

  # @overload to_s(base_number)
  #   @param [Fixnum] base_number Delegate to standard to_s
  # @overload to_s(positional_chars)
  #   @param [Array<#to_sym>] positional_chars
  # @return [String]
  def to_s(base=10)
    case base
    when Enumerable
      ::Integer::Base.convert_to_string self, base
    else
      original_to_s base
    end
  end
end

class Fixnum
  alias_method :original_to_s, :to_s
  remove_method :to_s
end

class Bignum
  alias_method :original_to_s, :to_s
  remove_method :to_s
end<commit_msg>fix indent<commit_after># Copyright (C) 2011  <NAME>

class String

  alias_method :original_to_i, :to_i
  
  remove_method :to_i

  # @overload to_i(base_number)
  #   @param [Fixnum] base_number Delegate to standard to_i
  # @overload to_i(positional_chars)
  #   @param [Array<#to_sym>] positional_chars
  # @return [Integer]
  def to_i(base=10)
    case base
    when Enumerable
      ::Integer::Base.parse self, base
    else
      original_to_i base
    end
  end

end


class Integer

  # @overload to_s(base_number)
  #   @param [Fixnum] base_number Delegate to standard to_s
  # @overload to_s(positional_chars)
  #   @param [Array<#to_sym>] positional_chars
  # @return [String]
  def to_s(base=10)
    case base
    when Enumerable
      ::Integer::Base.convert_to_string self, base
    else
      original_to_s base
    end
  end

end


class Fixnum

  alias_method :original_to_s, :to_s
  remove_method :to_s

end


class Bignum

  alias_method :original_to_s, :to_s
  remove_method :to_s

end
{'fraction_non_alphanumeric': 0.08379052369077307, 'fraction_numerical': 0.00798004987531172, 'mean_word_length': 3.497757847533632, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4787821', 'n_tokens_mistral': 784, 'n_tokens_neox': 745, 'n_words': 184}