<commit_before>{# __author__ = '<NAME>' #}
{# This template is used as the landing page for TimeSeriesResource #}

{% extends "pages/genericresource.html" %}
{#{% load geoanalytics_tags pages_tags mezzanine_tags crispy_forms_tags %}#}
{#{% load geoanalytics_tags pages_tags mezzanine_tags comment_tags keyword_tags hydroshare_tags crispy_forms_tags inplace_edit %}#}

{% block extended_metadata %}
    {% if extended_metadata_exists %}
        <div class="row">
            <div class="col-md-12">
                <div>
                    {% if model_output %}
                        <h4><strong>Model Output:</strong></h4>
                        <hr style="margin-top: 0px;margin-bottom: 2px">
                        <div class="row">
                            <div class="col-sm-4"><strong>Includes output files?</strong></div>
                            {% if model_output.includes_output == True %}
                                <div class="col-sm-8">Yes</div>
                            {% else %}
                                <div class="col-sm-8">No</div>
                            {% endif %}

                        </div>
                    <hr style="border:0">
                    {%  endif %}
                </div>
                <div>
                    {% if executed_by.name %}
                        <h4><strong>Executed By:</strong></h4>
                        <hr style="margin-top: 0px;margin-bottom: 2px">
                        <div class="row">
                            <div class="col-sm-4"><strong>Model Program used for execution:</strong></div>
                            <div class="col-sm-8">{{ executed_by.name }}</div>
                        </div>
                    <hr style="border:0">
                    {% endif %}
                </div>
                <div>
                    {% if model_objective %}
                        <h4><strong>Model Objective:</strong></h4>
                        <hr style="margin-top: 0px;margin-bottom: 2px">
                        <div class="row">
                            <div class="col-sm-4"><strong>SWAT model objective:</strong></div>
                            <div class="col-sm-8">{{ model_objective.swat_model_objective }}</div>
                            {% if model_objective.other_objectives %}
                                <div class="col-sm-4"><strong>SWAT model other objectives:</strong></div>
                                <div class="col-sm-8">{{ model_objective.other_objectives }}</div>
                            {% endif %}
                        </div>
                    <hr style="border:0">
                    {% endif %}
                </div>
                <div>
                    {% if swat_model_parameters %}
                        <h4><strong>SWAT model used parameters:</strong></h4>
                        <hr style="margin-top: 0px;margin-bottom: 2px">
                        <div class="row">
                            <div class="col-sm-4"><strong>Has crop rotation?</strong></div>
                            {% if swat_model_parameters.has_crop_rotation == True %}
                                <div class="col-sm-8">Yes</div>
                            {% else %}
                                <div class="col-sm-8">No</div>
                            {% endif %}
                            <div class="col-sm-4"><strong>Has title drainage?</strong></div>
                            {% if swat_model_parameters.has_title_drainage == True %}
                                <div class="col-sm-8">Yes</div>
                            {% else %}
                                <div class="col-sm-8">No</div>
                            {% endif %}
                            <div class="col-sm-4"><strong>Has point resource?</strong></div>
                            {% if swat_model_parameters.has_point_source == True %}
                                <div class="col-sm-8">Yes</div>
                            {% else %}
                                <div class="col-sm-8">No</div>
                            {% endif %}
                            <div class="col-sm-4"><strong>Has fertilizer?</strong></div>
                            {% if swat_model_parameters.has_fertilizer == True %}
                                <div class="col-sm-8">Yes</div>
                            {% else %}
                                <div class="col-sm-8">No</div>
                            {% endif %}
                            <div class="col-sm-4"><strong>Has tillage operation?</strong></div>
                            {% if swat_model_parameters.has_tillage_operation == True %}
                                <div class="col-sm-8">Yes</div>
                            {% else %}
                                <div class="col-sm-8">No</div>
                            {% endif %}
                            <div class="col-sm-4"><strong>Has inlet of draining watershed?</strong></div>
                            {% if swat_model_parameters.has_inlet_of_draining_watershed == True %}
                                <div class="col-sm-8">Yes</div>
                            {% else %}
                                <div class="col-sm-8">No</div>
                            {% endif %}
                            <div class="col-sm-4"><strong>Has irrigation operation?</strong></div>
                            {% if swat_model_parameters.has_irrigation_operation == True %}
                                <div class="col-sm-8">Yes</div>
                            {% else %}
                                <div class="col-sm-8">No</div>
                            {% endif %}
                            <div class="col-sm-4"><strong>Has other parameters?</strong></div>
                            <div class="col-sm-8">{{ swat_model_parameters.has_other_parameters }}</div>
                        </div>
                    {% endif %}
                </div>
            </div>
    {%  endif %}
{%  endblock %}
{% block extra_js %}
    {{ block.super }}

    {# resource specific js can go here #}

{%  endblock %}<commit_msg>[#303] some housekeeping for the resource template file<commit_after>{# __author__ = '<NAME>' #}
{# This template is used as the landing page for TimeSeriesResource #}

{% extends "pages/genericresource.html" %}
{#{% load geoanalytics_tags pages_tags mezzanine_tags crispy_forms_tags %}#}
{#{% load geoanalytics_tags pages_tags mezzanine_tags comment_tags keyword_tags hydroshare_tags crispy_forms_tags inplace_edit %}#}

{% block extended_metadata %}
    {% if extended_metadata_exists %}
        <div class="row">
            <div class="col-md-12">
                <div>
                    {% if model_output %}
                        <h4><strong>Model Output:</strong></h4>
                        <hr style="margin-top: 0px;margin-bottom: 2px">
                        <div class="row">
                            <div class="col-sm-4"><strong>Includes output files?</strong></div>
                            {% if model_output.includes_output == True %}
                                <div class="col-sm-8">Yes</div>
                            {% else %}
                                <div class="col-sm-8">No</div>
                            {% endif %}

                        </div>
                    <hr style="border:0">
                    {%  endif %}
                </div>
                <div>
                    {% if executed_by.name %}
                        <h4><strong>Executed By:</strong></h4>
                        <hr style="margin-top: 0px;margin-bottom: 2px">
                        <div class="row">
                            <div class="col-sm-4"><strong>Model Program used for execution:</strong></div>
                            <div class="col-sm-8">{{ executed_by.name }}</div>
                        </div>
                    <hr style="border:0">
                    {% endif %}
                </div>
                <div>
                    {% if model_objective %}
                        <h4><strong>Model Objective:</strong></h4>
                        <hr style="margin-top: 0px;margin-bottom: 2px">
                        <div class="row">
                            <div class="col-sm-4"><strong>SWAT model objective:</strong></div>
                            <div class="col-sm-8">{{ model_objective.swat_model_objective }}</div>
                            {% if model_objective.other_objectives %}
                                <div class="col-sm-4"><strong>SWAT model other objectives:</strong></div>
                                <div class="col-sm-8">{{ model_objective.other_objectives }}</div>
                            {% endif %}
                        </div>
                    <hr style="border:0">
                    {% endif %}
                </div>
                <div>
                    {% if swat_model_parameters %}
                        <h4><strong>SWAT model used parameters:</strong></h4>
                        <hr style="margin-top: 0px;margin-bottom: 2px">
                        <div class="row">
                            {% if swat_model_parameters.has_crop_rotation %}
                                <div class="col-sm-4"><strong>Has crop rotation?</strong></div>
                                {% if swat_model_parameters.has_crop_rotation == True %}
                                    <div class="col-sm-8">Yes</div>
                                {% else %}
                                    <div class="col-sm-8">No</div>
                                {% endif %}
                            {% endif %}
                            {% if swat_model_parameters.has_title_drainage %}
                                <div class="col-sm-4"><strong>Has title drainage?</strong></div>
                                {% if swat_model_parameters.has_title_drainage == True %}
                                    <div class="col-sm-8">Yes</div>
                                {% else %}
                                    <div class="col-sm-8">No</div>
                                {% endif %}
                            {% endif %}
                            {% if swat_model_parameters.has_point_source %}
                                <div class="col-sm-4"><strong>Has point resource?</strong></div>
                                {% if swat_model_parameters.has_point_source == True %}
                                    <div class="col-sm-8">Yes</div>
                                {% else %}
                                    <div class="col-sm-8">No</div>
                                {% endif %}
                            {% endif %}
                            {% if swat_model_parameters.has_fertilizer %}
                                <div class="col-sm-4"><strong>Has fertilizer?</strong></div>
                                {% if swat_model_parameters.has_fertilizer == True %}
                                    <div class="col-sm-8">Yes</div>
                                {% else %}
                                    <div class="col-sm-8">No</div>
                                {% endif %}
                            {% endif %}
                            {% if swat_model_parameters.has_tillage_operation %}
                                <div class="col-sm-4"><strong>Has tillage operation?</strong></div>
                                {% if swat_model_parameters.has_tillage_operation == True %}
                                    <div class="col-sm-8">Yes</div>
                                {% else %}
                                    <div class="col-sm-8">No</div>
                                {% endif %}
                            {% endif %}
                            {% if swat_model_parameters.has_inlet_of_draining_watershed %}
                                <div class="col-sm-4"><strong>Has inlet of draining watershed?</strong></div>
                                {% if swat_model_parameters.has_inlet_of_draining_watershed == True %}
                                    <div class="col-sm-8">Yes</div>
                                {% else %}
                                    <div class="col-sm-8">No</div>
                                {% endif %}
                            {% endif %}
                            {% if swat_model_parameters.has_irrigation_operation %}
                                <div class="col-sm-4"><strong>Has irrigation operation?</strong></div>
                                {% if swat_model_parameters.has_irrigation_operation == True %}
                                    <div class="col-sm-8">Yes</div>
                                {% else %}
                                    <div class="col-sm-8">No</div>
                                {% endif %}
                            {% endif %}
                            {% if swat_model_parameters.has_other_parameters %}
                                <div class="col-sm-4"><strong>Has other parameters?</strong></div>
                                <div class="col-sm-8">{{ swat_model_parameters.has_other_parameters }}</div>
                            {% endif %}
                        </div>
                    {% endif %}
                </div>
            </div>
    {%  endif %}
{%  endblock %}
{% block extra_js %}
    {{ block.super }}

    {# resource specific js can go here #}

{%  endblock %}
{'fraction_non_alphanumeric': 0.12692393486504572, 'fraction_numerical': 0.00810469179864674, 'mean_word_length': 1.011666168112474, 'pattern_counts': {'":': 0, '<': 265, '<?xml version=': 0, '>': 265, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 49, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3873104', 'n_tokens_mistral': 3631, 'n_tokens_neox': 3204, 'n_words': 545}