<commit_before>#
# PyWENO documentation build configuration file
#

import os
import sys

# path to autogen'ed modules
sys.path.append(os.path.abspath('..'))

# mock out some extension modules
class Mock(object):
    def __init__(self, *args, **kwargs):
        pass

    def __call__(self, *args, **kwargs):
        return Mock()

    @classmethod
    def __getattr__(self, name):
        if name in ('__file__', '__path__'):
            return '/dev/null'
        elif name[0] == name[0].upper():
            return type(name, (), {})
        else:
            return Mock()

for mod_name in [ 'sympy', 'pyweno.codeprinters', 'pyweno.ccoeffs', 'pyweno.cweno' ]:
    sys.modules[mod_name] = Mock()

# extentions
extensions = [ 'sphinx.ext.autodoc' ]
#extensions = ['sphinx.ext.autodoc', 'sphinx.ext.mathjax']
#extensions = ['sphinx.ext.autodoc', 'sphinx.ext.mathjax']
#jsmath_path = 'http://www.unc.edu/~mwemmett/jsmath/easy/load.js'

# general configuration
source_suffix  = '.rst'
master_doc     = 'index'
<commit_msg>DOCS: Use MathJax.<commit_after>#
# PyWENO documentation build configuration file
#

import os
import sys

# path to autogen'ed modules
sys.path.append(os.path.abspath('..'))

# mock out some extension modules
class Mock(object):
    def __init__(self, *args, **kwargs):
        pass

    def __call__(self, *args, **kwargs):
        return Mock()

    @classmethod
    def __getattr__(self, name):
        if name in ('__file__', '__path__'):
            return '/dev/null'
        elif name[0] == name[0].upper():
            return type(name, (), {})
        else:
            return Mock()

for mod_name in [ 'sympy', 'pyweno.codeprinters', 'pyweno.ccoeffs', 'pyweno.cweno' ]:
    sys.modules[mod_name] = Mock()

# extentions
#extensions = [ 'sphinx.ext.autodoc' ]
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.mathjax']
#extensions = ['sphinx.ext.autodoc', 'sphinx.ext.mathjax']
#jsmath_path = 'http://www.unc.edu/~mwemmett/jsmath/easy/load.js'

# general configuration
source_suffix  = '.rst'
master_doc     = 'index'

{'fraction_non_alphanumeric': 0.15730337078651685, 'fraction_numerical': 0.0019540791402051783, 'mean_word_length': 3.231404958677686, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4171717', 'n_tokens_mistral': 733, 'n_tokens_neox': 720, 'n_words': 158}