<commit_before>#!/bin/sh

# new gcc (cont.)
cd ~/tmp
# svn ls svn://gcc.gnu.org/svn/gcc/tags # listar releases
svn co svn://gcc.gnu.org/svn/gcc/tags/gcc_5_3_0_release/
cd gcc_5_3_0_release/
./contrib/download_prerequisites
cd ..
mkdir gcc_build
cd gcc_build
../gcc_5_3_0_release/configure --prefix=/usr #default is /usr/local, see https://gcc.gnu.org/install/configure.html
p="$(nproc --all)"
make -j $p
make install
hash -r # forget about old gcc

# Add new libraries to linker
echo "/usr/lib64" > usrLocalLib64.conf
mv usrLocalLib64.conf /etc/ld.so.conf.d/
ldconfig

# Checks if we got new gcc
echo "Checking gcc..." >> log.txt
gcc --version >> log.txt
g++ --version >> log.txt
gfortran --version >> log.txt
which gcc >> log.txt
<commit_msg>new gcc goes to /usr/local (untested)<commit_after>#!/bin/sh

# new gcc (cont.)
cd ~/tmp
# svn ls svn://gcc.gnu.org/svn/gcc/tags # listar releases
svn co svn://gcc.gnu.org/svn/gcc/tags/gcc_5_3_0_release/
cd gcc_5_3_0_release/
./contrib/download_prerequisites
cd ..
mkdir gcc_build
cd gcc_build
../gcc_5_3_0_release/configure --prefix=/usr/local # default is /usr/local, see https://gcc.gnu.org/install/configure.html
p="$(nproc --all)"
make -j $p
make install
hash -r # forget about old gcc

# Add new libraries to linker
echo "/usr/local/lib64" > usrLocalLib64.conf
mv usrLocalLib64.conf /etc/ld.so.conf.d/
ldconfig

# Checks if we got new gcc
echo "Checking gcc..." >> log.txt
gcc --version >> log.txt
g++ --version >> log.txt
gfortran --version >> log.txt
which gcc >> log.txt

{'fraction_non_alphanumeric': 0.15364412344057782, 'fraction_numerical': 0.01969796454366382, 'mean_word_length': 3.5492537313432835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '3596335', 'n_tokens_mistral': 634, 'n_tokens_neox': 578, 'n_words': 157}