<commit_before>---
---
maxBy = (array, key) ->
    if (not key?)
        return Math.max(null, array)
    else
        return array.reduce((last, current) ->
            if (not last? || key(current) > key(last))
                return current
            else
                return last
        , null)

Array::maxBy = maxBy

latest = (releases) -> maxBy releases, (rel) -> Date.parse rel.publishedAt

androidApps = (release) ->
    release.assets.filter (asset, index, array) ->
        asset.contentType == "application/vnd.android.package-archive"

size = (asset) ->
    Math.round(100 * asset.size / Math.pow(1024, 2)) / 100


insertLatestDownloadLink = (releases, title, container) ->
    release = latest releases
    app = androidApps(release)[0]
    sizeMB = size app
    version = release.tagName

    a = document.createElement('a');
    a.href = app.browserDownloadUrl;<commit_msg>Fix download link<commit_after>---
---
maxBy = (array, key) ->
    if (not key?)
        return Math.max(null, array)
    else
        return array.reduce((last, current) ->
            if (not last? || key(current) > key(last))
                return current
            else
                return last
        , null)

Array::maxBy = maxBy

latest = (releases) -> maxBy releases, (rel) -> Date.parse rel.publishedAt

androidApps = (release) ->
    release.assets.filter (asset, index, array) ->
        asset.contentType == "application/vnd.android.package-archive"

size = (asset) ->
    Math.round(100 * asset.size / Math.pow(1024, 2)) / 100


insertLatestDownloadLink = (releases, title, container) ->
    release = latest releases
    app = androidApps(release)[0]
    sizeMB = size app
    version = release.tagName

    a = document.createElement('a');
    a.href = app.browserDownload.url;
{'fraction_non_alphanumeric': 0.13552704963747908, 'fraction_numerical': 0.013385387618516454, 'mean_word_length': 2.3849056603773584, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7413655', 'n_tokens_mistral': 566, 'n_tokens_neox': 528, 'n_words': 135}