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

if [[ $WORDPOINTS_PROJECT_TYPE == wordpoints ]]; then
	project_type=$WORDPOINTS_PROJECT_TYPE
else
	project_type=wordpoints-$WORDPOINTS_PROJECT_TYPE
fi

get-textdomain

echo Generating POT file for "$text_domain" textdomain
php "$DEV_LIB_PATH/i18n/makepot.php" "$project_type" src "src/languages/$text_domain.pot" "$text_domain"

echo 'Updating po/mo files (if any)'
for file in $(find "src/languages" -name '*.po' -type f); do
	msgmerge --backup=off --update "$file" "src/languages/$text_domain.pot"
	msgfmt --use-fuzzy -o "${file%po}mo" "$file"
done

echo Done.

# EOF
<commit_msg>makepot: stop using fuzzy strings<commit_after>#!/usr/bin/env bash

if [[ $WORDPOINTS_PROJECT_TYPE == wordpoints ]]; then
	project_type=$WORDPOINTS_PROJECT_TYPE
else
	project_type=wordpoints-$WORDPOINTS_PROJECT_TYPE
fi

get-textdomain

echo Generating POT file for "$text_domain" textdomain
php "$DEV_LIB_PATH/i18n/makepot.php" "$project_type" src "src/languages/$text_domain.pot" "$text_domain"

echo 'Updating po/mo files (if any)'
for file in $(find "src/languages" -name '*.po' -type f); do
	msgmerge --backup=off --update "$file" "src/languages/$text_domain.pot"
	msgfmt -o "${file%po}mo" "$file"
done

echo Done.

# EOF

{'fraction_non_alphanumeric': 0.14308681672025725, 'fraction_numerical': 0.003215434083601286, 'mean_word_length': 5.450777202072539, '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': '6560891', 'n_tokens_mistral': 471, 'n_tokens_neox': 465, 'n_words': 111}