<commit_before>import os
import sys
import writer
import data_holder
import hashlib



linux_hashes = {
"test_of_PythonSerializer" : "11e1ffc3519be57eba208d6f740c7dd2",
"test_of_PythonSerializer_enum" : "e907ddf819d3a2558596ffb392eb626f",
"test_of_PythonSerializer_import" : "42b158e97a9e205de2178d6befaeed35"
}

windows_hashes = {
"test_of_PythonSerializer" : "bce7e420fbdb878941e28bf38c69b5fc",
"test_of_PythonSerializer_enum" : "9cbdcca5ebf27b8b8bcb2b7f080bcf6f",
"test_of_PythonSerializer_import" : "e57c2d6db6b44ecdabba127dd0532aa0"
}

hashes = linux_hashes if sys.platform == "linux2" else windows_hashes

def test_of_WriterFabric_default_writer():
    assert type(writer.WriterFabric.get_writer("test.txt")) is writer.WriterTxt


def test_of_PythonSerializer():

    ih = data_holder.IncludeHolder()
    th = data_holder.TypeDefHolder()

    for x in range(20, 400, 3):
        ih.add_to_list("test_include_"+str(x))
        th.add_to_list("td_elem_name_"+str(x), "td_elem_val_"+str(x))<commit_msg>fix test hashes<commit_after>import os
import sys
import writer
import data_holder
import hashlib



linux_hashes = {
"test_of_PythonSerializer" : "dd20e4a505ee4625fd857f3962a4acf6",
"test_of_PythonSerializer_enum" : "ca82f0d3706c921db9ac4d37389a9c77",
"test_of_PythonSerializer_import" : "42b158e97a9e205de2178d6befaeed35"
}

windows_hashes = {
"test_of_PythonSerializer" : "bce7e420fbdb878941e28bf38c69b5fc",
"test_of_PythonSerializer_enum" : "9cbdcca5ebf27b8b8bcb2b7f080bcf6f",
"test_of_PythonSerializer_import" : "e57c2d6db6b44ecdabba127dd0532aa0"
}

hashes = linux_hashes if sys.platform == "linux2" else windows_hashes

def test_of_WriterFabric_default_writer():
    assert type(writer.WriterFabric.get_writer("test.txt")) is writer.WriterTxt


def test_of_PythonSerializer():

    ih = data_holder.IncludeHolder()
    th = data_holder.TypeDefHolder()

    for x in range(20, 400, 3):
        ih.add_to_list("test_include_"+str(x))
        th.add_to_list("td_elem_name_"+str(x), "td_elem_val_"+str(x))
{'fraction_non_alphanumeric': 0.09940357852882704, 'fraction_numerical': 0.10685884691848907, 'mean_word_length': 7.422594142259414, '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': '2840575', 'n_tokens_mistral': 944, 'n_tokens_neox': 812, 'n_words': 105}