<commit_before># Automated tests to verify your gstreamer + OpenCV installation.
# Run with ./run-tests.sh

# Test for a correct installation of gstreamer
test_gstreamer_core_elements() {
    timeout 2 gst-launch videotestsrc ! ximagesink
    [ $? -eq $timedout ]
}

# Test for our libgst-stb-tester.so gstreamer plugin.
#
test_gstreamer_can_find_templatematch() {
    gst-inspect stbt-templatematch >/dev/null<commit_msg>Fix false-pass of test_gstreamer_core_elements<commit_after># Automated tests to verify your gstreamer + OpenCV installation.
# Run with ./run-tests.sh

# Test for a correct installation of gstreamer
test_gstreamer_core_elements() {
    timeout 2 gst-launch videotestsrc num-buffers=10 ! ximagesink
}

# Test for our libgst-stb-tester.so gstreamer plugin.
#
test_gstreamer_can_find_templatematch() {
    gst-inspect stbt-templatematch >/dev/null
{'fraction_non_alphanumeric': 0.08419838523644751, 'fraction_numerical': 0.00461361014994233, 'mean_word_length': 4.748344370860927, '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': '1852178', 'n_tokens_mistral': 307, 'n_tokens_neox': 299, 'n_words': 75}