<commit_before>#!/bin/sh

HOST="${HOST:-root@10.35.1.113}"

mytmp="$(mktemp -d)"
cleanup() {
	rm -fr "${mytmp}"
}
trap cleanup 0

make -C "$(dirname $0)/.."  install DESTDIR="${mytmp}" &&
	( tar -hc -C "${mytmp}"/usr/local/share/ovirt-host-deploy/interface-3 . && cat) | \
		ssh ${HOST} '( dest=/tmp/xxx && rm -fr "${dest}" && mkdir -p "${dest}" && \
			python -c "import sys, tarfile; tarfile.open(fileobj=sys.stdin, mode=\"r|\").extractall(path=\"${dest}\")" && \
			OTOPI_DEBUG=1 "${dest}"/setup "DIALOG/customization=bool:True '"$*"'" )'
echo "exit $?"
<commit_msg>tests: update default test server address<commit_after>#!/bin/sh

HOST="${HOST:-root@10.35.0.73}"

mytmp="$(mktemp -d)"
cleanup() {
	rm -fr "${mytmp}"
}
trap cleanup 0

make -C "$(dirname $0)/.."  install DESTDIR="${mytmp}" &&
	( tar -hc -C "${mytmp}"/usr/local/share/ovirt-host-deploy/interface-3 . && cat) | \
		ssh ${HOST} '( dest=/tmp/xxx && rm -fr "${dest}" && mkdir -p "${dest}" && \
			python -c "import sys, tarfile; tarfile.open(fileobj=sys.stdin, mode=\"r|\").extractall(path=\"${dest}\")" && \
			OTOPI_DEBUG=1 "${dest}"/setup "DIALOG/customization=bool:True '"$*"'" )'
echo "exit $?"

{'fraction_non_alphanumeric': 0.2721030042918455, 'fraction_numerical': 0.019742489270386267, 'mean_word_length': 3.940677966101695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4971097', 'n_tokens_mistral': 492, 'n_tokens_neox': 464, 'n_words': 91}