<commit_before>
# do this as vagrant
exec sudo -u vagrant /bin/bash -l << eof

	# install CRS application artifacts into ATG servers directory and jboss
	. /home/vagrant/.bash_profile

	# copy jboss application descriptors
	cp /vagrant/scripts/crs_artifacts/ATGProduction.xml /vagrant/scripts/crs_artifacts/ATGPublishing.xml /home/vagrant/jboss/standalone/configuration

	# create jboss deployments
	/home/vagrant/ATG/ATG11.1/home/bin/runAssembler -server "ATGProduction" -jboss "/home/vagrant/jboss/standalone/deployments/ATGProduction/ATGProduction.ear" -m Store.EStore DafEar.Admin DPS DSS ContentMgmt DCS.PublishingAgent DCS.AbandonedOrderServices ContentMgmt.Endeca.Index DCS.Endeca.Index Store.Endeca.Index DAF.Endeca.Assembler PublishingAgent DCS.Endeca.Index.SKUIndexing Store.Storefront Store.Recommendations DCS.ClickToConnect Store.Fluoroscope Store.Fulfillment Store.KnowledgeBase
	/home/vagrant/ATG/ATG11.1/home/bin/runAssembler -server "ATGPublishing" -jboss "/home/vagrant/jboss/standalone/deployments/ATGPublishing/ATGPublishing.ear" -m DCS-UI.Versioned BIZUI PubPortlet DafEar.Admin ContentMgmt.Versioned DCS-UI.SiteAdmin.Versioned SiteAdmin.Versioned DCS.Versioned DCS-UI Store.EStore.Versioned Store.Storefront ContentMgmt.Endeca.Index.Versioned DCS.Endeca.Index.Versioned Store.Endeca.Index.Versioned DCS.Endeca.Index.SKUIndexing Store.KnowledgeBase 

	# make sure jboss knows to deploy
	touch /home/vagrant/jboss/standalone/deployments/ATGProduction/ATGProduction.ear.dodeploy
	touch /home/vagrant/jboss/standalone/deployments/ATGPublishing/ATGPublishing.ear.dodeploy

	# copy ATG server configs
	unzip -n /vagrant/scripts/crs_artifacts/server-ATGProduction.zip -d /home/vagrant/ATG/ATG11.1/home/servers
	unzip -n /vagrant/scripts/crs_artifacts/server-ATGPublishing.zip -d /home/vagrant/ATG/ATG11.1/home/servers

	# copy ATG version file store
	unzip -n /vagrant/scripts/crs_artifacts/versionFileStore.zip -d /home/vagrant/ATG/ATG11.1/home/Publishing

	# initialize the CRS Eac artifacts
	cp -r /home/vagrant/ATG/ATG11.1/CommerceReferenceStore/Store/Storefront/deploy /home/vagrant/deploy<commit_msg>no need to source bash profile within a bash script being executed with -l<commit_after>
# do this as vagrant
exec sudo -u vagrant /bin/bash -l << eof

	# copy jboss application descriptors
	cp /vagrant/scripts/crs_artifacts/ATGProduction.xml /vagrant/scripts/crs_artifacts/ATGPublishing.xml /home/vagrant/jboss/standalone/configuration

	# create jboss deployments
	/home/vagrant/ATG/ATG11.1/home/bin/runAssembler -server "ATGProduction" -jboss "/home/vagrant/jboss/standalone/deployments/ATGProduction/ATGProduction.ear" -m Store.EStore DafEar.Admin DPS DSS ContentMgmt DCS.PublishingAgent DCS.AbandonedOrderServices ContentMgmt.Endeca.Index DCS.Endeca.Index Store.Endeca.Index DAF.Endeca.Assembler PublishingAgent DCS.Endeca.Index.SKUIndexing Store.Storefront Store.Recommendations DCS.ClickToConnect Store.Fluoroscope Store.Fulfillment Store.KnowledgeBase
	/home/vagrant/ATG/ATG11.1/home/bin/runAssembler -server "ATGPublishing" -jboss "/home/vagrant/jboss/standalone/deployments/ATGPublishing/ATGPublishing.ear" -m DCS-UI.Versioned BIZUI PubPortlet DafEar.Admin ContentMgmt.Versioned DCS-UI.SiteAdmin.Versioned SiteAdmin.Versioned DCS.Versioned DCS-UI Store.EStore.Versioned Store.Storefront ContentMgmt.Endeca.Index.Versioned DCS.Endeca.Index.Versioned Store.Endeca.Index.Versioned DCS.Endeca.Index.SKUIndexing Store.KnowledgeBase 

	# make sure jboss knows to deploy
	touch /home/vagrant/jboss/standalone/deployments/ATGProduction/ATGProduction.ear.dodeploy
	touch /home/vagrant/jboss/standalone/deployments/ATGPublishing/ATGPublishing.ear.dodeploy

	# copy ATG server configs
	unzip -n /vagrant/scripts/crs_artifacts/server-ATGProduction.zip -d /home/vagrant/ATG/ATG11.1/home/servers
	unzip -n /vagrant/scripts/crs_artifacts/server-ATGPublishing.zip -d /home/vagrant/ATG/ATG11.1/home/servers

	# copy ATG version file store
	unzip -n /vagrant/scripts/crs_artifacts/versionFileStore.zip -d /home/vagrant/ATG/ATG11.1/home/Publishing

	# initialize the CRS Eac artifacts
	cp -r /home/vagrant/ATG/ATG11.1/CommerceReferenceStore/Store/Storefront/deploy /home/vagrant/deploy
{'fraction_non_alphanumeric': 0.09649749821300929, 'fraction_numerical': 0.008577555396711936, 'mean_word_length': 5.191740412979351, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '662653', 'n_tokens_mistral': 1626, 'n_tokens_neox': 1530, 'n_words': 249}