<commit_before>#!/bin/bash

apt="/etc/apt"
file="sources.list"
apt_file=${apt}/${file}
backup=${apt_file}.backup

needSudo (){
    if [ $EUID -ne 0 ]; then
        echo "$0 needs sudoer priveleges to modify '${apt_file}'"
        sudo -k true || exit $?
    fi
}

updateApt (){
    sudo mv $file $apt_file && echo "apt has been updated"
}

updateBackup (){
    sudo mv $apt_file $backup && echo "Current file backed up to '$backup'" &&
    updateApt
    exit 0
}
<commit_msg>reset sudo timestamp<commit_after>#!/bin/bash

apt="/etc/apt"
file="sources.list"
apt_file=${apt}/${file}
backup=${apt_file}.backup

needSudo (){
    if [ $EUID -ne 0 ]; then
        echo "$0 needs sudoer priveleges to modify '${apt_file}'"
        sudo -k true || exit $?
    fi
}

updateApt (){
    sudo mv $file $apt_file &&
    echo "apt has been updated"
}

updateBackup (){
    sudo mv $apt_file $backup &&
    echo "Current file backed up to '$backup'"
    updateApt
    exit 0
}

{'fraction_non_alphanumeric': 0.15592515592515593, 'fraction_numerical': 0.006237006237006237, 'mean_word_length': 3.0125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3887303', 'n_tokens_mistral': 363, 'n_tokens_neox': 347, 'n_words': 100}