<commit_before>#!/bin/bash

echo "Checking for Java ..."

JAVA_CMD="java"
if [ -n "${JAVA_HOME+x}" ]; then
  JAVA_CMD="${JAVA_HOME}/bin/java"
fi

$JAVA_CMD -version
if [ $? -ne 0 ]; then
  echo '------------------- ERROR -------------------'
  echo 'MCastPlugin.bar requires Java'
  exit 1
fi

echo 'Java found'

if [ -n "${GATEWAY_ROOT+x}" ]; then
  echo 'Found GATEWAY_ROOT ... running MCastPlugin from there ...'

  pushd "$GATEWAY_ROOT/MCastPlugin"

  $JAVA_CMD -Djava.net.preferIPv4Stack=true -cp \
      libs/gatewaypluginapi.jar:libs/slf4j-api-1.6.4.jar:libs/logback-core-1.0.11.jar:libs/logback-classic-1.0.11.jar:libs/logback-access-1.0.11.jar:libs/json-20090211.jar:libs/jgroups-gw.jar:libs/protobuf-java-2.4.1.jar:dist/lib/mcastplugin.jar \
      edu.vu.isis.ammo.mcastplugin.McastPlugin

  popd

else
  echo 'Running MCastPlugin from system directory ...'

  pushd /usr/share/java

  $JAVA_CMD -Djava.net.preferIPv4Stack=true -cp \
    gatewaypluginapi.jar:slf4j-api-1.6.4.jar:logback-core-1.0.11.jar:logback-classic-1.0.11.jar:logback-access-1.0.11.jar:json-20090211.jar:jgroups-gw.jar:protobuf-java-2.3.0.jar:mcastplugin.jar \
    edu.vu.isis.ammo.mcastplugin.McastPlugin

  popd

fi
<commit_msg>Fix MCast plugin class name typo in launch script<commit_after>#!/bin/bash

echo "Checking for Java ..."

JAVA_CMD="java"
if [ -n "${JAVA_HOME+x}" ]; then
  JAVA_CMD="${JAVA_HOME}/bin/java"
fi

$JAVA_CMD -version
if [ $? -ne 0 ]; then
  echo '------------------- ERROR -------------------'
  echo 'MCastPlugin.bar requires Java'
  exit 1
fi

echo 'Java found'

if [ -n "${GATEWAY_ROOT+x}" ]; then
  echo 'Found GATEWAY_ROOT ... running MCastPlugin from there ...'

  pushd "$GATEWAY_ROOT/MCastPlugin"

  $JAVA_CMD -Djava.net.preferIPv4Stack=true -cp \
      libs/gatewaypluginapi.jar:libs/slf4j-api-1.6.4.jar:libs/logback-core-1.0.11.jar:libs/logback-classic-1.0.11.jar:libs/logback-access-1.0.11.jar:libs/json-20090211.jar:libs/jgroups-gw.jar:libs/protobuf-java-2.4.1.jar:dist/lib/mcastplugin.jar \
      edu.vu.isis.ammo.mcastplugin.MCastPlugin

  popd

else
  echo 'Running MCastPlugin from system directory ...'

  pushd /usr/share/java

  $JAVA_CMD -Djava.net.preferIPv4Stack=true -cp \
    gatewaypluginapi.jar:slf4j-api-1.6.4.jar:logback-core-1.0.11.jar:logback-classic-1.0.11.jar:logback-access-1.0.11.jar:json-20090211.jar:jgroups-gw.jar:protobuf-java-2.3.0.jar:mcastplugin.jar \
    edu.vu.isis.ammo.mcastplugin.MCastPlugin

  popd

fi

{'fraction_non_alphanumeric': 0.18729641693811075, 'fraction_numerical': 0.04723127035830619, 'mean_word_length': 3.0881863560732112, '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': '4792119', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1028, 'n_words': 138}