<commit_before>#!/bin/bash
set -e

echo
echo "$0: loading precompiled libraries"

V8_VERSION=`/bin/ls 3rdParty/V8/|grep V8 |sed "s;V8-;;"`

wget \
  -O 3rdParty.tar.gz \
  "https://www.arangodb.com/support-files/travisCI/precompiled-libraries-${V8_VERSION}.tar.gz"

tar xzf 3rdParty.tar.gz

echo
echo "$0: setup make-system"

test -d build || mkdir build

echo
echo "$0: configuring ArangoDB"

export LDFLAGS="-lrt"

(cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_MAINTAINER_MODE=On -DUSE_RELATIVE=ON -DUSE_PRECOMPILED_V8=ON)

echo
echo "$0: compiling ArangoDB"

(cd build && make -j1)

echo
echo "$0: testing ArangoDB"

ulimit -c unlimited -S # enable core files
./scripts/unittest all \
  --skipRanges true \
  --skipTimeCritical true \
  --skipNondeterministic true \
  --skipSsl true \
  --skipBoost true \
  --skipGeo true

success=`cat out/UNITTEST_RESULT_EXECUTIVE_SUMMARY.json`
if test "$success" == "false"; then
  exit 1
fi

echo
echo "$0: done"
<commit_msg>removed old USE_RELATIVE<commit_after>#!/bin/bash
set -e

echo
echo "$0: loading precompiled libraries"

V8_VERSION=`/bin/ls 3rdParty/V8/|grep V8 |sed "s;V8-;;"`

wget \
  -O 3rdParty.tar.gz \
  "https://www.arangodb.com/support-files/travisCI/precompiled-libraries-${V8_VERSION}.tar.gz"

tar xzf 3rdParty.tar.gz

echo
echo "$0: setup make-system"

test -d build || mkdir build

echo
echo "$0: configuring ArangoDB"

export LDFLAGS="-lrt"

(cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_MAINTAINER_MODE=On -DUSE_PRECOMPILED_V8=ON)

echo
echo "$0: compiling ArangoDB"

(cd build && make -j1)

echo
echo "$0: testing ArangoDB"

ulimit -c unlimited -S # enable core files
./scripts/unittest all \
  --skipRanges true \
  --skipTimeCritical true \
  --skipNondeterministic true \
  --skipSsl true \
  --skipBoost true \
  --skipGeo true

success=`cat out/UNITTEST_RESULT_EXECUTIVE_SUMMARY.json`
if test "$success" == "false"; then
  exit 1
fi

echo
echo "$0: done"

{'fraction_non_alphanumeric': 0.13881748071979436, 'fraction_numerical': 0.017480719794344474, 'mean_word_length': 3.7813267813267815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4379933', 'n_tokens_mistral': 814, 'n_tokens_neox': 770, 'n_words': 189}