<commit_before>#!/bin/sh

# user permission check
if ! [ $(id -u) = 0 ]; then
    echo "Error: GlobaLeaks install script must be runned by root"
    exit 1
fi

# if the distro version is not recognized precise is used
DISTRO_VERSION="$( lsb_release -cs )"
case ${DISTRO_VERSION} in
    precise|trusty|wheezy|jessie);;
    *) DISTRO_VERSION='precise';;
esac

if ! $(grep -q globaleaks /etc/apt/sources.list); then
  echo "deb http://deb.globaleaks.org $DISTRO_VERSION/" > /etc/apt/sources.list
fi

gpg --recv-keys --armor 24045008
gpg --export --armor 24045008 | apt-key add -

apt-get update
apt-get install globaleaks
<commit_msg>Do not overwrite /etc/apt/sources.list, fucker.<commit_after>#!/bin/sh

# user permission check
if ! [ $(id -u) = 0 ]; then
    echo "Error: GlobaLeaks install script must be runned by root"
    exit 1
fi

# if the distro version is not recognized precise is used
DISTRO_VERSION="$( lsb_release -cs )"
case ${DISTRO_VERSION} in
    precise|trusty|wheezy|jessie);;
    *) DISTRO_VERSION='precise';;
esac

if [ ! -f /etc/apt/sources.list.d/globaleaks ]; then
    echo "deb http://deb.globaleaks.org $DISTRO_VERSION/" > /etc/apt/sources.list.d/globaleaks.list
fi

gpg --recv-keys --armor 24045008
gpg --export --armor 24045008 | apt-key add -

apt-get update
apt-get install globaleaks

{'fraction_non_alphanumeric': 0.1324200913242009, 'fraction_numerical': 0.0273972602739726, 'mean_word_length': 3.6140350877192984, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1980640', 'n_tokens_mistral': 518, 'n_tokens_neox': 470, 'n_words': 138}