<commit_before>[[
   "start",
  ["keyword.source.rust","use"],
  ["text"," "],
  ["support.constant","core::rand::"],
  ["text","RngUtil"],
  ["keyword.operator",";"]
],[
   "start"
],[
   "start",
  ["keyword.source.rust","fn"],
  ["text"," "],
  ["entity.name.function.source.rust","main"],
  ["text","() {"]
],[
   "start",
  ["text","    "],
  ["keyword.source.rust","for"],
  ["text"," ["],
  ["string.quoted.double.source.rust","\"Alice\""],
  ["keyword.operator",","],
  ["text"," "],
  ["string.quoted.double.source.rust","\"Bob\""],
  ["keyword.operator",","],
  ["text"," "],
  ["string.quoted.double.source.rust","\"Carol\""],
  ["text","].each |&name| {"]
],[
   "start",
  ["text","        "],
  ["keyword.source.rust","do"],
  ["text"," spawn {"]
],[
   "start",
  ["text","            "],
  ["keyword.source.rust","let"],
  ["text"," v "],
  ["keyword.operator","="],
  ["text"," "],
  ["support.constant","rand::"],
  ["text","Rng().shuffle(["],
  ["constant.numeric.integer.source.rust","1"],
  ["keyword.operator",","],
  ["text"," "],
  ["constant.numeric.integer.source.rust","2"],
  ["keyword.operator",","],
  ["text"," "],
  ["constant.numeric.integer.source.rust","3"],
  ["text","])"],
  ["keyword.operator",";"]
],[
   "start",
  ["text","            "],
  ["keyword.source.rust","for"],
  ["text"," v.each |&num| {"]
],[
   "start",
  ["text","                print(fmt"],
  ["keyword.operator","!"],
  ["text","("],
  ["string.quoted.double.source.rust","\"%s says: '%d'"],
  ["constant.character.escape.source.rust","\\n"],
  ["string.quoted.double.source.rust","\""],
  ["keyword.operator",","],
  ["text"," name"],
  ["keyword.operator",","],
  ["text"," num "],
  ["keyword.operator","+"],
  ["text"," "],
  ["constant.numeric.integer.source.rust","1"],
  ["text","))"]
],[
   "start",
  ["text","            }"]
],[
   "start",
  ["text","        }"]
],[
   "start",
  ["text","    }"]
],[
   "start",
  ["text","}"]
],[
   "start"
],[
   "start",
  ["keyword.source.rust","fn"],
  ["text"," "],
  ["entity.name.function.source.rust","map"],
  ["keyword.operator","<"],
  ["text","T"],
  ["keyword.operator",","],
  ["text"," U"],
  ["keyword.operator",">"],
  ["text","(vector: &[T]"],
  ["keyword.operator",","],
  ["text"," function: &fn(v: &T) "],
  ["keyword.operator","->"],
  ["text"," U) "],
  ["keyword.operator","->"],
  ["text"," ~[U] {"]
],[
   "start",
  ["text","    "],
  ["keyword.source.rust","let"],
  ["text"," "],
  ["keyword.source.rust","mut"],
  ["text"," accumulator "],
  ["keyword.operator","="],
  ["text"," ~[]"],
  ["keyword.operator",";"]
],[
   "start",
  ["text","    "],
  ["keyword.source.rust","for"],
  ["text"," "],
  ["support.constant","vec::"],
  ["text","each(vector) |element| {"]
],[
   "start",
  ["text","        accumulator.push(function(element))"],
  ["keyword.operator",";"]
],[
   "start",
  ["text","    }"]
],[
   "start",
  ["text","    "],
  ["keyword.source.rust","return"],
  ["text"," accumulator"],
  ["keyword.operator",";"]
],[
   "start",
  ["text","}"]
],[
   "start"
]]<commit_msg>Updated tests for Rust (by @nightwing) for updated regex<commit_after>[[
   "start",
  ["keyword.source.rust","use"],
  ["text"," "],
  ["support.constant","core::rand::"],
  ["text","RngUtil"],
  ["punctuation.operator",";"]
],[
   "start"
],[
   "start",
  ["keyword.source.rust","fn"],
  ["text"," "],
  ["entity.name.function.source.rust","main"],
  ["paren.lparen","("],
  ["paren.rparen",")"],
  ["text"," "],
  ["paren.lparen","{"]
],[
   "start",
  ["text","    "],
  ["keyword.source.rust","for"],
  ["text"," "],
  ["paren.lparen","["],
  ["string.quoted.double.source.rust","\"Alice\""],
  ["punctuation.operator",","],
  ["text"," "],
  ["string.quoted.double.source.rust","\"Bob\""],
  ["punctuation.operator",","],
  ["text"," "],
  ["string.quoted.double.source.rust","\"Carol\""],
  ["paren.rparen","]"],
  ["punctuation.operator","."],
  ["text","each "],
  ["keyword.operator","|&"],
  ["text","name"],
  ["keyword.operator","|"],
  ["text"," "],
  ["paren.lparen","{"]
],[
   "start",
  ["text","        "],
  ["keyword.source.rust","do"],
  ["text"," spawn "],
  ["paren.lparen","{"]
],[
   "start",
  ["text","            "],
  ["keyword.source.rust","let"],
  ["text"," v "],
  ["keyword.operator","="],
  ["text"," "],
  ["support.constant","rand::"],
  ["text","Rng"],
  ["paren.lparen","("],
  ["paren.rparen",")"],
  ["punctuation.operator","."],
  ["text","shuffle"],
  ["paren.lparen","(["],
  ["constant.numeric.integer.source.rust","1"],
  ["punctuation.operator",","],
  ["text"," "],
  ["constant.numeric.integer.source.rust","2"],
  ["punctuation.operator",","],
  ["text"," "],
  ["constant.numeric.integer.source.rust","3"],
  ["paren.rparen","])"],
  ["punctuation.operator",";"]
],[
   "start",
  ["text","            "],
  ["keyword.source.rust","for"],
  ["text"," v"],
  ["punctuation.operator","."],
  ["text","each "],
  ["keyword.operator","|&"],
  ["text","num"],
  ["keyword.operator","|"],
  ["text"," "],
  ["paren.lparen","{"]
],[
   "start",
  ["text","                print"],
  ["paren.lparen","("],
  ["text","fmt"],
  ["keyword.operator","!"],
  ["paren.lparen","("],
  ["string.quoted.double.source.rust","\"%s says: '%d'"],
  ["constant.character.escape.source.rust","\\n"],
  ["string.quoted.double.source.rust","\""],
  ["punctuation.operator",","],
  ["text"," name"],
  ["punctuation.operator",","],
  ["text"," num "],
  ["keyword.operator","+"],
  ["text"," "],
  ["constant.numeric.integer.source.rust","1"],
  ["paren.rparen","))"]
],[
   "start",
  ["text","            "],
  ["paren.rparen","}"]
],[
   "start",
  ["text","        "],
  ["paren.rparen","}"]
],[
   "start",
  ["text","    "],
  ["paren.rparen","}"]
],[
   "start",
  ["paren.rparen","}"]
],[
   "start"
],[
   "start",
  ["keyword.source.rust","fn"],
  ["text"," "],
  ["entity.name.function.source.rust","map"],
  ["keyword.operator","<"],
  ["text","T"],
  ["punctuation.operator",","],
  ["text"," U"],
  ["keyword.operator",">"],
  ["paren.lparen","("],
  ["text","vector"],
  ["punctuation.operator",":"],
  ["text"," "],
  ["keyword.operator","&"],
  ["paren.lparen","["],
  ["text","T"],
  ["paren.rparen","]"],
  ["punctuation.operator",","],
  ["text"," function"],
  ["punctuation.operator",":"],
  ["text"," "],
  ["keyword.operator","&"],
  ["text","fn"],
  ["paren.lparen","("],
  ["text","v"],
  ["punctuation.operator",":"],
  ["text"," "],
  ["keyword.operator","&"],
  ["text","T"],
  ["paren.rparen",")"],
  ["text"," "],
  ["keyword.operator","->"],
  ["text"," U"],
  ["paren.rparen",")"],
  ["text"," "],
  ["keyword.operator","->"],
  ["text"," ~"],
  ["paren.lparen","["],
  ["text","U"],
  ["paren.rparen","]"],
  ["text"," "],
  ["paren.lparen","{"]
],[
   "start",
  ["text","    "],
  ["keyword.source.rust","let"],
  ["text"," "],
  ["keyword.source.rust","mut"],
  ["text"," accumulator "],
  ["keyword.operator","="],
  ["text"," ~"],
  ["paren.lparen","["],
  ["paren.rparen","]"],
  ["punctuation.operator",";"]
],[
   "start",
  ["text","    "],
  ["keyword.source.rust","for"],
  ["text"," "],
  ["support.constant","vec::"],
  ["text","each"],
  ["paren.lparen","("],
  ["text","vector"],
  ["paren.rparen",")"],
  ["text"," "],
  ["keyword.operator","|"],
  ["text","element"],
  ["keyword.operator","|"],
  ["text"," "],
  ["paren.lparen","{"]
],[
   "start",
  ["text","        accumulator"],
  ["punctuation.operator","."],
  ["text","push"],
  ["paren.lparen","("],
  ["text","function"],
  ["paren.lparen","("],
  ["text","element"],
  ["paren.rparen","))"],
  ["punctuation.operator",";"]
],[
   "start",
  ["text","    "],
  ["paren.rparen","}"]
],[
   "start",
  ["text","    "],
  ["keyword.source.rust","return"],
  ["text"," accumulator"],
  ["punctuation.operator",";"]
],[
   "start",
  ["paren.rparen","}"]
],[
   "start"
]]
{'fraction_non_alphanumeric': 0.3581123937587213, 'fraction_numerical': 0.0010148420652036027, 'mean_word_length': 3.9993658845909956, 'pattern_counts': {'":': 3, '<': 5, '<?xml version=': 0, '>': 9, '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': '2537760', 'n_tokens_mistral': 2964, 'n_tokens_neox': 2972, 'n_words': 353}