<commit_before>import m from 'mithril';
import FastClick from 'fastclick';
import AppComponent from './components/app.js';

// Eliminate the #! for all routes
m.route.prefix('');

m.route(document.querySelector('main'), '/', {
  '/': AppComponent,
  '/room/:roomCode': AppComponent
});

FastClick.attach(document.body);<commit_msg>Fix Mithril v2 bug with m.route.prefix no longer being a function<commit_after>import m from 'mithril';
import FastClick from 'fastclick';
import AppComponent from './components/app.js';

// Eliminate the #! for all routes
m.route.prefix = '';

m.route(document.querySelector('main'), '/', {
  '/': AppComponent,
  '/room/:roomCode': AppComponent
});

FastClick.attach(document.body);
{'fraction_non_alphanumeric': 0.16643356643356644, 'fraction_numerical': 0.0013986013986013986, 'mean_word_length': 5.119658119658119, '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': '7088831', 'n_tokens_mistral': 220, 'n_tokens_neox': 223, 'n_words': 55}