<commit_before>/** @license
 * Kifu for JS
 * Copyright (c) 2014 na2hiro (https://github.com/na2hiro)
 * This software is released under the MIT License.
 * http://opensource.org/licenses/mit-license.php
 */
import * as mobx from "mobx";
import * as React from "react";
import { render } from "react-dom";
import Kifu from "./Kifu";
import KifuStore from "./stores/KifuStore";
import { onDomReady } from "./utils/util";
export { mobx };

export function loadString(kifu: string, id?: string): Promise<KifuStore> {
    return loadCommon(null, kifu, id);
}

export function load(filePath: string, id?: string): Promise<KifuStore> {
    return loadCommon(filePath, null, id);
}<commit_msg>Fix export to pass tests<commit_after>/** @license
 * Kifu for JS
 * Copyright (c) 2014 na2hiro (https://github.com/na2hiro)
 * This software is released under the MIT License.
 * http://opensource.org/licenses/mit-license.php
 */
import * as React from "react";
import { render } from "react-dom";
import Kifu from "./Kifu";
import KifuStore from "./stores/KifuStore";
import { onDomReady } from "./utils/util";
import {autorun, when, reaction} from "mobx";
export const mobx = {autorun, when, reaction};

export function loadString(kifu: string, id?: string): Promise<KifuStore> {
    return loadCommon(null, kifu, id);
}

export function load(filePath: string, id?: string): Promise<KifuStore> {
    return loadCommon(filePath, null, id);
}
{'fraction_non_alphanumeric': 0.14275717284814557, 'fraction_numerical': 0.008397480755773267, 'mean_word_length': 4.6299212598425195, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1491786', 'n_tokens_mistral': 477, 'n_tokens_neox': 469, 'n_words': 147}