<commit_before>$(document).ready(function () {
    $.ajax({
        type: "GET",
        url: "http://apis-guru.github.io/api-models/api/v1/list.json",
        dataType: 'json',
        cache: false,
        success: function (data) {
            var fragment = $(document.createDocumentFragment());
            $.each(data, function (name, apis) {
                var preferred = apis.preferred;
                var api = apis.versions[preferred];
                var info = api.info;
                var contact = info.contact || {};
                var logo = info['x-logo'] || {};
                var logoUrl = logo.url || 'no-logo.png';
                var logoBg = logo.backgroundColor || '#eee';

                var card = $(
                    "<div class='col-xs-6 col-sm-4 col-md-3 .col-lg-2'>\
                        <div class='api-card'>\
                            <div style='padding: 5px 15px; border-radius: 9px 9px 0 0; background-color: " + logoBg + ";'>\
                                <div class='logo' style='background-image: url(\"" + logoUrl + "\");'/>\
                            </div>\
                            <div class='content'>\
                                <div class='title'>\
                                    <a href='" + (contact.url || '') + "' target='_blank'>" + info.title + "</a>\
                                </div>\
                                <div>" + marked(info.description || '') + "</div>\
                            </div>\
                            <div class='footer'>\
                                <div style='font-size: .8em'>OpenAPI(fka Swagger) 2.0</div>\
                                <div class='versions'>\
                                    <div style='display: inline-block; vertical-align: bottom;' class='truncate'>" + preferred + "</div>\
                                    <span>\
                                        <a href='" + api.swaggerUrl + "' target='_blank' class='label label-primary'>json</a> \
                                        <a href='" + api.swaggerYamlUrl + "' target='_blank' class='label label-primary'>yaml</a>\
                                    </span>\
                                </div>\
                            </div>\
                        </div>\
                    </div>");
<commit_msg>use externalDocs.url<commit_after>$(document).ready(function () {
    $.ajax({
        type: "GET",
        url: "http://apis-guru.github.io/api-models/api/v1/list.json",
        dataType: 'json',
        cache: false,
        success: function (data) {
            var fragment = $(document.createDocumentFragment());
            $.each(data, function (name, apis) {
                var preferred = apis.preferred;
                var api = apis.versions[preferred];
                var info = api.info;
                var externalDocs = api.externalDocs || {};
                var contact = info.contact || {};
                var externalUrl = externalDocs.url || contact.url;
                var logo = info['x-logo'] || {};
                var logoUrl = logo.url || 'no-logo.png';
                var logoBg = logo.backgroundColor || '#eee';

                var card = $(
                    "<div class='col-xs-6 col-sm-4 col-md-3 .col-lg-2'>\
                        <div class='api-card'>\
                            <div style='padding: 5px 15px; border-radius: 9px 9px 0 0; background-color: " + logoBg + ";'>\
                                <div class='logo' style='background-image: url(\"" + logoUrl + "\");'/>\
                            </div>\
                            <div class='content'>\
                                <div class='title'>\
                                    <a href='" + (externalUrl || '') + "' target='_blank'>" + info.title + "</a>\
                                </div>\
                                <div>" + marked(info.description || '') + "</div>\
                            </div>\
                            <div class='footer'>\
                                <div style='font-size: .8em'>OpenAPI(fka Swagger) 2.0</div>\
                                <div class='versions'>\
                                    <div style='display: inline-block; vertical-align: bottom;' class='truncate'>" + preferred + "</div>\
                                    <span>\
                                        <a href='" + api.swaggerUrl + "' target='_blank' class='label label-primary'>json</a> \
                                        <a href='" + api.swaggerYamlUrl + "' target='_blank' class='label label-primary'>yaml</a>\
                                    </span>\
                                </div>\
                            </div>\
                        </div>\
                    </div>");

{'fraction_non_alphanumeric': 0.15238690848446945, 'fraction_numerical': 0.006253908692933083, 'mean_word_length': 1.0339126748622298, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1381094', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1180, 'n_words': 246}