<commit_before>#!/bin/bash
cd /pango-install/

# Install libpng
echo 'Obtaining libpng'
wget http://downloads.sourceforge.net/libpng/libpng-1.6.29.tar.xz
tar -xf libpng-1.6.29.tar.xz
cd libpng-1.6.29

echo 'Configuring libpng'
LIBS=-lpthread ./configure --prefix=/usr --disable-static &&
make

echo 'Installing libpng'
make install &&
mkdir -v /usr/share/doc/libpng-1.6.29 &&
cp -v README libpng-manual.txt /usr/share/doc/libpng-1.6.29
cd ..

# Install Which
echo 'Obtaining Which'
wget ftp://ftp.gnu.org/gnu/which/which-2.21.tar.gz
tar -xf which-2.21.tar.gz
cd which-2.21

echo 'Configuring Which'
./configure --prefix=/usr &&
make

echo 'Installing Which'
make install
cd ..

# Install FreeType
echo 'Obtaining FreeType'
wget http://downloads.sourceforge.net/freetype/freetype-2.8.tar.bz2
tar -xf freetype-2.8.tar.bz2
cd freetype-2.8

echo 'Configuring FreeType'
sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg &&
sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \
    -i include/freetype/config/ftoption.h  &&
./configure --prefix=/usr --disable-static &&
make

echo 'Installing FreeType'
make install &&
install -v -m755 -d /usr/share/doc/freetype-2.8 &&
cp -v -R docs/*     /usr/share/doc/freetype-2.8
cd ..

# Install HarfBuzz with FreeType2
echo 'Obtaining HarfBuzz'
wget http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.4.6.tar.bz2
tar -xf harfbuzz-1.4.6.tar.bz2
cd harfbuzz-1.4.6

echo 'Configuring HarfBuzz'
./configure --prefix=/usr --with-gobject &&
make

echo 'Installing HarfBuzz'
make install
cd ..

# Reinstall FreeType2 with HarfBuzz support
echo 'Reinstalling FreeType2'
cd freetype-2.8
./configure --prefix=/usr --disable-static &&
make &&
make install &&
install -v -m755 -d /usr/share/doc/freetype-2.8 &&
cp -v -R docs/*     /usr/share/doc/freetype-2.8
cd ..

# Install Fontconfig-2
echo 'Obtaining Fontconfig'
wget http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.12.4.tar.bz2
tar -xf fontconfig-2.12.4.tar.bz2
cd fontconfig-2.12.4

echo 'Configuring Fontconfig'
rm -f src/fcobjshash.h
./configure --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --disable-docs \
            --docdir=/usr/share/doc/fontconfig-2.12.4 &&
make

echo 'Installing Fontconfig'
make install
cd ..

# install Pango-1.40
echo 'Obtaining Pango'
wget ftp://ftp.gnome.org/pub/gnome/sources/pango/1.40/pango-1.40.6.tar.xz
tar -xf pango-1.40.6.tar.xz
cd pango-1.40.6

echo 'Configuring Pango'
./configure --prefix=/usr --sysconfdir=/etc &&
make

echo 'Installing Pango'
make install

cd /
<commit_msg>Suppress large amounts of installation messages<commit_after>#!/bin/bash
cd /pango-install/

# Install libpng
echo 'Obtaining libpng'
wget --quiet http://downloads.sourceforge.net/libpng/libpng-1.6.29.tar.xz
tar -xf libpng-1.6.29.tar.xz
cd libpng-1.6.29

echo 'Configuring libpng'
LIBS=-lpthread ./configure --prefix=/usr --disable-static &&
make

echo 'Installing libpng'
make install &&
mkdir -v /usr/share/doc/libpng-1.6.29 &&
cp -v README libpng-manual.txt /usr/share/doc/libpng-1.6.29
cd ..

# Install Which
echo 'Obtaining Which'
wget --quiet ftp://ftp.gnu.org/gnu/which/which-2.21.tar.gz
tar -xf which-2.21.tar.gz
cd which-2.21

echo 'Configuring Which'
./configure --prefix=/usr &&
make

echo 'Installing Which'
make install
cd ..

# Install FreeType
echo 'Obtaining FreeType'
wget --quiet http://downloads.sourceforge.net/freetype/freetype-2.8.tar.bz2
tar -xf freetype-2.8.tar.bz2
cd freetype-2.8

echo 'Configuring FreeType'
sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg &&
sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \
    -i include/freetype/config/ftoption.h  &&
./configure --prefix=/usr --disable-static &&
make

echo 'Installing FreeType'
make install &&
install -v -m755 -d /usr/share/doc/freetype-2.8 &&
cp -v -R docs/*     /usr/share/doc/freetype-2.8
cd ..

# Install HarfBuzz with FreeType2
echo 'Obtaining HarfBuzz'
wget --quiet http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-1.4.6.tar.bz2
tar -xf harfbuzz-1.4.6.tar.bz2
cd harfbuzz-1.4.6

echo 'Configuring HarfBuzz'
./configure --prefix=/usr --with-gobject &&
make

echo 'Installing HarfBuzz'
make install
cd ..

# Reinstall FreeType2 with HarfBuzz support
echo 'Reinstalling FreeType2'
cd freetype-2.8
./configure --prefix=/usr --disable-static &&
make &&
make install &&
install -v -m755 -d /usr/share/doc/freetype-2.8 &&
cp -v -R docs/*     /usr/share/doc/freetype-2.8
cd ..

# Install Fontconfig-2
echo 'Obtaining Fontconfig'
wget --quiet http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.12.4.tar.bz2
tar -xf fontconfig-2.12.4.tar.bz2
cd fontconfig-2.12.4

echo 'Configuring Fontconfig'
rm -f src/fcobjshash.h
./configure --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --disable-docs \
            --docdir=/usr/share/doc/fontconfig-2.12.4 &&
make

echo 'Installing Fontconfig'
make install
cd ..

# install Pango-1.40
echo 'Obtaining Pango'
wget --quiet ftp://ftp.gnome.org/pub/gnome/sources/pango/1.40/pango-1.40.6.tar.xz
tar -xf pango-1.40.6.tar.xz
cd pango-1.40.6

echo 'Configuring Pango'
./configure --prefix=/usr --sysconfdir=/etc &&
make

echo 'Installing Pango'
make install

cd /

{'fraction_non_alphanumeric': 0.16111748947569843, 'fraction_numerical': 0.040566398775354, 'mean_word_length': 3.1028257456828885, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3193186', 'n_tokens_mistral': 2182, 'n_tokens_neox': 2062, 'n_words': 443}