<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# PyAbel documentation build configuration file, created by
# sphinx-quickstart on Wed Jan 13 17:11:12 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import six
import os
import shlex

from recommonmark.parser import CommonMarkParser

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))

# Scipy and Numpy packages cannot be installed in on readthedocs.org
# https://read-the-docs.readthedocs.org/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules
if six.PY3:
    from unittest.mock import MagicMock
else:
    from mock import Mock as MagicMock

class Mock(MagicMock):
    @classmethod
    def __getattr__(cls, name):
            return Mock()

MOCK_MODULES = ['numpy', 'scipy']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)



source_parsers = {
    '.md': CommonMarkParser,
}<commit_msg>Mocking a few more numpy/scipy related imports in Sphinx<commit_after>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# PyAbel documentation build configuration file, created by
# sphinx-quickstart on Wed Jan 13 17:11:12 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import six
import os
import shlex

from recommonmark.parser import CommonMarkParser

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))

# Scipy and Numpy packages cannot be installed in on readthedocs.org
# https://read-the-docs.readthedocs.org/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules
if six.PY3:
    from unittest.mock import MagicMock
else:
    from mock import Mock as MagicMock

class Mock(MagicMock):
    @classmethod
    def __getattr__(cls, name):
            return Mock()

MOCK_MODULES = ['numpy', 'scipy', 'scipy.special', 'numpy.linalg', 'scipy.ndimage', 
        'scipy.linalg', 'scipy.integrate']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)



source_parsers = {
    '.md': CommonMarkParser,
}
{'fraction_non_alphanumeric': 0.0974853599724423, 'fraction_numerical': 0.011023079572855667, 'mean_word_length': 4.139823008849557, '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': '2296819', 'n_tokens_mistral': 937, 'n_tokens_neox': 899, 'n_words': 323}