<commit_before># Additional math routines not found in standard JavaScript or SceneJS

#Array.prototype.flatten = (a) ->
#	a.reduce ((xs, x) -> xs.concat flatten x if Array.isArray x else xs.concat [x]), []

Array.prototype.flatten = () ->
  [].concat ((if Array.isArray x then flatten x else [x]) for x in this)...

#Array.prototype.flatten = (xs) ->
#  (x... if Array.isArray x else x) for x in xs
<commit_msg>Added a simple shallow copy for arrays<commit_after># Additional math routines not found in standard JavaScript or SceneJS

#Array.prototype.flatten = (a) ->
#	a.reduce ((xs, x) -> xs.concat flatten x if Array.isArray x else xs.concat [x]), []

Array.prototype.flatten = () ->
  [].concat ((if Array.isArray x then flatten x else [x]) for x in this)...

#Array.prototype.flatten = (xs) ->
#  (x... if Array.isArray x else x) for x in xs

Array.prototype.shallowClone = () ->
  this.slice 0
{'fraction_non_alphanumeric': 0.1509433962264151, 'fraction_numerical': 0.0011098779134295228, 'mean_word_length': 3.487562189054726, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '2922379', 'n_tokens_mistral': 303, 'n_tokens_neox': 296, 'n_words': 111}