<commit_before><%inherit file="base.mako"/>
<%def name="title()">Registrations</%def>
<%def name="content()">
<div mod-meta='{"tpl": "project/project_header.mako", "replace": true}'></div>
<div class="page-header">
    <div class="pull-right">
    % if user_can_edit and node_category == 'project':
        <a href="${node_url}register" class="btn btn-default" type="button">New Registration</a>
    % else:
        <a class="btn btn-default disabled" type="button">New Registration</a>
    % endif
    </div>
	<h1>Registrations</h1>
</div>

% if node_registration_count:
    <div mod-meta='{
            "tpl": "util/render_nodes.mako",
            "uri": "${node_api_url}get_registrations/",
            "replace": true
        }'></div>
% elif node_category == 'project':
	There have been no registrations of this specific project.
    For a list of the most viewed and most recent public registrations on the
    Open Science Framework, click <a href="/explore/activity/">here</a>.
% elif node_category == 'component':
    There have been no registrations of this specific component.
    For a list of the most viewed and most recent public registrations on the
    Open Science Framework, click <a href="/explore/activity/">here</a>.
% endif
</%def><commit_msg>improved according to Steve's suggestion<commit_after><%inherit file="base.mako"/>
<%def name="title()">Registrations</%def>
<%def name="content()">
<div mod-meta='{"tpl": "project/project_header.mako", "replace": true}'></div>
<div class="page-header">
    <div class="pull-right">
    % if user_can_edit and node_category == 'project':
        <a href="${node_url}register" class="btn btn-default" type="button">New Registration</a>
    % else:
        <a class="btn btn-default disabled" type="button">New Registration</a>
    % endif
    </div>
	<h1>Registrations</h1>
</div>

% if node_registration_count:
    <div mod-meta='{
            "tpl": "util/render_nodes.mako",
            "uri": "${node_api_url}get_registrations/",
            "replace": true
        }'></div>
% else:
	There have been no registrations of this specific ${node_category}.
    For a list of the most viewed and most recent public registrations on the
    Open Science Framework, click <a href="/explore/activity/">here</a>.

% endif
</%def>
{'fraction_non_alphanumeric': 0.16076889471384884, 'fraction_numerical': 0.0017474879860200961, 'mean_word_length': 3.780793319415449, 'pattern_counts': {'":': 10, '<': 47, '<?xml version=': 0, '>': 47, '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': '7650186', 'n_tokens_mistral': 722, 'n_tokens_neox': 697, 'n_words': 197}