<commit_before><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	>

<span id="app-title"> #{msg['application_name']} </span>

<a href="#editor-frame" id='new-fragment-editor-trigger' title="New Fragment" >
	<img id="new-fragment-button" src="resources/styles/custom/images/add-fragment.png" />
</a>

<div style='display:none' >
    <div id='editor-frame' >
        <h:form id="fragment-editor-form"  >
	        <p:inputText id="title-input" value="#{fragmentBean.fragment.title}" autocomplete="false" />
	        <p:inputText id="tags-input" value="#{fragmentBean.tagNames}" autocomplete="false" />
	        <textarea id="fragment-content-editor" cols="80" rows="20"></textarea>
	        <h:inputHidden id="content-placeholder" value="#{fragmentBean.fragment.content}" />
	        <h:inputHidden id="id-placeholder" value="#{fragmentBean.fragment.id}" />
		    <p:commandButton onclick="prepareFragmentContent();" value="Preview" action="preview" />
		    <p:commandButton onclick="prepareFragmentContent();" value="Save" action="save" />
        </h:form>
    </div>
</div>

<script type="text/javascript">
	function prepareFragmentContent() {
		var editor = $("#fragment-content-editor");
	    var srcContent = editor.val();
	    $("#fragment-editor-form\\:content-placeholder").val(srcContent);
	}
</script>
<commit_msg>[new][feature] now clicking the title text redirects to the home url<commit_after><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	>

<a href="home">
    <span id="app-title"> #{msg['application_name']} </span>
</a>

<a href="#editor-frame" id='new-fragment-editor-trigger' title="New Fragment" >
	<img id="new-fragment-button" src="resources/styles/custom/images/add-fragment.png" />
</a>

<div style='display:none' >
    <div id='editor-frame' >
        <h:form id="fragment-editor-form"  >
	        <p:inputText id="title-input" value="#{fragmentBean.fragment.title}" autocomplete="false" />
	        <p:inputText id="tags-input" value="#{fragmentBean.tagNames}" autocomplete="false" />
	        <textarea id="fragment-content-editor" cols="80" rows="20"></textarea>
	        <h:inputHidden id="content-placeholder" value="#{fragmentBean.fragment.content}" />
	        <h:inputHidden id="id-placeholder" value="#{fragmentBean.fragment.id}" />
		    <p:commandButton onclick="prepareFragmentContent();" value="Preview" action="preview" />
		    <p:commandButton onclick="prepareFragmentContent();" value="Save" action="save" />
        </h:form>
    </div>
</div>

<script type="text/javascript">
	function prepareFragmentContent() {
		var editor = $("#fragment-content-editor");
	    var srcContent = editor.val();
	    $("#fragment-editor-form\\:content-placeholder").val(srcContent);
	}
</script>

{'fraction_non_alphanumeric': 0.20270270270270271, 'fraction_numerical': 0.00881316098707403, 'mean_word_length': 4.430622009569378, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 12}, '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': '2641110', 'n_tokens_mistral': 1202, 'n_tokens_neox': 1132, 'n_words': 163}