<commit_before>#!/bin/bash

# TODO: this should probably be a makefile
# TODO: install target
(
cd $(dirname "${BASH_SOURCE[0]}")
cd deps/luajit
make -j 8 'CFLAGS=-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT'
make install DESTDIR=$(pwd)
cd ../dpdk
make -j 8 install T=x86_64-native-linuxapp-gcc
modprobe uio
(lsmod | grep igb_uio > /dev/null) || insmod ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko
for id in $(tools/dpdk_nic_bind.py --status | grep -v Active | grep unused=igb_uio | cut -f 1 -d " ")
do
	tools/dpdk_nic_bind.py --bind=igb_uio $id
done
cd ../../build
cmake ..
make
)

<commit_msg>bail out if submodules are not initialized<commit_after>#!/bin/bash

# TODO: this should probably be a makefile
# TODO: install target
(
cd $(dirname "${BASH_SOURCE[0]}")
cd deps/luajit
if [[ ! -e Makefile ]]
then
	echo "ERROR: LuaJIT submodule not initialized"
	echo "Please run git submodule update --init"
	exit 1
fi
make -j 8 'CFLAGS=-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT'
make install DESTDIR=$(pwd)
cd ../dpdk
make -j 8 install T=x86_64-native-linuxapp-gcc
modprobe uio
(lsmod | grep igb_uio > /dev/null) || insmod ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko
for id in $(tools/dpdk_nic_bind.py --status | grep -v Active | grep unused=igb_uio | cut -f 1 -d " ")
do
	tools/dpdk_nic_bind.py --bind=igb_uio $id
done
cd ../../build
cmake ..
make
)


{'fraction_non_alphanumeric': 0.14075165806927045, 'fraction_numerical': 0.022844509948415623, 'mean_word_length': 3.920289855072464, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6007329', 'n_tokens_mistral': 586, 'n_tokens_neox': 549, 'n_words': 150}