<commit_before>#!/bin/sh

LOCAL_PATH=`dirname $0`
LOCAL_PATH=`cd $LOCAL_PATH && pwd`

# Uncomment if your configure expects SDL libraries in form "libSDL_name.so"
ln -sf libsdl-1.2.so $LOCAL_PATH/../../../obj/local/armeabi/libSDL.so
ln -sf libsdl-1.2.so $LOCAL_PATH/../../../obj/local/armeabi/libpthread.so
ln -sf libsdl_mixer.so $LOCAL_PATH/../../../obj/local/armeabi/libSDL_mixer.so
ln -sf libsdl_image.so $LOCAL_PATH/../../../obj/local/armeabi/libSDL_image.so
ln -sf libsdl_ttf.so $LOCAL_PATH/../../../obj/local/armeabi/libSDL_ttf.so

if [ \! -f vcmi/Makefile -o $0 -nt vcmi/Makefile ] ; then
	../setEnvironment.sh sh -c "cd vcmi && \
	env LIBS='-lavcodec -lavutil -lavcore -lgcc' \
	./configure --host=arm-eabi --enable-static \
	--with-boost-system=boost_system \
	--with-boost-filesystem=boost_filesystem \
	--with-boost-thread=boost_thread \
	--with-boost-iostreams=boost_iostreams \
	--with-boost-program-options=boost_program_options" || { rm -f libapplication.so ; exit 1 ; }
fi
../setEnvironment.sh sh -c "cd vcmi && \
  env pkgdatadir=. \
  AM_MAKEFLAGS=pkgdatadir=. \
  make -j4 VERBOSE=1 pkgdatadir=. AM_MAKEFLAGS=pkgdatadir=." && \
cp -f vcmi/client/vcmiclient libapplication.so

rm -f $LOCAL_PATH/../../../obj/local/armeabi/libSDL.so
rm -f $LOCAL_PATH/../../../obj/local/armeabi/libpthread.so
rm -f $LOCAL_PATH/../../../obj/local/armeabi/libSDL_mixer.so
rm -f $LOCAL_PATH/../../../obj/local/armeabi/libSDL_image.so
rm -f $LOCAL_PATH/../../../obj/local/armeabi/libSDL_ttf.so<commit_msg>VCMI: fix for data path<commit_after>#!/bin/sh

LOCAL_PATH=`dirname $0`
LOCAL_PATH=`cd $LOCAL_PATH && pwd`

# Uncomment if your configure expects SDL libraries in form "libSDL_name.so"
ln -sf libsdl-1.2.so $LOCAL_PATH/../../../obj/local/armeabi/libSDL.so
ln -sf libsdl-1.2.so $LOCAL_PATH/../../../obj/local/armeabi/libpthread.so
ln -sf libsdl_mixer.so $LOCAL_PATH/../../../obj/local/armeabi/libSDL_mixer.so
ln -sf libsdl_image.so $LOCAL_PATH/../../../obj/local/armeabi/libSDL_image.so
ln -sf libsdl_ttf.so $LOCAL_PATH/../../../obj/local/armeabi/libSDL_ttf.so

if [ \! -f vcmi/Makefile -o $0 -nt vcmi/Makefile ] ; then
	../setEnvironment.sh sh -c "cd vcmi && \
	env LIBS='-lavcodec -lavutil -lavcore -lgcc' \
	./configure --host=arm-eabi --enable-static \
	--with-boost-system=boost_system \
	--with-boost-filesystem=boost_filesystem \
	--with-boost-thread=boost_thread \
	--with-boost-iostreams=boost_iostreams \
	--with-boost-program-options=boost_program_options" || { rm -f libapplication.so ; exit 1 ; }
fi
../setEnvironment.sh sh -c "cd vcmi && \
  make -j4 AM_DEFAULT_VERBOSITY=1 pkgdatadir=." && \
cp -f vcmi/client/vcmiclient libapplication.so

rm -f $LOCAL_PATH/../../../obj/local/armeabi/libSDL.so
rm -f $LOCAL_PATH/../../../obj/local/armeabi/libpthread.so
rm -f $LOCAL_PATH/../../../obj/local/armeabi/libSDL_mixer.so
rm -f $LOCAL_PATH/../../../obj/local/armeabi/libSDL_image.so
rm -f $LOCAL_PATH/../../../obj/local/armeabi/libSDL_ttf.so
{'fraction_non_alphanumeric': 0.19911804613297152, 'fraction_numerical': 0.006105834464043419, 'mean_word_length': 2.985135135135135, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2225441', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1182, 'n_words': 199}