<commit_before>#
# Just some utilities for use in ecm development.
#

setopt rmstarsilent

HOME="/home/carlos"
ECM_WS="$HOME/totvs/ws"
ECM_JBOSS="$HOME/Public/ecm/JBoss-7.1.1"
ECM_PORT="8080"
VOLDEMORT=$ECM_WS/voldemort
ECM=$ECM_WS/ecm
INSTALLER="n"

# fuckin aliases
alias ecmu=ecmup
alias ecmb=ecmbuild
alias ecmc=ecmclean
alias ecms=ecmstart
alias ecmo=ecmstop
alias ecmi=ecminstall
alias ecm=ecmfull

# update ecm
ecmup() {
	echo "update all the things!"
	cd $VOLDEMORT && svn up
	cd $ECM && svn up
}

# build it!
ecmbuild() {
	echo "build? no problem sir..."
	
	case $@ in
	-*i*)
		INSTALLER=y
		;;
	esac	

	cd $VOLDEMORT && mvncie
	cd $VOLDEMORT/social-ecm
	cd $VOLDEMORT/wcm && mvncie
	cd $ECM/ecm/wecmpackage && mvncie
	cd $VOLDEMORT/ecm && mvncie
	ecminstall
}

# gen installer or cp wars...
ecminstall() {
        if [[ "$INSTALLER" == "y" ]]; then
        	echo "generating installer..."
	        cd $VOLDEMORT/ecm/installer
                mvnci -am -Drun=installer -DLinux64=true -DappServer=jboss
        else
		echo "cpying wars..."
                cd $VOLDEMORT/ecm/build && mvnci
		cd $VOLDEMORT/wcm/build && mvnci
                cd $VOLDEMORT/social-ecm/build && mvnci
        fi
}

# clean jboss trash folders
ecmclean() {
	echo "cleaning jboss shit"
	rm -rf $ECM_JBOSS/standalone/{deployments/*,log,tmp} 2> /dev/null
}

# start jboss server
ecmstart() {<commit_msg>fixing some build issues...<commit_after>#
# Just some utilities for use in ecm development.
#

setopt rmstarsilent

HOME="/home/carlos"
ECM_WS="$HOME/totvs/ws"
ECM_JBOSS="$HOME/Public/ecm/JBoss-7.1.1"
ECM_PORT="8080"
VOLDEMORT=$ECM_WS/voldemort
ECM=$ECM_WS/ecm
INSTALLER="n"

# fuckin aliases
alias ecmu=ecmup
alias ecmb=ecmbuild
alias ecmc=ecmclean
alias ecms=ecmstart
alias ecmo=ecmstop
alias ecmi=ecminstall
alias ecm=ecmfull

# update ecm
ecmup() {
	echo "update all the things!"
	cd $VOLDEMORT && svn up
	cd $ECM && svn up
}

# build it!
ecmbuild() {
	echo "build? no problem sir..."
	
	case $@ in
	-*i*)
		INSTALLER=y
		;;
	esac	

	cd $VOLDEMORT && mvncie && \
	cd $VOLDEMORT/social-ecm && \
	cd $VOLDEMORT/wcm && mvncie && \
	cd $ECM/wecmpackage && mvncie && \
	cd $VOLDEMORT/ecm && mvncie && \
	ecminstall
}

# gen installer or cp wars...
ecminstall() {
        if [[ "$INSTALLER" == "y" ]]; then
        	echo "generating installer..."
	        cd $VOLDEMORT/ecm/installer
                mvnci -am -Drun=installer -DLinux64=true -DappServer=jboss
        else
		echo "cpying wars..."
                cd $VOLDEMORT/ecm/build && mvnci && \
		cd $VOLDEMORT/wcm/build && mvnci && \
                cd $VOLDEMORT/social-ecm/build && mvnci
        fi
}

# clean jboss trash folders
ecmclean() {
	echo "cleaning jboss shit"
	rm -rf $ECM_JBOSS/standalone/{deployments/*,log,tmp} 2> /dev/null
}

# start jboss server
ecmstart() {
{'fraction_non_alphanumeric': 0.13738019169329074, 'fraction_numerical': 0.007099751508697196, 'mean_word_length': 3.0314735336194563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4285515', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1168, 'n_words': 263}