<commit_before>#!/usr/bin/env bash

set -x

function checkDocsBuild {
  cd docs/
  make html
}

# Container 1
CONTAINER_1=(':atlasdb-cassandra-tests:check')

# Container 2
CONTAINER_2=(':atlasdb-tests-shared:check' ':atlasdb-ete-tests:check')

#Container 3
CONTAINER_3=(':atlasdb-timelock-ete:check' ':lock-impl:check' ':atlasdb-dbkvs-tests:check')

CONTAINER_4=(':atlasdb-dropwizard-tests:check')

# Container 0 - runs tasks not found in the below containers
CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}")

for task in "${CONTAINER_0_EXCLUDE[@]}"
do
    CONTAINER_0_EXCLUDE_ARGS="$CONTAINER_0_EXCLUDE_ARGS -x $task"
done

case $CIRCLE_NODE_INDEX in
    0) ./gradlew --profile --continue check $CONTAINER_0_EXCLUDE_ARGS ;;
    1) ./gradlew --profile --continue --parallel ${CONTAINER_1[@]} ;;
    2) ./gradlew --profile --continue --parallel ${CONTAINER_2[@]} ;;
    3) ./gradlew --profile --continue ${CONTAINER_3[@]} && checkDocsBuild ;;
    4) ./gradlew --profile --continue --parallel ${CONTAINER_4[@]} ;;
esac<commit_msg>Run cassandra-multinode-tests in a separate container<commit_after>#!/usr/bin/env bash

set -x

function checkDocsBuild {
  cd docs/
  make html
}

# Container 1
CONTAINER_1=(':atlasdb-cassandra-tests:check')

# Container 2
CONTAINER_2=(':atlasdb-tests-shared:check' ':atlasdb-ete-tests:check')

#Container 3
CONTAINER_3=(':atlasdb-timelock-ete:check' ':lock-impl:check' ':atlasdb-dbkvs-tests:check')

CONTAINER_4=(':atlasdb-dropwizard-tests:check')

CONTAINER_5=(':atlasdb-cassandra-multinode-tests:check')

# Container 0 - runs tasks not found in the below containers
CONTAINER_0_EXCLUDE=("${CONTAINER_1[@]}" "${CONTAINER_2[@]}" "${CONTAINER_3[@]}" "${CONTAINER_4[@]}"  "${CONTAINER_5[@]}")

for task in "${CONTAINER_0_EXCLUDE[@]}"
do
    CONTAINER_0_EXCLUDE_ARGS="$CONTAINER_0_EXCLUDE_ARGS -x $task"
done

case $CIRCLE_NODE_INDEX in
    0) ./gradlew --profile --continue check $CONTAINER_0_EXCLUDE_ARGS ;;
    1) ./gradlew --profile --continue --parallel ${CONTAINER_1[@]} ;;
    2) ./gradlew --profile --continue --parallel ${CONTAINER_2[@]} ;;
    3) ./gradlew --profile --continue ${CONTAINER_3[@]} && checkDocsBuild ;;
    4) ./gradlew --profile --continue --parallel ${CONTAINER_4[@]} ;;
    5) ./gradlew --profile --continue --parallel ${CONTAINER_5[@]} ;;
esac
{'fraction_non_alphanumeric': 0.18417694598043385, 'fraction_numerical': 0.023819651212250107, 'mean_word_length': 4.850746268656716, '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': '394722', 'n_tokens_mistral': 977, 'n_tokens_neox': 887, 'n_words': 172}