<commit_before>import threading
import cv2
import subprocess
import os

ffmpeg = "c:\\winprogs\\ffmpeg\\bin\\ffmpeg.exe"

class VideoInput(threading.Thread):
    def __init__(self, device, subject_id, trial_name):
        threading.Thread.__init__(self)

        self.stop = threading.Event()
        self.recording = threading.Event()
        self.stopped = threading.Event()

        self.device = device
        self.filename = 'output-' + str(subject_id) + '-' + trial_name + '.avi'
        self.mirror = False

    def run(self):
        self.open()

        while not self.stop.is_set():
            ret, frame = self.device.read()
            if ret == True:
                if self.mirror:
                    frame = cv2.flip(frame, 1)
                self.out.write(frame)
<commit_msg>update ffmpeg path<commit_after>import threading
import cv2
import subprocess
import os

ffmpeg = "c:\\ffmpeg\\bin\\ffmpeg.exe"

class VideoInput(threading.Thread):
    def __init__(self, device, subject_id, trial_name):
        threading.Thread.__init__(self)

        self.stop = threading.Event()
        self.recording = threading.Event()
        self.stopped = threading.Event()

        self.device = device
        self.filename = 'output-' + str(subject_id) + '-' + trial_name + '.avi'
        self.mirror = False

    def run(self):
        self.open()

        while not self.stop.is_set():
            ret, frame = self.device.read()
            if ret == True:
                if self.mirror:
                    frame = cv2.flip(frame, 1)
                self.out.write(frame)

{'fraction_non_alphanumeric': 0.12113564668769716, 'fraction_numerical': 0.0037854889589905363, 'mean_word_length': 2.032504780114723, 'pattern_counts': {'":': 0, '<': 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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '341401', 'n_tokens_mistral': 505, 'n_tokens_neox': 482, 'n_words': 104}