<commit_before>#!/bin/sh
set -e
# see .travis.yml for the env variables.

if [ -z "$KERON_CC" ]; then 
  echo "BAD Travis-CI env (see https://github.com/travis-ci/travis-ci/issues/4681) - SKIP"
  exit 0
fi

rm -rf build
mkdir build && cd build

# For now, the client is skipped on analyze phases.
if [ ! "$KERON_ANALYZE" ]; then
  CC="$KERON_CC" CXX="$KERON_CXX" cmake -G Ninja -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DKSP_MANAGED_PATH=$PWD/../KSP_runtime/KSP_Data/Managed ..
  ninja -v client
else
  ${KERON_ANALYZE} cmake -G Ninja -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DKSP_MANAGED_PATH=$PWD/../KSP_runtime/KSP_Data/Managed ..
fi

${KERON_ANALYZE} ninja -v keron

cd ..
<commit_msg>generate tgz archive<commit_after>#!/bin/sh
set -e
# see .travis.yml for the env variables.

if [ -z "$KERON_CC" ]; then 
  echo "BAD Travis-CI env (see https://github.com/travis-ci/travis-ci/issues/4681) - SKIP"
  exit 0
fi

rm -rf build
mkdir build && cd build

# For now, the client is skipped on analyze phases.
if [ ! "$KERON_ANALYZE" ]; then
  CC="$KERON_CC" CXX="$KERON_CXX" cmake -G Ninja \
	-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
	-DKSP_MANAGED_PATH=$PWD/../KSP_runtime/KSP_Data/Managed \
	-DCPACK_GENERATOR=TGZ ..
  ninja -v client
else
  ${KERON_ANALYZE} cmake -G Ninja -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DKSP_MANAGED_PATH=$PWD/../KSP_runtime/KSP_Data/Managed ..
fi

${KERON_ANALYZE} ninja -v keron

cd ..

{'fraction_non_alphanumeric': 0.14296081277213352, 'fraction_numerical': 0.00725689404934688, 'mean_word_length': 3.7226027397260273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6389853', 'n_tokens_mistral': 612, 'n_tokens_neox': 586, 'n_words': 133}