<commit_before>"""Caesar Hacker improved.

Rewritten as function for importing.

Note:
    Contains spoilers from Chapter 6 (caesarHacker) and Chapter 7 (functions)
"""

from books.CrackingCodesWithPython.Chapter01.config import SYMBOLS


def hackCaesar(message: str) -> str:
    """Hacks caesar cipher.

    Loops through and displays every possible key.

    Args:
        message: Message to be decrypted.

    Returns:
        Prints each decryption with every possible key.
    """

    # Loop through every possible key:<commit_msg>Update Chapter01/caesarHacker.py changed docstring return to None<commit_after>"""Caesar Hacker improved.

Rewritten as function for importing.

Note:
    Contains spoilers from Chapter 6 (caesarHacker) and Chapter 7 (functions)
"""

from books.CrackingCodesWithPython.Chapter01.config import SYMBOLS


def hackCaesar(message: str) -> None:
    """Hacks caesar cipher.

    Loops through and displays every possible key.

    Args:
        message: Message to be decrypted.

    Returns:
        Prints each decryption with every possible key.
    """

    # Loop through every possible key:
{'fraction_non_alphanumeric': 0.07263064658990256, 'fraction_numerical': 0.008857395925597875, 'mean_word_length': 3.466403162055336, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1367668', 'n_tokens_mistral': 343, 'n_tokens_neox': 307, 'n_words': 117}