<commit_before>{% extends "with_submenu.html" %}
{% load auth %}
{% load md2 %}
{% load rating_stars %}
{% load url from future %}

{% block submenu %}{% include "scls/submenu.html" %}{% endblock %}

{% block title %}{{ scl.title }}{% endblock %}

{% block content %}

<div class="scl-toolbar btn-group btn-group-sm">
    {% allowed 'edit' obj=scl %}
    <a class='btn btn-default' href="{% url "scls:edit" scl %}">edit</a>
    <a class='btn btn-default' href="{% url "scls:acl" scl %}">collaborators</a>
    <a class='btn btn-default' href="{% url "scls:repos" scl %}">repos</a>

    {% if scl.auto_sync %}
        <div class='btn btn-default disabled' title='automatic synchronization with copr repositories is enabled'>auto sync</div>
    {% elif scl.need_sync %}
        <div class='btn btn-default active' title='synchronization with copr repositories is requested'>sync requested</div>
    {% else %}
        <a class='btn btn-default' href="{% url "scls:sync_req" scl %}">request sync</a>
    {% endif %}

    {% if scl.approved %}
    <span class='btn btn-default disabled'>approved</span>
    {% elif scl.review_req %}
    <span class='btn btn-default active'>review requested</span>
    {% else %}
    <a class='btn btn-default' href="{% url "scls:review_req" scl %}">review request</a>
    {% endif %}
    <a class='btn btn-default' href="{% url "scls:delete" scl %}">delete</a>
    {% notallowed %}
    <a class='btn btn-default' href="{% url "scls:complain" scl %}">complain</a>
    {% endallowed %}
</div>

<div class='page-header'>
<h1>{{ scl.title }}
    <small>
        {% if scl.approved %}
            <span class='glyphicon glyphicon-ok-circle approved'
                title='This collection has been approved'></span>
        {% endif %}
        by
        <a href="{% url "scls:list_user" scl.maintainer.username %}">
            {% if scl.maintainer.get_full_name %}{{ scl.maintainer.get_full_name }}{% else %}{{ scl.maintainer.username }}{% endif %}
        </a>
    </small>
</h1>
</div>
{{ scl.description | markdown2:"safe" }}

<h2>Instructions</h2>
{{ scl.instructions | markdown2:"safe" }}

<h2>Policy</h2>
{{ scl.policy_text | markdown2 }}

<h2>Yum Repositories
    {% if scl.last_modified %}
        <small>
        <td>{{ scl.last_modified }}</td>
        </small>
    {% endif %}
</h2>
<div class='panel panel-default'>
    <table class='table table-hover repos'>
        <thead>
            <tr class=''>
                <th></th>
                <th>Distribution</th>
                <th>Architecture</th>
                <th>Download</th>
                <th>Link</th>
            </tr>
        </thead>
        {% for repo in scl.enabled_repos %}
        <tr>
            <td class='img-cell'><img src="{{ repo.get_icon_url }}" width="32" height="32" alt=""/></td>
            <td><strong>{{ repo.distro | capfirst }} {{ repo.version }}</strong></td><commit_msg>list related collections on collection detail<commit_after>{% extends "with_submenu.html" %}
{% load auth %}
{% load md2 %}
{% load rating_stars %}
{% load url from future %}

{% block submenu %}{% include "scls/submenu.html" %}{% endblock %}

{% block title %}{{ scl.title }}{% endblock %}

{% block content %}

<div class="scl-toolbar btn-group btn-group-sm">
    {% allowed 'edit' obj=scl %}
    <a class='btn btn-default' href="{% url "scls:edit" scl %}">edit</a>
    <a class='btn btn-default' href="{% url "scls:acl" scl %}">collaborators</a>
    <a class='btn btn-default' href="{% url "scls:repos" scl %}">repos</a>

    {% if scl.auto_sync %}
        <div class='btn btn-default disabled' title='automatic synchronization with copr repositories is enabled'>auto sync</div>
    {% elif scl.need_sync %}
        <div class='btn btn-default active' title='synchronization with copr repositories is requested'>sync requested</div>
    {% else %}
        <a class='btn btn-default' href="{% url "scls:sync_req" scl %}">request sync</a>
    {% endif %}

    {% if scl.approved %}
    <span class='btn btn-default disabled'>approved</span>
    {% elif scl.review_req %}
    <span class='btn btn-default active'>review requested</span>
    {% else %}
    <a class='btn btn-default' href="{% url "scls:review_req" scl %}">review request</a>
    {% endif %}
    <a class='btn btn-default' href="{% url "scls:delete" scl %}">delete</a>
    {% notallowed %}
    <a class='btn btn-default' href="{% url "scls:complain" scl %}">complain</a>
    {% endallowed %}
</div>

<div class='page-header'>
<h1>{{ scl.title }}
    <small>
        {% if scl.approved %}
            <span class='glyphicon glyphicon-ok-circle approved'
                title='This collection has been approved'></span>
        {% endif %}
        by
        <a href="{% url "scls:list_user" scl.maintainer.username %}">
            {% if scl.maintainer.get_full_name %}{{ scl.maintainer.get_full_name }}{% else %}{{ scl.maintainer.username }}{% endif %}
        </a>
    </small>
</h1>
</div>
{{ scl.description | markdown2:"safe" }}

<h2>Instructions</h2>
{{ scl.instructions | markdown2:"safe" }}

<h2>Policy</h2>
{{ scl.policy_text | markdown2 }}

{% if scl.requires.all or scl.required_by.all %}
    <h2>Related software collections</h2>
    {% if scl.requires.all %}
        <p>Some packages from this collection require packages provided by these collections:</p>
        <ul>
            {% for req in scl.requires.all %}
            <li>
                <a href="{{ req.get_absolute_url }}">{{ req.title }}</a>
                <small>
                    {% if req.approved %}
                        <span class='glyphicon glyphicon-ok-circle approved'
                            title='This collection has been approved'></span>
                    {% endif %}
                    by
                    <a href="{% url "scls:list_user" req.maintainer.username %}">
                        {% if req.maintainer.get_full_name %}{{ req.maintainer.get_full_name }}{% else %}{{ req.maintainer.username }}{% endif %}
                    </a>
                </small>
            </li>
            {% endfor %}
        </ul>
    {% endif %}

    {% if scl.required_by.all %}
        <p>This collection provides packages, which may be required by some package from these collections:</p>
        <ul>
            {% for req in scl.required_by.all %}
            <li>
                <a href="{{ req.get_absolute_url }}">{{ req.title }}</a>
                <small>
                    {% if req.approved %}
                        <span class='glyphicon glyphicon-ok-circle approved'
                            title='This collection has been approved'></span>
                    {% endif %}
                    by
                    <a href="{% url "scls:list_user" req.maintainer.username %}">
                        {% if req.maintainer.get_full_name %}{{ req.maintainer.get_full_name }}{% else %}{{ req.maintainer.username }}{% endif %}
                    </a>
                </small>
            </li>
            {% endfor %}
        </ul>
    {% endif %}
{% endif %}

<h2>Yum Repositories
    {% if scl.last_modified %}
        <small>
        <td>{{ scl.last_modified }}</td>
        </small>
    {% endif %}
</h2>
<div class='panel panel-default'>
    <table class='table table-hover repos'>
        <thead>
            <tr class=''>
                <th></th>
                <th>Distribution</th>
                <th>Architecture</th>
                <th>Download</th>
                <th>Link</th>
            </tr>
        </thead>
        {% for repo in scl.enabled_repos %}
        <tr>
            <td class='img-cell'><img src="{{ repo.get_icon_url }}" width="32" height="32" alt=""/></td>
            <td><strong>{{ repo.distro | capfirst }} {{ repo.version }}</strong></td>
{'fraction_non_alphanumeric': 0.17746297488731488, 'fraction_numerical': 0.00437862202189311, 'mean_word_length': 2.2712721145745576, 'pattern_counts': {'":': 0, '<': 169, '<?xml version=': 0, '>': 169, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3317166', 'n_tokens_mistral': 2716, 'n_tokens_neox': 2419, 'n_words': 569}