<commit_before>import './themes/global.css';

import firebaseConfig from './assets/datas/firebase.config.json';

import { HOME_EN, HOME_ZH } from './pages/home';
import { ABOUT_EN, ABOUT_ZH } from './pages/about';

import { notfound } from './pages/404';

import { load } from './utils';

Promise.all([
    load('https://fonts.googleapis.com/icon?family=Material+Icons')
  ])
  .then((data) => {
    const style = document.createElement('style');
    style.innerHTML = data[0];
    document.head.appendChild(style);
  });

firebase.initializeApp(firebaseConfig);

/zh/.test(navigator.language) ? page('/', HOME_ZH) : page('/', HOME_EN);

page('/en/home', HOME_EN);
page('/en/about', ABOUT_EN);

page('/zh/home', HOME_ZH);
page('/zh/about', ABOUT_ZH);

page('*', notfound);
page();
<commit_msg>232nd Commit<commit_after>import './themes/global.css';

import { load } from './utils';
import firebaseConfig from './assets/datas/firebase.config.json';

import { HOME_EN, HOME_ZH } from './pages/home';
import { ABOUT_EN, ABOUT_ZH } from './pages/about';
import { notfound } from './pages/404';

/**
 * @name Material
 */
Promise.all([
    load('https://fonts.googleapis.com/icon?family=Material+Icons')
  ])
  .then((data) => {
    const style = document.createElement('style');
    style.innerHTML = data[0];
    document.head.appendChild(style);
  });

/**
 * @name Firebase
 */
firebase.initializeApp(firebaseConfig);

/**
 * @name Page
 */
/zh/.test(navigator.language) ? page('/', HOME_ZH) : page('/', HOME_EN);

page('/en/home', HOME_EN);
page('/en/about', ABOUT_EN);

page('/zh/home', HOME_ZH);
page('/zh/about', ABOUT_ZH);

page('*', notfound);

page();

{'fraction_non_alphanumeric': 0.21049457177322076, 'fraction_numerical': 0.0066344993968636915, 'mean_word_length': 4.216981132075472, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '282691', 'n_tokens_mistral': 612, 'n_tokens_neox': 559, 'n_words': 107}