<commit_before>#!/usr/bin/env bash

set -e -u -o pipefail

source $(dirname "$0")/common.sh

VERSION=$(cat jprofiler-archives/version)

INDEX_PATH_BIONIC="/jprofiler/bionic/x86_64/index.yml"
INDEX_PATH_TRUSTY="/jprofiler/trusty/x86_64/index.yml"
UPLOAD_PATH_BIONIC="/jprofiler/bionic/x86_64/jprofiler-$VERSION.so"
UPLOAD_PATH_TRUSTY="/jprofiler/trusty/x86_64/jprofiler-$VERSION.so"

tar xzf "jprofiler-archives/jprofiler_linux_*.tar.gz"

transfer_to_s3 'jprofiler*/bin/linux-x64/libjprofilerti.so' $UPLOAD_PATH_TRUSTY
transfer_to_s3 'jprofiler*/bin/linux-x64/libjprofilerti.so' $UPLOAD_PATH_BIONIC
update_index $INDEX_PATH_BIONIC $VERSION $UPLOAD_PATH_BIONIC
update_index $INDEX_PATH_TRUSTY $VERSION $UPLOAD_PATH_TRUSTY
invalidate_cache $INDEX_PATH_BIONIC $UPLOAD_PATH_BIONIC $INDEX_PATH_TRUSTY $UPLOAD_PATH_TRUSTY
<commit_msg>Polishing<commit_after>#!/usr/bin/env bash

set -e -u -o pipefail

source $(dirname "$0")/common.sh

VERSION=$(cat jprofiler-archives/version)

INDEX_PATH_BIONIC="/jprofiler/bionic/x86_64/index.yml"
INDEX_PATH_TRUSTY="/jprofiler/trusty/x86_64/index.yml"
UPLOAD_PATH_BIONIC="/jprofiler/bionic/x86_64/jprofiler-$VERSION.so"
UPLOAD_PATH_TRUSTY="/jprofiler/trusty/x86_64/jprofiler-$VERSION.so"

tar xzf jprofiler-archives/jprofiler_linux_*.tar.gz

transfer_to_s3 'jprofiler*/bin/linux-x64/libjprofilerti.so' $UPLOAD_PATH_TRUSTY
transfer_to_s3 'jprofiler*/bin/linux-x64/libjprofilerti.so' $UPLOAD_PATH_BIONIC
update_index $INDEX_PATH_BIONIC $VERSION $UPLOAD_PATH_BIONIC
update_index $INDEX_PATH_TRUSTY $VERSION $UPLOAD_PATH_TRUSTY
invalidate_cache $INDEX_PATH_BIONIC $UPLOAD_PATH_BIONIC $INDEX_PATH_TRUSTY $UPLOAD_PATH_TRUSTY

{'fraction_non_alphanumeric': 0.11529126213592233, 'fraction_numerical': 0.027912621359223302, 'mean_word_length': 8.11049723756906, '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': '4839445', 'n_tokens_mistral': 736, 'n_tokens_neox': 753, 'n_words': 76}