<commit_before>#! python3
"""Read docx

Accepts a filename of a .docx file and returns a single string value of its text.

Note:
    * Example .docx files can be downloaded from http://nostarch.com/automatestuff/
"""


def getText(filename: str) -> str:
    """Get text

    Gets text from a given .docx file.

    Args:
         filename: Path to .docx file to get text from.
<commit_msg>Revert "Update P5_readDocx.py removed import for sphinx"<commit_after>#! python3
"""Read docx

Accepts a filename of a .docx file and returns a single string value of its text.

Note:
    * Example .docx files can be downloaded from http://nostarch.com/automatestuff/
"""

import docx


def getText(filename: str) -> str:
    """Get text

    Gets text from a given .docx file.

    Args:
         filename: Path to .docx file to get text from.

{'fraction_non_alphanumeric': 0.09232613908872901, 'fraction_numerical': 0.0035971223021582736, 'mean_word_length': 2.9952153110047846, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2560535', 'n_tokens_mistral': 271, 'n_tokens_neox': 263, 'n_words': 112}