<commit_before>#!/bin/sh

# Cleanup old
rm -rf ~/.ivy2/cache
rm -rf ~/.grails
rm -rf ~/.m2/repository

# Setup ivy cache
cd ~
mkdir -p ~/.ivy2/cache
cd ~/.ivy2/cache
tar xvfz $OMAR_HOME/plugins/ivyCache.tgz

# Setup maven cache
cd $OMAR_HOME/plugins
cd ~ 
mkdir -p .m2/repository
cd .m2/repository
tar xvfz $OMAR_HOME/plugins/m2Repository.tgz

# Package OMAR plugins
cd $OMAR_DEV_HOME/plugins
for x in postgis geoscript openlayers omar-oms  omar-table-filter omar-security-spring omar-core omar-ogc omar-stager omar-video omar-raster omar-superoverlay omar-rss; do
	cd $x
	grails clean
	grails package-plugin 
	cd ..
done

# plugin.xml files will be regenerated when creating the war
rm `find . -name plugin.xml`<commit_msg>Modified to rerun the package plugin on postgis for the postgis packaging fix<commit_after>#!/bin/sh

# Cleanup old
rm -rf ~/.ivy2/cache
rm -rf ~/.grails
rm -rf ~/.m2/repository

# Setup ivy cache
cd ~
mkdir -p ~/.ivy2/cache
cd ~/.ivy2/cache
tar xvfz $OMAR_HOME/plugins/ivyCache.tgz

# Setup maven cache
cd $OMAR_HOME/plugins
cd ~ 
mkdir -p .m2/repository
cd .m2/repository
tar xvfz $OMAR_HOME/plugins/m2Repository.tgz

# Package OMAR plugins
cd $OMAR_DEV_HOME/plugins
for x in postgis geoscript openlayers omar-oms  omar-table-filter omar-security-spring omar-core omar-ogc omar-stager omar-video omar-raster omar-superoverlay omar-rss; do
	cd $x
	grails clean
	grails package-plugin 
	cd ..
done

# plugin.xml files will be regenerated when creating the war
# rm `find . -name plugin.xml`
# the removing seems to still not work.  We will just retouch the postgis plugin and see if
# that will help
cd $OMAR_DEV_HOME/plugins/postgis
grails package-plugin
cd $OMAR_DEV_HOME

{'fraction_non_alphanumeric': 0.09599528857479388, 'fraction_numerical': 0.008244994110718492, 'mean_word_length': 3.7994350282485874, 'pattern_counts': {'":': 0, '<': 3, '<?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': '202750', 'n_tokens_mistral': 654, 'n_tokens_neox': 638, 'n_words': 199}