<commit_before>require 'abstract_unit'
require 'active_support/core_ext/big_decimal/yaml_conversions'

class BigDecimalYamlConversionsTest < ActiveSupport::TestCase
  def test_to_yaml
    assert_match("--- 100000.30020320320000000000000000000000000000001\n", BigDecimal.new('100000.30020320320000000000000000000000000000001').to_yaml)
    assert_match("--- .Inf\n",  BigDecimal.new('Infinity').to_yaml)<commit_msg>Assert the file is deprecated<commit_after>require 'abstract_unit'

class BigDecimalYamlConversionsTest < ActiveSupport::TestCase
  def test_to_yaml
    assert_deprecated { require 'active_support/core_ext/big_decimal/yaml_conversions' }
    assert_match("--- 100000.30020320320000000000000000000000000000001\n", BigDecimal.new('100000.30020320320000000000000000000000000000001').to_yaml)
    assert_match("--- .Inf\n",  BigDecimal.new('Infinity').to_yaml)
{'fraction_non_alphanumeric': 0.10804597701149425, 'fraction_numerical': 0.2160919540229885, 'mean_word_length': 7.53921568627451, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '4043696', 'n_tokens_mistral': 412, 'n_tokens_neox': 256, 'n_words': 34}