<commit_before>#! /bin/sh

#
# This file is included by the bw-classic script file "bw" so that it can live
# within the repository.
#

# Make this a par
#REPO_HOME=/home/douglm/bw-git
GIT_HOME=`dirname "$PRG"`
GIT_HOME=`cd "$GIT_HOME" && pwd`

echo "+++++++++++++GIT_HOME=$GIT_HOME"

#ant_listener="-listener org.apache.tools.ant.listener.Log4jListener"
#ant_xmllogfile="-DXmlLogger.file=log.xml"
#ant_logger="-logger org.apache.tools.ant.XmlLogger"

deployableDir="$GIT_HOME/bw-classic/dist/deployable"

antHome=
jbossHome=
dsHome=
ant_listener=
ant_xmllogfile=
ant_logger=

ant_loglevel="-quiet"
bw_loglevel=""

mvn_quiet="-q"

#mvn_binary="/usr/share/maven/bin/mvn";
mvn_binary="mvn3"

# Projects we need to update - these are the svn projects - not internal variables
# or user parameters.
updateSvnProjects="bedenote"

# Projects we will build - pkgdefault (bedework) is built if nothing specified
pkgdefault=yes
bedenote=
bwtools=
caldavTest=
catsvr=
client=
exchgGateway=
naming=
testsuite=

maven=

# update from git
updateProjects="bw-access"
updateProjects="$updateProjects  bw-caldav"
updateProjects="$updateProjects  bw-calendar-client"
updateProjects="$updateProjects  bw-calendar-engine"
updateProjects="$updateProjects  bw-carddav"
updateProjects="$updateProjects  bw-classic"
updateProjects="$updateProjects  bw-event-registration"
updateProjects="$updateProjects  bw-notifier"
updateProjects="$updateProjects  bw-self-registration"
updateProjects="$updateProjects  bw-synch"
updateProjects="$updateProjects  bw-timezone-server"
updateProjects="$updateProjects  bw-util"
updateProjects="$updateProjects  bw-webdav"
updateProjects="$updateProjects  bw-ws"

# git projects
bw_access=
bw_caldav=
bw_calengine=
bw_carddav=
bw_classic=
bw_eventreg=
bw_notifier=
bw_selfreg=
bw_synch=
bw_tzsvr=
bw_util=
bw_webclients=
bw_webdav=
bw_ws=

# Special targets - avoiding dependencies

cmdutil=
deploylog4j=
deployActivemq=
deployConf=
deployData=
deployEs=
dirstart=
saveData=
buildwebcache=
deploywebcache=
deployurlbuilder=

specialTarget=

dobuild=yes
deployEarsUrl=

echo ""
echo "  Bedework Calendar System"
echo "  ------------------------"
echo ""

PRG="$0"

# project directories

if [ "$1" = "-nosql" ] ; then
  shift
  bwcalcoreDir="bwcalcorenosql"
  bwcalfacadeDir="bwcalfacadenosql"
else
  bwcalcoreDir="bwcalcore"
  bwcalfacadeDir="bwcalFacade"
fi

usage() {
  echo "  $PRG ACTION"
  echo "  $PRG [OPTIONS] [PROJECT] [LOG_LEVEL] [ target ] "
  echo ""
  echo " where:"
  echo ""
  echo "   ACTION defines an action to take usually in the context of the quickstart."
  echo "    In a deployed system many of these actions are handled directly by a"
  echo "    deployed application. ACTION may be one of"
  echo "      -updateall  Does an svn update of all projects"
  echo ""
  echo "   OPTIONS is zero or more from:"
  echo "      -antHome      location of ant"
  echo "      -jbossHome    location of jboss to deploy into"
  echo "      -dsHome       location of apache directory server"
  echo "      -bwc name     optionally defines the configuration to build"
  echo "      -bwjmxconf    location of jmx configuration files"
  echo "   T                specifies the location of a directory which "
  echo "                    contains all the run-time configuration for"
  echo "                    the system."
  echo "      -offline      Build without attempting to retrieve library jars"
  echo ""
  echo "   LOG_LEVEL sets the level of logging and can be"
  echo "      -log-silent   Nearly silent"
  echo "      -log-quiet    The default"
  echo "      -log-in${earName} little more noisy"
  echo "      -log-verbose  Noisier"
  echo "      -log-configs  Some info about configurations"
  echo "      -ant-debug    Vast amounts of ant output"
  echo "      -build-debug  Some bedework build debug output"
  echo "      -mvn-quiet    the default"
  echo "      -mvn-verbose  noisier"
  echo ""
  echo "   target       Special target or Ant target to execute"
  echo ""
  echo "   Special targets"
  echo "      deploylog4j       deploys a log4j configuration"
  echo "      deployActivemq    deploys the Activemq config"
  echo "      deployConf        deploys the configuration files"
  echo "      deployEs          deploys the quickstart elasticsearch config"
  echo ""
  echo "   PROJECT optionally defines the package to build. If omitted the main"
  echo "           bedework calendar system will be built otherwise it is one of"
  echo "           the core, ancillary or experimental targets below:"
  echo ""
  echo "   Core sub-projects: required for a functioning system"
  echo "     -bw_access    Target is for the access classes"
  echo "     -bwann        Target is for the annotation classes"
  echo "     -bw_calengine Target is for the bedework calendar engine"
  echo "     -bw_webclients Target is for the bedework web ui classes"
  echo "     -bw_xml       Target is for the Bedework XML schemas build"<commit_msg>Add auto-killer to the system configuration jmx.<commit_after>#! /bin/sh

#
# This file is included by the bw-classic script file "bw" so that it can live
# within the repository.
#

# Make this a par
#REPO_HOME=/home/douglm/bw-git
GIT_HOME=`dirname "$PRG"`
GIT_HOME=`cd "$GIT_HOME" && pwd`

echo "+++++++++++++GIT_HOME=$GIT_HOME"

#ant_listener="-listener org.apache.tools.ant.listener.Log4jListener"
#ant_xmllogfile="-DXmlLogger.file=log.xml"
#ant_logger="-logger org.apache.tools.ant.XmlLogger"

deployableDir="$GIT_HOME/bw-classic/dist/deployable"

antHome=
jbossHome=
dsHome=
ant_listener=
ant_xmllogfile=
ant_logger=

ant_loglevel="-quiet"
bw_loglevel=""

mvn_quiet="-q"

#mvn_binary="/usr/share/maven/bin/mvn";
mvn_binary="mvn"

# Projects we need to update - these are the svn projects - not internal variables
# or user parameters.
updateSvnProjects="bedenote"

# Projects we will build - pkgdefault (bedework) is built if nothing specified
pkgdefault=yes
bedenote=
bwtools=
caldavTest=
catsvr=
client=
exchgGateway=
naming=
testsuite=

maven=

# update from git
updateProjects="bw-access"
updateProjects="$updateProjects  bw-caldav"
updateProjects="$updateProjects  bw-calendar-client"
updateProjects="$updateProjects  bw-calendar-engine"
updateProjects="$updateProjects  bw-carddav"
updateProjects="$updateProjects  bw-classic"
updateProjects="$updateProjects  bw-event-registration"
updateProjects="$updateProjects  bw-notifier"
updateProjects="$updateProjects  bw-self-registration"
updateProjects="$updateProjects  bw-synch"
updateProjects="$updateProjects  bw-timezone-server"
updateProjects="$updateProjects  bw-util"
updateProjects="$updateProjects  bw-webdav"
updateProjects="$updateProjects  bw-ws"

# git projects
bw_access=
bw_caldav=
bw_calengine=
bw_carddav=
bw_classic=
bw_eventreg=
bw_notifier=
bw_selfreg=
bw_synch=
bw_tzsvr=
bw_util=
bw_webclients=
bw_webdav=
bw_ws=

# Special targets - avoiding dependencies

cmdutil=
deploylog4j=
deployActivemq=
deployConf=
deployData=
deployEs=
dirstart=
saveData=
buildwebcache=
deploywebcache=
deployurlbuilder=

specialTarget=

dobuild=yes
deployEarsUrl=

echo ""
echo "  Bedework Calendar System"
echo "  ------------------------"
echo ""

PRG="$0"

# project directories

if [ "$1" = "-nosql" ] ; then
  shift
  bwcalcoreDir="bwcalcorenosql"
  bwcalfacadeDir="bwcalfacadenosql"
else
  bwcalcoreDir="bwcalcore"
  bwcalfacadeDir="bwcalFacade"
fi

usage() {
  echo "  $PRG ACTION"
  echo "  $PRG [OPTIONS] [PROJECT] [LOG_LEVEL] [ target ] "
  echo ""
  echo " where:"
  echo ""
  echo "   ACTION defines an action to take usually in the context of the quickstart."
  echo "    In a deployed system many of these actions are handled directly by a"
  echo "    deployed application. ACTION may be one of"
  echo "      -updateall  Does an svn update of all projects"
  echo ""
  echo "   OPTIONS is zero or more from:"
  echo "      -antHome      location of ant"
  echo "      -jbossHome    location of jboss to deploy into"
  echo "      -dsHome       location of apache directory server"
  echo "      -bwc name     optionally defines the configuration to build"
  echo "      -bwjmxconf    location of jmx configuration files"
  echo "   T                specifies the location of a directory which "
  echo "                    contains all the run-time configuration for"
  echo "                    the system."
  echo "      -offline      Build without attempting to retrieve library jars"
  echo ""
  echo "   LOG_LEVEL sets the level of logging and can be"
  echo "      -log-silent   Nearly silent"
  echo "      -log-quiet    The default"
  echo "      -log-in${earName} little more noisy"
  echo "      -log-verbose  Noisier"
  echo "      -log-configs  Some info about configurations"
  echo "      -ant-debug    Vast amounts of ant output"
  echo "      -build-debug  Some bedework build debug output"
  echo "      -mvn-quiet    the default"
  echo "      -mvn-verbose  noisier"
  echo ""
  echo "   target       Special target or Ant target to execute"
  echo ""
  echo "   Special targets"
  echo "      deploylog4j       deploys a log4j configuration"
  echo "      deployActivemq    deploys the Activemq config"
  echo "      deployConf        deploys the configuration files"
  echo "      deployEs          deploys the quickstart elasticsearch config"
  echo ""
  echo "   PROJECT optionally defines the package to build. If omitted the main"
  echo "           bedework calendar system will be built otherwise it is one of"
  echo "           the core, ancillary or experimental targets below:"
  echo ""
  echo "   Core sub-projects: required for a functioning system"
  echo "     -bw_access    Target is for the access classes"
  echo "     -bwann        Target is for the annotation classes"
  echo "     -bw_calengine Target is for the bedework calendar engine"
  echo "     -bw_webclients Target is for the bedework web ui classes"
  echo "     -bw_ws        Target is for the Bedework XML schemas build"
{'fraction_non_alphanumeric': 0.0929532222445292, 'fraction_numerical': 0.0013049588436057017, 'mean_word_length': 3.3697368421052634, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, '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': '3193087', 'n_tokens_mistral': 3288, 'n_tokens_neox': 3159, 'n_words': 971}