<commit_before>#!/usr/bin/env bash
sudo apt-get update
sudo apt-get install -y git make mongodb openjdk-7-jre-headless g++ isc-dhcp-server ipxe tftp tftpd curl

#Configure tftpd
[ ! -d /tftpboot ] && sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot

sudo cp /vagrant/tftp /etc/xinetd.d/tftp
sudo service xinetd reload

#Copy ipxe files to tftpboot
cp -r /usr/lib/ipxe/* /tftpboot

#Patch general.h
cd ~
git clone git://git.ipxe.org/ipxe.git
wget https://gist.githubusercontent.com/jcpowermac/7cc13ce51816ce5222f4/raw/4384911a921a732e0b85d28ff3485fe18c092ffd/image_comboot.patch
patch -p0 < image_comboot.patch
rm image_comboot.patch

# Install pxelinux
wget https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.02.tar.gz
tar -zxvf syslinux-6.02.tar.gz --strip-components 3 -C /tftpboot syslinux-6.02/bios/core/pxelinux.0
tar -zxvf syslinux-6.02.tar.gz --strip-components 4 -C /tftpboot syslinux-6.02/bios/com32/menu/menu.c32
<commit_msg>Add zlib1g-dev to the list of prereq packages<commit_after>#!/usr/bin/env bash
sudo apt-get update
sudo apt-get install -y git make mongodb openjdk-7-jre-headless g++ isc-dhcp-server ipxe tftp tftpd curl zlib1g-dev

#Configure tftpd
[ ! -d /tftpboot ] && sudo mkdir /tftpboot
sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot

sudo cp /vagrant/tftp /etc/xinetd.d/tftp
sudo service xinetd reload

#Copy ipxe files to tftpboot
cp -r /usr/lib/ipxe/* /tftpboot

#Patch general.h
cd ~
git clone git://git.ipxe.org/ipxe.git
wget https://gist.githubusercontent.com/jcpowermac/7cc13ce51816ce5222f4/raw/4384911a921a732e0b85d28ff3485fe18c092ffd/image_comboot.patch
patch -p0 < image_comboot.patch
rm image_comboot.patch

# Install pxelinux
wget https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.02.tar.gz
tar -zxvf syslinux-6.02.tar.gz --strip-components 3 -C /tftpboot syslinux-6.02/bios/core/pxelinux.0
tar -zxvf syslinux-6.02.tar.gz --strip-components 4 -C /tftpboot syslinux-6.02/bios/com32/menu/menu.c32

{'fraction_non_alphanumeric': 0.1199400299850075, 'fraction_numerical': 0.06796601699150424, 'mean_word_length': 3.9925187032418954, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '4571495', 'n_tokens_mistral': 941, 'n_tokens_neox': 833, 'n_words': 180}