<commit_before># -*- coding: utf-8 -*-
#
# odl documentation build configuration file, created by
# sphinx-quickstart on Thu Sep 03 08:47:15 2015.
#
# 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 os
import shlex
import sphinx_rtd_theme
import odl

# -- General configuration ------------------------------------------------

# Mock modules for Read The Docs to enable autodoc
MOCK_MODULES = []
if os.environ.get('READTHEDOCS', None) == 'True':
    MOCK_MODULES += ['future', 'future.utils', 'scipy', 'scipy.linalg',
                     'numpy', 'numpy.linalg',
                     'numpy.distutils', 'scipy.interpolate', 
                     'matplotlib.pyplot',
                     'scipy.interpolate.interpnd']

if not odl.CUDA_AVAILABLE:
    MOCK_MODULES += ['odlpp', 'odlpp.odlpp_cuda']

if sys.version_info < (3, 3):
    from mock import Mock as MagicMock
else:
    from unittest.mock import MagicMock

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


sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

#add numpydoc folder
sys.path.insert(0, os.path.abspath('../sphinxext'))

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
    'sphinx.ext.autosummary',
    'sphinx.ext.autodoc',
    'sphinx.ext.viewcode',
    'sphinx.ext.pngmath',
	'sphinx.ext.intersphinx',
    'numpydoc'
]

#Intersphinx to get numpy targets
intersphinx_mapping = {'python': ('http://python.readthedocs.org/en/latest/', None),
					   'numpy': ('http://numpy.readthedocs.org/en/latest/', None),
					   'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
					   'matplotlib': ('http://matplotlib.sourceforge.net/', None)}
					   
#Stop autodoc from skipping __init__
def skip(app, what, name, obj, skip, options):
    if name.startswith('__') and name.endswith('__'):
        return False
    return skip<commit_msg>fix bug with read the docs mock<commit_after># -*- coding: utf-8 -*-
#
# odl documentation build configuration file, created by
# sphinx-quickstart on Thu Sep 03 08:47:15 2015.
#
# 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 os
import shlex
import sphinx_rtd_theme

# -- General configuration ------------------------------------------------

# Mock modules for Read The Docs to enable autodoc
def mock_modules(modules):
    if sys.version_info < (3, 3):
        from mock import Mock as MagicMock
    else:
        from unittest.mock import MagicMock

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

    sys.modules.update((mod_name, Mock()) for mod_name in modules)

if os.environ.get('READTHEDOCS', None) == 'True':
    mock_modules(['future', 'future.utils', 'scipy', 'scipy.linalg',
                  'numpy', 'numpy.linalg',
                  'numpy.distutils', 'scipy.interpolate', 
                  'matplotlib.pyplot',
                  'scipy.interpolate.interpnd',
                  'odlpp', 'odlpp.odlpp_cuda'])
          
#add numpydoc folder
sys.path.insert(0, os.path.abspath('../sphinxext'))

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
    'sphinx.ext.autosummary',
    'sphinx.ext.autodoc',
    'sphinx.ext.viewcode',
    'sphinx.ext.pngmath',
	'sphinx.ext.intersphinx',
    'numpydoc'
]

#Intersphinx to get numpy targets
intersphinx_mapping = {'python': ('http://python.readthedocs.org/en/latest/', None),
					   'numpy': ('http://numpy.readthedocs.org/en/latest/', None),
					   'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
					   'matplotlib': ('http://matplotlib.sourceforge.net/', None)}
					   
#Stop autodoc from skipping __init__
def skip(app, what, name, obj, skip, options):
    if name.startswith('__') and name.endswith('__'):
        return False
    return skip
{'fraction_non_alphanumeric': 0.1457174638487208, 'fraction_numerical': 0.007119021134593994, 'mean_word_length': 2.889273356401384, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3664330', 'n_tokens_mistral': 1540, 'n_tokens_neox': 1430, 'n_words': 405}