<commit_before># the minimal main.py program to load the video controller, log controller.
# runs the program adhering to MVC requirements
from src.views.expanded_tk import TkWindowViewer
from src.controllers.videocontroller import VideoController
from src.controllers.logcontroller import LogController
DEBUG = True
#RUN_GUI = DEBUG

PLAY_STATUS = True
PLAY_STRING = "Play" if PLAY_STATUS else "Stop" 

def main():
    global PLAY_STATUS
    maintk = TkWindowViewer()
    maintk.play_stop_string.set(PLAY_STRING)
    # TODO: Do not hardcode this
    vc = VideoController("W:/Troy/Development/CMPUT402W16T2/videos/sample_video_3.mp4")
    lc = LogController()
    
    (frame, count) = vc.runIteration()
 
    maintk.setDisplayImg(frame)
    
    maintk.runMainloop()

if __name__ == "__main__":
    main()<commit_msg>fix the module directory. Add argparse for parsing video sourse<commit_after># the minimal main.py program to load the video controller, log controller.
# runs the program adhering to MVC requirements

import argparse
from views.expanded_tk import TkWindowViewer
from controllers.videocontroller import VideoController
from controllers.logcontroller import LogController

# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-v", "--video", type=str, help="path to the video file", required=True)
args = vars(ap.parse_args())

DEBUG = True
#RUN_GUI = DEBUG

PLAY_STATUS = True
PLAY_STRING = "Play" if PLAY_STATUS else "Stop"

def main():
    global PLAY_STATUS
    maintk = TkWindowViewer()
    maintk.play_stop_string.set(PLAY_STRING)
    # TODO: Do not hardcode this
    vc = VideoController(args["video"])
    lc = LogController()

    (frame, count) = vc.runIteration()

    maintk.setDisplayImg(frame)

    maintk.runMainloop()

if __name__ == "__main__":
    main()
{'fraction_non_alphanumeric': 0.08858695652173913, 'fraction_numerical': 0.004347826086956522, 'mean_word_length': 4.528528528528528, 'pattern_counts': {'":': 2, '<': 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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3334945', 'n_tokens_mistral': 583, 'n_tokens_neox': 556, 'n_words': 167}