<commit_before>#!/bin/bash
set -o errexit

if [[ $TUEFIND_FLAVOUR == "ixtheo" ]]; then
    if [ -e /var/spool/cron/root ]; then # CentOS
        root_crontab=/var/spool/cron/root
    elif [ -e /var/spool/cron/crontabs/root ]; then # Ubuntu
        root_crontab=/var/spool/cron/crontabs/root
    else
        exit 0 # There is no crontab for root.
    fi
    sed --in-place 's/"$LOG_DIR\/generate_beacon_file_relbib.log" 2>\&1/"$LOG_DIR\/generate_beacon_file_relbib.log" 2>\&1\n15 20 * * * cd "$BSZ_DATEN" \&\& "$BIN\/generate_beacon_file.py" "--filter-field=BIB" "$EMAIL" "\/usr\/local\/ub_tools\/cpp\/data\/bibstudies-beacon.header" "$VUFIND_HOME\/public\/docs\/bibstudies-beacon.txt" > "$LOG_DIR\/generate_beacon_file_bibstudies.log" 2>\&1\n45 20 * * * cd "$BSZ_DATEN" \&\& "$BIN\/generate_beacon_file.py" "--filter-field=CAN" "$EMAIL" "\/usr\/local\/ub_tools\/cpp\/data\/canonlaw-beacon.header" "$VUFIND_HOME\/public\/docs\/canonlaw-beacon.txt" > "$LOG_DIR\/generate_beacon_file_canonlaw.log" 2>\&1/g' $root_crontab<commit_msg>changes after code review<commit_after>#!/bin/bash
set -o errexit

if [[ $TUEFIND_FLAVOUR == "ixtheo" ]]; then
    if [ -e /var/spool/cron/root ]; then # CentOS
        root_crontab=/var/spool/cron/root
    elif [ -e /var/spool/cron/crontabs/root ]; then # Ubuntu
        root_crontab=/var/spool/cron/crontabs/root
    else
        exit 0 # There is no crontab for root.
    fi
    sed --in-place 's/30 20 \* \* \* cd "$BSZ_DATEN" \&\& "$BIN\/generate_beacon_file.py" "--filter-field=REL" "$EMAIL" "\/usr\/local\/ub_tools\/cpp\/data\/relbib-beacon.header" "$VUFIND_HOME\/public\/relbib_docs\/relbib-beacon.txt" > "$LOG_DIR\/generate_beacon_file_relbib.log" 2>\&1/15 20 * * * cd "$BSZ_DATEN" \&\& "$BIN\/generate_beacon_file.py" "--filter-field=REL" "$EMAIL" "\/usr\/local\/ub_tools\/cpp\/data\/relbib-beacon.header" "$VUFIND_HOME\/public\/relbib_docs\/relbib-beacon.txt" > "$LOG_DIR\/generate_beacon_file_relbib.log" 2>\&1\n30 20 * * * cd "$BSZ_DATEN" \&\& "$BIN\/generate_beacon_file.py" "--filter-field=BIB" "$EMAIL" "\/usr\/local\/ub_tools\/cpp\/data\/bibstudies-beacon.header" "$VUFIND_HOME\/public\/docs\/bibstudies-beacon.txt" > "$LOG_DIR\/generate_beacon_file_bibstudies.log" 2>\&1\n45 20 * * * cd "$BSZ_DATEN" \&\& "$BIN\/generate_beacon_file.py" "--filter-field=CAN" "$EMAIL" "\/usr\/local\/ub_tools\/cpp\/data\/canonlaw-beacon.header" "$VUFIND_HOME\/public\/docs\/canonlaw-beacon.txt" > "$LOG_DIR\/generate_beacon_file_canonlaw.log" 2>\&1/g' $root_crontab
{'fraction_non_alphanumeric': 0.20641282565130262, 'fraction_numerical': 0.016833667334669337, 'mean_word_length': 3.52994555353902, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '4797005', 'n_tokens_mistral': 1085, 'n_tokens_neox': 1023, 'n_words': 132}