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

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

<%def name="file_versions()">
<div class="scripted" id="dataverseScope">

    <div id="deletingAlert" class="alert alert-warning fade">
        Deleting your file…
    </div>

    <ol class="breadcrumb">
         <li><a data-bind="attr: {href: files_url}">{{nodeTitle}}</a></li>
         <li>Dataverse</li>
         <li class="active overflow">{{filename}}</li>
    </ol>

     <p>
         <a data-bind="attr: {href: download_url}" class="btn btn-success btn-md">Download <i class="icon-download-alt"></i></a>
        % if user['can_edit'] and 'write' in user['permissions']:
            <button data-bind="click: deleteFile" class="btn btn-danger btn-md">Delete <i class="icon-trash"></i></button>
        % endif
     </p>


    % if not node['anonymous']:
            <table class="table table-striped" id="file-version-history">
                <thead>
                <tr>
                    <th>Dataverse</th>
                    <th>Study</th>
                    <th>Download</th>
                </tr><commit_msg>Add overflow class to breadcrumb title and remove redundant permissions check<commit_after><%inherit file="project/addon/view_file.mako" />

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

<%def name="file_versions()">
<div class="scripted" id="dataverseScope">

    <div id="deletingAlert" class="alert alert-warning fade">
        Deleting your file…
    </div>

    <ol class="breadcrumb">
         <li class="active overflow"><a data-bind="attr: {href: files_url}">{{nodeTitle}}</a></li>
         <li>Dataverse</li>
         <li class="active overflow">{{filename}}</li>
    </ol>

     <p>
         <a data-bind="attr: {href: download_url}" class="btn btn-success btn-md">Download <i class="icon-download-alt"></i></a>
        % if user['can_edit']:
            <button data-bind="click: deleteFile" class="btn btn-danger btn-md">Delete <i class="icon-trash"></i></button>
        % endif
     </p>


    % if not node['anonymous']:
            <table class="table table-striped" id="file-version-history">
                <thead>
                <tr>
                    <th>Dataverse</th>
                    <th>Study</th>
                    <th>Download</th>
                </tr>
{'fraction_non_alphanumeric': 0.18272138228941684, 'fraction_numerical': 0.0, 'mean_word_length': 2.4209748892171343, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6539092', 'n_tokens_mistral': 754, 'n_tokens_neox': 709, 'n_words': 143}