<commit_before>#!/bin/bash

# Get version
if [ $# -lt 1 ]; then
  echo "error: missing argument: bgclang version" >&2
  exit 2
fi
VERSION=$1
if echo $VERSION | grep -qv "^r[0-9][0-9]*-[0-9][0-9]*$"; then
  echo "error: bad version '$VERSION': must be formatted as 'r[0-9]+-[0-9]+'" >&2
  exit 2
fi
echo "bgclang version: $VERSION"

# Get location of script
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

# Load configuration data
. $DIR/config

# Remove bgclang directories
echo "Removing RPM directory $RPMDIR..."
# rm -rf $RPMDIR
echo "Removing RPM database directory $RPMDBPATH..."
# rm -rf $RPMDBPATH
echo "Removing install directory $PREFIX_BASE/$VERSION..."
# rm -rf $PREFIX_BASE/$VERSION

echo "Done."<commit_msg>Remove comment from `rm` command<commit_after>#!/bin/bash

# Get version
if [ $# -lt 1 ]; then
  echo "error: missing argument: bgclang version" >&2
  exit 2
fi
VERSION=$1
if echo $VERSION | grep -qv "^r[0-9][0-9]*-[0-9][0-9]*$"; then
  echo "error: bad version '$VERSION': must be formatted as 'r[0-9]+-[0-9]+'" >&2
  exit 2
fi
echo "bgclang version: $VERSION"

# Get location of script
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

# Load configuration data
. $DIR/config

# Remove bgclang directories
echo "Removing RPM directory $RPMDIR..."
rm -rf $RPMDIR
echo "Removing RPM database directory $RPMDBPATH..."
rm -rf $RPMDBPATH
echo "Removing install directory $PREFIX_BASE/$VERSION..."
rm -rf $PREFIX_BASE/$VERSION

echo "Done."
{'fraction_non_alphanumeric': 0.17222600408441116, 'fraction_numerical': 0.025867937372362152, 'mean_word_length': 4.104166666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1611966', 'n_tokens_mistral': 554, 'n_tokens_neox': 529, 'n_words': 175}