<commit_before>#!/bin/bash

set -e
set -u

: ${DOCKER:=}
: ${TARGET:=}

if [ -n "${DOCKER}" ]; then
  docker run \
         --interactive \
         --tty \
          groonga/groonga-${DOCKER}
  exit $?
fi

if [ -n "${TARGET}" ]; then
  make \
    -C packages/${TARGET} \
    build \
    DEBUG_BUILD=yes \
    ARCHITECTURES=${ARCHITECTURES}
  exit $?
fi

: ${ENABLE_MRUBY:=no}
: ${TEST_TARGET:=all}

prefix=/tmp/local

command_test_options="--reporter=mark --timeout=60"

set -x

export COLUMNS=79

retry()
{
  local i=0
  while ! "$@"; do
    if [ $i -eq 3 ]; then
      exit 1
    fi
    i=$((i + 1))
  done
}

if [ "${TRAVIS_OS_NAME}" = "osx" ]; then<commit_msg>test: try increasing read timeout<commit_after>#!/bin/bash

set -e
set -u

: ${DOCKER:=}
: ${TARGET:=}

if [ -n "${DOCKER}" ]; then
  docker run \
         --interactive \
         --tty \
          groonga/groonga-${DOCKER}
  exit $?
fi

if [ -n "${TARGET}" ]; then
  make \
    -C packages/${TARGET} \
    build \
    DEBUG_BUILD=yes \
    ARCHITECTURES=${ARCHITECTURES}
  exit $?
fi

: ${ENABLE_MRUBY:=no}
: ${TEST_TARGET:=all}

prefix=/tmp/local

command_test_options="--reporter=mark --timeout=60 --read-timeout=30"

set -x

export COLUMNS=79

retry()
{
  local i=0
  while ! "$@"; do
    if [ $i -eq 3 ]; then
      exit 1
    fi
    i=$((i + 1))
  done
}

if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
{'fraction_non_alphanumeric': 0.1922514619883041, 'fraction_numerical': 0.013157894736842105, 'mean_word_length': 2.3309002433090025, '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': '4355206', 'n_tokens_mistral': 593, 'n_tokens_neox': 563, 'n_words': 122}