<commit_before>set -e

if [ -z "$JUMP_HOST" ]; then
  JUMP_HOST="$HOST"
else
  JUMP_HOST="-J $JUMP_HOST $HOST"
fi

FORWARDING_CONFIG=""
IFS=',' read -r -a PORTMAPPINGS <<< "${PORTS}"
for PORTMAPPING in "${PORTMAPPINGS[@]}"; do
  IFS=':' read -r -a PORTS <<< "${PORTMAPPING}"
  FORWARDING_CONFIG="${FORWARDING_CONFIG} -L 0.0.0.0:${PORTS[0]}:${HOST}:${PORTS[1]}"
done

exec ssh -T -N -oServerAliveInterval=30 -oStrictHostKeyChecking=no ${FORWARDING_CONFIG} -l ${USER} ${JUMP_HOST}
<commit_msg>Jump_host also receives the correct user.<commit_after>set -e

if [ -z "$JUMP_HOST" ]; then
  JUMP_HOST="$HOST"
else
  JUMP_HOST="-J $USER@$JUMP_HOST $HOST"
fi

FORWARDING_CONFIG=""
IFS=',' read -r -a PORTMAPPINGS <<< "${PORTS}"
for PORTMAPPING in "${PORTMAPPINGS[@]}"; do
  IFS=':' read -r -a PORTS <<< "${PORTMAPPING}"
  FORWARDING_CONFIG="${FORWARDING_CONFIG} -L 0.0.0.0:${PORTS[0]}:${HOST}:${PORTS[1]}"
done

exec ssh -T -N -oServerAliveInterval=30 -oStrictHostKeyChecking=no ${FORWARDING_CONFIG} -l ${USER} ${JUMP_HOST}

{'fraction_non_alphanumeric': 0.20570866141732283, 'fraction_numerical': 0.015748031496062992, 'mean_word_length': 5.477707006369426, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '709215', 'n_tokens_mistral': 452, 'n_tokens_neox': 423, 'n_words': 93}