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


# Path to the redis binary
#
REDIS=/usr/local/bin/redis-server 
DEFAULT_CONFIG=/etc/redis/redis.conf
USER=redis
SU="su $USER sh -c"


# See if this script was started without a config,
# file specified, in which case we'll start Redis
# with our default configuration file, which is
# bundled with the Docker image.
#
if [[ -z "$*" ]]; then
	ARGS=$DEFAULT_CONFIG
else
	if [[ "$*" =~ "^--[a-z]" ]]; then
		ARGS="$DEFAULT_CONFIG $*"
	else
		ARGS="$*"
	fi
fi


# Run the command
#
echo "Running $SU \"$REDIS $ARGS\""
$SU "$REDIS $ARGS"<commit_msg>Fix recognition of double dash options<commit_after>#!/usr/bin/env bash


# Path to the redis binary
#
REDIS=/usr/local/bin/redis-server 
DEFAULT_CONFIG=/etc/redis/redis.conf
USER=redis
SU="su $USER sh -c"


# See if this script was started without a config,
# file specified, in which case we'll start Redis
# with our default configuration file, which is
# bundled with the Docker image.
#
if [[ -z "$*" ]]; then
	ARGS=$DEFAULT_CONFIG
else
	if [[ "$*" =~ ^--[a-z] ]]; then
		ARGS="$DEFAULT_CONFIG $*"
	else
		ARGS="$*"
	fi
fi


# Run the command
#
echo "Running $SU \"$REDIS $ARGS\""
$SU "$REDIS $ARGS"
{'fraction_non_alphanumeric': 0.15864978902953586, 'fraction_numerical': 0.0, 'mean_word_length': 3.9008264462809916, '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': '2704565', 'n_tokens_mistral': 446, 'n_tokens_neox': 417, 'n_words': 138}