<commit_before>{% extends "layout.html" %}
{% block scripts %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='mod.css') }}" />
{% if mod.background %}
<style>
html {
    background-image: url('https://mediacru.sh{{ mod.background }}');
}
</style>
{% endif %}
{% endblock %}
{% block body %}
<h1>
    {{ mod.name }}
    <small>by <a href="/profile/{{ mod.user.username }}">{{ mod.user.username }}</a></small>
    <a href="/mod/{{ mod.id }}/{{ safe_name }}/edit" class="btn btn-primary"><span class="glyphicon glyphicon-pencil"></span> Edit Mod</a>
    {% if not mod.published %}
    <a href="/mod/{{ mod.id }}/{{ safe_name }}/publish" class="btn btn-danger">Publish Mod</a>
    <small>This is a preview - only you can see this page.</small>
    {% endif %}
</h1>
<div class="row mod-top">
    <div class="col-md-8">
        {% if len(screens) + len(videos) != 0 %}
        <div id="media-carousel" class="carousel slide" data-ride="carousel" style="width: 700px; height: 400px; margin: 0 auto;" data-pause="hover">
            <ol class="carousel-indicators">
                {% for v in videos %}
                {% if loop.index == 1 %}
                <li data-target="#media-carousel" data-slide-to="{{ loop.index - 1 }}" class="active"></li>
                {% else %}
                <li data-target="#media-carousel" data-slide-to="{{ loop.index - 1 }}"></li>
                {% endif %}
                {% endfor %}
                {% for v in screens %}
                {% if loop.index == 1 and len(videos) == 0 %}
                <li data-target="#media-carousel" data-slide-to="{{ loop.index - 1 + len(videos) }}" class="active"></li>
                {% else %}
                <li data-target="#media-carousel" data-slide-to="{{ loop.index - 1 + len(videos) }}"></li>
                {% endif %}
                {% endfor %}
            </ol>
            <div class="carousel-inner">
                {% for v in videos %}
                {% if loop.index == 1 %}
                <div class="item active">
                    <iframe src="https://mediacru.sh/{{ v.data }}/frame" frameborder="0" allowFullscreen width="700" height="400"></iframe>
                </div>
                {% else %}
                <div class="item">
                    <iframe src="https://mediacru.sh/{{ v.data }}/frame" frameborder="0" allowFullscreen width="700" height="400"></iframe>
                </div>
                {% endif %}
                {% endfor %}
                {% for s in screens %}
                {% if loop.index == 1 and len(videos) == 0 %}
                <div class="item active"><a href="https://mediacru.sh{{ s.data }}"><img src="https://mediacru.sh{{ s.data }}"></a></div>
                {% else %}
                <div class="item"><a href="https://mediacru.sh{{ s.data }}"><img src="https://mediacru.sh{{ s.data }}"></a></div>
                {% endif %}
                {% endfor %}
            </div>
        </div>
        {% else %}
        {{ mod.description | markdown }}
        {% endif %}
    </div>
    <div class="col-md-4">
        <ul class="nav nav-pills side-nav">
            <li class="active"><a href="#info" data-toggle="tab">Information</a></li>
            <li><a href="#versions" data-toggle="tab">Versions</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="info">
                <p style="height: 40px">{{ mod.short_description }}</p>
                <dl class="dl-horizontal"><commit_msg>Fix formatting errors on mod pages<commit_after>{% extends "layout.html" %}
{% block scripts %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='mod.css') }}" />
{% if mod.background %}
<style>
html {
    background-image: url('https://mediacru.sh{{ mod.background }}');
}
</style>
{% endif %}
{% endblock %}
{% block body %}
<h1>
    {{ mod.name }}
    <small>by <a href="/profile/{{ mod.user.username }}">{{ mod.user.username }}</a></small>
    {% if user and user.id == mod.user_id %}
    <a href="/mod/{{ mod.id }}/{{ safe_name }}/edit" class="btn btn-primary"><span class="glyphicon glyphicon-pencil"></span> Edit Mod</a>
    {% if not mod.published %}
    <a href="/mod/{{ mod.id }}/{{ safe_name }}/publish" class="btn btn-danger">Publish Mod</a>
    <small>This is a preview - only you can see this page.</small>
    {% endif %}
    {% endif %}
</h1>
<div class="row mod-top">
    <div class="col-md-8">
        {% if len(screens) + len(videos) != 0 %}
        <div id="media-carousel" class="carousel slide" data-ride="carousel" style="width: 700px; height: 400px; margin: 0 auto;" data-pause="hover">
            <ol class="carousel-indicators">
                {% for v in videos %}
                {% if loop.index == 1 %}
                <li data-target="#media-carousel" data-slide-to="{{ loop.index - 1 }}" class="active"></li>
                {% else %}
                <li data-target="#media-carousel" data-slide-to="{{ loop.index - 1 }}"></li>
                {% endif %}
                {% endfor %}
                {% for v in screens %}
                {% if loop.index == 1 and len(videos) == 0 %}
                <li data-target="#media-carousel" data-slide-to="{{ loop.index - 1 + len(videos) }}" class="active"></li>
                {% else %}
                <li data-target="#media-carousel" data-slide-to="{{ loop.index - 1 + len(videos) }}"></li>
                {% endif %}
                {% endfor %}
            </ol>
            <div class="carousel-inner">
                {% for v in videos %}
                {% if loop.index == 1 %}
                <div class="item active">
                    <iframe src="https://mediacru.sh/{{ v.data }}/frame" frameborder="0" allowFullscreen width="700" height="400"></iframe>
                </div>
                {% else %}
                <div class="item">
                    <iframe src="https://mediacru.sh/{{ v.data }}/frame" frameborder="0" allowFullscreen width="700" height="400"></iframe>
                </div>
                {% endif %}
                {% endfor %}
                {% for s in screens %}
                {% if loop.index == 1 and len(videos) == 0 %}
                <div class="item active"><a href="https://mediacru.sh{{ s.data }}"><img src="https://mediacru.sh{{ s.data }}"></a></div>
                {% else %}
                <div class="item"><a href="https://mediacru.sh{{ s.data }}"><img src="https://mediacru.sh{{ s.data }}"></a></div>
                {% endif %}
                {% endfor %}
            </div>
        </div>
        {% else %}
        {{ mod.description | markdown }}
        {% endif %}
    </div>
    <div class="col-md-4">
        <ul class="nav nav-pills side-nav">
            <li class="active"><a href="#info" data-toggle="tab">Information</a></li>
            <li><a href="#versions" data-toggle="tab">Versions</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="info">
                <p>{{ mod.short_description }}</p>
                <dl class="dl-horizontal">
{'fraction_non_alphanumeric': 0.2043205574912892, 'fraction_numerical': 0.010313588850174216, 'mean_word_length': 1.8993939393939394, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 139, 'https://': 14, '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': '1311890', 'n_tokens_mistral': 2412, 'n_tokens_neox': 2114, 'n_words': 490}