<commit_before>#!/bin/sh

HOST="localhost"
PORT="81"

echo "Entering FIC2Lab smoke test sequence. Vendor's validation procedure of the POI Data Provider GE engaged. Target host: $HOST:$PORT"

# run a radial search on the webservice
RETCODE=$(curl --max-time 5 -o /dev/null -sw '%{http_code}' "$HOST:$PORT/radial_search.php?lat=0&lon=0")

# get return code of command: 200 is ok, anything else is an error
if [ "$RETCODE" = "200" ]; then
	echo "Curl command for POI GE Data Provider is OK."
else
	echo "Curl command for POI GE Data Provider failed. Validation procedure terminated."
	echo "Debug information: HTTP code $RETCODE instead of expected 200 from SHOST"
	exit 1;<commit_msg>added parameters to test.sh ip port<commit_after>#!/bin/sh

# How to use: ./test.sh HOST PORT
HOST=$1
PORT=$2
[ "$HOST" ] || HOST="localhost"
[ "$PORT" ] || PORT="8000"

echo "Entering FIC2Lab smoke test sequence. Vendor's validation procedure of the POI Data Provider GE engaged. Target host: $HOST:$PORT"

# run a radial search on the webservice
RETCODE=$(curl --max-time 5 -o /dev/null -sw '%{http_code}' "$HOST:$PORT/radial_search.php?lat=0&lon=0")

# get return code of command: 200 is ok, anything else is an error
if [ "$RETCODE" = "200" ]; then
	echo "Curl command for POI GE Data Provider is OK."
else
	echo "Curl command for POI GE Data Provider failed. Validation procedure terminated."
	echo "Debug information: HTTP code $RETCODE instead of expected 200 from SHOST"
	exit 1;
{'fraction_non_alphanumeric': 0.11700680272108843, 'fraction_numerical': 0.024489795918367346, 'mean_word_length': 4.550943396226415, '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': '2430426', 'n_tokens_mistral': 510, 'n_tokens_neox': 456, 'n_words': 196}