<commit_before>#!/bin/bash

function init() {
  ROOT_DIR="$SCRIPT_DIR/../../../.."

  local v=`cat $ROOT_DIR/version`
  export APP_JAR="$ROOT_DIR/staging/fi/hsl/parkandride/parkandride-application/$v/parkandride-application-$v.jar"

  local protractor_dir="$ROOT_DIR/etc/protractor"
  cd $protractor_dir

  npm install

  export SPRING_PROFILES_ACTIVES=psql,e2e
  export SPRING_DATASOURCE_URL=jdbc:postgresql_postGIS://dev.cvokarbgtqbl.eu-west-1.rds.amazonaws.com:5432/liipi?searchpath=liipi
}

function cleanup() {
  set +e # don't fail on cleanup errors
  bash protractor.sh stop
}

function run() {
  trap cleanup EXIT

  bash protractor.sh start
  bash protractor.sh wait_until_started
  bash protractor.sh test
  bash protractor.sh verify
}

VERBOSE="true"
source $(dirname $0)/../../main.inc<commit_msg>chore(e2e): fix active profiles name<commit_after>#!/bin/bash

function init() {
  ROOT_DIR="$SCRIPT_DIR/../../../.."

  local v=`cat $ROOT_DIR/version`
  export APP_JAR="$ROOT_DIR/staging/fi/hsl/parkandride/parkandride-application/$v/parkandride-application-$v.jar"

  local protractor_dir="$ROOT_DIR/etc/protractor"
  cd $protractor_dir

  npm install

  export SPRING_PROFILES_ACTIVE=psql,e2e
  export SPRING_DATASOURCE_URL=jdbc:postgresql_postGIS://dev.cvokarbgtqbl.eu-west-1.rds.amazonaws.com:5432/liipi?searchpath=liipi
}

function cleanup() {
  set +e # don't fail on cleanup errors
  bash protractor.sh stop
}

function run() {
  trap cleanup EXIT

  bash protractor.sh start
  bash protractor.sh wait_until_started
  bash protractor.sh test
  bash protractor.sh verify
}

VERBOSE="true"
source $(dirname $0)/../../main.inc
{'fraction_non_alphanumeric': 0.1298780487804878, 'fraction_numerical': 0.009146341463414634, 'mean_word_length': 4.451827242524917, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6331838', 'n_tokens_mistral': 663, 'n_tokens_neox': 599, 'n_words': 107}