<commit_before>{% load doi %}
{% load i18n %}
{% load author %}
{% load statuses %}
{% for publi in paper.first_publications %}
{% if forloop.first %}
  <span class="detailsTitle">{% trans "Published in" %}</span>
  <div class="detailsContent">
{% endif %}
<p>{{ publi | publication }}</p>
{% if publi.doi %}
<p>DOI: <a href="{{ publi | doi_to_url }}">{{ publi.doi }}</a></p>
{% endif %}
{% if forloop.last %}
</div>
{% endif %}
{% endfor %}

<span class="detailsTitle">{% trans "Links" %}</span>
<div class="detailsContent">
    {% include 'papers/paperSources.html' with paper=paper %}
</div>

<!-- Export citation modal -->
<div class="modal fade" id="exportCitationModal" tabindex="-1" role="dialog" aria-labelledby="exportCitationModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label='{% trans "Close" %}'>
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exportCitationModalLabel">{% trans "Export citation" %}</h4>
            </div>
            <div class="modal-body">
                <form>
                    <div class="form-group row">
                        <div class="col-xs-6">
                            <label for="exportCitationFormat" id="exportCitationFormatLabel">{% trans "Format" %}</label>
                            <select id="exportCitationFormat" class="form-control">
                                <option value="bibtex" selected>BibTeX</option>
                            </select>
                        </div>
                        <div class="col-xs-6 text-right">
                            <a class="btn btn-primary" role="button" href="{% url 'api-paper-pk' pk=paper.id %}?format=bibtex" download="{{ paper.slug }}.bib"><span class="glyphicon glyphicon-download" aria-hidden="true"></span> {% trans "Download" %}</a>
                        </div>
                    </div>
                    <div class="form-group row">
                        <div class="col-xs-12">
                            <textarea id="exportCitation-Citation" class="form-control" rows="20">{{ paper.bibtex.strip }}</textarea>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans "Close" %}</button>
            </div>
        </div>
    </div>
</div>

<span class="detailsTitle">{% trans "Tools" %}</span>
<div class="detailsContent">
    <p><a href="#" data-toggle="modal" data-target="#exportCitationModal">{% trans "Export citation" %}</a></p>
    {% with paper.get_doi as doi %}
    <p><a href="{{ paper.google_scholar_link }}">{% trans "Search in Google Scholar" %}</a></p>
    {% if doi and not paper.pdf_url %}
    <p><a href="https://openaccessbutton.org/request?doi={{ doi }}">{% trans "Request with the Open Access Button" %}</a></p>
    {% endif %}
    {% endwith %}
</div>

{% if request.user.is_superuser %}
<span class="detailsTitle">{% trans "Admin zone" %}</span>
<div class="detailsContent">
    <p><strong>Fingerprint:</strong> {{ paper.plain_fingerprint }}</p>
    <p><strong>Fingerprint:</strong> <a href="http://doai.dissem.in/oai?verb=ListRecords&metadataPrefix=base_dc&set=proaixy:fingerprint:{{ paper.fingerprint }}">{{ paper.fingerprint }}</a></p>
</div>
{% endif %}
<commit_msg>Mark Google Scholar as an external link<commit_after>{% load doi %}
{% load i18n %}
{% load author %}
{% load statuses %}
{% for publi in paper.first_publications %}
{% if forloop.first %}
  <span class="detailsTitle">{% trans "Published in" %}</span>
  <div class="detailsContent">
{% endif %}
<p>{{ publi | publication }}</p>
{% if publi.doi %}
<p>DOI: <a href="{{ publi | doi_to_url }}">{{ publi.doi }}</a></p>
{% endif %}
{% if forloop.last %}
</div>
{% endif %}
{% endfor %}

<span class="detailsTitle">{% trans "Links" %}</span>
<div class="detailsContent">
    {% include 'papers/paperSources.html' with paper=paper %}
</div>

<!-- Export citation modal -->
<div class="modal fade" id="exportCitationModal" tabindex="-1" role="dialog" aria-labelledby="exportCitationModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label='{% trans "Close" %}'>
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exportCitationModalLabel">{% trans "Export citation" %}</h4>
            </div>
            <div class="modal-body">
                <form>
                    <div class="form-group row">
                        <div class="col-xs-6">
                            <label for="exportCitationFormat" id="exportCitationFormatLabel">{% trans "Format" %}</label>
                            <select id="exportCitationFormat" class="form-control">
                                <option value="bibtex" selected>BibTeX</option>
                            </select>
                        </div>
                        <div class="col-xs-6 text-right">
                            <a class="btn btn-primary" role="button" href="{% url 'api-paper-pk' pk=paper.id %}?format=bibtex" download="{{ paper.slug }}.bib"><span class="glyphicon glyphicon-download" aria-hidden="true"></span> {% trans "Download" %}</a>
                        </div>
                    </div>
                    <div class="form-group row">
                        <div class="col-xs-12">
                            <textarea id="exportCitation-Citation" class="form-control" rows="20">{{ paper.bibtex.strip }}</textarea>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans "Close" %}</button>
            </div>
        </div>
    </div>
</div>

<span class="detailsTitle">{% trans "Tools" %}</span>
<div class="detailsContent">
    <p><a href="#" data-toggle="modal" data-target="#exportCitationModal">{% trans "Export citation" %}</a></p>
    {% with paper.get_doi as doi %}
    <p><a href="{{ paper.google_scholar_link }}">{% trans "Search in Google Scholar" %} <img src="/static/extlink.png" alt="[^]"></a></p>
    {% if doi and not paper.pdf_url %}
    <p><a href="https://openaccessbutton.org/request?doi={{ doi }}">{% trans "Request with the Open Access Button" %}</a></p>
    {% endif %}
    {% endwith %}
</div>

{% if request.user.is_superuser %}
<span class="detailsTitle">{% trans "Admin zone" %}</span>
<div class="detailsContent">
    <p><strong>Fingerprint:</strong> {{ paper.plain_fingerprint }}</p>
    <p><strong>Fingerprint:</strong> {{ paper.fingerprint }}</p>
</div>
{% endif %}

{'fraction_non_alphanumeric': 0.19005353620738236, 'fraction_numerical': 0.0030994646379261764, 'mean_word_length': 2.385312350977587, 'pattern_counts': {'":': 0, '<': 180, '<?xml version=': 0, '>': 180, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5924776', 'n_tokens_mistral': 2265, 'n_tokens_neox': 2037, 'n_words': 471}