<commit_before>#!/bin/bash -xe

OUTPUT="${JOB_BASE_NAME}"-"${BUILD_NUMBER}".log

curl -u  "${LOG_ANALYZER_USER}":"${LOG_ANALYZER_PASSWORD}" "${BUILD_URL}""consoleText" >> "${OUTPUT}"
echo "Started" >> "${OUTPUT}" #Line used to indicate that this is the end of the logfile (used by Logstash)
header="s3://"
aws s3 cp "${OUTPUT}" "${header}""${LOGSTASH_BUCKET}"
rm "${OUTPUT}"<commit_msg>tests: change logstash logic<commit_after>#!/bin/bash -xe

OUTPUT=pn:"${CHANGE_ID}"-bn:"${BUILD_NUMBER}"-au:"${CHANGE_AUTHOR}".log

curl -u  "${LOG_ANALYZER_USER}":"${LOG_ANALYZER_PASSWORD}" "${BUILD_URL}""consoleText" >> "${OUTPUT}"
echo "Started" >> "${OUTPUT}" #Line used to indicate that this is the end of the logfile (used by Logstash)
header="s3://"
aws s3 cp "${OUTPUT}" "${header}""${LOGSTASH_BUCKET}"
rm "${OUTPUT}"
{'fraction_non_alphanumeric': 0.2219482120838471, 'fraction_numerical': 0.004932182490752158, 'mean_word_length': 7.371134020618556, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 11, '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': '6606306', 'n_tokens_mistral': 305, 'n_tokens_neox': 299, 'n_words': 70}