<commit_before>#!/bin/bash

usage() {
    echo "Usage: $0 [nodejs6|nodejs10]"
    exit 1
}

echo "$0 $1"

NODEJS_VERSION=${1-nodejs10}

if [ "$NODEJS_VERSION" = "nodejs10" ];
then
    DOCKER='nodejs10-xenial-pg101:postgis-2.4.4.5'
elif [ "$NODEJS_VERSION" = "nodejs6" ];
then
    DOCKER='nodejs6-xenial-pg101'
else
    usage
fi

docker run -v `pwd`:/srv carto/${DOCKER} bash test/run_tests_docker.sh ${NODEJS_VERSION} && \
    docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v<commit_msg>Fix arguments in docker command<commit_after>#!/bin/bash

usage() {
    echo "Usage: $0 [nodejs6|nodejs10]"
    exit 1
}

echo "$0 $1"

NODEJS_VERSION=${1-nodejs10}

if [ "$NODEJS_VERSION" = "nodejs10" ];
then
    DOCKER='nodejs10-xenial-pg101:postgis-2.4.4.5'
elif [ "$NODEJS_VERSION" = "nodejs6" ];
then
    DOCKER='nodejs6-xenial-pg101'
else
    usage
fi

docker run -v `pwd`:/srv carto/${DOCKER} bash test/run_tests_docker.sh ${NODEJS_VERSION} && \
    docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v
{'fraction_non_alphanumeric': 0.16398104265402844, 'fraction_numerical': 0.04928909952606635, 'mean_word_length': 3.8219178082191783, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5724902', 'n_tokens_mistral': 474, 'n_tokens_neox': 436, 'n_words': 92}