<commit_before><h2 class="h4">{{title}}</h2>

<div id="applet_container_{{this._id}}"></div>
<script>
    var applet1 = new GGBApplet({material_id: "{{content.materialId}}", borderColor:"#990000"}, true);
    applet1.inject('applet_container_{{this._id}}');
</script>
<commit_msg>add an error handler which is shown on app init error<commit_after><h2 class="h4">{{title}}</h2>
{{! app embedding tutorial: https://wiki.geogebra.org/en/Reference:GeoGebra_Apps_Embedding }}
{{! configuration settings: https://wiki.geogebra.org/en/Reference:GeoGebra_App_Parameters }}
<div id="applet_error_{{this._id}}">
    <div class="notification alert alert-info hidden"></div>
</div>
<div id="applet_container_{{this._id}}"></div>
<script>
    var applet1 = new GGBApplet({
        material_id: "{{content.materialId}}",
        borderColor: "#b10438",
        showResetIcon: true,
        onError: function (err) {
            $('#applet_error_{{this._id}} .alert').removeClass('hidden');
            $('#applet_error_{{this._id}} .alert')
                .text(`Fehler beim Abrufen des Materials von GeoGebra. `
                    + `Bitte prüfe, ob das Material öffentlich freigegeben und die eingegebene Material-ID korrekt ist.`);
        }
    }, true);
    applet1.inject('applet_container_{{this._id}}');
</script>
{'fraction_non_alphanumeric': 0.17494270435446907, 'fraction_numerical': 0.016042780748663103, 'mean_word_length': 4.057915057915058, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 2, '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': '3738190', 'n_tokens_mistral': 448, 'n_tokens_neox': 426, 'n_words': 84}