<commit_before># -*- coding: utf-8 -*-
#
# sacrud documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 27 15:28:02 2014.
#
# 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 shutil
import os

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if on_rtd:
    shutil.rmtree('_themes')

# Add and use Pylons theme
if 'sphinx-build' in ' '.join(sys.argv) and 'nt' not in os.name:
    from subprocess import call, Popen, PIPE

    p = Popen('which git', shell=True, stdout=PIPE)
    git = p.stdout.read().strip()
    cwd = os.getcwd()
    _themes = os.path.join(cwd, '_themes')

    call([git, 'clone', 'git://github.com/ITCase/pyramid_sacrud_example.git',
          '_pyramid_sacrud_example'])

    if not os.path.isdir(_themes):
        call([git, 'clone', 'git://github.com/ITCase/itcase_sphinx_theme.git',
              '_themes'])
    else:
        os.chdir(_themes)
        call([git, 'checkout', 'master'])
        call([git, 'pull'])
        os.chdir(cwd)

    sys.path.append(os.path.abspath('_themes'))

    parent = os.path.dirname(os.path.dirname(__file__))
    sys.path.append(os.path.abspath(parent))
    wd = os.getcwd()
    os.chdir(parent)
    os.chdir(wd)
<commit_msg>fix theme in docs/conf.py<commit_after># -*- coding: utf-8 -*-
#
# sacrud documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 27 15:28:02 2014.
#
# 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 shutil
import os

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if on_rtd and os.path.exists('_themes'):
    shutil.rmtree('_themes')

# Add and use Pylons theme
if 'sphinx-build' in ' '.join(sys.argv) and 'nt' not in os.name:
    from subprocess import call, Popen, PIPE

    p = Popen('which git', shell=True, stdout=PIPE)
    git = p.stdout.read().strip()
    cwd = os.getcwd()
    _themes = os.path.join(cwd, '_themes')

    call([git, 'clone', 'git://github.com/ITCase/pyramid_sacrud_example.git',
          '_pyramid_sacrud_example'])

    if not os.path.isdir(_themes):
        call([git, 'clone', 'git://github.com/ITCase/itcase_sphinx_theme.git',
              '_themes'])
    else:
        os.chdir(_themes)
        call([git, 'checkout', 'master'])
        call([git, 'pull'])
        os.chdir(cwd)

    sys.path.append(os.path.abspath('_themes'))

    parent = os.path.dirname(os.path.dirname(__file__))
    sys.path.append(os.path.abspath(parent))
    wd = os.getcwd()
    os.chdir(parent)
    os.chdir(wd)

{'fraction_non_alphanumeric': 0.14006734006734006, 'fraction_numerical': 0.008754208754208754, 'mean_word_length': 3.2809798270893373, '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': '3041150', 'n_tokens_mistral': 1077, 'n_tokens_neox': 1022, 'n_words': 267}