<commit_before>#!/bin/sh

DEFAULT_HOST="localhost"
DEFAULT_BASEPORT="8080"

HOST=${1:-$DEFAULT_HOST}
BASEPORT=${2:-$DEFAULT_BASEPORT}
SE="POIPROXY"

echo "$HOST"
echo "$BASEPORT"

echo "Entering FIC2Lab smoke test sequence. Vendor's validation procedure of $SE engaged. Target host:port: $HOST:$BASEPORT"

echo "Run smoke test for '$SE is up and running'"

ITEM_RESULT=`curl -s -o /dev/null -w "%{http_code}" http://localhost:8080/poiproxy/describeServices`
if [ "$ITEM_RESULT" -ne "200" ]; then
    echo "Curl command for '$SE is up and running' failed. Validation procedure terminated."
    echo "Debug information: HTTP code $ITEM_RESULT instead of expected 200 from $HOST"
    exit 1;
else
    echo "Curl command for '$SE is up and running' OK."
fi

echo "Smoke test completed. Vendor component validation procedure succeeded. Over."<commit_msg>fixed URL endpoind<commit_after>#!/bin/sh

DEFAULT_HOST="localhost"
DEFAULT_BASEPORT="8080"

HOST=${1:-$DEFAULT_HOST}
BASEPORT=${2:-$DEFAULT_BASEPORT}
SE="POIPROXY"

echo "$HOST"
echo "$BASEPORT"

echo "Entering FIC2Lab smoke test sequence. Vendor's validation procedure of $SE engaged. Target host:port: $HOST:$BASEPORT"

echo "Run smoke test for '$SE is up and running'"

ITEM_RESULT=`curl -s -o /dev/null -w "%{http_code}" http://$HOST:$BASEPORT/poiproxy/describeServices`
if [ "$ITEM_RESULT" -ne "200" ]; then
    echo "Curl command for '$SE is up and running' failed. Validation procedure terminated."
    echo "Debug information: HTTP code $ITEM_RESULT instead of expected 200 from $HOST"
    exit 1;
else
    echo "Curl command for '$SE is up and running' OK."
fi

echo "Smoke test completed. Vendor component validation procedure succeeded. Over."
{'fraction_non_alphanumeric': 0.12323943661971831, 'fraction_numerical': 0.018779342723004695, 'mean_word_length': 4.940766550522648, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2326805', 'n_tokens_mistral': 567, 'n_tokens_neox': 524, 'n_words': 193}