<commit_before><!--/*
The 'th:with's below require some explanation.  They are used to
create <a href...> tags for the user and project which can then be used in a
internationalization message.  4 variables are created:
    userHref = the href to the user in the event
    userLink = the <a> tag which uses the userHref variable
    projectHref = the href to the project
    projectLink = the <a> tag using the projectHref
These created variables are then used as parameters to a message so that they
can be internationalized.
*/-->

<th:block class="event-text" th:fragment="user-role-event (event)">
    <div class="event-icon"><img class="gravatar" data:gravatar-src-once="'\'' + ${event.user.email} + '\''" gravatar-size="28" /></div>
    <div class="event-content user-role-event"
        th:with="userHref=@{/users/{uid}(uid=${event.user.getId()})},
        userLink=${'&lt;a href='+ userHref +'&gt;'+ event.user.label +'&lt;/a&gt; '},
        projectHref=@{/projects/{pid}(pid=${event.project.getId()})},
        projectLink=${'&lt;a href='+ projectHref +' &gt;'+ event.project.label +'&lt;/a&gt; '}">
        <span th:utext="#{event.user_added(${userLink},#{'projectRole.'+${event.role}},${projectLink})}"></span></div>
</th:block>

<th:block class="event-text" th:fragment="user-removed-event (event)">
    <div class="event-icon"><img class="gravatar" data:gravatar-src-once="'\'' + ${event.user.email} + '\''" gravatar-size="28" /></div>
    <div class="event-content user-removed-event"
            th:with="userHref=@{/users/{uid}(uid=${event.user.getId()})},
            userLink=${'&lt;a href='+ userHref +'&gt;'+ event.user.label +'&lt;/a&gt; '},
            projectHref=@{/projects/{pid}(pid=${event.project.getId()})},
            projectLink=${'&lt;a href='+ projectHref +' &gt;'+ event.project.label +'&lt;/a&gt; '}"
            th:utext="#{event.user_removed(${userLink},${projectLink})}"></div>
</th:block>

<th:block class="event-text" th:fragment="sample-added-event (event)">
    <div class="event-icon"><fa:icon type="sample" /></div>
    <div class="event-content sample-added-event"
            th:with="sampleHref=@{/projects/{pid}/samples/{sid}/sequenceFiles(sid=${event.sample.getId()}, pid=${event.project.getId()})},
            sampleLink=${'&lt;a href='+ sampleHref +'&gt;'+ event.sample.label +'&lt;/a&gt; '},
            projectHref=@{/projects/{pid}(pid=${event.project.getId()})},
            projectLink=${'&lt;a href='+ projectHref +'&gt;'+ event.project.label +'&lt;/a&gt; '}">
            <span th:utext="#{event.sample_added(${sampleLink},${projectLink})}"></span></div>
</th:block>

<th:block class="event-text" th:fragment="sample-removed-event (event)">
    <div class="event-icon"><fa:icon type="delete" /></div>
    <div class="event-content sample-removed-event"
            th:with="projectHref=@{/projects/{pid}(pid=${event.project.getId()})},
            projectLink=${'&lt;a href='+ projectHref +'&gt;'+ event.project.label +'&lt;/a&gt; '}">
            <span th:utext="#{event.sample_removed(${event.sampleName},${projectLink})}"></span></div>
</th:block>

<th:block class="event-text" th:fragment="data-added-event (event)">
    <div class="event-icon"><fa:icon type="file" /></div><commit_msg>Changed to just using icon<commit_after><!--/*
The 'th:with's below require some explanation.  They are used to
create <a href...> tags for the user and project which can then be used in a
internationalization message.  4 variables are created:
    userHref = the href to the user in the event
    userLink = the <a> tag which uses the userHref variable
    projectHref = the href to the project
    projectLink = the <a> tag using the projectHref
These created variables are then used as parameters to a message so that they
can be internationalized.
*/-->

<th:block class="event-text" th:fragment="user-role-event (event)">
    <div class="event-icon"><img class="gravatar" data:gravatar-src-once="'\'' + ${event.user.email} + '\''" gravatar-size="28" /></div>
    <div class="event-content user-role-event"
        th:with="userHref=@{/users/{uid}(uid=${event.user.getId()})},
        userLink=${'&lt;a href='+ userHref +'&gt;'+ event.user.label +'&lt;/a&gt; '},
        projectHref=@{/projects/{pid}(pid=${event.project.getId()})},
        projectLink=${'&lt;a href='+ projectHref +' &gt;'+ event.project.label +'&lt;/a&gt; '}">
        <span th:utext="#{event.user_added(${userLink},#{'projectRole.'+${event.role}},${projectLink})}"></span></div>
</th:block>

<th:block class="event-text" th:fragment="user-removed-event (event)">
    <div class="event-icon"><fa:icon type="user" /></div>
    <div class="event-content user-removed-event"
            th:with="userHref=@{/users/{uid}(uid=${event.user.getId()})},
            userLink=${'&lt;a href='+ userHref +'&gt;'+ event.user.label +'&lt;/a&gt; '},
            projectHref=@{/projects/{pid}(pid=${event.project.getId()})},
            projectLink=${'&lt;a href='+ projectHref +' &gt;'+ event.project.label +'&lt;/a&gt; '}"
            th:utext="#{event.user_removed(${userLink},${projectLink})}"></div>
</th:block>

<th:block class="event-text" th:fragment="sample-added-event (event)">
    <div class="event-icon"><fa:icon type="sample" /></div>
    <div class="event-content sample-added-event"
            th:with="sampleHref=@{/projects/{pid}/samples/{sid}/sequenceFiles(sid=${event.sample.getId()}, pid=${event.project.getId()})},
            sampleLink=${'&lt;a href='+ sampleHref +'&gt;'+ event.sample.label +'&lt;/a&gt; '},
            projectHref=@{/projects/{pid}(pid=${event.project.getId()})},
            projectLink=${'&lt;a href='+ projectHref +'&gt;'+ event.project.label +'&lt;/a&gt; '}">
            <span th:utext="#{event.sample_added(${sampleLink},${projectLink})}"></span></div>
</th:block>

<th:block class="event-text" th:fragment="sample-removed-event (event)">
    <div class="event-icon"><fa:icon type="delete" /></div>
    <div class="event-content sample-removed-event"
            th:with="projectHref=@{/projects/{pid}(pid=${event.project.getId()})},
            projectLink=${'&lt;a href='+ projectHref +'&gt;'+ event.project.label +'&lt;/a&gt; '}">
            <span th:utext="#{event.sample_removed(${event.sampleName},${projectLink})}"></span></div>
</th:block>

<th:block class="event-text" th:fragment="data-added-event (event)">
    <div class="event-icon"><fa:icon type="file" /></div>
{'fraction_non_alphanumeric': 0.22660864159154492, 'fraction_numerical': 0.0012433944668946222, 'mean_word_length': 4.274590163934426, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, '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': '6314', 'n_tokens_mistral': 2164, 'n_tokens_neox': 2164, 'n_words': 400}