<commit_before>#!/bin/sh
set -e

# Making sure our private/internal network works with our vagrantscript for both vmware and virtualbox
# VMware doesn't want the info in /etc/network/interfaces, virtualbox does.

# Test for VMware
# When launcing the VM for the first time VMware will create the VMnet but eth1 doesn't get an ip until restarting the interface
# We do this at every boot simply to make shit work right the first time a user loads the VM.

if test -f linux.iso ; then
cat >>/etc/rc.local <<EOL
sleep 2
ifconfig eth1 down
ifconfig eth1 up
EOL

# Test for Virtualbox
elif test -f .vbox_version ; then
cat >>/etc/network/interfaces <<EOL
auto eth1
iface eth1 inet static
	address 172.16.189.5
	netmask 255.255.0.0
        hwaddress ether 08:00:27:f3:4a:5d
EOL

fi<commit_msg>fix networking for vbox and vmware both<commit_after>#!/bin/sh
set -e

# Making sure our private/internal network works with our vagrantscript for both vmware and virtualbox
# VMware doesn't want the info in /etc/network/interfaces, virtualbox does.

# Test for VMware
# When launcing the VM for the first time VMware will create the VMnet but eth1 doesn't get an ip until restarting the interface
# We do this at every boot simply to make shit work right the first time a user loads the VM.

if test -f linux.iso ; then
cat >>/etc/rc.local <<EOL
sleep 2
ifconfig eth1 down
ifconfig eth1 up
EOL

# Test for Virtualbox
elif test -f .vbox_version ; then
echo "Nothing to see here, move along"

fi
{'fraction_non_alphanumeric': 0.06279540850776502, 'fraction_numerical': 0.024307900067521943, 'mean_word_length': 3.9072847682119205, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 2, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3992828', 'n_tokens_mistral': 487, 'n_tokens_neox': 459, 'n_words': 225}