<commit_before>cd build

lcov --zerocounters  --directory .

./Test_CPP_Bindings

lcov --directory . --capture --output-file Test_CPP_Bindings.info

TARGETDIR=`dirname \`pwd\``

lcov --remove Test_CPP_Bindings.info -o Test_CPP_Bindings_filtered.info "$TARGETDIR/Tests/*" "$TARGETDIR/Source/Libraries/*" "$TARGETDIR/Include/Libraries/*" "/Applications/*" \
  "$TARGETDIR/Autogenerated/Bindings/C/*" \
  "$TARGETDIR/Autogenerated/Bindings/CDynamic/*" \
  "$TARGETDIR/Autogenerated/Bindings/CSharp/*" \
  "$TARGETDIR/Autogenerated/Bindings/CppDynamic/*" \
  "$TARGETDIR/Autogenerated/Bindings/Go/*" \
  "$TARGETDIR/Autogenerated/Bindings/NodeJS/*" \
  "$TARGETDIR/Autogenerated/Bindings/Python/*"


genhtml --output-directory ./codecoverage --title "lib3mf Test Coverage" --function-coverage --legend Test_CPP_Bindings_filtered.info   

zip -r codecoverage.zip ./codecoverage/<commit_msg>Account for files not captured by the lib3mf's tests (#261)<commit_after>cd build
lcov --capture --initial --directory . --output-file Test_CPP_Bindings_base.info

./Test_CPP_Bindings

lcov --directory . --capture --output-file Test_CPP_Bindings_run.info
lcov --add-tracefile Test_CPP_Bindings_base.info --add-tracefile Test_CPP_Bindings_run.info --output-file Test_CPP_Bindings.info

TARGETDIR=`dirname \`pwd\``

lcov --remove Test_CPP_Bindings.info -o Test_CPP_Bindings_filtered.info "$TARGETDIR/Tests/*" "$TARGETDIR/Source/Libraries/*" "$TARGETDIR/Include/Libraries/*" "/Applications/*" \
  "$TARGETDIR/Autogenerated/Bindings/C/*" \
  "$TARGETDIR/Autogenerated/Bindings/CDynamic/*" \
  "$TARGETDIR/Autogenerated/Bindings/CSharp/*" \
  "$TARGETDIR/Autogenerated/Bindings/CppDynamic/*" \
  "$TARGETDIR/Autogenerated/Bindings/Go/*" \
  "$TARGETDIR/Autogenerated/Bindings/NodeJS/*" \
  "$TARGETDIR/Autogenerated/Bindings/Python/*"


genhtml --output-directory ./codecoverage --title "lib3mf Test Coverage" --function-coverage --legend Test_CPP_Bindings_filtered.info   

zip -r codecoverage.zip ./codecoverage/
{'fraction_non_alphanumeric': 0.15045135406218657, 'fraction_numerical': 0.003009027081243731, 'mean_word_length': 4.511049723756906, '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': '114872', 'n_tokens_mistral': 706, 'n_tokens_neox': 687, 'n_words': 104}