<commit_before>#!/bin/bash
# Install a Redis local instance
#
# Add at least the following environment variables to your project configuration
# (otherwise the defaults below will be used).
# * REDIS_VERSION
# * REDIS_PORT
#
# Include in your builds via
# \curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/cockroachdb.sh | bash -s
REDIS_VERSION=${REDIS_VERSION:="4.0.2"}
REDIS_PORT=${REDIS_PORT:="26257"}
REDIS_DIR=${REDIS_DIR:="$HOME/redis"}

set -e
CACHED_DOWNLOAD="${HOME}/cache/redis-${REDIS_VERSION}.tar.gz"

mkdir -p "${REDIS_DIR}"
wget --continue --output-document "${CACHED_DOWNLOAD}" "http://download.redis.io/releases/redis-${REDIS_VERSION}.tar.gz"
tar -xf "${CACHED_DOWNLOAD}" --directory "${REDIS_DIR}"

# Make sure to use the exact parameters you want for DynamoDB and give it enough sleep time to properly start up
(
  cd ${REDIS_DIR}/redis-${REDIS_VERSION} || exit 1
	make
	src/redis-server --port ${REDIS_PORT} 2>&1 >/dev/null & disown
)<commit_msg>Add review comments from @joesiewert<commit_after>#!/bin/bash
# Install a Redis local instance
#
# Add at least the following environment variables to your project configuration
# (otherwise the defaults below will be used).
# * REDIS_VERSION
# * REDIS_PORT
#
# Include in your builds via
# \curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/redis.sh | bash -s
REDIS_VERSION=${REDIS_VERSION:="4.0.2"}
REDIS_PORT=${REDIS_PORT:="6379"}
REDIS_DIR=${REDIS_DIR:="$HOME/redis"}

set -e
CACHED_DOWNLOAD="${HOME}/cache/redis-${REDIS_VERSION}.tar.gz"

mkdir -p "${REDIS_DIR}"
wget --continue --output-document "${CACHED_DOWNLOAD}" "http://download.redis.io/releases/redis-${REDIS_VERSION}.tar.gz"
tar -xf "${CACHED_DOWNLOAD}" --directory "${REDIS_DIR}"

(
  cd ${REDIS_DIR}/redis-${REDIS_VERSION} || exit 1
	make
	src/redis-server --port ${REDIS_PORT} 2>&1 >/dev/null & disown
)
{'fraction_non_alphanumeric': 0.15775542615140287, 'fraction_numerical': 0.01111699311805188, 'mean_word_length': 5.19672131147541, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7445702', 'n_tokens_mistral': 688, 'n_tokens_neox': 660, 'n_words': 157}