<commit_before>import numpy as np


def write_numpy_array_to_file(array, file_path):
    np.save(file_path, array)


def create_numpy_array_from_generator(generator, overestimated_shape):
    array = np.zeros(shape=overestimated_shape)
    for i, x in enumerate(generator()):
        array[i, :] = x
    return array[:i + 1, :]

<commit_msg>Remove double line ending on data_splitting.py<commit_after>import numpy as np


def write_numpy_array_to_file(array, file_path):
    np.save(file_path, array)


def create_numpy_array_from_generator(generator, overestimated_shape):
    array = np.zeros(shape=overestimated_shape)
    for i, x in enumerate(generator()):
        array[i, :] = x
    return array[:i + 1, :]

{'fraction_non_alphanumeric': 0.10504201680672269, 'fraction_numerical': 0.0028011204481792717, 'mean_word_length': 4.674603174603175, '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': '3708382', 'n_tokens_mistral': 254, 'n_tokens_neox': 243, 'n_words': 53}