<commit_before>#!/bin/bash
echo
sleep 1

if [ -d "$APPPATH" ]; then
    echo -e $GREEN"Do you want to keep the following $APPTITLE settings / data folder for reinstalling later?"$ENDCOLOR
    echo -e 'Folder to be kept: '$CYAN$APPPATH$ENDCOLOR
    read -p 'Type y/Y to keep or any other key to delete, and press [ENTER] : '
    FILEDEL=${REPLY,,}

    if [ "$FILEDEL" != "y" ] 
    then
        echo
        if [ -d "$APPPATH" ]; then
            echo -e $YELLOW"--->Deleting $APPTITLE files/folders from $CYAN$APPPATH$YELLOW..."$ENDCOLOR
            sudo rm -r $APPPATH
            echo 'OK'
        else
            echo -e $RED"--->$APPTITLE files/folders not deleted. Path not found: "$CYAN$APPPATH$ENDCOLOR
        fi
    else
        echo
        echo -e $YELLOW"--->Keeping $APPTITLE files/folders in $CYAN$APPPATH$YELLOW..."$ENDCOLOR
    fi
fi

if [ -d "$APPSETTINGSDIR" ]; then
    echo -e $GREEN"Do you want to keep the following $APPTITLE settings / data folder for reinstalling later?"$ENDCOLOR
    echo -e 'Folder to be kept: '$CYAN$APPSETTINGSDIR$ENDCOLOR
    read -p 'Type y/Y to keep or any other key to delete, and press [ENTER] : '
    FILEDEL2=${REPLY,,}

    if [ "$FILEDEL2" != "y" ] 
    then
        echo
        if [ -d "$APPSETTINGSDIR" ]; then
            echo -e $YELLOW"--->Deleting $APPTITLE files/folders from $CYAN$APPSETTINGSDIR$YELLOW..."$ENDCOLOR
            sudo rm -r $APPSETTINGSDIR
            echo 'OK'
        else
            echo -e $RED"--->$APPTITLE files/folders not deleted. Path not found: "$CYAN$APPSETTINGSDIR$ENDCOLOR
        fi
    else
        echo
        echo -e $YELLOW"--->Keeping $APPTITLE files/folders in $CYAN$APPSETTINGSDIR$YELLOW..."$ENDCOLOR
    fi
fi<commit_msg>Stopped CI deleting folders on uninstall<commit_after>#!/bin/bash
echo
sleep 1

if [[ -d $APPPATH ]] && [[ -z $CI ]]; then
    echo -e "$GREEN}Do you want to keep the following $APPTITLE \
settings / data folder for reinstalling later?$ENDCOLOR"
    echo -e "Folder to be kept: $CYAN$APPPATH$ENDCOLOR"
    read -r -p "Type y/Y to keep or any other key to delete, \
and press [ENTER] : "
    FILEDEL=${REPLY,,}

    if [[ $FILEDEL != "y" ]]; then
        echo
        if [[ -d $APPPATH ]]; then
            echo -e "$YELLOW--->Deleting $APPTITLE \
files/folders from $CYAN$APPPATH$YELLOW...$ENDCOLOR"
            sudo rm -r "$APPPATH"
            echo 'OK'
        else
            echo -e "$RED--->$APPTITLE files/folders not deleted. \
Path not found: $CYAN$APPPATH$ENDCOLOR"
        fi
    else
        echo
        echo -e "$YELLOW--->Keeping $APPTITLE files/folders in \
$CYAN$APPPATH$YELLOW...$ENDCOLOR"
    fi
fi

if [[ -d $APPSETTINGSDIR ]] && [[ -z $CI ]]; then
    echo -e "${GREEN}Do you want to keep the following \
$APPTITLE settings / data folder for reinstalling later?$ENDCOLOR"
    echo -e "Folder to be kept: $CYAN$APPSETTINGSDIR$ENDCOLOR"
    read -r -p "Type y/Y to keep or any other key to delete, \
and press [ENTER] : "
    FILEDEL2=${REPLY,,}

    if [[ $FILEDEL2 != "y" ]]; then
        echo
        if [ -d "$APPSETTINGSDIR" ]; then
            echo -e "$YELLOW--->Deleting $APPTITLE files/folders \
from $CYAN$APPSETTINGSDIR$YELLOW...$ENDCOLOR"
            sudo rm -r "$APPSETTINGSDIR"
            echo 'OK'
        else
            echo -e "$RED--->$APPTITLE files/folders not deleted. \
Path not found: $CYAN$APPSETTINGSDIR$ENDCOLOR"
        fi
    else
        echo
        echo -e "$YELLOW--->Keeping $APPTITLE files/folders in \
$CYAN$APPSETTINGSDIR$YELLOW...$ENDCOLOR"
    fi
fi
{'fraction_non_alphanumeric': 0.13320135746606335, 'fraction_numerical': 0.0016968325791855204, 'mean_word_length': 2.2810760667903525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '2805226', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1233, 'n_words': 370}