<commit_before>TODO list
=========

 - Add checks for NULL at the start of all functions
 - Remove the insertion of '\0' where it isn't necessary
 - Make sure all accesses to members of SString are done after checks if the SString is NULL
 - Add checks for num == 0 and start > source->length.
<commit_msg>Removed finished TODO - adding NULL checks.<commit_after>TODO list
=========

 - Remove the insertion of '\0' where it isn't necessary
 - Make sure all accesses to members of SString are done after checks if the SString is NULL
 - Add checks for num == 0 and start > source->length.

{'fraction_non_alphanumeric': 0.0899830220713073, 'fraction_numerical': 0.006791171477079796, 'mean_word_length': 3.6825396825396823, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '838026', 'n_tokens_mistral': 160, 'n_tokens_neox': 149, 'n_words': 87}