<commit_before>require_relative 'spec_init'

describe "Get Formatted Data from Serializer Before it's Converted" do
  specify "Formatted hash" do
    example = Serialize::Controls.example
    raw_data = Serialize::Write.raw_data(example, :some_serializer)

    formatted_data = Serialize::Write.formatted_data(raw_data, example.class, :some_serializer)

    assert(formatted_data == 'some formatted data')
  end
end<commit_msg>Subject can be object or class<commit_after>require_relative 'spec_init'

describe "Get Formatted Data from Serializer Before it's Converted" do
  specify "Formatted hash" do
    example = Serialize::Controls.example
    raw_data = Serialize::Write.raw_data(example, :some_serializer)

    formatted_data = Serialize::Write.formatted_data(raw_data, example, :some_serializer)

    assert(formatted_data == 'some formatted data')
  end
end
{'fraction_non_alphanumeric': 0.08670520231213873, 'fraction_numerical': 0.0, 'mean_word_length': 5.818897637795276, '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': '1179555', 'n_tokens_mistral': 266, 'n_tokens_neox': 257, 'n_words': 66}