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

alluxio_version=`grep version /alluxio/pom.xml | \
                 head -n2 | tr -d ' '          | \
		 sed 1d			       | \
                 sed 's/<version>//g'          | \
                 sed 's/<\/version>//g'`

grep "ALLUXIO_JAR" /alluxio/libexec/alluxio-config.sh | grep "alluxio-assemblies"

if [[ "$?" == "0" ]]; then
  sed -i "s/alluxio-assemblies-.*-jar-with-dependencies.jar/alluxio-assemblies-${alluxio_version}-jar-with-dependencies.jar/g" /alluxio/libexec/alluxio-config.sh
else
  # Back compatibility
  sed -i "s/alluxio-.*-jar-with-dependencies.jar/alluxio-${alluxio_version}-jar-with-dependencies.jar/g" /alluxio/libexec/alluxio-config.sh
fi<commit_msg>made fix more robust based on PR comments<commit_after>#!/usr/bin/env bash

alluxio_version=$(sed -n -e "s/^.*<version>\(.*\)<\/version>.*$/\1/p" < /alluxio/pom.xml | head -1)

grep "ALLUXIO_JAR" /alluxio/libexec/alluxio-config.sh | grep "alluxio-assemblies"

if [[ "$?" == "0" ]]; then
  sed -i "s/alluxio-assemblies-.*-jar-with-dependencies.jar/alluxio-assemblies-${alluxio_version}-jar-with-dependencies.jar/g" /alluxio/libexec/alluxio-config.sh
else
  # Back compatibility
  sed -i "s/alluxio-.*-jar-with-dependencies.jar/alluxio-${alluxio_version}-jar-with-dependencies.jar/g" /alluxio/libexec/alluxio-config.sh
fi
{'fraction_non_alphanumeric': 0.18462697814619441, 'fraction_numerical': 0.00452147701582517, 'mean_word_length': 3.0242424242424244, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1460476', 'n_tokens_mistral': 553, 'n_tokens_neox': 527, 'n_words': 70}