<commit_before><commit_msg>Added merge<commit_after>let a = [1, 3, 5, 6, 7, 9]
let b = [2, 4, 8, 10]

let c = [9, 7, 6, 5, 3 ,1]
let d = [10, 8, 4, 2]

let merge = ([x, ...xs], [y, ...ys], compare = (a,b) => a - b) =>
   !x && [y, ...ys]
|| !y && [x, ...xs]
|| compare(x,y) < 0 && [x, ...merge(xs, [y, ...ys], compare)]
|| compare(x,y) > 0 && [y, ...merge([x, ...xs], ys, compare)]
|| [x, y, ...merge(xs, ys, compare)]

console.log(merge(a, b))
console.log(merge(c, d, (a,b) => b - a))

{'fraction_non_alphanumeric': 0.3292181069958848, 'fraction_numerical': 0.04938271604938271, 'mean_word_length': 2.746153846153846, 'pattern_counts': {'":': 0, '<': 4, '<?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': '1802789', 'n_tokens_mistral': 254, 'n_tokens_neox': 233, 'n_words': 71}