<commit_before>export let searchApiTemplate = _.template('\
<div id="bibimport-api-search" title="' + gettext("Link") + '">\
        <p>\
            <input id="bibimport-search-text" class="linktitle" type="text" value="" placeholder="' + gettext("Title, Author, DOI, etc.") + '"/>\
            <button id="bibimport-search-button" class="fw-button fw-dark" type="button">' + gettext("search") + '</button>\
        </p>\
        <div id="bibimport-search-header"></div>\
        <div id="bibimport-search-result-sowiport" class="bibimport-search-result"></div>\
        <div id="bibimport-search-result-datacite" class="bibimport-search-result"></div>\
        <div id="bibimport-search-result-crossref" class="bibimport-search-result"></div>\
        <div id="bibimport-search-result-worldcat" class="bibimport-search-result"></div>\
    </div>\
')


export let searchApiResultSowiportTemplate = _.template('\
    <%  _.each(items, function(item) {%>\
    <div class="item">\
        <button type="button" class="api-import fw-button fw-orange fw-small" data-id="<%= item.id %>">' + gettext('Import') + '</button>\
        <h3>\
            <%= item.title %>\
        </h3>\
        <% if (item.doi) { %><p><b>DOI:</b> <%= item.doi %></p><% } %>\
        <% if (item.description) { %><p><%= item.description %></p><% } %>\
    </div>\<commit_msg>fix confusing bibapi search title<commit_after>export let searchApiTemplate = _.template('\
<div id="bibimport-api-search" title="' + gettext("Search bibliography databases") + '">\
        <p>\
            <input id="bibimport-search-text" class="linktitle" type="text" value="" placeholder="' + gettext("Title, Author, DOI, etc.") + '"/>\
            <button id="bibimport-search-button" class="fw-button fw-dark" type="button">' + gettext("search") + '</button>\
        </p>\
        <div id="bibimport-search-header"></div>\
        <div id="bibimport-search-result-sowiport" class="bibimport-search-result"></div>\
        <div id="bibimport-search-result-datacite" class="bibimport-search-result"></div>\
        <div id="bibimport-search-result-crossref" class="bibimport-search-result"></div>\
        <div id="bibimport-search-result-worldcat" class="bibimport-search-result"></div>\
    </div>\
')


export let searchApiResultSowiportTemplate = _.template('\
    <%  _.each(items, function(item) {%>\
    <div class="item">\
        <button type="button" class="api-import fw-button fw-orange fw-small" data-id="<%= item.id %>">' + gettext('Import') + '</button>\
        <h3>\
            <%= item.title %>\
        </h3>\
        <% if (item.doi) { %><p><b>DOI:</b> <%= item.doi %></p><% } %>\
        <% if (item.description) { %><p><%= item.description %></p><% } %>\
    </div>\
{'fraction_non_alphanumeric': 0.22530076558512577, 'fraction_numerical': 0.0014582573824279985, 'mean_word_length': 3.0772659732540864, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '3836575', 'n_tokens_mistral': 939, 'n_tokens_neox': 886, 'n_words': 153}