<jupyter_start><jupyter_text>Without padding<jupyter_code>%%time
turn_part_file_into_tfrecord(base_file_path, 'train')
%%time
turn_part_file_into_tfrecord(base_file_path, 'val')
%%time
turn_part_file_into_tfrecord(base_file_path, 'test')<jupyter_output>There are 5 files for test
_____File number: 0 (32310 samples)
_____File number: 1 (29691 samples)
_____File number: 2 (31983 samples)
_____File number: 3 (31242 samples)
_____File number: 4 (25404 samples)
CPU times: user 1min, sys: 3.26 s, total: 1min 3s
Wall time: 54.4 s
{'fraction_non_alphanumeric': 0.09867172675521822, 'fraction_numerical': 0.07590132827324478, 'mean_word_length': 8.428571428571429, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '548888', 'license': 'MIT', 'n_tokens_mistral': 228, 'n_tokens_neox': 199, 'n_words': 54, 'path': 'POC/data_create_to_tfrecords_iteration_1_500_test.ipynb', 'repo_name': 'jpbarrett13/MAG-model-code', 'size': '527'}