<commit_before><%inherit file="project/project_base.mako"/>

<div id="alertBar"></div>

## Use full page width
<%def name="container_class()">container-xxl</%def>

<%def name="title()">${file_name | h}</%def>

% if (user['can_comment'] or node['has_comments']) and allow_comments and not node['anonymous']:
    <%include file="include/comment_pane_template.mako"/>
% endif

<div class="row">
  <div class="col-sm-5">
    <h2 class="break-word">
      ## Split file name into two parts: with and without extension
      ${file_name_title | h}<span id="file-ext">${file_name_ext | h}</span>
      <a id='versionLink' class='scripted'>(Version: ${ version_id | h})</a>
      % if file_revision:
        <small>&nbsp;${file_revision | h}</small>
      % endif
    </h2>
  </div>
  <div class="col-sm-7">
    <div id="toggleBar" class="pull-right"></div>
  </div>
</div>
<hr>

%if file_id == node['preprint_file_id'] and node['is_public']:
<div class="row">
    <div class="col-xs-12">
        <div class="preprint-notice m-b-md p-md clearfix">
            This is the primary file for a preprint. <a href="http://help.osf.io/m/preprints">Learn more</a> about how to work with preprint files.
            <a href="${node['preprint_url']}" class="btn btn-default btn-sm m-r-xs pull-right">View preprint</a>
        </div>
    </div>
</div>
% endif<commit_msg>Don't show preprint banner on file detail if preprint was unfinished<commit_after><%inherit file="project/project_base.mako"/>

<div id="alertBar"></div>

## Use full page width
<%def name="container_class()">container-xxl</%def>

<%def name="title()">${file_name | h}</%def>

% if (user['can_comment'] or node['has_comments']) and allow_comments and not node['anonymous']:
    <%include file="include/comment_pane_template.mako"/>
% endif

<div class="row">
  <div class="col-sm-5">
    <h2 class="break-word">
      ## Split file name into two parts: with and without extension
      ${file_name_title | h}<span id="file-ext">${file_name_ext | h}</span>
      <a id='versionLink' class='scripted'>(Version: ${ version_id | h})</a>
      % if file_revision:
        <small>&nbsp;${file_revision | h}</small>
      % endif
    </h2>
  </div>
  <div class="col-sm-7">
    <div id="toggleBar" class="pull-right"></div>
  </div>
</div>
<hr>

%if file_id == node['preprint_file_id'] and node['is_preprint']:
<div class="row">
    <div class="col-xs-12">
        <div class="preprint-notice m-b-md p-md clearfix">
            This is the primary file for a preprint. <a href="http://help.osf.io/m/preprints">Learn more</a> about how to work with preprint files.
            <a href="${node['preprint_url']}" class="btn btn-default btn-sm m-r-xs pull-right">View preprint</a>
            % if user['is_admin']:
                <a href="${node['preprint_url']}edit" class="btn btn-default btn-sm m-r-xs pull-right">Edit preprint</a>
            % endif
        </div>
    </div>
</div>
% endif
{'fraction_non_alphanumeric': 0.18952024498128614, 'fraction_numerical': 0.004083021435862538, 'mean_word_length': 3.5652173913043477, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, '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': '4726952', 'n_tokens_mistral': 1047, 'n_tokens_neox': 1015, 'n_words': 238}