<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
"""
Shoop documentation build configuration file
"""

import sys
import os

import django

import shoop_workbench.settings


# -- Python path ----------------------------------------------------------

DOC_PATH = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, os.path.join(DOC_PATH, '_ext'))

# -- Initialize Django ----------------------------------------------------

os.environ['DJANGO_SETTINGS_MODULE'] = 'shoop_workbench.settings'

# Set USE_I18N=False to avoid warnings from import-time ugettext calls
shoop_workbench.settings.USE_I18N = False

django.setup()

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

project = 'Shoop'
copyright = '2015, Shoop Ltd.'

extensions = [<commit_msg>Counter ReadTheDocs' chdir in `conf.py`.<commit_after>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2015, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
"""
Shoop documentation build configuration file
"""

import sys
import os

import django

# -- Python path ----------------------------------------------------------

DOC_PATH = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, os.path.join(DOC_PATH, '_ext'))

try:
    import shoop_workbench
except ImportError:
    # Looks like we can't directly import the
    # workbench project from wherever we are (such as the `doc` dir;
    # see rtfd/readthedocs.org@1511716c/readthedocs/doc_builder/backends/sphinx.py#L122),
    # so try adding the parent directory (where we expect it to be) to `sys.path` first.
    sys.path.insert(0, os.path.abspath(os.path.join(DOC_PATH, '..')))
    # Right! Importing oughta work now.

import shoop_workbench.settings

# -- Initialize Django ----------------------------------------------------

os.environ['DJANGO_SETTINGS_MODULE'] = 'shoop_workbench.settings'

# Set USE_I18N=False to avoid warnings from import-time ugettext calls
shoop_workbench.settings.USE_I18N = False

django.setup()

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

project = 'Shoop'
copyright = '2015, Shoop Ltd.'

extensions = [
{'fraction_non_alphanumeric': 0.22328168454509337, 'fraction_numerical': 0.02026221692491061, 'mean_word_length': 2.393530997304582, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3979260', 'n_tokens_mistral': 771, 'n_tokens_neox': 728, 'n_words': 221}