<commit_before>import subprocess
import threading
import time

from core.vlcwatcher import VLCWatcher


class VLCProcess():
    def __init__(self):
        super().__init__()

        self.process = None
        self.watcher = VLCWatcher()
        self.watching_process = None

        self.vlc_path = r"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
        self.vlc_options = [
            "--one-instance",
            "--extraintf",
            "telnet",
            "--telnet-password",
            "<PASSWORD>"
        ]

        self.end_callback = None
        self.progress_callback = None

        self.stop = threading.Event()

    def register_end_callback(self, end_callback):
        """
        Registers end callback, called when VLC has been closed
        :param end_callback: function without any parameters
        """
        self.end_callback = end_callback

    def register_progress_callback(self, progress_callback):
        """
        Registers the progress callback, called periodically to inform the progress of the stream
        :param progress_callback: function taking current time and total time
        """
        self.progress_callback = progress_callback

    def play(self, episode, start_time=0.0):<commit_msg>Added french as the default subtitle language<commit_after>import subprocess
import threading
import time

from core.vlcwatcher import VLCWatcher


class VLCProcess():
    def __init__(self):
        super().__init__()

        self.process = None
        self.watcher = VLCWatcher()
        self.watching_process = None

        self.vlc_path = r"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
        self.vlc_options = [
            "--one-instance",
            "--sub-language",
            "fra",
            "--extraintf",
            "telnet",
            "--telnet-password",
            "<PASSWORD>"
        ]

        self.end_callback = None
        self.progress_callback = None

        self.stop = threading.Event()

    def register_end_callback(self, end_callback):
        """
        Registers end callback, called when VLC has been closed
        :param end_callback: function without any parameters
        """
        self.end_callback = end_callback

    def register_progress_callback(self, progress_callback):
        """
        Registers the progress callback, called periodically to inform the progress of the stream
        :param progress_callback: function taking current time and total time
        """
        self.progress_callback = progress_callback

    def play(self, episode, start_time=0.0):
{'fraction_non_alphanumeric': 0.08808692277842453, 'fraction_numerical': 0.0031043849437330227, 'mean_word_length': 2.271573604060914, 'pattern_counts': {'":': 0, '<': 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': '4701261', 'n_tokens_mistral': 706, 'n_tokens_neox': 682, 'n_words': 183}