<commit_before>#
# deta
#
# Copyright (c) 2011 <NAME>
#
# Distributed under the terms of the MIT License.
# Redistributions of files must retain the above copyright notice.
#
# @COPYRIGHT 2011 <NAME> <<EMAIL>>
# @LICENSE   http://www.opensource.org/licenses/mit-license.php The MIT License
# @LINK      http://github.com/davidpersson/deta
#

printf "[%5s] Module %s loaded.\n" "ok" "g11n"

# @FUNCTION: g11n_compile_mo
# @USAGE: [directory with PO files]
# @DESCRIPTION:
# Compiles all PO files in the given directory into MO format.
g11n_compile_mo() {
	printf "[%5s] Compiling *.po in %s.\n" "" $@
	for file in $(find $1 -type f -name *.po); do
		msgfmt -o ${file/.po/.mo} --verbose $file
	done
}

# @FUNCTION: g11n_remove_mo
# @USAGE: [directory with MO files]
# @DESCRIPTION:
# Removes all compiled MO files in the given directory.
g11n_remove_mo() {
	printf "[%5s] Removing *.mo from %s.\n" "" $@
	find $1 -type f -name *.mo | xargs rm -v
}

<commit_msg>Removing g11n_remove_mo, MO files shouldn't be tracked anyway or could be removed/overwritten easily.<commit_after>#
# deta
#
# Copyright (c) 2011 <NAME>
#
# Distributed under the terms of the MIT License.
# Redistributions of files must retain the above copyright notice.
#
# @COPYRIGHT 2011 <NAME> <<EMAIL>>
# @LICENSE   http://www.opensource.org/licenses/mit-license.php The MIT License
# @LINK      http://github.com/davidpersson/deta
#

printf "[%5s] Module %s loaded.\n" "ok" "g11n"

# @FUNCTION: g11n_compile_mo
# @USAGE: [directory with PO files]
# @DESCRIPTION:
# Compiles all PO files in the given directory into MO format.
g11n_compile_mo() {
	printf "[%5s] Compiling *.po in %s.\n" "" $@
	for file in $(find $1 -type f -name *.po); do
		msgfmt -o ${file/.po/.mo} --verbose $file
	done
}

{'fraction_non_alphanumeric': 0.14675767918088736, 'fraction_numerical': 0.023890784982935155, 'mean_word_length': 3.8457300275482096, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4830513', 'n_tokens_mistral': 662, 'n_tokens_neox': 617, 'n_words': 211}