<commit_before>import os

import ramrod

project = u'stix-ramrod'
copyright = u'2015, The MITRE Corporation'
version = ramrod.__version__
release = version

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.doctest',
    'sphinx.ext.intersphinx',
    'sphinx.ext.todo',
    'sphinx.ext.coverage',
    'sphinxcontrib.napoleon',
]

intersphinx_mapping = {'http://docs.python.org/': None}

templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'

rst_prolog = """
**Version**: {}
""".format(release)

exclude_patterns = [
    '_build',
    '_includes',
    'updates/cybox/cybox*.rst',
    'updates/stix/stix*.rst'
]

pygments_style = 'sphinx'

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd:  # only import and set the theme if we're building docs locally
    import sphinx_rtd_theme
    html_theme = 'sphinx_rtd_theme'
    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
else:
    html_theme = 'default'

latex_elements = {}
latex_documents = [
  ('index', 'stix-ramrod.tex', u'stix-ramrod Documentation',
   u'The MITRE Corporation', 'manual'),
]<commit_msg>Fix zero-length field error when building docs in Python 2.6<commit_after>import os

import ramrod

project = u'stix-ramrod'
copyright = u'2015, The MITRE Corporation'
version = ramrod.__version__
release = version

extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.doctest',
    'sphinx.ext.intersphinx',
    'sphinx.ext.todo',
    'sphinx.ext.coverage',
    'sphinxcontrib.napoleon',
]

intersphinx_mapping = {'http://docs.python.org/': None}

templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'

rst_prolog = """
**Version**: {0}
""".format(release)

exclude_patterns = [
    '_build',
    '_includes',
    'updates/cybox/cybox*.rst',
    'updates/stix/stix*.rst'
]

pygments_style = 'sphinx'

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd:  # only import and set the theme if we're building docs locally
    import sphinx_rtd_theme
    html_theme = 'sphinx_rtd_theme'
    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
else:
    html_theme = 'default'

latex_elements = {}
latex_documents = [
  ('index', 'stix-ramrod.tex', u'stix-ramrod Documentation',
   u'The MITRE Corporation', 'manual'),
]
{'fraction_non_alphanumeric': 0.14636283961437335, 'fraction_numerical': 0.004820333041191937, 'mean_word_length': 4.284722222222222, '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': '2913551', 'n_tokens_mistral': 893, 'n_tokens_neox': 852, 'n_words': 166}