<commit_before>#!/usr/bin/env sh

# wait-for-service.sh

set -e

host="$1"
port="$2"

echo 'Inspecting ' $host $port

until `telnet $host $port`; do
  >&2 echo "Service is unavailable - sleeping"
  sleep 5
done

>&2 echo "Service is now up, will execute " "${@:2}"

exec "${@:2}"<commit_msg>Fixes to avoid unterminated string for entrypoint command<commit_after>#!/usr/bin/env sh

# wait-for-service.sh

set -e

host="$1"
port="$2"
cmd="${@:3}"

echo 'Inspecting ' $host $port

until `telnet $host $port`; do
  >&2 echo "Service is unavailable - sleeping"
  sleep 5
done

>&2 echo "Service is now up, will execute " $cmd

exec $cmd
{'fraction_non_alphanumeric': 0.1648177496038035, 'fraction_numerical': 0.020602218700475437, 'mean_word_length': 4.056, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3847145', 'n_tokens_mistral': 247, 'n_tokens_neox': 236, 'n_words': 79}