<commit_before>CodeMirror.defineMode("roy", function(config, parserConfig) {
  return {
    token: function(stream, state) {
      var token;
      try {
        token = roy.lexer.tokenise(stream.string.slice(stream.pos))[0];
        if(!token[1].length) {
          stream.next();
          return;
        }
        stream.pos += token[1].length;<commit_msg>Fix problem with highlighting tokens after whitespace<commit_after>CodeMirror.defineMode("roy", function(config, parserConfig) {
  return {
    token: function(stream, state) {
      var token, sliced = stream.string.slice(stream.pos);
      try {
        token = roy.lexer.tokenise(sliced)[0];
        if(!token[1].length) {
          stream.next();
          return;
        }
        stream.pos += sliced.match(/\s*/)[0].length + token[1].length;
{'fraction_non_alphanumeric': 0.14709517923362175, 'fraction_numerical': 0.00865265760197775, 'mean_word_length': 2.6, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5086993', 'n_tokens_mistral': 250, 'n_tokens_neox': 241, 'n_words': 42}