<commit_before>#!/usr/intel/bin/bash
tmpfile=$(mktemp /tmp/cdx_upate.XXXXXX)

echo -n "home.."
find ${HOME}/ -not -path '*/\.*' -type d | tee -a ${tmpfile} | wc -l

echo -n "proj-*.."
find ${HOME}/kfw/proj-* -not -path '*/\.*' -type d | tee -a ${tmpfile} | wc -l

tmp=0
echo -n "KFW workspaces..."
for d in  ~/kfw ~/kfw/*FP* ~/kfw/*FP*/* ~/kfw/*FP*/results/* ~/kfw/*FP*/configuration/*; do
    if [ -d "$d" ]; then
	echo "$d" 
	(( tmp+=1 ))
    fi
done >> ${tmpfile}
echo $tmp

echo "writing to ${CDX_FILE}..."
sort -u ${tmpfile} > "${CDX_FILE}" # Important for uniqueness
rm "$tmpfile"<commit_msg>Simplify<commit_after>#!/usr/intel/bin/bash
tmpfile=$(mktemp /tmp/cdx_upate.XXXXXX)

echo -n "home.."
find ${HOME}/ -not -path '*/\.*' -type d | tee -a ${tmpfile} | wc -l

echo -n "proj-*.."
find ${HOME}/kfw/proj-* -not -path '*/\.*' -type d | tee -a ${tmpfile} | wc -l

echo "writing to ${CDX_FILE}..."
sort -u ${tmpfile} > "${CDX_FILE}" # Important for uniqueness
rm "$tmpfile"
{'fraction_non_alphanumeric': 0.25588536335721596, 'fraction_numerical': 0.0020470829068577278, 'mean_word_length': 2.943548387096774, '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': '6847780', 'n_tokens_mistral': 438, 'n_tokens_neox': 403, 'n_words': 113}