<commit_before>#!/bin/sh

# Author:  <NAME>
# Version: N/A
# License: Public Domain

set -e
set -x

if [ ! -d "../psi" ]
then
    git clone https://github.com/psi-im/psi.git
    mv psi ../
fi

if [ "${TARGET}" = "linux64" ]
then
    ./tests/travis-ci/build-in-ubuntu.sh
elif [ "${TARGET}" = "macos64" ]
then
    ./tests/travis-ci/build-in-macos.sh
fi

cd builddir/
make install DESTDIR="${PWD}/../out"

cd ..
echo ;
echo "Installed files:"
find out/ -type f

echo ;
echo "Check mandatory files:"
ls -alp out/usr/lib/psi/plugins/libmediaplugin.so
du -shc out/usr/lib/psi/plugins/libmediaplugin.so
<commit_msg>Travis CI: fix tests in macOS<commit_after>#!/bin/sh

# Author:  <NAME>
# Version: N/A
# License: Public Domain

set -e
set -x

if [ ! -d "../psi" ]
then
    git clone https://github.com/psi-im/psi.git
    mv psi ../
fi

if [ "${TARGET}" = "linux64" ]
then
    ./tests/travis-ci/build-in-ubuntu.sh
elif [ "${TARGET}" = "macos64" ]
then
    ./tests/travis-ci/build-in-macos.sh
fi

cd builddir/
make install DESTDIR="${PWD}/../out"

cd ..
echo ;
echo "Installed files:"
find out/ -type f

echo ;
echo "Check mandatory files:"
ls -alp out/usr/lib/psi/plugins/libmediaplugin.*
du -shc out/usr/lib/psi/plugins/libmediaplugin.*

{'fraction_non_alphanumeric': 0.18292682926829268, 'fraction_numerical': 0.0065040650406504065, 'mean_word_length': 2.8710691823899372, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6626057', 'n_tokens_mistral': 514, 'n_tokens_neox': 493, 'n_words': 121}