<commit_before>{% extends 'explore_base.html' %} 
{% block main %}
{% load flatblock_tags %}

<!--  foreach theme  -->
<h2>{% flatblock "data_catalog_title" %}</h2>
{% flatblock "data_catalog_intro" %}

<div class="row-fluid search-row">
    <div class="span12 ">
        <h3>Data Layer Search</h3>
        <form class="form-search">
            <div class="span10">
                <input type="text" class="search-box span12" data-provide="typeahead" data-bind="value: searchTerm, event: { keyup: keySearch }">
            </div>
            <div class="span2">
                <button type="submit" class="btn">
                    find
                </button>
            </div>
        </form>
    </div>
</div>
{% for theme_dict in themes %}
<div class="theme catalog-page">
	<div class="theme-context">
        <div class="row-fluid">
            <div class="span6">
                <a name="{{ theme_dict.theme.name }}"></a>
                <h3>
                    {{ theme_dict.theme.display_name }}
                </h3>
                <p>
                    {{ theme_dict.theme.description }} 
                    <span class="pull-right"><a href="{{theme_dict.learn_link}}">Learn More... </a></span>
                </p>  
            </div>
            <div class="span6">
                <a href="{{theme_dict.learn_link}}">
                    <div class="image">
                        <img src="{{MEDIA_URL}}marco/img/themes/{{theme_dict.theme.name}}.jpg" alt="">
                        <div class="caption">
                          {{ theme_dict.theme.display_name }}
                        </div>
                    </div>
                </a>
            </div>
        </div>
	</div>
	<div>
	    <div>
            <h4>
                <span class="theme-name" data-name="{{theme_dict.theme.name}}" data-thumbnail=" {{theme_dict.theme.thumbnail}} ">
                    {{ theme_dict.theme.display_name }} Data Layers
                </span>
            </h4>
	        <div>
	            <div>
	                <table class="table table-striped table-condensed">
	                	<tbody>
	                		<!-- foreach layer -->
                            {% for layer in theme_dict.layers %}
                                {% if layer.is_parent %}
                                {% else %}
                                <tr>
                                    <td>
                                        <span class="layer-name catalog-tooltip" rel="popover" 
                                            data-name="{{layer.name}}" 
                                            data-thumbnail="{{layer.thumbnail}}"
                                            data-content="{% if layer.tooltip %} {{layer.tooltip}} {% endif %}">{{layer.name}}
                                        </span>
                                    </td>
                                    <td>
                                        {% if layer.bookmark %}
                                        <a href="{{layer.bookmark}}" target="_blank">
                                            <span rel="tooltip" title="{% flatblock "data_catalog_view_link_tooltip" %}">
                                                {% flatblock "data_catalog_view_link" %}
                                            </span>
                                        </a>
                                        {% else %}
                                        <span class="link-not-available">
                                            {% flatblock "data_catalog_view_link" %}
                                        </span>
                                        {% endif %}
                                    </td>                        
                                    <td>            
                                        {% if layer.map_tiles %}
                                        <a href="{{layer.map_tiles}}" target="_blank">
                                            <span rel="tooltip" title="{% flatblock "data_catalog_maptiles_link_tooltip" %}">
                                                {% flatblock "data_catalog_maptiles_link" %}
                                            </span>
                                        </a>
                                        {% else %}
                                        <span class="link-not-available">
                                            {% flatblock "data_catalog_maptiles_link" %}
                                        </span>
                                        {% endif %}
                                    </td>
                                    <td>
                                        {% if layer.kml %}
                                        <a href="{{layer.kml}}" target="_blank">
                                            <span rel="tooltip" title="{% flatblock "data_catalog_kml_link_tooltip" %}">
                                                {% flatblock "data_catalog_kml_link" %}
                                            </span>
                                        </a>
                                        {% else %}
                                        <span class="link-not-available">
                                            {% flatblock "data_catalog_kml_link" %}
                                        </span>
                                        {% endif %}
                                    </td>
                                    <td>
                                        {% if layer.data_download %}
                                        <a href="{{layer.data_download}}" target="_blank">
                                            <span rel="tooltip" title="{% flatblock "data_catalog_data_link_tooltip" %}">
                                                {% flatblock "data_catalog_data_link" %}
                                            </span>
                                        </a>
                                        {% else %}
                                        <span class="link-not-available">
                                            {% flatblock "data_catalog_data_link" %}
                                        </span>
                                        {% endif %}
                                    </td>
                                    <td>
                                        {% if layer.fact_sheet %}
                                        <a href="{{layer.fact_sheet}}" target="_blank">
                                            <span rel="tooltip" title="{% flatblock "data_catalog_description_link_tooltip" %}">
                                                {% flatblock "data_catalog_description_link" %}
                                            </span>
                                        </a>
                                        {% else %}
                                        <span class="link-not-available">
                                            {% flatblock "data_catalog_description_link" %}
                                        </span>
                                        {% endif %}
                                    </td>
                                    <td>
                                        {% if layer.metadata %}
                                        <a href="{{layer.metadata}}" target="_blank">
                                            <span rel="tooltip" title="{% flatblock "data_catalog_metadata_link_tooltip" %}">
                                                {% flatblock "data_catalog_metadata_link" %}
                                            </span>
                                        </a>
                                        {% else %}
                                        <span class="link-not-available">
                                            {% flatblock "data_catalog_metadata_link" %}
                                        </span>
                                        {% endif %}
                                    </td>
                                    <td>
                                        {% if layer.source %}
                                        <a href="{{layer.source}}" target="_blank">
                                            <span rel="tooltip" title="{% flatblock "data_catalog_source_link_tooltip" %}"><commit_msg>fixing bad flatblock for description link in data catalog<commit_after>{% extends 'explore_base.html' %} 
{% block main %}
{% load flatblock_tags %}

<!--  foreach theme  -->
<h2>{% flatblock "data_catalog_title" %}</h2>
{% flatblock "data_catalog_intro" %}

<div class="row-fluid search-row">
    <div class="span12 ">
        <h3>Data Layer Search</h3>
        <form class="form-search">
            <div class="span10">
                <input type="text" class="search-box span12" data-provide="typeahead" data-bind="value: searchTerm, event: { keyup: keySearch }">
            </div>
            <div class="span2">
                <button type="submit" class="btn">
                    find
                </button>
            </div>
        </form>
    </div>
</div>
{% for theme_dict in themes %}
<div class="theme catalog-page">
	<div class="theme-context">
        <div class="row-fluid">
            <div class="span6">
                <a name="{{ theme_dict.theme.name }}"></a>
                <h3>
                    {{ theme_dict.theme.display_name }}
                </h3>
                <p>
                    {{ theme_dict.theme.description }} 
                    <span class="pull-right"><a href="{{theme_dict.learn_link}}">Learn More... </a></span>
                </p>  
            </div>
            <div class="span6">
                <a href="{{theme_dict.learn_link}}">
                    <div class="image">
                        <img src="{{MEDIA_URL}}marco/img/themes/{{theme_dict.theme.name}}.jpg" alt="">
                        <div class="caption">
                          {{ theme_dict.theme.display_name }}
                        </div>
                    </div>
                </a>
            </div>
        </div>
	</div>
	<div>
	    <div>
            <h4>
                <span class="theme-name" data-name="{{theme_dict.theme.name}}" data-thumbnail=" {{theme_dict.theme.thumbnail}} ">
                    {{ theme_dict.theme.display_name }} Data Layers
                </span>
            </h4>
	        <div>
	            <div>
	                <table class="table table-striped table-condensed">
	                	<tbody>
	                		<!-- foreach layer -->
                            {% for layer in theme_dict.layers %}
                                {% if layer.is_parent %}
                                {% else %}
                                <tr>
                                    <td>
                                        <span class="layer-name catalog-tooltip" rel="popover" 
                                            data-name="{{layer.name}}" 
                                            data-thumbnail="{{layer.thumbnail}}"
                                            data-content="{% if layer.tooltip %} {{layer.tooltip}} {% endif %}">{{layer.name}}
                                        </span>
                                    </td>
                                    <td>
                                        {% if layer.bookmark %}
                                        <a href="{{layer.bookmark}}" target="_blank">
                                            <span rel="tooltip" title="{% flatblock "data_catalog_view_link_tooltip" %}">
                                                {% flatblock "data_catalog_view_link" %}
                                            </span>
                                        </a>
                                        {% else %}
                                        <span class="link-not-available">
                                            {% flatblock "data_catalog_view_link" %}
                                        </span>
                                        {% endif %}
                                    </td>                        
                                    <td>            
                                        {% if layer.map_tiles %}
                                        <a href="{{layer.map_tiles}}" target="_blank">
                                            <span rel="tooltip" title="{% flatblock "data_catalog_maptiles_link_tooltip" %}">
                                                {% flatblock "data_catalog_maptiles_link" %}
                                            </span>
                                        </a>
                                        {% else %}
                                        <span class="link-not-available">
                                            {% flatblock "data_catalog_maptiles_link" %}
                                        </span>
                                        {% endif %}
                                    </td>
                                    <td>
                                        {% if layer.kml %}
                                        <a href="{{layer.kml}}" target="_blank">
                                            <span rel="tooltip" title="{% flatblock "data_catalog_kml_link_tooltip" %}">
                                                {% flatblock "data_catalog_kml_link" %}
                                            </span>
                                        </a>
                                        {% else %}
                                        <span class="link-not-available">
                                            {% flatblock "data_catalog_kml_link" %}
                                        </span>
                                        {% endif %}
                                    </td>
                                    <td>
                                        {% if layer.data_download %}
                                        <a href="{{layer.data_download}}" target="_blank">
                                            <span rel="tooltip" title="{% flatblock "data_catalog_data_link_tooltip" %}">
                                                {% flatblock "data_catalog_data_link" %}
                                            </span>
                                        </a>
                                        {% else %}
                                        <span class="link-not-available">
                                            {% flatblock "data_catalog_data_link" %}
                                        </span>
                                        {% endif %}
                                    </td>
                                    <td>
                                        {% if layer.fact_sheet %}
                                        <a href="{{layer.fact_sheet}}" target="_blank">
                                            <span rel="tooltip" title="{% flatblock "data_catalog_factsheet_link_tooltip" %}">
                                                {% flatblock "data_catalog_factsheet_link" %}
                                            </span>
                                        </a>
                                        {% else %}
                                        <span class="link-not-available">
                                            {% flatblock "data_catalog_factsheet_link" %}
                                        </span>
                                        {% endif %}
                                    </td>
                                    <td>
                                        {% if layer.metadata %}
                                        <a href="{{layer.metadata}}" target="_blank">
                                            <span rel="tooltip" title="{% flatblock "data_catalog_metadata_link_tooltip" %}">
                                                {% flatblock "data_catalog_metadata_link" %}
                                            </span>
                                        </a>
                                        {% else %}
                                        <span class="link-not-available">
                                            {% flatblock "data_catalog_metadata_link" %}
                                        </span>
                                        {% endif %}
                                    </td>
                                    <td>
                                        {% if layer.source %}
                                        <a href="{{layer.source}}" target="_blank">
                                            <span rel="tooltip" title="{% flatblock "data_catalog_source_link_tooltip" %}">
{'fraction_non_alphanumeric': 0.10676029516781718, 'fraction_numerical': 0.002023327779100214, 'mean_word_length': 0.6743050712364252, 'pattern_counts': {'":': 0, '<': 225, '<?xml version=': 0, '>': 225, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 298, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1541467', 'n_tokens_mistral': 3361, 'n_tokens_neox': 3022, 'n_words': 588}