<commit_before>#!/usr/bin/env bash
set -x
set -e

[[ -z ${SERVICE_NAME} ]] && exit 1

DEPLOY_HOST=admin1.lga2.collective-media.net
JAR_PATH="./${SERVICE_NAME}/build/libs/${SERVICE_NAME}-0.1.jar"
SERVICE_USER="celos-ci"
DEST_PATH="/home/celos-ci/local/lib/"

./gradlew clean test "${SERVICE_NAME}:jar"

ansible all -i "${DEPLOY_HOST}," -u "${SERVICE_USER}" -m command -a "mkdir -p ${DEST_PATH}"
ansible all -i "${DEPLOY_HOST}," -u "${SERVICE_USER}" -m copy -a "src=${JAR_PATH} dest=${DEST_PATH}"
ansible all -i "${DEPLOY_HOST}," -u "${SERVICE_USER}" -m command -a "sv restart ${SERVICE_NAME}"

# sleep 0.5
#curl http://localhost:8080 | diff - test.tmp
<commit_msg>Check jenkins Project celos-runit.test. Next try.<commit_after>#!/usr/bin/env bash
set -x
set -e

[[ -z ${SERVICE_NAME} ]] && exit 1

DEPLOY_HOST=admin1.lga2.collective-media.net
JAR_PATH="./${SERVICE_NAME}/build/libs/${SERVICE_NAME}-0.1.jar"
SERVICE_USER="celos-ci"
DEST_PATH="/home/celos-ci/local/lib/"

./gradlew clean test "${SERVICE_NAME}:jar"

mkdir -p ${DEST_PATH}
cp -f ${JAR_PATH} ${DEST_PATH}
/sbin/sv restart ${SERVICE_NAME}

#ansible all -i "${DEPLOY_HOST}," -u "${SERVICE_USER}" -m command -a "mkdir -p ${DEST_PATH}"
#ansible all -i "${DEPLOY_HOST}," -u "${SERVICE_USER}" -m copy -a "src=${JAR_PATH} dest=${DEST_PATH}"
#ansible all -i "${DEPLOY_HOST}," -u "${SERVICE_USER}" -m command -a "sv restart ${SERVICE_NAME}"

# sleep 0.5
#curl http://localhost:8080 | diff - test.tmp

{'fraction_non_alphanumeric': 0.20730027548209368, 'fraction_numerical': 0.015151515151515152, 'mean_word_length': 4.698039215686275, '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': '766488', 'n_tokens_mistral': 610, 'n_tokens_neox': 599, 'n_words': 133}