<commit_before>#! /bin/sh
#
# This script is called after package software is removed
#

echo  "********************postrm*******************"
echo "arguments $*"
echo  "*********************************************"

# Check for debian upgrade case which calls postrm, in which we do nothing
if [ "$1" = "upgrade" ]; then
    exit 0
fi

# Check if a soft link for Framework exists, if so remove it
if [ -L "/usr/local/bin/skb-framework" ]; then
    rm /usr/local/bin/skb-framework
fi
if [ -L "/usr/local/share/man/man1/skb-framework.1" ]; then
    rm /usr/local/share/man/man1/skb-framework.1
fi

rm -fr /opt/skb/framework

if [ "`ls /opt/skb|wc -l`" == "0" ]; then
    # no more SKB software installed, remove directory, user, and group
    rmdir /opt/skb/

    if [ -e "/home/skbuser" ]; then
        echo "deleting home directory of user skbuser . . ."
        rm -fr /home/skbuser
    fi

    if getent passwd "skbuser" >/dev/null 2>&1
    then
        echo "deleting user skbuser . . ."
        userdel skbuser
    fi

    if getent group "skbuser" >/dev/null 2>&1
    then
        echo "deleting group skbuser . . ."
        groupdel skbuser
    fi
fi<commit_msg>fw: pgk fix<commit_after>#! /bin/sh
#
# This script is called after package software is removed
#

echo  "********************postrm*******************"
echo "arguments $*"
echo  "*********************************************"

# Check for debian upgrade case which calls postrm, in which we do nothing
if [ "$1" = "upgrade" ]; then
    exit 0
fi

# Check if a soft link for Framework exists, if so remove it
if [ -L "/usr/local/bin/skb-framework" ]; then
    rm /usr/local/bin/skb-framework
fi
if [ -L "/usr/local/share/man/man1/skb-framework.1" ]; then
    rm /usr/local/share/man/man1/skb-framework.1
fi

rm -fr /opt/skb/framework

if [ -d "/opt/skb" ]; then
    if [ "`ls /opt/skb|wc -l`" == "0" ]; then
        # no more SKB software installed, remove directory, user, and group
        rmdir /opt/skb/

        if [ -e "/home/skbuser" ]; then
            echo "deleting home directory of user skbuser . . ."
            rm -fr /home/skbuser
        fi

        if getent passwd "skbuser" >/dev/null 2>&1
        then
            echo "deleting user skbuser . . ."
            userdel skbuser
        fi

        if getent group "skbuser" >/dev/null 2>&1
        then
            echo "deleting group skbuser . . ."
            groupdel skbuser
        fi
    fi
fi
{'fraction_non_alphanumeric': 0.1831967213114754, 'fraction_numerical': 0.009016393442622951, 'mean_word_length': 2.330150068212824, 'pattern_counts': {'":': 0, '<': 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': '241159', 'n_tokens_mistral': 799, 'n_tokens_neox': 786, 'n_words': 260}