<commit_before><!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <link href="//netdna.bootstrapcdn.com/bootswatch/3.0.0/cosmo/bootstrap.min.css" rel="stylesheet">
    <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
    <title>{{ app.title }}</title>
</head>

<body>
    <div class="container" style="margin-top:20px">
        <form class="form">
            <div class="form-group">
                <input type="text" class="filter form-control" placeholder="Search...">
            </div>
        </form>

        {% for link in links %}
            <div class="link" style="margin-bottom:10px">
                <a href="{{ link.url }}">
                    {% if link.meta.type is defined %}
                        {% if link.domain in ["open.spotify.com"] %}
                            <i class="icon-headphones icon-fixed-width"></i>
                        {% elseif link.domain in ["youtube.com"] %}
                            <i class="icon-youtube-sign icon-fixed-width"></i>
                        {% elseif link.domain in ["github.com"] %}
                            <i class="icon-github icon-fixed-width"></i>
                        {% elseif link.meta.type == "photo" %}
                            <i class="icon-camera icon-fixed-width"></i>
                        {% elseif link.meta.type == "video" %}
                            <i class="icon-youtube-play icon-fixed-width"></i>
                        {% elseif link.meta.type == "error" %}
                            <i class="icon-remove icon-fixed-width"></i>
                        {% else %}
                            <i class="icon-file icon-fixed-width"></i>
                        {% endif %}
                    {% endif %}

                    {% if link.meta.title is defined %}
                        {{ link.meta.title }}
                        <small class="text-muted">({{ link.url }})</small>
                    {% else %}
                        {{ link.url }}
                    {% endif %}
                </a>
                <br>
                <span class="text-muted" style="font-size:0.9em">
                    linked {{ link.time|date("Y-m-d H:i") }}

                    {% if not app.hide_nicks %}
                        by {{ link.nick }}
                    {% endif %}

                    {% if link.meta.type is defined and link.meta.type in ["photo", "rich", "video"] %}
                        <a href="#modal" class="oembed" data-url="{{ link.url }}">
                            <i class="icon-external-link"></i>
                        </a>
                    {% endif %}
                </span>
            </div>
        {% endfor %}
    </div>
  
    <div class="modal fade" id="modal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                    <h3 class="modal-title">Preview link</h3>
                </div>
                <div class="modal-body">
                    {# Dynamically loaded #}
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
                </div>
            </div>
        </div>
    </div>

    <script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
    <script src="//cdn.embed.ly/jquery.embedly-3.1.1.min.js"></script>
    <script>
        $.embedly.defaults = {
            key: "{{ app.embedly_key }}",
            query: {
                frame: true,
                maxwidth: 538,
                secure: true
            },
            display: $.noop
        };

        $(function() {
            $(".filter").focus();
        });

        var rows = $(".link");
        $(".filter").keyup(function() {
            var val = $.trim($(this).val()).replace(/ +/g, " ").toLowerCase();
            
            rows.show().filter(function() {
                var text = $(this).text().replace(/\s+/g, " ").toLowerCase();
                return !~text.indexOf(val);
            }).hide();
        });

        $(".oembed").on("click", function(e) {
            e.preventDefault();

            var url = $(this).data("url");
<commit_msg>Disabled SSL and frames for embedly<commit_after><!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <link href="//netdna.bootstrapcdn.com/bootswatch/3.0.0/cosmo/bootstrap.min.css" rel="stylesheet">
    <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
    <title>{{ app.title }}</title>
</head>

<body>
    <div class="container" style="margin-top:20px">
        <form class="form">
            <div class="form-group">
                <input type="text" class="filter form-control" placeholder="Search...">
            </div>
        </form>

        {% for link in links %}
            <div class="link" style="margin-bottom:10px">
                <a href="{{ link.url }}">
                    {% if link.meta.type is defined %}
                        {% if link.domain in ["open.spotify.com"] %}
                            <i class="icon-headphones icon-fixed-width"></i>
                        {% elseif link.domain in ["youtube.com"] %}
                            <i class="icon-youtube-sign icon-fixed-width"></i>
                        {% elseif link.domain in ["github.com"] %}
                            <i class="icon-github icon-fixed-width"></i>
                        {% elseif link.meta.type == "photo" %}
                            <i class="icon-camera icon-fixed-width"></i>
                        {% elseif link.meta.type == "video" %}
                            <i class="icon-youtube-play icon-fixed-width"></i>
                        {% elseif link.meta.type == "error" %}
                            <i class="icon-remove icon-fixed-width"></i>
                        {% else %}
                            <i class="icon-file icon-fixed-width"></i>
                        {% endif %}
                    {% endif %}

                    {% if link.meta.title is defined %}
                        {{ link.meta.title }}
                        <small class="text-muted">({{ link.url }})</small>
                    {% else %}
                        {{ link.url }}
                    {% endif %}
                </a>
                <br>
                <span class="text-muted" style="font-size:0.9em">
                    linked {{ link.time|date("Y-m-d H:i") }}

                    {% if not app.hide_nicks %}
                        by {{ link.nick }}
                    {% endif %}

                    {% if link.meta.type is defined and link.meta.type in ["photo", "rich", "video"] %}
                        <a href="#modal" class="oembed" data-url="{{ link.url }}">
                            <i class="icon-external-link"></i>
                        </a>
                    {% endif %}
                </span>
            </div>
        {% endfor %}
    </div>
  
    <div class="modal fade" id="modal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                    <h3 class="modal-title">Preview link</h3>
                </div>
                <div class="modal-body">
                    {# Dynamically loaded #}
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
                </div>
            </div>
        </div>
    </div>

    <script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
    <script src="//cdn.embed.ly/jquery.embedly-3.1.1.min.js"></script>
    <script>
        $.embedly.defaults = {
            key: "{{ app.embedly_key }}",
            query: {
                maxwidth: 538
            },
            display: $.noop
        };

        $(function() {
            $(".filter").focus();
        });

        var rows = $(".link");
        $(".filter").keyup(function() {
            var val = $.trim($(this).val()).replace(/ +/g, " ").toLowerCase();
            
            rows.show().filter(function() {
                var text = $(this).text().replace(/\s+/g, " ").toLowerCase();
                return !~text.indexOf(val);
            }).hide();
        });

        $(".oembed").on("click", function(e) {
            e.preventDefault();

            var url = $(this).data("url");

{'fraction_non_alphanumeric': 0.1732265704296831, 'fraction_numerical': 0.006315552046915529, 'mean_word_length': 1.2587875700458482, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 141, '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': '77732', 'n_tokens_mistral': 2593, 'n_tokens_neox': 2382, 'n_words': 435}