<commit_before>#!/bin/sh

# Pull and start Candidate service in the background
# Required to execute Voter unit tests

set -ex

git clone --depth 1 --branch build-artifacts \
    "https://github.com/garystafford/candidate-service.git"

cd candidate-service/
mv candidate-service-*.jar candidate-service.jar

nohup \
  java -Djava.security.egd=file:/dev/./urandom \
  -jar candidate-service.jar \
  > /dev/null 2>&1 &

sleep 15

curl http localhost:8097/candidates
<commit_msg>Travis CI pull and start Candidate service for unit tests<commit_after>#!/bin/sh

# Pull and start Candidate service in the background
# Required to execute Voter unit tests

set -ex

git clone --depth 1 --branch build-artifacts \
    "https://github.com/garystafford/candidate-service.git"

cd candidate-service/
mv candidate-service-*.jar candidate-service.jar

nohup \
  java -Djava.security.egd=file:/dev/./urandom \
  -jar candidate-service.jar \
  > /dev/null 2>&1 &

sleep 10

curl localhost:8097/candidates

{'fraction_non_alphanumeric': 0.11503531786074672, 'fraction_numerical': 0.018163471241170535, 'mean_word_length': 3.529680365296804, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '2816790', 'n_tokens_mistral': 345, 'n_tokens_neox': 323, 'n_words': 90}