<commit_before>#!/bin/sh

. ${BUILDPACK_TEST_RUNNER_HOME}/lib/test_utils.sh

GRAILS_TEST_CACHE="/tmp/grails_test_cache"
DEFAULT_GRAILS_VERSION="1.3.7"
DEFAULT_JETTY_RUNNER_VERSION="7.5.4.v20111024"
DEFAULT_WEBAPP_RUNNER_VERSION="172.16.17.32"

installGrails()
{
  local grailsVersion=${1:-${DEFAULT_GRAILS_VERSION}}
  local grailsUrl="http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-${grailsVersion}.zip"

  if [ ! -d ${GRAILS_TEST_CACHE}/${grailsVersion}/.grails ]; then
    mkdir -p ${GRAILS_TEST_CACHE}/${grailsVersion}
    pwd="$(pwd)"
    cd ${GRAILS_TEST_CACHE}/${grailsVersion}<commit_msg>Upgrade default Grails version for tests to 2.2.1<commit_after>#!/bin/sh

. ${BUILDPACK_TEST_RUNNER_HOME}/lib/test_utils.sh

GRAILS_TEST_CACHE="/tmp/grails_test_cache"
DEFAULT_GRAILS_VERSION="2.2.1"
DEFAULT_JETTY_RUNNER_VERSION="7.5.4.v20111024"
DEFAULT_WEBAPP_RUNNER_VERSION="172.16.17.32"

installGrails()
{
  local grailsVersion=${1:-${DEFAULT_GRAILS_VERSION}}
  local grailsUrl="http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-${grailsVersion}.zip"

  if [ ! -d ${GRAILS_TEST_CACHE}/${grailsVersion}/.grails ]; then
    mkdir -p ${GRAILS_TEST_CACHE}/${grailsVersion}
    pwd="$(pwd)"
    cd ${GRAILS_TEST_CACHE}/${grailsVersion}
{'fraction_non_alphanumeric': 0.16169544740973313, 'fraction_numerical': 0.041601255886970175, 'mean_word_length': 6.244318181818182, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1509057', 'n_tokens_mistral': 553, 'n_tokens_neox': 520, 'n_words': 48}