<commit_before>#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DC="$DIR/docker-compose.yml"
PATH=$PATH:$DIR/.bin/
COMPOSE="docker-compose -f $DC"

if ! [ -x "$(which docker-compose)" ]; then
  mkdir $DIR/.bin
  curl -L https://github.com/docker/compose/releases/download/1.7.0/docker-compose-`uname -s`-`uname -m` > $DIR/.bin/docker-compose
  chmod +x $DIR/.bin/docker-compose
fi

trap "$COMPOSE stop; $COMPOSE rm -f;" EXIT

chmod a+w ./test/redis-sentinel/*.conf
$COMPOSE up -d

# make sure that services are up
sleep 40

$COMPOSE run --rm tester ./node_modules/.bin/mocha<commit_msg>tests: more time to start cassandra<commit_after>#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DC="$DIR/docker-compose.yml"
PATH=$PATH:$DIR/.bin/
COMPOSE="docker-compose -f $DC"

if ! [ -x "$(which docker-compose)" ]; then
  mkdir $DIR/.bin
  curl -L https://github.com/docker/compose/releases/download/1.7.0/docker-compose-`uname -s`-`uname -m` > $DIR/.bin/docker-compose
  chmod +x $DIR/.bin/docker-compose
fi

trap "$COMPOSE stop; $COMPOSE rm -f;" EXIT

chmod a+w ./test/redis-sentinel/*.conf
$COMPOSE up -d

# make sure that services are up
sleep 60

$COMPOSE run --rm tester ./node_modules/.bin/mocha
{'fraction_non_alphanumeric': 0.19692058346839547, 'fraction_numerical': 0.009724473257698542, 'mean_word_length': 3.713740458015267, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2704628', 'n_tokens_mistral': 539, 'n_tokens_neox': 479, 'n_words': 112}