<commit_before>image_version:="0.0.18"

build-all: clean validate
	packer build ubuntu-1404.json

validate:
	packer validate ubuntu-1404.json

build-libvirt: clean validate
	packer build -only=libvirt ubuntu-1404.json
	./scripts/optimize_libvirt_box.sh

build-vmware: clean validate
	packer build -only=vmware ubuntu-1404.json

build-vbox: clean validate
	packer build -only=virtualbox ubuntu-1404.json

clean:
	rm -Rf output-* *.box tmp

distclean:
	rm -Rf output-* *.box packer_cache tmp

uninstall_libvirt:
	vagrant destroy
	vagrant box remove noironetworks/net-next
	sudo virsh vol-delete --pool default "noironetworks-VAGRANTSLASH-net-next_vagrant_box_image_${image_version}.img"
	-service libvirt-bin restart
	-service libvirtd restart
	rm Vagrantfile

uninstall_vbox:
	vagrant destroy
	vagrant box remove noironetworks/net-next
	rm Vagrantfile

upload:
	packer push -name noironetworks/net-next ubuntu-1404-atlas.json

install_libvirt:
	vagrant box add --force noironetworks/net-next ubuntu-1404-libvirt.box
	cp Vagrantfile.sample  Vagrantfile
	vagrant up --provider=libvirt

install_vbox:
	vagrant box add --force noironetworks/net-next ubuntu-1404-virtualbox.box
	cp Vagrantfile.sample  Vagrantfile
	vagrant up --provider=virtualbox
<commit_msg>packer: Cleanup make clean target<commit_after>image_version:="0.0.18"

build-all: clean validate
	packer build ubuntu-1404.json

validate:
	packer validate ubuntu-1404.json

build-libvirt: clean validate
	packer build -only=libvirt ubuntu-1404.json
	./scripts/optimize_libvirt_box.sh

build-vmware: clean validate
	packer build -only=vmware ubuntu-1404.json

build-vbox: clean validate
	packer build -only=virtualbox ubuntu-1404.json

clean:
	rm -Rf output-* *.box tmp

distclean: clean
	rm -Rf packer_cache

uninstall_libvirt:
	vagrant destroy
	vagrant box remove noironetworks/net-next
	sudo virsh vol-delete --pool default "noironetworks-VAGRANTSLASH-net-next_vagrant_box_image_${image_version}.img"
	-service libvirt-bin restart
	-service libvirtd restart
	rm Vagrantfile

uninstall_vbox:
	vagrant destroy
	vagrant box remove noironetworks/net-next
	rm Vagrantfile

upload:
	packer push -name noironetworks/net-next ubuntu-1404-atlas.json

install_libvirt:
	vagrant box add --force noironetworks/net-next ubuntu-1404-libvirt.box
	cp Vagrantfile.sample  Vagrantfile
	vagrant up --provider=libvirt

install_vbox:
	vagrant box add --force noironetworks/net-next ubuntu-1404-virtualbox.box
	cp Vagrantfile.sample  Vagrantfile
	vagrant up --provider=virtualbox

{'fraction_non_alphanumeric': 0.07992047713717694, 'fraction_numerical': 0.028628230616302187, 'mean_word_length': 4.837587006960557, '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': '1779065', 'n_tokens_mistral': 986, 'n_tokens_neox': 911, 'n_words': 218}