<commit_before># -*- coding: utf-8 -*-
#
# hyperloop documentation build configuration file, created by
# sphinx-quickstart on Mon Aug  1 12:29:56 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

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))


#----------------get paths for test folders------------------------#

# EXCLUDE = []
#
# for





#------------------------begin monkeypatch-----------------------
#monkeypatch to make our docs say "Args" instead of "Parameters"
from numpydoc.docscrape_sphinx import SphinxDocString
from numpydoc.docscrape import NumpyDocString, Reader
import textwrap
numpydoc_show_class_members = False

def _parse(self):
        self._doc.reset()
        self._parse_summary()<commit_msg>test apidoc in readthedocs<commit_after># -*- coding: utf-8 -*-
#
# hyperloop documentation build configuration file, created by
# sphinx-quickstart on Mon Aug  1 12:29:56 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
from sphinx.apidoc import main


# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))


#----------------get paths for test folders------------------------#

def run_apidoc(_):
    cur_dir = os.path.abspath(os.path.dirname(__file__))
    proj_dir = os.path.join(cur_dir, '..', 'src', 'hyperloop')
    if hasattr(sys, 'real_prefix'):  # Check to see if we are in a virtualenv
        # If we are, assemble the path manually
        main(['-e', '-o', cur_dir, proj_dir])

def setup(app):
    app.connect('builder-inited', run_apidoc)


#-----------------------------------------------------------------#


#------------------------begin monkeypatch-----------------------#
#monkeypatch to make our docs say "Args" instead of "Parameters"
from numpydoc.docscrape_sphinx import SphinxDocString
from numpydoc.docscrape import NumpyDocString, Reader
import textwrap
numpydoc_show_class_members = False

def _parse(self):
        self._doc.reset()
        self._parse_summary()
{'fraction_non_alphanumeric': 0.1640193370165746, 'fraction_numerical': 0.008977900552486187, 'mean_word_length': 2.8523936170212765, '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': '6289253', 'n_tokens_mistral': 865, 'n_tokens_neox': 799, 'n_words': 313}