<commit_before>// modified from http://beckism.com/2010/09/splitting-lines-javascript/
// modified from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#Using_regular_expression_to_split_lines_with_different_line_endingsends_of_lineline_breaks
var LINE_BREAKS = /^.*((\r\n|\n|\r)|$)/gm;

function break_lines(string){
    // return string.match(LINE_BREAKS);
    return string.split(LINE_BREAKS);
}<commit_msg>String to lines corrected<commit_after>// modified from http://beckism.com/2010/09/splitting-lines-javascript/
var LINE_BREAKS = /^.*((\r\n|\n|\r)|$)/gm;

function break_lines(string){
    return string.match(LINE_BREAKS);
}
{'fraction_non_alphanumeric': 0.1575037147102526, 'fraction_numerical': 0.017830609212481426, 'mean_word_length': 5.480769230769231, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '2025725', 'n_tokens_mistral': 255, 'n_tokens_neox': 230, 'n_words': 30}