<commit_before>#!/bin/bash

WHYIS_IMAGE="${1:-tetherlessworld/whyis:latest}"

mkdir -p test-results/py

docker run $WHYIS_IMAGE bash -c "python3 manage.py test"

#docker run $WHYIS_IMAGE bash -c "python3 manage.py test --ci &>/dev/null && tar cf test-results-py.tar test-results/py && cat test-results-py.tar" >test-results-py.tar
#
#tar xf test-results-py.tar
#
#if [ ! -f "test-results/py/results.xml" ]; then
#    exit 1
#fi
#
#cat test-results/py/results.xml
#
#if [ "$(grep -c "failure "test-results/py/results.xml)" -ge 1 ]; then
#    exit 1
#else
#    exit 0
#fi
<commit_msg>try another variant<commit_after>#!/bin/bash

WHYIS_IMAGE="${1:-tetherlessworld/whyis:latest}"

mkdir -p test-results/py

# docker run $WHYIS_IMAGE bash -c "python3 manage.py test"

#docker run $WHYIS_IMAGE bash -c "python3 manage.py test --ci &>/dev/null && tar cf test-results-py.tar test-results/py && cat test-results-py.tar" >test-results-py.tar
docker run $WHYIS_IMAGE bash -c "python3 manage.py test --ci && cat test-results/py/results.xml"

#tar xf test-results-py.tar
#
#if [ ! -f "test-results/py/results.xml" ]; then
#    exit 1
#fi
#
#cat test-results/py/results.xml
#
#if [ "$(grep -c "failure "test-results/py/results.xml)" -ge 1 ]; then
#    exit 1
#else
#    exit 0
#fi

{'fraction_non_alphanumeric': 0.1695583596214511, 'fraction_numerical': 0.011829652996845425, 'mean_word_length': 3.564748201438849, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, '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': '3778961', 'n_tokens_mistral': 520, 'n_tokens_neox': 493, 'n_words': 125}