<commit_before># -*- coding: utf-8 -*-
#
# pyrpl documentation build configuration file, created by
# sphinx-quickstart on Fri Jul 08 23:10:33 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 os
import sphinx_bootstrap_theme


# http://read-the-docs.readthedocs.org/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules
if os.environ.get('READTHEDOCS') == 'True':
    try:
        from mock import MagicMock, Mock
    except:  # python > 3.3
        from unittest.mock import MagicMock, Mock

    # must mock PyQt in order to get autodoc import running
    MOCK_MODULES = ['numpy', 'scipy', 'qtpy', 'pyqtgraph', 'pandas',
                    'asyncio', 'quamash', 'scipy.signal', 'scipy.fftpack',
                    'paramiko', 'scp']
    sys.modules.update((mod_name, MagicMock()) for mod_name in MOCK_MODULES)

    # the following code fixes various errors with mocked objects
    from qtpy import QtWidgets, QtCore
    import asyncio
    mod_cls_list = [(QtWidgets, 'QWidget'),
                    (QtWidgets, 'QLabel'),
                    (QtWidgets, 'QGroupBox'),
                    (QtWidgets, 'QLabel'),
                    (QtCore, 'QObject'),
                    (asyncio, 'Future')]
    for module, cls_name in mod_cls_list:
        # set the problematic class to a dummy class
        setattr(module, cls_name, type(cls_name, (object,), {}))
        # make sure the class appears to be in the containing module
        setattr(getattr(module, cls_name), '__module__', module)


# If extensions (or modules to document with autodoc) are in another directory,<commit_msg>2nd attempt to fix rtd build v2<commit_after># -*- coding: utf-8 -*-
#
# pyrpl documentation build configuration file, created by
# sphinx-quickstart on Fri Jul 08 23:10:33 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 os
import sphinx_bootstrap_theme


# http://read-the-docs.readthedocs.org/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules
if os.environ.get('READTHEDOCS') == 'True':
    try:
        from mock import MagicMock, Mock
    except:  # python > 3.3
        from unittest.mock import MagicMock, Mock

    # must mock PyQt in order to get autodoc import running
    MOCK_MODULES = ['numpy', 'scipy', 'qtpy', 'pyqtgraph', 'pandas',
                    'asyncio', 'quamash', 'scipy.signal', 'scipy.fftpack',
                    'paramiko', 'scp']
    sys.modules.update((mod_name, MagicMock()) for mod_name in MOCK_MODULES)

    # the following code fixes various errors with mocked objects
    from qtpy import QtWidgets, QtCore
    import asyncio
    mod_cls_list = [(QtWidgets, 'QWidget'),
                    (QtWidgets, 'QLabel'),
                    (QtWidgets, 'QGroupBox'),
                    (QtWidgets, 'QLabel'),
                    (QtCore, 'QObject'),
                    (asyncio, 'Future')]
    for module, cls_name in mod_cls_list:
        # set the problematic class to a dummy class
        setattr(module, cls_name, type(cls_name, (object,), {}))
        # make sure the class appears to be in the containing module
        setattr(getattr(module, cls_name), '__module__', module)
    import numpy
    numpy.pi = 3.14


# If extensions (or modules to document with autodoc) are in another directory,
{'fraction_non_alphanumeric': 0.10330250990752972, 'fraction_numerical': 0.009247027741083224, 'mean_word_length': 2.831983805668016, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6468511', 'n_tokens_mistral': 1185, 'n_tokens_neox': 1135, 'n_words': 377}