<commit_before>#!/bin/bash

PROJECT=$1

BASE_URL="http://image-server.$PROJECT..svc.cluster.local"


curl -sS -w '{http_code}\n' -o /tmp/content $BASE_URL/tv-thumbnail/371157ee-b120-4504-bfaf-364c15a4137c?ticket=3d2bda8b-8b7c-47e9-85ce-f42d2e4fc12d > /tmp/out

HTTP_CODE=${cat /tmp/out}

echo $HTTP_CODE

if [ $HTTP_CODE != "200" ]
then
    echo "Http response code was not 200, good case test failed"
    exit 1
fi

<commit_msg>Remember to use port 8080, fix subshell rather than substitution<commit_after>#!/bin/bash

PROJECT=$1

BASE_URL="http://image-server.$PROJECT.svc.cluster.local:8080"


curl -sS -w '%{http_code}' -o /tmp/content $BASE_URL/tv-thumbnail/371157ee-b120-4504-bfaf-364c15a4137c?ticket=3d2bda8b-8b7c-47e9-85ce-f42d2e4fc12d > /tmp/out

HTTP_CODE=$(cat /tmp/out)

echo $HTTP_CODE

if [ $HTTP_CODE != "200" ]
then
    echo "Http response code was not 200, good case test failed"
    exit 1
fi


{'fraction_non_alphanumeric': 0.14583333333333334, 'fraction_numerical': 0.10964912280701754, 'mean_word_length': 4.1875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '641356', 'n_tokens_mistral': 452, 'n_tokens_neox': 388, 'n_words': 75}