<commit_before><?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions"
      transient="true">
    <h:head>
        <meta http-equiv="Content-Type"
              content="text/html; charset=UTF-8" />
        <title>Accueil</title>
    </h:head>

    <h:body>
        <h:form>
            <p:panelGrid columns="1">
                <pre>
                    <h:outputText value="#{runsBean.message}" />
                </pre>
                
                <p:panelGrid columns="3">
                    <h:outputLabel for="seed" value="Seed :"/>
                    <p:inputText id="seed" value="#{runsBean.seed}"></p:inputText>
                    <p:commandButton action="#{runsBean.startCrawl()}" value="Démarrer"
                                     process="seed @this"
                                     update="@form"/>
                </p:panelGrid>
                <p:dataTable value="#{runsBean.runs}" var="run" filteredValue="#{runsBean.filteredRuns}" rowKey="#{run.id}}">
                    <p:column headerText="Identifier" filterBy="#{run.id}" filterMatchMode="contains" sortBy="#{run.id}">
                        <h:outputText value="#{run.id}"/>
                    </p:column>
                    <p:column headerText="Seed" filterBy="#{run.seed}" filterMatchMode="contains" sortBy="#{run.seed}">
                        <h:outputText value="#{run.seed}"/>
                    </p:column>
                    <p:column headerText="Page count">
                        <h:link outcome="#{runsBean.goRunPages()}" value="#{runsBean.getPageCount(run)}">
                            <f:param name="runid" value="#{run.id}"/>
                        </h:link>
                    </p:column>
                    <p:column headerText="Pages to process">
                        <h:link outcome="#{runsBean.goRunPages()}" value="#{runsBean.getPagesToProcess(run)}">
                            <f:param name="runid" value="#{run.id}"/>
                        </h:link>
                    </p:column>
                    <p:column headerText="Pages processed">
                        <h:link outcome="#{runsBean.goRunPages()}" value="#{runsBean.getPagesProcessed(run)}">
                            <f:param name="runid" value="#{run.id}"/>
                        </h:link>
                    </p:column>
                    <p:column headerText="Pages in process">
                        <h:link outcome="#{runsBean.goRunPages()}" value="#{runsBean.getPagesInProcess(run)}">
                            <f:param name="runid" value="#{run.id}"/>
                        </h:link>
                    </p:column>
                    <p:column headerText="Start date" sortBy="#{run.start}">
                        <h:outputText value="#{run.start}"/>
                    </p:column>
                    <p:column headerText="End date" sortBy="#{run.end}">
                        <h:outputText value="#{run.end}"/>
                    </p:column>
                    <p:column>
                        <p:commandLink action="#{runsBean.stopCrawl(run)}" value="Stop"/>
                    </p:column>
                    <p:column>
                        <p:commandLink action="#{runsBean.resumeCrawl(run)}" value="Resume"/>
                    </p:column>
                </p:dataTable>
            </p:panelGrid>
        </h:form>
    </h:body>
</f:view>
	
<commit_msg>Update form on actions.<commit_after><?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions"
      transient="true">
    <h:head>
        <meta http-equiv="Content-Type"
              content="text/html; charset=UTF-8" />
        <title>Accueil</title>
    </h:head>

    <h:body>
        <h:form>
            <p:panelGrid columns="1">
                <h:outputText value="#{runsBean.message}" />
                
                <p:panelGrid columns="3">
                    <h:outputLabel for="seed" value="Seed :"/>
                    <p:inputText id="seed" value="#{runsBean.seed}"></p:inputText>
                    <p:commandButton action="#{runsBean.startCrawl()}" value="Démarrer"
                                     process="seed @this"
                                     update="@form"/>
                </p:panelGrid>
                <p:dataTable value="#{runsBean.runs}" var="run" filteredValue="#{runsBean.filteredRuns}" rowKey="#{run.id}}">
                    <p:column headerText="Identifier" filterBy="#{run.id}" filterMatchMode="contains" sortBy="#{run.id}">
                        <h:outputText value="#{run.id}"/>
                    </p:column>
                    <p:column headerText="Seed" filterBy="#{run.seed}" filterMatchMode="contains" sortBy="#{run.seed}">
                        <h:outputText value="#{run.seed}"/>
                    </p:column>
                    <p:column headerText="Page count">
                        <h:link outcome="#{runsBean.goRunPages()}" value="#{runsBean.getPageCount(run)}">
                            <f:param name="runid" value="#{run.id}"/>
                        </h:link>
                    </p:column>
                    <p:column headerText="Pages to process">
                        <h:link outcome="#{runsBean.goRunPages()}" value="#{runsBean.getPagesToProcess(run)}">
                            <f:param name="runid" value="#{run.id}"/>
                        </h:link>
                    </p:column>
                    <p:column headerText="Pages processed">
                        <h:link outcome="#{runsBean.goRunPages()}" value="#{runsBean.getPagesProcessed(run)}">
                            <f:param name="runid" value="#{run.id}"/>
                        </h:link>
                    </p:column>
                    <p:column headerText="Pages in process">
                        <h:link outcome="#{runsBean.goRunPages()}" value="#{runsBean.getPagesInProcess(run)}">
                            <f:param name="runid" value="#{run.id}"/>
                        </h:link>
                    </p:column>
                    <p:column headerText="Start date" sortBy="#{run.start}">
                        <h:outputText value="#{run.start}"/>
                    </p:column>
                    <p:column headerText="End date" sortBy="#{run.end}">
                        <h:outputText value="#{run.end}"/>
                    </p:column>
                    <p:column>
                        <p:commandLink action="#{runsBean.stopCrawl(run)}" value="Stop" update="@form"/>
                    </p:column>
                    <p:column>
                        <p:commandLink action="#{runsBean.resumeCrawl(run)}" value="Resume" update="@form"/>
                    </p:column>
                    <p:column>
                        <p:commandLink action="#{runsBean.deleteCrawl(run)}" value="Delete" disabled="#{empty run.end}"  update="@form"/>
                    </p:column>
                </p:dataTable>
            </p:panelGrid>
        </h:form>
    </h:body>
</f:view>
	

{'fraction_non_alphanumeric': 0.17246713070378963, 'fraction_numerical': 0.004382572828048466, 'mean_word_length': 1.5150729335494328, 'pattern_counts': {'":': 0, '<': 132, '<?xml version=': 2, '>': 132, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 20}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5550663', 'n_tokens_mistral': 2377, 'n_tokens_neox': 2234, 'n_words': 301}