<commit_before>{% extends "base.html" %} {% block body %}
<h1>经济数据一览</h1>
<nav>
    <a href="#datasets">下载CSV</a>
    <a href="#charts">图表</a>
</nav>

<h2 id="datasets">下载CSV</h2>
<table class="datasets">
    <tbody>
        {% for csv in csvs%}
        <tr{% if csv.isToday %} class="today" {% endif %}>
            <td>
                <a href="http://ig.ft.com/autograph/data/{{csv.name}}">{{csv.name}}</a> {{csv.size}}
            </td>
            <td>{{csv.lastModified}}</td>
            </tr>
            {% endfor %}
    </tbody>
</table>

<h2 id="charts">图表</h2>
<div class="charts">
    {% for chart in charts %}
    <div class="chart">
        <object data="graphics/{{chart.name}}" type="image/svg+xml"></object>
        <p>
            <small>{{chart.lastModified}}</small> {% if chart.isToday %}<span class="label today">Today</span>{% endif %}
        </p>
        <p>
            <a href="graphics/{{chart.name}}" download>svg ({{chart.size}})</a> |
            <a href="" download>png</a>
        </p>
    </div>

    {% endfor %}
</div>
{% endblock %}<commit_msg>use ft image service for png<commit_after>{% extends "base.html" %} {% block body %}
<h1>经济数据一览</h1>
<nav>
    <a href="#datasets">下载CSV</a>
    <a href="#charts">图表</a>
</nav>

<h2 id="datasets">下载CSV</h2>
<table class="datasets">
    <tbody>
        {% for csv in csvs%}
        <tr{% if csv.isToday %} class="today" {% endif %}>
            <td>
                <a href="http://ig.ft.com/autograph/data/{{csv.name}}">{{csv.name}}</a> {{csv.size}}
            </td>
            <td>{{csv.lastModified}}</td>
            </tr>
            {% endfor %}
    </tbody>
</table>

<h2 id="charts">图表</h2>
<div class="charts">
    {% for chart in charts %}
    <div class="chart">
        <object data="graphics/{{chart.name}}" type="image/svg+xml"></object>
        <p>
            <small>{{chart.lastModified}}</small> {% if chart.isToday %}<span class="label today">Today</span>{% endif %}
        </p>
        <p>
            <a href="graphics/{{chart.name}}" download>svg ({{chart.size}})</a> |
            <a href="https://www.ft.com/__origami/service/image//v2/images/raw/{{publicUrl}}/graphics/{{chart.name}}?width=400&format=png&source=ftchinese" download>png</a>
        </p>
    </div>

    {% endfor %}
</div>
{% endblock %}
{'fraction_non_alphanumeric': 0.23442906574394465, 'fraction_numerical': 0.006920415224913495, 'mean_word_length': 2.3668122270742358, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4777108', 'n_tokens_mistral': 901, 'n_tokens_neox': 830, 'n_words': 147}