<commit_before>#!/bin/bash

DATADIR="$(dirname "$0")"
PROJECT="$1"

if [[ "$PROJECT" == "" ]]; then
	echo "Usage: $0 projectdir"
	exit 1
fi

echo "==> Prepending changelog."
CLTARGET="$PROJECT/debian/changelog"
CLDIST="$CLTARGET.dist"
CLPRE="$DATADIR/changelog-pre.txt"
needscl=1
if [[ -f "$CLDIST" ]]; then<commit_msg>Check that the project directory exists.<commit_after>#!/bin/bash

DATADIR="$(dirname "$0")"
PROJECT="$1"

if [[ "$PROJECT" == "" ]]; then
	echo "Usage: $0 projectdir" >&2
	exit 1
fi
if [[ ! -d "$PROJECT" ]]; then
	echo "Project is not a directory: $PROJECT" >&2
	exit 1
fi

echo "==> Prepending changelog."
CLTARGET="$PROJECT/debian/changelog"
CLDIST="$CLTARGET.dist"
CLPRE="$DATADIR/changelog-pre.txt"
needscl=1
if [[ -f "$CLDIST" ]]; then
{'fraction_non_alphanumeric': 0.20921052631578949, 'fraction_numerical': 0.017105263157894738, 'mean_word_length': 5.289256198347108, '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': '1487405', 'n_tokens_mistral': 316, 'n_tokens_neox': 298, 'n_words': 70}