<commit_before>#!/bin/sh
# Fix for glance db sync fail for gmp

yum -y groupinstall "Development tools";
yum -y install gcc libgcc glibc libffi-devel libxml2-devel libxslt-devel zlib-devel bzip2-devel ncurses-devel python-devel; # openssl-devel was not working

wget https://ftp.gnu.org/gnu/gmp/gmp-6.0.0a.tar.bz2
tar -xvjpf gmp*
cd gmp*
./configure
make
make check
make install

#pip install --ignore-installed PyCrypto #shit doesn't work anymore

mkdir ~/back
mv /usr/lib64/libgmp* ~/back/
cp /usr/local/lib/libgmp* /usr/lib64/
cd ~
rm -Rf ~/gmp*<commit_msg>added symlink to custom built gmp lib<commit_after>#!/bin/sh
# Fix for glance db sync fail for gmp

yum -y groupinstall "Development tools";
yum -y install gcc libgcc glibc libffi-devel libxml2-devel libxslt-devel zlib-devel bzip2-devel ncurses-devel python-devel; # openssl-devel was not working

wget https://ftp.gnu.org/gnu/gmp/gmp-6.0.0a.tar.bz2
tar -xvjpf gmp*
cd gmp-6.0.0
./configure
make
make check
make install

#pip install --ignore-installed PyCrypto #shit doesn't work anymore

mkdir ~/back
mv /usr/lib64/libgmp* ~/back/
#cp /usr/local/lib/libgmp* /usr/lib64/
ln -s /usr/local/lib/libgmp.so.10.2.0 /usr/lib64/libgmp.so
ln -s /usr/local/lib/libgmp.so.10.2.0 /usr/lib64/libgmp.so.10
cd ~
rm -Rf ~/gmp*
{'fraction_non_alphanumeric': 0.13217938630999213, 'fraction_numerical': 0.029110936270653028, 'mean_word_length': 3.6254545454545455, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '358217', 'n_tokens_mistral': 570, 'n_tokens_neox': 519, 'n_words': 141}