<commit_before># This file adds the +#duplicable?+ method to the Ruby classes that are 
# not duplicable. It should return false in all cases.

# Define +#duplicable?+ for all of the classes in the array.

[NilClass, FalseClass, TrueClass, Method, Symbol, Numeric].each do |klass|
  klass.class_eval do 
    def duplicable?
      false 
    end
  end
end

# This is required for compatibility with Ruby 1.9.x. In Ruby 1.9.x, 
# +dup+ is not allowed on a BigDecimal and raises a TypeError. Rescue
# the type error to simply return false

require 'bigdecimal'

class BigDecimal
  begin
    !!BigDecimal.new('4.56').dup
  rescue TypeError
    # use superclass implementation
  end
end<commit_msg>Documentation for BigDecimal<commit_after># This file adds the +#duplicable?+ method to the Ruby classes that are 
# not duplicable. It should return false in all cases.

# Define +#duplicable?+ for all of the classes in the array.

[NilClass, FalseClass, TrueClass, Method, Symbol, Numeric].each do |klass|
  klass.class_eval do 
    def duplicable?
      false 
    end
  end
end

# This is required for compatibility with Ruby 1.9.x. In Ruby 1.9.x, 
# +dup+ is not allowed on a BigDecimal and raises a TypeError. Rescue
# the type error to simply return false

require 'bigdecimal'

# BigDecimal class from Ruby's standard library. See documentation for version
# 2.1.3[http://www.ruby-doc.org/stdlib-2.1.3/libdoc/bigdecimal/rdoc/BigDecimal.html],
# 2.0.0[http://ruby-doc.org/stdlib-2.0.0/libdoc/bigdecimal/rdoc/BigDecimal.html], or
# 1.9.3[http://www.ruby-doc.org/stdlib-1.9.3/libdoc/bigdecimal/rdoc/BigDecimal.html].

class BigDecimal
  begin
    !!BigDecimal.new('4.56').dup
  rescue TypeError
    # use superclass implementation
  end
end
{'fraction_non_alphanumeric': 0.09838895281933256, 'fraction_numerical': 0.018411967779056387, 'mean_word_length': 3.6621983914209117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2453267', 'n_tokens_mistral': 591, 'n_tokens_neox': 568, 'n_words': 197}