<commit_before>{% extends "site_base.html" %}

{% load i18n %}
{% load humanize %}
{% load cache %}
{% load ifsetting_tag %}
{% load bootstrap_tags %}
{% load package_tags %}

{% get_current_language as LANGUAGE_CODE %}

{% block head_title %}{% trans "Welcome" %}{% endblock %}

{% block body_id %}search{% endblock %}

{% block body_base %}
    <div class="container">

        <div class="alert alert-info">
            <p>Hey there!</p>
            <p>Thanks for checking out Crate.io. We are currently in beta and are trying to improve everyday! If you have any feedback please email <a href="mailto:<EMAIL>"><EMAIL></a> or pop into IRC (<a href="irc://irc.freenode.net:6667/crate">#crate on Freenode</a>).</p>
            <p>By the way, Crate.io is open source! Check it out on <a href="https://github.com/crateio/crate-site/">Github</a><p>
        </div>

        {% include "_messages.html" %}

        <div class="hero-unit">
            {% block banner %}
                {% cache 3600 home:package:stats LANGUAGE_CODE %}
                    <div class="package-stats">
                        {% package_download_count as download_count %}
                        {% package_count as total_packages %}
                        {% get_oldest_package as oldest_package %}

                        <span class="downloads">{{ download_count|intcomma }} downloads</span>
                        of {{ total_packages|intcomma }} packages since {{ oldest_package.created|date:"YEAR_MONTH_FORMAT" }}
                    </div>
                {% endcache %}

                <div id="main-search">
                    <form class="form-inline" method="GET" action=".">
                        {{ form.non_field_errors }}

                        <div class="control-group{% if form.q.errors %} error{% endif %}">
                            <label class="control-label visuallyhidden" for="id_search">{{ form.q.label }}</label>
                            <div class="controls">
                                {{ form.q.errors }}
                                {{ form.q }}

                                <input type="submit" class="btn primary" value="Search">
                            </div>
                        </div>

                        <input type="hidden" name="has_releases" value="on">
                    </form>
                </div>
            {% endblock %}
        </div>

        <div class="row">
            <div class="span4">
                <h2>New Packages</h2>
                {% new_packages 5 as changelogs %}<commit_msg>add a description of what crate is<commit_after>{% extends "site_base.html" %}

{% load i18n %}
{% load humanize %}
{% load cache %}
{% load ifsetting_tag %}
{% load bootstrap_tags %}
{% load package_tags %}

{% get_current_language as LANGUAGE_CODE %}

{% block head_title %}{% trans "Welcome" %}{% endblock %}

{% block body_id %}search{% endblock %}

{% block body_base %}
    <div class="container">

        <div class="alert alert-info">
            <p>Hey there!</p>
            <p>Thanks for checking out Crate.io. We are currently in beta and are trying to improve everyday! If you have any feedback please email <a href="mailto:<EMAIL>"><EMAIL></a> or pop into IRC (<a href="irc://irc.freenode.net:6667/crate">#crate on Freenode</a>).</p>
            <p>By the way, Crate.io is open source! Check it out on <a href="https://github.com/crateio/crate-site/">Github</a><p>
        </div>

        {% include "_messages.html" %}

        <div class="hero-unit">
            {% block banner %}
                {% cache 3600 home:package:stats LANGUAGE_CODE %}
                    <div class="package-stats">
                        {% package_download_count as download_count %}
                        {% package_count as total_packages %}
                        {% get_oldest_package as oldest_package %}

                        <span class="downloads">{{ download_count|intcomma }} downloads</span>
                        of {{ total_packages|intcomma }} packages since {{ oldest_package.created|date:"YEAR_MONTH_FORMAT" }}
                    </div>
                {% endcache %}

                <div id="main-search">
                    <form class="form-inline" method="GET" action=".">
                        {{ form.non_field_errors }}

                        <div class="control-group{% if form.q.errors %} error{% endif %}">
                            <label class="control-label visuallyhidden" for="id_search">{{ form.q.label }}</label>
                            <div class="controls">
                                {{ form.q.errors }}
                                {{ form.q }}

                                <input type="submit" class="btn primary" value="Search">
                            </div>
                        </div>

                        <input type="hidden" name="has_releases" value="on">
                    </form>
                </div>
            {% endblock %}
        </div>

        <div>
            <h3>Crate.io is a Python Package Host.</h3>
            <p>It is similar to PyPI (infact every package that PyPI has we mirror) with a much heaver focus on improving the ability to both discover packages, and reliably install them.</p>

            <h4>Package Discovery</h4>
            <ul>
                <li>Improved Search Based on <a href="http://www.elasticsearch.org/">Elastic Search</a></li>
                <li>Stats that Matter - See how many times a package has been installed across all versions or for a particular version</li>
                <li>Clean Detail Pages - Get to the data you care about faster with a simple copy and paste-able pip install command</li>
            </ul>

            <h4>Reliability</h4>
            <ul>
                <li>Package Hosting on <a href="http://aws.amazon.com/s3/">Amazon S3</a> and <a href="http://aws.amazon.com/cloudfront/">CloudFront</a></li>
                <li>Cache Safe Urls - All Package Urls include the package's sha256 hash, allowing you to cache them without worrying about a re upload invalidating your cache.</li>
                <li><span class="label warning">Coming Soon</span> pip compatible API hosted on EC2 across Multiple Availability Zones</li>
            </ul>

            <h4>Other Features</h4>
            <ul>
                <li>pip compatible API available at <a href="http://simple.crate.io/">http://simple.crate.io/</a> (<a href="">See Instructions Here</a>)</li>
                <li><span class="label warning">Coming Soon</span> Link your PyPI account to Crate.io and gain control of your packages on Crate.io</li>
                <li><span class="label warning">Coming Soon</span> REST API allowing easy access to Package Data</li>
            <ul>
        </div>

        <div class="row">
            <div class="span4">
                <h2>New Packages</h2>
                {% new_packages 5 as changelogs %}
{'fraction_non_alphanumeric': 0.13173825309887577, 'fraction_numerical': 0.006053617757278754, 'mean_word_length': 1.7700598802395209, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 133, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1776983', 'n_tokens_mistral': 2038, 'n_tokens_neox': 1818, 'n_words': 517}