<commit_before>#!/bin/bash
set -e

function killServer () {
	kill $serverPid
}

./node_modules/.bin/webdriver-manager update # update selenium webdriver
./node_modules/.bin/gulp build # bundle the app
./node_modules/.bin/gulp server & serverPid=$! # start the web server required by protractor and save PID so that on exit gets closed

trap killServer EXIT

sleep 10 # wait for the web server to come up

# Let protractor use the default browser unless one is specified
OPTIONS="";
if [[ -n "$E2E_BROWSERS" ]]; then
	OPTIONS="--browsers=$E2E_BROWSERS";
fi

./node_modules/.bin/protractor protractor.config.js $OPTIONS<commit_msg>style: use same var syntax in shell scripts [ci skip]<commit_after>#!/bin/bash
set -e

function killServer () {
	kill $serverPid
}

./node_modules/.bin/webdriver-manager update # update selenium webdriver
./node_modules/.bin/gulp build # bundle the app
./node_modules/.bin/gulp server & serverPid=$! # start the web server required by protractor and save PID so that on exit gets closed

trap killServer EXIT

sleep 10 # wait for the web server to come up

# Let protractor use the default browser unless one is specified
OPTIONS="";
if [[ -n "${E2E_BROWSERS}" ]]; then
	OPTIONS="--browsers=${E2E_BROWSERS}";
fi

./node_modules/.bin/protractor protractor.config.js ${OPTIONS}
{'fraction_non_alphanumeric': 0.10966257668711657, 'fraction_numerical': 0.006134969325153374, 'mean_word_length': 4.392561983471074, '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': '1742186', 'n_tokens_mistral': 438, 'n_tokens_neox': 413, 'n_words': 146}