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

TMP_PATH=./tmp/e2e
VERSIONS=( elasticsearch-6.3.2 elasticsearch-5.6.10 )
# VERSIONS=( elasticsearch-6.3.2 )
PID=0
ES_PID_FILE=${TMP_PATH}/pid
ES_PORT=$(cat cypress.json|grep ES_PORT|awk '{print $2}')

function testVersion {
  prepare $1
  runTests
}

function prepare {
  VERSION=$1
  downloadElasticsearch ${VERSION}
  configureElasticsearch ${VERSION}
  startElasticsearch ${VERSION}
  echo ">> $VERSION is up and running."
}

function downloadElasticsearch {
  VERSION=$1
  echo ">> Downloading $VERSION..."

  # delete possible existing folder
  rm -rf ${TMP_PATH}/${VERSION}
<commit_msg>go back to only testing one version of es<commit_after>#!/usr/bin/env bash

TMP_PATH=./tmp/e2e
# VERSIONS=( elasticsearch-6.3.2 elasticsearch-5.6.10 )
VERSIONS=( elasticsearch-6.3.2 )
PID=0
ES_PID_FILE=${TMP_PATH}/pid
ES_PORT=$(cat cypress.json|grep ES_PORT|awk '{print $2}')

function testVersion {
  prepare $1
  runTests
}

function prepare {
  VERSION=$1
  downloadElasticsearch ${VERSION}
  configureElasticsearch ${VERSION}
  startElasticsearch ${VERSION}
  echo ">> $VERSION is up and running."
}

function downloadElasticsearch {
  VERSION=$1
  echo ">> Downloading $VERSION..."

  # delete possible existing folder
  rm -rf ${TMP_PATH}/${VERSION}

{'fraction_non_alphanumeric': 0.13707165109034267, 'fraction_numerical': 0.024922118380062305, 'mean_word_length': 4.6607929515418505, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3769285', 'n_tokens_mistral': 449, 'n_tokens_neox': 446, 'n_words': 104}