<commit_before>#!/usr/bin/env python
import os
import sys

# Modules of the current program.
import data_manager
import ui


def separator():
    print("-" * 70)


def main():
    """
    Handle the functionality of the program.
    Support the selectable menu with an options.
    """
    os.system("clear")
    print(ui.print_menu())

    while True:
        separator()
        choice = input("Choose an option: ")

        if choice == "1":
            os.system("clear")
            separator()

        elif choice == "2":
            os.system("clear")
            separator()

        elif choice == "3":
            os.system("clear")
            separator()

        elif choice == "4":
            os.system("clear")
            separator()

        elif choice == "5":
            os.system("clear")
            separator()

        # SECRET OPTION: Display the full content table in the console.
        elif choice == "666":
            os.system("clear")

            headers = ["Województwo", "Powiat", "Gmina", "<NAME>", "Nazwa", "Typ"]

            file_content = data_manager.csv_reader("malopolska.csv")
            print(ui.print_table(headers, file_content))

        # Exit from the program.
        elif choice == "0":
            separator()
            sys.exit()

        else:
            os.system("clear")
            separator()
            print("Wrong number or invalid sign!\nPlease type the proper number")
            separator()
            print(ui.print_menu())

if __name__ == "__main__":
    main()

    # Automaticly convert the content from the file to the list of objects.
    file_content = data_manager.csv_reader("malopolska.csv")
    data_manager.table_converter(file_content)<commit_msg>Finalize menu option (1) in the main.py module by calling the respective method from statistics.py<commit_after>#!/usr/bin/env python
import os
import sys

# Modules of the current program.
import data_manager
import ui
from statistics import *


def main():
    """
    Handle the functionality of the program.
    Support the selectable menu with an options.
    """
    os.system("clear")
    print(ui.print_menu())

    while True:
        ui.separator()
        choice = input("Choose an option: ")

        if choice == "1":
            os.system("clear")
            ui.separator()

            header = ["", "MAŁOPOLSKIE"]

            LocationList().list_statistics()

        elif choice == "2":
            os.system("clear")
            ui.separator()

        elif choice == "3":
            os.system("clear")
            ui.separator()

        elif choice == "4":
            os.system("clear")
            ui.separator()

        elif choice == "5":
            os.system("clear")
            ui.separator()

        # SECRET OPTION: Display the full content of the dynamic table in the console.
        elif choice == "666":
            os.system("clear")

            headers = ["Województwo", "Powiat", "Gmina", "<NAME>", "Nazwa", "Typ"]

            print(ui.print_table(headers, raw_file_content))

        # Exit from the program with a random greetings.
        elif choice == "0":
            ui.separator()
            print(ui.random_greetings())
            ui.separator()
            sys.exit()

        else:
            os.system("clear")
            ui.separator()
            print(ui.Color.RED + "Wrong number or invalid sign!\nPlease type the proper number" + ui.Color.END)
            ui.separator()
            print(ui.print_menu())

if __name__ == "__main__":
    # 1st step: Invoke reading the content from the following CSV file.
    raw_file_content = data_manager.csv_reader("malopolska.csv")
    # 2nd step: Invoke converting the file's content to the list of objects.
    data_manager.table_converter(raw_file_content)

    main()
{'fraction_non_alphanumeric': 0.11755444765153503, 'fraction_numerical': 0.0060351613749672, 'mean_word_length': 1.9665369649805446, 'pattern_counts': {'":': 16, '<': 5, '<?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': '384489', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1035, 'n_words': 305}