<commit_before>{% extends 'base.html' %}

{% load static %}

{% block css %}
    <link href="{% static 'css/main.css' %}" rel="stylesheet"/>
    {#    <link href="{% static 'css/home.css' %}" rel="stylesheet" />#}

{% endblock %}

{% block content %}
    <div class="row">
        <div class="col-12">
            <div class="o-lighter-gray text-center"><h2 style="box-shadow: 0 1px #e5e5e5; margin-left: 20%; margin-right: 20%;">Applications & Dashboards</h2></div>
            <div class="filterservices form-group">
{#                <label for="filterservicesSelect" class="o-lighter-gray"><b>Filter Services</b></label>#}
{#                <select class="form-control" width="300" id="filterservicesSelect">#}
{#                    <option>Latest</option>#}
{#                </select>#}
                <div class="pull-right"><a class="btn btn-success makerequestbtn" href="/on-demand/" role="button"><i class="fas fa-user-ninja" style="padding-right:5px"></i> Make a new service request</a></div>
            </div>
        </div>
    </div>
    <ul class="nav nav-pills nav-pills-icons" role="tablist" style="text-align: center;">
        <!--
            color-classes: "nav-pills-primary", "nav-pills-info", "nav-pills-success", "nav-pills-warning","nav-pills-danger"
        -->
        <li class="nav-item active" style="width: 20%; display: inline-block; float: none;">
            <a class="nav-link" href="#myservices" role="tab" data-toggle="tab">
                <i class="fas fa-cogs"></i>
                My Services
            </a>
        </li>
        <li class="nav-item " style="width: 20%; display: inline-block; float: none;">
            <a class="nav-link active" href="#publicservices" role="tab" data-toggle="tab">
                <i class="fas fa-users-cog"></i>
                Public Services
            </a>
        </li>
        <li class="nav-item" style="width: 20%; display: inline-block; float: none;">
            <a class="nav-link" href="#mydashboards" role="tab" data-toggle="tab">
                <i class="fas fa-bar-chart"></i>
                My Dashboards
            </a>
        </li>
        <li class="nav-item" style="width: 20%; display: inline-block; float: none;">
            <a class="nav-link" href="#publicdashboards" role="tab" data-toggle="tab">
                <i class="fas fa-user-friends"></i>
                Public Dashboards
            </a>
        </li>
    </ul>
    <div class="tab-content tab-space text-center">
        <div class="tab-pane active" id="myservices">

            <div class="card-deck">
            {% for item in my_services %}
                <div class="card card-default-width card-default-margin-right">
                    <img class="card-img-top" src="{% if item.imageurl %}{{ item.imageurl }}{% else %}{% static "img/marketplace/default.svg" %}{% endif %}" alt="Card image cap">
                    <div class="card-body card-padding-20">
                        <h5 class="card-title o-blue card-title-default-height">
                            <a class="o-blue"
                                {% if item.title == 'Fuel Consumption Reduction Service (FNK)'%}
                                    href="http://172.16.31.10:8062"
                                {% elif item.title == 'Fuel Consumption Reduction Service (ANEK)'%}
                                    href="http://172.16.31.10:8065"
                                {% else %}
                                    href="/services/service/{{item.pk}}"
                                {% endif %}
                            >
                            {{item.title}}
                            </a>
                        </h5>
                        <p class="card-text card-text-default-height">{{ item.description|default:"No description provided." }}</p>
                    </div>

                    <ul class="list-group list-group-flush">
                        <li class="list-group-item">Service Creator <div class="pull-right">{{ item.user.username }}</div></li>
                        <li class="list-group-item">Sharing <div class="pull-right ">{% if item.private == False %} Public {% else %}Private{% endif %}</div></li>
                        <li class="list-group-item">Price <div class="pull-right o-lighter-green"><b>Free</b></div></li>
                    </ul>
                    <div class="card-body text-center">
                        <a class="btn btn-primary blue"
                            {% if item.title == 'Fuel Consumption Reduction Service (FNK)'%}
                                href="http://172.16.31.10:8062"
                            {% elif item.title == 'Fuel Consumption Reduction Service (ANEK)'%}
                                href="http://172.16.31.10:8065"
                            {% else %}
                                href="/services/service/{{item.pk}}"
                            {% endif %}
                             role="button">
                            SHOW SERVICE
                        </a>
                    </div>
                </div>
            {% empty %}
                <b>No services are created yet. Click <a class="o-blue" href="/service_builder/create/">here</a> to create a new service.</b>
            {% endfor %}
            </div>


        </div>
        <div class="tab-pane" id="publicservices">

            <div class="card-deck">
            {% for item in bdo_services %}
                <div class="card card-default-width card-default-margin-right">
                    <img class="card-img-top" src="{% if item.imageurl %}{{ item.imageurl }}{% else %}{% static "img/marketplace/default.svg" %}{% endif %}" alt="Card image cap">
                    <div class="card-body card-padding-20">
                        <h5 class="card-title o-blue card-title-default-height">
                            <a class="o-blue"
                                {% if item.title == 'Fuel Consumption Reduction Service (FNK)'%}
                                    href="http://172.16.31.10:8062"
                                {% elif item.title == 'Fuel Consumption Reduction Service (ANEK)'%}
                                    href="http://172.16.31.10:8065"
                                {% else %}
                                    href="/services/service/{{item.pk}}"
                                {% endif %}
                            >
                            {{item.title}}
                            </a>
                        </h5>
                        <p class="card-text card-text-default-height">{{ item.description|default:"No description provided." }}</p>
                    </div>

                    <ul class="list-group list-group-flush">
                        <li class="list-group-item">Service Creator <div class="pull-right">{{ item.user.username }}</div></li>
                        <li class="list-group-item">Sharing <div class="pull-right ">{% if item.private == False %} Public {% else %}Private{% endif %}</div></li>
                        <li class="list-group-item">Price <div class="pull-right o-lighter-green"><b>Free</b></div></li>
                    </ul>
                    <div class="card-body text-center">
                        <a class="btn btn-primary blue"
                            {% if item.title == 'Fuel Consumption Reduction Service (FNK)'%}
                                href="http://172.16.31.10:8062"
                            {% elif item.title == 'Fuel Consumption Reduction Service (ANEK)'%}
                                href="http://172.16.31.10:8065"
                            {% else %}
                                href="/services/service/{{item.pk}}"
                            {% endif %}
                             role="button">
                            SHOW SERVICE
                        </a>
                    </div>
                </div>
            {% empty %}
                <b>No services are created yet. Click <a class="o-blue" href="/service_builder/create/">here</a> to create a new service.</b>
            {% endfor %}
            </div>


        </div>
        <div class="tab-pane" id="mydashboards">
            <div class="card-deck">
            {% for item in my_dashboards %}
                <div class="card card-default-width card-default-margin-right">
                    <img class="card-img-top" src="{% if item.imageurl %}{{ item.imageurl }}{% else %}{% static "img/marketplace/default.svg" %}{% endif %}" alt="Card image cap">
                    <div class="card-body card-padding-20">
                        <h5 class="card-title o-blue card-title-default-height"><a class="o-blue" href="/services/dashboard/{{item.pk}}">{{ item.title }}</a></h5>
                        <p class="card-text card-text-default-height">{{ item.description|default:"No description provided." }}</p>
                    </div>

                    <ul class="list-group list-group-flush">
                        <li class="list-group-item">Service Creator <div class="pull-right">{{ item.user.username }}</div></li>
                        <li class="list-group-item">Sharing <div class="pull-right ">{% if item.private == False %} Public {% else %}Private{% endif %}</div></li>
                        <li class="list-group-item">Price <div class="pull-right o-lighter-green"><b>Free</b></div></li>
                    </ul>
                    <div class="card-body text-center">
                        <a class="btn btn-primary blue" href="/services/dashboard/{{item.pk}}" role="button">SHOW DASHBOARD</a>
                    </div>
                </div>
            {% empty %}
                <b>No dashboards are created yet. Click <a class="o-blue" href="/dashboards/create/">here</a> to create a new dashboard.</b>
            {% endfor %}
            </div>
        </div>
        <div class="tab-pane" id="publicdashboards">
            <div class="card-deck">
            {% for item in bdo_dashboards %}
                <div class="card card-default-width card-default-margin-right">
                    <img class="card-img-top" src="{% if item.imageurl %}{{ item.imageurl }}{% else %}{% static "img/marketplace/default.svg" %}{% endif %}" alt="Card image cap">
                    <div class="card-body card-padding-20">
                        <h5 class="card-title o-blue card-title-default-height"><a class="o-blue" href="/services/dashboard/{{item.pk}}">{{ item.title }}</a></h5>
                        <p class="card-text card-text-default-height">{{ item.description|default:"No description provided." }}</p>
                    </div>

                    <ul class="list-group list-group-flush">
                        <li class="list-group-item">Service Creator <div class="pull-right">{{ item.user.username }}</div></li>
                        <li class="list-group-item">Sharing <div class="pull-right ">{% if item.private == False %} Public {% else %}Private{% endif %}</div></li>
                        <li class="list-group-item">Price <div class="pull-right o-lighter-green"><b>Free</b></div></li>
                    </ul>
                    <div class="card-body text-center">
                        <a class="btn btn-primary blue" href="/services/dashboard/{{item.pk}}" role="button">SHOW DASHBOARD</a>
                    </div>
                </div>
            {% empty %}
                <b>No dashboards are created yet. Click <a class="o-blue" href="/dashboards/create/">here</a> to create a new dashboard.</b>
            {% endfor %}
            </div>
        </div>
    </div>



{% endblock %}

{% block js %}

{% endblock %}<commit_msg>adjusted services publishers<commit_after>{% extends 'base.html' %}

{% load static %}

{% block css %}
    <link href="{% static 'css/main.css' %}" rel="stylesheet"/>
    {#    <link href="{% static 'css/home.css' %}" rel="stylesheet" />#}

{% endblock %}

{% block content %}
    <div class="row">
        <div class="col-12">
            <div class="o-lighter-gray text-center"><h2 style="box-shadow: 0 1px #e5e5e5; margin-left: 20%; margin-right: 20%;">Applications & Dashboards</h2></div>
            <div class="filterservices form-group">
{#                <label for="filterservicesSelect" class="o-lighter-gray"><b>Filter Services</b></label>#}
{#                <select class="form-control" width="300" id="filterservicesSelect">#}
{#                    <option>Latest</option>#}
{#                </select>#}
                <div class="pull-right"><a class="btn btn-success makerequestbtn" href="/on-demand/" role="button"><i class="fas fa-user-ninja" style="padding-right:5px"></i> Make a new service request</a></div>
            </div>
        </div>
    </div>
    <ul class="nav nav-pills nav-pills-icons" role="tablist" style="text-align: center;">
        <!--
            color-classes: "nav-pills-primary", "nav-pills-info", "nav-pills-success", "nav-pills-warning","nav-pills-danger"
        -->
        <li class="nav-item active" style="width: 20%; display: inline-block; float: none;">
            <a class="nav-link" href="#myservices" role="tab" data-toggle="tab">
                <i class="fas fa-cogs"></i>
                My Services
            </a>
        </li>
        <li class="nav-item " style="width: 20%; display: inline-block; float: none;">
            <a class="nav-link active" href="#publicservices" role="tab" data-toggle="tab">
                <i class="fas fa-users-cog"></i>
                Public Services
            </a>
        </li>
        <li class="nav-item" style="width: 20%; display: inline-block; float: none;">
            <a class="nav-link" href="#mydashboards" role="tab" data-toggle="tab">
                <i class="fas fa-bar-chart"></i>
                My Dashboards
            </a>
        </li>
        <li class="nav-item" style="width: 20%; display: inline-block; float: none;">
            <a class="nav-link" href="#publicdashboards" role="tab" data-toggle="tab">
                <i class="fas fa-user-friends"></i>
                Public Dashboards
            </a>
        </li>
    </ul>
    <div class="tab-content tab-space text-center">
        <div class="tab-pane active" id="myservices">

            <div class="card-deck">
            {% for item in my_services %}
                <div class="card card-default-width card-default-margin-right">
                    <img class="card-img-top" src="{% if item.imageurl %}{{ item.imageurl }}{% else %}{% static "img/marketplace/default.svg" %}{% endif %}" alt="Card image cap">
                    <div class="card-body card-padding-20">
                        <h5 class="card-title o-blue card-title-default-height">
                            <a class="o-blue"
                                {% if item.title == 'Fuel Consumption Reduction Service (FNK)'%}
                                    href="http://172.16.31.10:8062"
                                {% elif item.title == 'Fuel Consumption Reduction Service (ANEK)'%}
                                    href="http://172.16.31.10:8065"
                                {% else %}
                                    href="/services/service/{{item.pk}}"
                                {% endif %}
                            >
                            {{item.title}}
                            </a>
                        </h5>
                        <p class="card-text card-text-default-height">{{ item.description|default:"No description provided." }}</p>
                    </div>

                    <ul class="list-group list-group-flush">
                        <li class="list-group-item">Service Creator <div class="pull-right">{{ item.user.username }}</div></li>
                        <li class="list-group-item">Sharing <div class="pull-right ">{% if item.private == False %} Public {% else %}Private{% endif %}</div></li>
                        <li class="list-group-item">Price <div class="pull-right o-lighter-green"><b>Free</b></div></li>
                    </ul>
                    <div class="card-body text-center">
                        <a class="btn btn-primary blue"
                            {% if item.title == 'Fuel Consumption Reduction Service (FNK)'%}
                                href="http://172.16.31.10:8062"
                            {% elif item.title == 'Fuel Consumption Reduction Service (ANEK)'%}
                                href="http://172.16.31.10:8065"
                            {% else %}
                                href="/services/service/{{item.pk}}"
                            {% endif %}
                             role="button">
                            SHOW SERVICE
                        </a>
                    </div>
                </div>
            {% empty %}
                <b>No services are created yet. Click <a class="o-blue" href="/service_builder/create/">here</a> to create a new service.</b>
            {% endfor %}
            </div>


        </div>
        <div class="tab-pane" id="publicservices">

            <div class="card-deck">
            {% for item in bdo_services %}
                <div class="card card-default-width card-default-margin-right">
                    <img class="card-img-top" src="{% if item.imageurl %}{{ item.imageurl }}{% else %}{% static "img/marketplace/default.svg" %}{% endif %}" alt="Card image cap">
                    <div class="card-body card-padding-20">
                        <h5 class="card-title o-blue card-title-default-height">
                            <a class="o-blue"
                                {% if item.title == 'Fuel Consumption Reduction Service (FNK)'%}
                                    href="http://172.16.31.10:8062"
                                {% elif item.title == 'Fuel Consumption Reduction Service (ANEK)'%}
                                    href="http://172.16.31.10:8065"
                                {% else %}
                                    href="/services/service/{{item.pk}}"
                                {% endif %}
                            >
                            {{item.title}}
                            </a>
                        </h5>
                        <p class="card-text card-text-default-height">{{ item.description|default:"No description provided." }}</p>
                    </div>

                    <ul class="list-group list-group-flush">
                        <li class="list-group-item">Service Creator
                            <div class="pull-right">
                                {% if item.title == 'Primary Wave Energy Assessment'%}
                                    'R&D Nester'
                                {% elif  item.title == 'Vessel Anomaly Detection'%}
                                    'Marine Traffic'
                                {% elif  item.title == 'Route Anomaly Detection'%}
                                    'Marine Traffic'
                                {% elif  item.title == 'Fuel Consumption Reduction Service (FNK)'%}
                                    'FOINIKAS'
                                {% elif  item.title == 'Fuel Consumption Reduction Service (ANEK)'%}
                                    'ANEK'
                                {% elif  item.title == 'Oil Spill Simulation Service'%}
                                    'HCMR'
                                {% else %}
                                    {{ item.user.username }}
                                {% endif %}
                            </div>
                        </li>
                        <li class="list-group-item">Sharing <div class="pull-right ">{% if item.private == False %} Public {% else %}Private{% endif %}</div></li>
                        <li class="list-group-item">Price <div class="pull-right o-lighter-green"><b>Free</b></div></li>
                    </ul>
                    <div class="card-body text-center">
                        <a class="btn btn-primary blue"
                            {% if item.title == 'Fuel Consumption Reduction Service (FNK)'%}
                                href="http://172.16.31.10:8062"
                            {% elif item.title == 'Fuel Consumption Reduction Service (ANEK)'%}
                                href="http://172.16.31.10:8065"
                            {% else %}
                                href="/services/service/{{item.pk}}"
                            {% endif %}
                             role="button">
                            SHOW SERVICE
                        </a>
                    </div>
                </div>
            {% empty %}
                <b>No services are created yet. Click <a class="o-blue" href="/service_builder/create/">here</a> to create a new service.</b>
            {% endfor %}
            </div>


        </div>
        <div class="tab-pane" id="mydashboards">
            <div class="card-deck">
            {% for item in my_dashboards %}
                <div class="card card-default-width card-default-margin-right">
                    <img class="card-img-top" src="{% if item.imageurl %}{{ item.imageurl }}{% else %}{% static "img/marketplace/default.svg" %}{% endif %}" alt="Card image cap">
                    <div class="card-body card-padding-20">
                        <h5 class="card-title o-blue card-title-default-height"><a class="o-blue" href="/services/dashboard/{{item.pk}}">{{ item.title }}</a></h5>
                        <p class="card-text card-text-default-height">{{ item.description|default:"No description provided." }}</p>
                    </div>

                    <ul class="list-group list-group-flush">
                        <li class="list-group-item">Service Creator <div class="pull-right">{{ item.user.username }}</div></li>
                        <li class="list-group-item">Sharing <div class="pull-right ">{% if item.private == False %} Public {% else %}Private{% endif %}</div></li>
                        <li class="list-group-item">Price <div class="pull-right o-lighter-green"><b>Free</b></div></li>
                    </ul>
                    <div class="card-body text-center">
                        <a class="btn btn-primary blue" href="/services/dashboard/{{item.pk}}" role="button">SHOW DASHBOARD</a>
                    </div>
                </div>
            {% empty %}
                <b>No dashboards are created yet. Click <a class="o-blue" href="/dashboards/create/">here</a> to create a new dashboard.</b>
            {% endfor %}
            </div>
        </div>
        <div class="tab-pane" id="publicdashboards">
            <div class="card-deck">
            {% for item in bdo_dashboards %}
                <div class="card card-default-width card-default-margin-right">
                    <img class="card-img-top" src="{% if item.imageurl %}{{ item.imageurl }}{% else %}{% static "img/marketplace/default.svg" %}{% endif %}" alt="Card image cap">
                    <div class="card-body card-padding-20">
                        <h5 class="card-title o-blue card-title-default-height"><a class="o-blue" href="/services/dashboard/{{item.pk}}">{{ item.title }}</a></h5>
                        <p class="card-text card-text-default-height">{{ item.description|default:"No description provided." }}</p>
                    </div>

                    <ul class="list-group list-group-flush">
                        <li class="list-group-item">Service Creator <div class="pull-right">{{ item.user.username }}</div></li>
                        <li class="list-group-item">Sharing <div class="pull-right ">{% if item.private == False %} Public {% else %}Private{% endif %}</div></li>
                        <li class="list-group-item">Price <div class="pull-right o-lighter-green"><b>Free</b></div></li>
                    </ul>
                    <div class="card-body text-center">
                        <a class="btn btn-primary blue" href="/services/dashboard/{{item.pk}}" role="button">SHOW DASHBOARD</a>
                    </div>
                </div>
            {% empty %}
                <b>No dashboards are created yet. Click <a class="o-blue" href="/dashboards/create/">here</a> to create a new dashboard.</b>
            {% endfor %}
            </div>
        </div>
    </div>



{% endblock %}

{% block js %}

{% endblock %}
{'fraction_non_alphanumeric': 0.1608005238601948, 'fraction_numerical': 0.011868707538675615, 'mean_word_length': 1.4188279548604237, 'pattern_counts': {'":': 0, '<': 425, '<?xml version=': 0, '>': 425, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 16, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 44, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2890179', 'n_tokens_mistral': 7119, 'n_tokens_neox': 6431, 'n_words': 1378}