<commit_before>#!/bin/sh
#
# Short build script.
local_version=10-ox3.1
local_sakai=10.x

# If any command fails abort the build
set -e

# Check we have the correct java version
java_version=$(java -version 2>&1 | sed -n 's/^java version *"\(.*\)"/\1/p')
if echo $java_version | grep -q "1\.7\..*" ; then
  echo Found Sun JDK: $java_version
else
  echo You have to build with Sun JDK 1.7.x, we found:
  java -version 2>&1
  exit 1
fi

git submodule init
git submodule sync
git submodule update

# This checks that all the submodule are free from local changes.
# It checks for staged changes and also for removed files.
# The update-index is also needed to get the index back in sync with the filesystem ( git status does this behind the scenes ).
# To get everything back in sync do:
# git submodule update -f
git submodule foreach 'git update-index -q --refresh ; git diff-index --cached --quiet HEAD && git diff-files --quiet'

MAVEN_OPTS="-Xms168m -Xmx512m -XX:PermSize=128m -XX:NewSize=64m -Dmaven.test.skip=true"

export MAVEN_OPTS

rm -rf build
mvn clean install sakai:deploy -Dlocal.service=$local_version -Dlocal.sakai=$local_sakai -Dmaven.tomcat.home=$(pwd)/build/
(cd build && tar zcf ../sakai-${local_version}.tgz .)
<commit_msg>Increment build to 2.10-ox3.2<commit_after>#!/bin/sh
#
# Short build script.
local_version=10-ox3.2
local_sakai=10.x

# If any command fails abort the build
set -e

# Check we have the correct java version
java_version=$(java -version 2>&1 | sed -n 's/^java version *"\(.*\)"/\1/p')
if echo $java_version | grep -q "1\.7\..*" ; then
  echo Found Sun JDK: $java_version
else
  echo You have to build with Sun JDK 1.7.x, we found:
  java -version 2>&1
  exit 1
fi

git submodule init
git submodule sync
git submodule update

# This checks that all the submodule are free from local changes.
# It checks for staged changes and also for removed files.
# The update-index is also needed to get the index back in sync with the filesystem ( git status does this behind the scenes ).
# To get everything back in sync do:
# git submodule update -f
git submodule foreach 'git update-index -q --refresh ; git diff-index --cached --quiet HEAD && git diff-files --quiet'

MAVEN_OPTS="-Xms168m -Xmx512m -XX:PermSize=128m -XX:NewSize=64m -Dmaven.test.skip=true"

export MAVEN_OPTS

rm -rf build
mvn clean install sakai:deploy -Dlocal.service=$local_version -Dlocal.sakai=$local_sakai -Dmaven.tomcat.home=$(pwd)/build/
(cd build && tar zcf ../sakai-${local_version}.tgz .)

{'fraction_non_alphanumeric': 0.11409127301841474, 'fraction_numerical': 0.023618895116092876, 'mean_word_length': 3.778202676864245, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '689086', 'n_tokens_mistral': 902, 'n_tokens_neox': 839, 'n_words': 323}