<commit_before>#!/usr/bin/env bash
set -Eeuo pipefail

if [ "${CIRCLE_BRANCH}" == "master" ] ; then
    author=${CIRCLE_USERNAME}
    author=${author/fm3/<@florian>}
    author=${author/jstriebel/<@jonathan>}
    author=${author/daniel-wer/<@daniel>}
    author=${author/georgwiese/<@georg>}
    author=${author/hotzenklotz/<@tom>}
    author=${author/jfrohnhofen/<@johannes>}
    author=${author/MichaelBuessemeyer/<@michael>}
    author=${author/normanrz/<@norman>}
    author=${author/philippotto/<@philipp>}
    author=${author/rschwanhold/<@robert>}
    author=${author/tmbo/<@tmbo>}
    author=${author/valentin-pinkau/<@valentin>}
    author=${author/youri-k/<@youri>}
    author=${author/Dagobert42/<@<NAME>>}
    channel="webknossos-bots"
    commitmsg="$(git log --format=%s -n 1)"
    pullregex="(.*)#([0-9]+)(.*)"
    while [[ "$commitmsg" =~ $pullregex ]]
    do
        commitmsg="${BASH_REMATCH[1]}#<https://github.com/scalableminds/webknossos/issues/${BASH_REMATCH[2]}|${BASH_REMATCH[2]}>${BASH_REMATCH[3]}"
    done
    buildlink="<https://circleci.com/gh/scalableminds/webknossos/${CIRCLE_BUILD_NUM}|${CIRCLE_BUILD_NUM}>"
    mesg="${author} your ${CIRCLE_BRANCH} build ${buildlink} “${commitmsg}” is almost finished."
    user="circleci-notify"
    token="${SLACK_NOTIFY_TOKEN:-}"
    res=$(curl -s \
        -X POST \
        -d "token=${token}" \<commit_msg>Fix slack notification for arthur (#6117)<commit_after>#!/usr/bin/env bash
set -Eeuo pipefail

if [ "${CIRCLE_BRANCH}" == "master" ] ; then
    author=${CIRCLE_USERNAME}
    author=${author/fm3/<@florian>}
    author=${author/jstriebel/<@jonathan>}
    author=${author/daniel-wer/<@daniel>}
    author=${author/georgwiese/<@georg>}
    author=${author/hotzenklotz/<@tom>}
    author=${author/jfrohnhofen/<@johannes>}
    author=${author/MichaelBuessemeyer/<@michael>}
    author=${author/normanrz/<@norman>}
    author=${author/philippotto/<@philipp>}
    author=${author/rschwanhold/<@robert>}
    author=${author/tmbo/<@tmbo>}
    author=${author/valentin-pinkau/<@valentin>}
    author=${author/youri-k/<@youri>}
    author=${author/Dagobert42/<@Arthur>}
    channel="webknossos-bots"
    commitmsg="$(git log --format=%s -n 1)"
    pullregex="(.*)#([0-9]+)(.*)"
    while [[ "$commitmsg" =~ $pullregex ]]
    do
        commitmsg="${BASH_REMATCH[1]}#<https://github.com/scalableminds/webknossos/issues/${BASH_REMATCH[2]}|${BASH_REMATCH[2]}>${BASH_REMATCH[3]}"
    done
    buildlink="<https://circleci.com/gh/scalableminds/webknossos/${CIRCLE_BUILD_NUM}|${CIRCLE_BUILD_NUM}>"
    mesg="${author} your ${CIRCLE_BRANCH} build ${buildlink} “${commitmsg}” is almost finished."
    user="circleci-notify"
    token="${SLACK_NOTIFY_TOKEN:-}"
    res=$(curl -s \
        -X POST \
        -d "token=${token}" \
{'fraction_non_alphanumeric': 0.21500358937544867, 'fraction_numerical': 0.008614501076812634, 'mean_word_length': 4.339080459770115, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 36, 'https://': 4, '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': '3806094', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1102, 'n_words': 115}