<commit_before>#!/bin/sh
test_begin "mp4box-lang"

$MP4BOX -add $MEDIA_DIR/auxiliary_files/subtitle.srt -add $MEDIA_DIR/auxiliary_files/enst_audio.aac -new $TEMP_DIR/file.mp4

do_test "$MP4BOX -lang all=en $TEMP_DIR/file.mp4 -out $TEMP_DIR/out.mp4" "all-2-char"
do_test "$MP4BOX -info $TEMP_DIR/out.mp4"
do_test "$MP4BOX -diso $TEMP_DIR/out.mp4 -out $TEMP_DIR/out_info.xml"

rm $TEMP_DIR/out.mp4<commit_msg>add dur to media import in lang tests<commit_after>#!/bin/sh
test_begin "mp4box-lang"

$MP4BOX -add $MEDIA_DIR/auxiliary_files/subtitle.srt:dur=1 -add $MEDIA_DIR/auxiliary_files/enst_audio.aac:dur=1 -new $TEMP_DIR/file.mp4

do_test "$MP4BOX -lang all=en $TEMP_DIR/file.mp4 -out $TEMP_DIR/out.mp4" "all-2-char"
do_test "$MP4BOX -info $TEMP_DIR/out.mp4"
do_test "$MP4BOX -diso $TEMP_DIR/out.mp4 -out $TEMP_DIR/out_info.xml"

rm $TEMP_DIR/out.mp4
{'fraction_non_alphanumeric': 0.15058823529411763, 'fraction_numerical': 0.03058823529411765, 'mean_word_length': 5.166666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3839900', 'n_tokens_mistral': 392, 'n_tokens_neox': 403, 'n_words': 66}