<commit_before><%= erb :'partials/_projects-header', :locals => { :project => project, :countryOrRegion => countryOrRegion, :fundedProjectsCount => fundedProjectsCount, :fundingProjectsCount => fundingProjectsCount, :active => "summary"} %>

<div class="row">
    <div class="twelve columns summary">
        <%project['descriptions'].sort_by{|item| item['type']['code']}.each do |description|%>
            <%if description['type']['code'] == '1'%>
                <b class="more-info-title">Description</b>
                <p class="project-description"><%= description['narratives'][0]['text'] %></p>
            <%elsif description['type']['code'] == '2'%>
                <b class="more-info-title">Objectives</b>
                <p class="project-description"><%= description['narratives'][0]['text'] %></p>
            <%elsif description['type']['code'] == '3'%>
                <b class="more-info-title">Target Groups</b>
                <p class="project-description"><%= description['narratives'][0]['text'] %></p>
            <%elsif description['type']['code'] == '4'%>
                <b class="more-info-title">Other</b>
                <p class="project-description"><%= description['narratives'][0]['text'] %></p>
            <%end%> 
        <%end%>
    </div>

</div>

<div class="row">

    <div class="six columns"><commit_msg>Fixed a small bug.<commit_after><%= erb :'partials/_projects-header', :locals => { :project => project, :countryOrRegion => countryOrRegion, :fundedProjectsCount => fundedProjectsCount, :fundingProjectsCount => fundingProjectsCount, :active => "summary"} %>

<div class="row">
    <div class="twelve columns summary">
        <%if project['descriptions'].length == 1%>
            <b class="more-info-title">Description</b>
            <%begin%>
                <p class="project-description"><%= project['descriptions'][0]['narratives'][0]['text'] %></p>
            <%rescue%>
                <p class="project-description">N/A</p>
            <%end%>
        <%else%>
            <%project['descriptions'].sort_by{|item| item['type']['code']}.each do |description|%>
                <%if description['type']['code'] == '1'%>
                    <b class="more-info-title">Description</b>
                    <p class="project-description"><%= description['narratives'][0]['text'] %></p>
                <%elsif description['type']['code'] == '2'%>
                    <b class="more-info-title">Objectives</b>
                    <p class="project-description"><%= description['narratives'][0]['text'] %></p>
                <%elsif description['type']['code'] == '3'%>
                    <b class="more-info-title">Target Groups</b>
                    <p class="project-description"><%= description['narratives'][0]['text'] %></p>
                <%elsif description['type']['code'] == '4'%>
                    <b class="more-info-title">Other</b>
                    <p class="project-description"><%= description['narratives'][0]['text'] %></p>
                <%end%> 
            <%end%>
        <%end%>
    </div>

</div>

<div class="row">

    <div class="six columns">
{'fraction_non_alphanumeric': 0.2164750957854406, 'fraction_numerical': 0.006066411238825032, 'mean_word_length': 2.681551116333725, 'pattern_counts': {'":': 0, '<': 84, '<?xml version=': 0, '>': 96, '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': '6623397', 'n_tokens_mistral': 953, 'n_tokens_neox': 895, 'n_words': 158}