<commit_before>export OLDPS1=$PS1
export OLDPATH=$PATH
export OLDGOPATH=$GOPATH
export OLDGOROOT=$GOROOT

export GOPATH=$(cd $(dirname ${BASH_SOURCE[0]} ) && pwd)
export GOROOT=$GOPATH/bin/go
export PS1="[go:$(basename $GOPATH)] $PS1"
export PATH=$GOPATH/bin:$PATH

alias gcd="cd $GOPATH"

GOARCHIVE="go1.4.linux-amd64.tar.gz"

deactivate() {
        export PS1=$OLDPS1
        export PATH=$OLDPATH
        export GOPATH=$OLDGOPATH
        export GOROOT=$OLDGOROOT

        unset GOPATH
        unset OLDPS1
        unalias gcd
        unset deactivate
}

#Make the bin folder
if [ ! -d $GOPATH/bin ];
then
    mkdir $GOPATH/bin
fi

#Download go
if [ ! -d $GOPATH/bin/go ];
then
    wget "https://storage.googleapis.com/golang/$GOARCHIVE" -P $GOPATH/bin
    tar -C $GOPATH/bin -xzf $GOPATH/bin/$GOARCHIVE
    rm $GOPATH/bin/$GOARCHIVE
fi

export PATH=$GOPATH/bin/go/bin:$PATH
<commit_msg>Get last version auto<commit_after>export OLDPS1=$PS1
export OLDPATH=$PATH
export OLDGOPATH=$GOPATH
export OLDGOROOT=$GOROOT

export GOPATH=$(cd $(dirname ${BASH_SOURCE[0]} ) && pwd)
export GOROOT=$GOPATH/bin/go
export PS1="[go:$(basename $GOPATH)] $PS1"
export PATH=$GOPATH/bin:$PATH

alias gcd="cd $GOPATH"

arch_output=$(uname -m)

ARCH="386"

if [ $arch_output == "x86_64" ]; then
   ARCH="amd64"
fi


GOURL=$(curl https://golang.org/dl/ 2> /dev/null | grep "linux-$ARCH.tar.gz" | head -n1 | cut -d "\"" -f4)
GOARCHIVE=$(basename $GOURL)

deactivate() {
        export PS1=$OLDPS1
        export PATH=$OLDPATH
        export GOPATH=$OLDGOPATH
        export GOROOT=$OLDGOROOT

        unset GOPATH
        unset OLDPS1
        unalias gcd
        unset deactivate
}

#Make the bin folder
if [ ! -d $GOPATH/bin ];
then
    mkdir $GOPATH/bin
fi

#Download go
if [ ! -d $GOPATH/bin/go ];
then
    wget $GOURL -P $GOPATH/bin
    tar -C $GOPATH/bin -xzf $GOPATH/bin/$GOARCHIVE
    rm $GOPATH/bin/$GOARCHIVE
fi

export PATH=$GOPATH/bin/go/bin:$PATH

{'fraction_non_alphanumeric': 0.14263565891472868, 'fraction_numerical': 0.016537467700258397, 'mean_word_length': 3.3118040089086858, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6217832', 'n_tokens_mistral': 818, 'n_tokens_neox': 790, 'n_words': 170}