<commit_before>{% extends "layout.html" %}
{% block styles %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='index.css') }}" />
{% endblock %}
{% block body %}
<div class="header">
    <div class="vert-text">
        {% if not user %}
        <h3>Welcome to Kerbal Stuff!</h3>
        <p>Hosting {{ mod_count }} mods for {{ locale.format("%d", user_count, grouping=True) }} users!</p>
        <a data-scroll class="btn btn-circle" href="#about"><span class="glyphicon glyphicon-chevron-down"></span></a>
        {% else %}
        <h3>Welcome back, {{ user.username }}!</h3>
        <p>We have {{ mod_count }} mods for you and {{ locale.format("%d", user_count - 1, grouping=True) }} other users!</p>
        {% endif %}
    </div>
</div>
{% if user and len(yours) >= 3 %}
<div class="well" style="margin-bottom: 0;">
    <div class="container">
        <a href="/profile/{{ user.username }}" class="btn btn-primary pull-right" style="margin-top: 5px;">
            Your Profile
            <span class="glyphicon glyphicon-chevron-right"></span>
        </a>
        <h1>Your Mods <small>Recently updated mods you follow</small></h1>
    </div>
</div>
<div class="container">
    <div class="row">
        {% for mod in yours %}
        {% include "mod-box.html" %}
        {% endfor %}
    </div>
</div>
{% endif %}
<div class="well" style="margin-bottom: 0; {% if user %}margin-top: 20px;{% endif %}">
    <div class="container">
        <a href="/browse/featured" class="btn btn-primary pull-right" style="margin-top: 5px;">
            Browse Featured Mods
            <span class="glyphicon glyphicon-chevron-right"></span>
        </a>
        <h1>Featured Mods <small>Hand-picked by Kerbal Stuff admins</small></h1>
    </div>
</div>
<div class="container">
    {% if user %}
    <div class="row">
        {% for feature in featured[:3]  %}
        {% set mod = feature.mod %}
        {% include "mod-box.html" %}
        {% endfor %}
    </div>
    {% else %}
    <div class="row">
        {% for feature in featured  %}
        {% set mod = feature.mod %}
        {% include "mod-box.html" %}<commit_msg>Fix "featured mods" margin for certian conditions<commit_after>{% extends "layout.html" %}
{% block styles %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='index.css') }}" />
{% endblock %}
{% block body %}
<div class="header">
    <div class="vert-text">
        {% if not user %}
        <h3>Welcome to Kerbal Stuff!</h3>
        <p>Hosting {{ mod_count }} mods for {{ locale.format("%d", user_count, grouping=True) }} users!</p>
        <a data-scroll class="btn btn-circle" href="#about"><span class="glyphicon glyphicon-chevron-down"></span></a>
        {% else %}
        <h3>Welcome back, {{ user.username }}!</h3>
        <p>We have {{ mod_count }} mods for you and {{ locale.format("%d", user_count - 1, grouping=True) }} other users!</p>
        {% endif %}
    </div>
</div>
{% if user and len(yours) >= 3 %}
<div class="well" style="margin-bottom: 0;">
    <div class="container">
        <a href="/profile/{{ user.username }}" class="btn btn-primary pull-right" style="margin-top: 5px;">
            Your Profile
            <span class="glyphicon glyphicon-chevron-right"></span>
        </a>
        <h1>Your Mods <small>Recently updated mods you follow</small></h1>
    </div>
</div>
<div class="container">
    <div class="row">
        {% for mod in yours %}
        {% include "mod-box.html" %}
        {% endfor %}
    </div>
</div>
{% endif %}
<div class="well" style="margin-bottom: 0; {% if user and len(yours) >= 3 %}margin-top: 20px;{% endif %}">
    <div class="container">
        <a href="/browse/featured" class="btn btn-primary pull-right" style="margin-top: 5px;">
            Browse Featured Mods
            <span class="glyphicon glyphicon-chevron-right"></span>
        </a>
        <h1>Featured Mods <small>Hand-picked by Kerbal Stuff admins</small></h1>
    </div>
</div>
<div class="container">
    {% if user %}
    <div class="row">
        {% for feature in featured[:3]  %}
        {% set mod = feature.mod %}
        {% include "mod-box.html" %}
        {% endfor %}
    </div>
    {% else %}
    <div class="row">
        {% for feature in featured  %}
        {% set mod = feature.mod %}
        {% include "mod-box.html" %}
{'fraction_non_alphanumeric': 0.1957623215108245, 'fraction_numerical': 0.008060801473975126, 'mean_word_length': 2.6649789029535866, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 104, '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': '4079757', 'n_tokens_mistral': 1537, 'n_tokens_neox': 1393, 'n_words': 353}