<commit_before>/* global MathJax */
const React = require('react');
const loadScript = require('load-script');

const DEFAULT_SCRIPT = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML';

const DEFAULT_OPTIONS = {
    tex2jax: {
        inlineMath: []
    },
    showMathMenu: false,
    showMathMenuMSIE: false
};

/**
 * Context for loading mathjax
 * @type {[type]}
 */
const MathJaxContext = React.createClass({
    propTypes: {
        children: React.PropTypes.node.isRequired,
        script:   React.PropTypes.string,
        options:  React.PropTypes.object<commit_msg>Accept "false" as script prop<commit_after>/* global MathJax */
const React = require('react');
const loadScript = require('load-script');

const DEFAULT_SCRIPT = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML';

const DEFAULT_OPTIONS = {
    tex2jax: {
        inlineMath: []
    },
    showMathMenu: false,
    showMathMenuMSIE: false
};

/**
 * Context for loading mathjax
 * @type {[type]}
 */
const MathJaxContext = React.createClass({
    propTypes: {
        children: React.PropTypes.node.isRequired,
        script:   React.PropTypes.oneOfType([
            React.PropTypes.string,
            React.PropTypes.oneOf([false])
        ]),
        options:  React.PropTypes.object
{'fraction_non_alphanumeric': 0.13439635535307518, 'fraction_numerical': 0.0015186028853454822, 'mean_word_length': 3.1974522292993632, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1301775', 'n_tokens_mistral': 430, 'n_tokens_neox': 426, 'n_words': 77}