<commit_before>#!/bin/sh

BUILDDIR=$1
TARGETDIR=$2

rm -fr $BUILDDIR
mkdir -p $BUILDDIR
cp -r ../freeglut-2.6.0/* $BUILDDIR

cd $BUILDDIR
./configure
make clean
make

rm -fr $TARGETDIR
mkdir -p $TARGETDIR
cp $BUILDDIR/src/.libs/* $TARGETDIR/
<commit_msg>compatibility upgrade for Ubuntu 14.04 and above<commit_after>#!/bin/bash

BUILDDIR=$1
TARGETDIR=$2

rm -fr $BUILDDIR
mkdir -p $BUILDDIR
cp -r ../freeglut-2.6.0/* $BUILDDIR

cd $BUILDDIR
./configure

# Upgrades old build scripts on Ubuntu 14.04 and above
LSB_RELEASE=$(lsb_release -rs)
if [ $(echo "$LSB_RELEASE >= 14.04" | bc -l) ]; then
	echo "Upgrading build scripts for Ubuntu 14 and above..." 
	autoreconf -vif
	echo "done"
fi

make clean
make

rm -fr $TARGETDIR
mkdir -p $TARGETDIR
cp $BUILDDIR/src/.libs/* $TARGETDIR/

{'fraction_non_alphanumeric': 0.14120667522464697, 'fraction_numerical': 0.03080872913992298, 'mean_word_length': 3.727272727272727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '936198', 'n_tokens_mistral': 330, 'n_tokens_neox': 315, 'n_words': 94}