<commit_before><div>
    <h3 class="center-align font__opensans similar__header">Similar Projects </h3>
    <p class="similar__body">The Quality Improvement office encourages you to join an existing project whenever possible. We have found the following projects which may be similar to the project you're proposing. If you are interested in joining an existing project, please click the collaborate button to contact the PQI of the project. If the similar projecs are not useful for your unique project, please continue to the project submission page.</p>
</div>

<form class="nonapprove__center" method="post" onkeypress="return event.keyCode != 13;">
        {% csrf_token %}
        <input class="btn__similar btn" type="submit" value="Continue to project submission >>>" />
    </form>
<div>
    <table class="striped">
        <thead>
            <tr>
                <th class="dashboard_row-title" data-field="title"><h5>Title</h5></th>
                <th class="dashboard_row-title" data-field="start_date"><h5>Expected Start Date</h5></th>
                <th class="dashboard_row-title" data-field="relevance"><h5>Relevance</h5></th>
                <th class="dashboard_row-title" data-field="role"><h5>Contact</h5></th>
            </tr>
        </thead>
        <tbody>
            {% for member_id, project, similarity in project_scores %}
                <tr>
                    <td class="project__title">{{ project.title }} 
                        <a class="dashboard_btns-view" href="{% url 'approver:projects' project_id=project.pk %}">View Project</a>
                    </td>
                   
                    <td class="project__title">{{ project.proposed_start_date|date:"M d Y" }}</td>
                    <td class="project__similarity"><p> {{ similarity | floatformat:2 }} % </p></td>
                    {% if project.role == "PI" %}
                        {% if project.is_approved %}
                            <td><a href="{% url 'approver:project_status' project_id=project.pk %}">See Certificate</a></td>
                        {% else %}
                            <td><a href="{% url 'approver:approve' project_id=project.pk %}">Project Approval</a></td>
                        {% endif %}
                    {% endif %}
                    <td><div class="project__collaborate"><p><a href="mailto:<EMAIL>?subject=QI Project Collaboration Request&body=Hi <collaborator name>, the QI Registry shows that a project I'm about to begin is a <xx> match with your <some name> project. I'm interested in collaborating with you on your <some name> project. Can we set up a time for us to meet to discuss in greater detail how we can work together? Please reply back to this email at your earliest convenience. Thanks!">Collaborate</a></p></div></td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
    <br/>
    <commit_msg>Dynamically craft collaborate email, filling in the required fields from the data<commit_after><div>
    <h3 class="center-align font__opensans similar__header">Similar Projects </h3>
    <p class="similar__body">The Quality Improvement office encourages you to join an existing project whenever possible. We have found the following projects which may be similar to the project you're proposing. If you are interested in joining an existing project, please click the collaborate button to contact the PQI of the project. If the similar projecs are not useful for your unique project, please continue to the project submission page.</p>
</div>

<form class="nonapprove__center" method="post" onkeypress="return event.keyCode != 13;">
        {% csrf_token %}
        <input class="btn__similar btn" type="submit" value="Continue to project submission >>>" />
    </form>
<div>
    <table class="striped">
        <thead>
            <tr>
                <th class="dashboard_row-title" data-field="title"><h5>Title</h5></th>
                <th class="dashboard_row-title" data-field="start_date"><h5>Expected Start Date</h5></th>
                <th class="dashboard_row-title" data-field="relevance"><h5>Relevance</h5></th>
                <th class="dashboard_row-title" data-field="role"><h5>Contact</h5></th>
            </tr>
        </thead>
        <tbody>
            {% for member_id, project, similarity in project_scores %}
                <tr>
                    <td class="project__title">{{ project.title }} 
                        <a class="dashboard_btns-view" href="{% url 'approver:projects' project_id=project.pk %}">View Project</a>
                    </td>
                   
                    <td class="project__title">{{ project.proposed_start_date|date:"M d Y" }}</td>
                    <td class="project__similarity"><p> {{ similarity | floatformat:2 }} % </p></td>
                    {% if project.role == "PI" %}
                        {% if project.is_approved %}
                            <td><a href="{% url 'approver:project_status' project_id=project.pk %}">See Certificate</a></td>
                        {% else %}
                            <td><a href="{% url 'approver:approve' project_id=project.pk %}">Project Approval</a></td>
                        {% endif %}
                    {% endif %}
                    <td><div class="project__collaborate"><p><a href="mailto:{{ project.owner.email_address }}?subject=QI Project Collaboration Request&body=Hi {{ project.owner.first_name }} {{ project.owner.last_name }}. The QI Registry shows that a project I am about to begin is a {{ similarity | floatformat:2 }}%25 match with your &quot;{{ project.title }}&quot; project. I am interested in collaborating with you on it. Can we set up a time for us to meet to discuss in greater detail how we can work together? Please reply back to this email at your earliest convenience. Thanks!">Collaborate</a></p></div></td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
    <br/>
    
{'fraction_non_alphanumeric': 0.1294058408862034, 'fraction_numerical': 0.004867405169519974, 'mean_word_length': 2.416857798165138, 'pattern_counts': {'":': 0, '<': 134, '<?xml version=': 0, '>': 140, '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': '936772', 'n_tokens_mistral': 1699, 'n_tokens_neox': 1564, 'n_words': 497}