<commit_before>#!/bin/sh
mkdir -p m4 || exit $?
autoreconf --install || exit $?
# This code patches ltmain.sh if GNU Libtool version < 2.4.2
# so that it correctly links in OpenMP if required
command -v libtool >/dev/null 2>/dev/null
if [ $? -eq 0 ]
then
    libtool_version=$(libtool --version 2>/dev/null | head -n1 | cut -d' ' -f4)
    libtool1=$(echo $libtool_version | cut -d'.' -f1)
    libtool2=$(echo $libtool_version | cut -d'.' -f2)
    libtool3=$(echo $libtool_version | cut -d'.' -f3)
    libtool_version=$(expr $libtool1 '*' 1000000 '+' $libtool2 '*' 1000 '+' $libtool3 2>/dev/null)
    if [ "$libtool" != "" ] && [ $libtool_version -lt 2004002 ]
    then
        sed 's/|-threads)/-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)/g' ltmain.sh > ltmain2.sh
        mv -f ltmain2.sh ltmain.sh
        find . -exec touch {} \;
    fi
fi<commit_msg>Use 0 if nano is not specified<commit_after>#!/bin/sh
mkdir -p m4 || exit $?
autoreconf --install || exit $?
# This code patches ltmain.sh if GNU Libtool version < 2.4.2
# so that it correctly links in OpenMP if required
command -v libtool >/dev/null 2>/dev/null
if [ $? -eq 0 ]
then
    libtool_version=$(libtool --version 2>/dev/null | head -n1 | cut -d' ' -f4)
    libtool1=$(echo 0$libtool_version | cut -d'.' -f1)
    libtool2=$(echo 0$libtool_version | cut -d'.' -f2)
    libtool3=$(echo 0$libtool_version | cut -d'.' -f3)
    libtool_version=$(expr $libtool1 '*' 1000000 '+' $libtool2 '*' 1000 '+' $libtool3 2>/dev/null)
    if [ "$libtool" != "" ] && [ $libtool_version -lt 2004002 ]
    then
        sed 's/|-threads)/-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)/g' ltmain.sh > ltmain2.sh
        mv -f ltmain2.sh ltmain.sh
        find . -exec touch {} \;
    fi
fi
{'fraction_non_alphanumeric': 0.18098510882016036, 'fraction_numerical': 0.046964490263459335, 'mean_word_length': 2.8736141906873613, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '6756771', 'n_tokens_mistral': 739, 'n_tokens_neox': 655, 'n_words': 173}