<commit_before>{% extends 'core/base.html' %}
{% load static from staticfiles %}

{% load card from directory_components_tags %}

{% load breadcrumbs from directory_components_tags %}

{% block head_css %}
    {{ block.super }}
    <link href="{% static 'core/investment-support-directory-profile.css' %}" media="all" rel="stylesheet" />
{% endblock %}

{% block content %}
<div class="container">
    {% url 'investment-support-directory-search' as search_url %}
    {% url 'investment-support-directory-home' as home_url %}
    {% breadcrumbs left_url=home_url left_label='Home' middle_url=search_url middle_label='Search UK businesses' right_label=company.name %}
</div>
<div id="cover-image-container" class="hero" style="background-image: url('{% static "core/images/default-profile-cover.png" %}')">
    &nbsp;
</div>
<div class="container" id="main-content">
    <div class="grid-row">   
        <div class="column-one-third" id="data-column">
            <section id="logo-container">
                {% if company.logo %}
                    <img alt="{{ company.name }}" src="{{ company.logo }}" />
                {% endif %}
            </section>
            {% url 'investment-support-directory-company-contact' company_number=company.number as contact_url %}
            <section id="contact-company-container">
                <span>
                    <img alt="" height="54px" src="{% static 'core/images/clock.png' %}" width="54px" />
                    Contact this company for 1 hour of free advice.
                </span>
                <a href="{{ contact_url }}" class="button">Contact company</a>
            </section>
            <section id="about-company-container">
                <h3 class="heading-medium">Business details</h3>
                <dl>
                    {% if company.website %}
                        <dt>Website</dt>
                        <dd>
                            <a class="link" href="{{ company.website }}">{{ company.website }}</a>
                        </dd>
                    {% endif %}
                    <dt>Business type</dt>
                    {% if company.company_type == 'COMPANIES_HOUSE' %}
                        <dd>UK business registered in Companies House</dd>
                    {% else %}
                        <dd>UK business not registered in Companies House</dd>
                    {% endif %}
                    {% if company.employees %}
                        <dt>Number of employees</dt>
                        <dd>{{ company.employees }} employees</dd>
                    {% endif %}
                    {% if company.sectors %}
                        <dt>Core industry</dt>
                        <dd>{{ company.sectors|title }}</dd>
                    {% endif %}
                </dl>
            </section>
            <section class="underline-flag-red" id="underline"></section>
            <section id="online-profiles">
                <ul>
                    <li>
                        
                        {% if company.facebook_url %}
                            <a class="link" href="{{ company.facebook_url }}">
                                <img alt="with Facebook" height="36px" src="{% static 'core/images/facebook.png' %}" width="36px" />
                                <span>Visit company Facebook</span>
                            </a>
                        {% endif %}
                    </li>
                    <li>
                        {% if company.twitter_url %}
                            <a class="link" href="{{ company.twitter_url }}">
                                <img alt="with Twitter" height="36px" src="{% static 'core/images/twitter.png' %}" width="36px" />
                                <span>Visit company Twitter</span>
                            </a>
                        {% endif %}
                    </li>
                    <li>
                        {% if company.linkedin_url %}
                            <a class="link" href="{{ company.linkedin_url }}">
                                <img alt="with LinkedIn" height="36px" src="{% static 'core/images/linkedin.png' %}" width="36px" />                            
                                <span>Visit company LinkedIn</span>
                            </a>
                        {% endif %}
                    </li>
                </ul>
            </section>
            {% if company.address %}
            <section id="registered-office-address-container">
                {{ company.address }}
            </section>
            {% endif %}
        </div>
        <div class="column-two-thirds" id="content-column">
            <h2 class="heading-large" id="company-name">
                {{ company.name }}
            </h2>
            <hr>
            <div id="company-description-container">
              <div class="grid-row">
                <h3 class="box-heading heading-medium black-text column-one-half">Company description</h3>
              </div>
                {% if request.GET.verbose %}
                    <p>{{ company.description|linebreaks }}</p>
                {% else %}
                    {% if company.summary %}
                        {{ company.summary|linebreaks }}
                    {% elif company.description %}
                        {{ company.description|truncatechars:200|linebreaks }}
                    {% endif %}
                    <p><a class="link" href="?verbose=true#company-description-container" title="Read full company profile">Read more</a></p>
                {% endif %}
            </div>
            <hr>
            {% if company.expertise_products_services %}
                <div id="profile-products-services-container">
                  <div class="grid-row">
                    <h3 class="box-heading heading-medium black-text column-one-half">Products and services</h3>
                  </div>
                    <dl>
                      {% for key, values in company.expertise_products_services.items %}
                        <dt>{{ key }}</dt>
                        <dd>{{ values }}</dd>
                      {% endfor %}
                    </dl>
                </div>
              <hr>
            {% endif %}

          {% if company.has_expertise %}
            <div id="profile-expertise-container">
              <div class="grid-row">
                <h3 class="box-heading heading-medium black-text column-one-half">
                    Expertise
                </h3>
              </div>
              <dl>
                {% if company.expertise_industries %}
                    <dt>Industry</dt>
                    <dd>{{ company.expertise_industries }}</dd>
                {% endif %}
                {% if company.expertise_regions %}
                    <dt>Regional</dt>
                    <dd>{{ company.expertise_regions }}</dd>
                {% endif %}
                {% if company.expertise_countries %}
                    <dt>International</dt>
                    <dd>{{ company.expertise_countries }}</dd>
                {% endif %}
                {% if company.expertise_languages %}
                    <dt>Languages</dt>
                    <dd>{{ company.expertise_languages }}</dd>
                {% endif %}<commit_msg>Display other products services without subheader<commit_after>{% extends 'core/base.html' %}
{% load static from staticfiles %}

{% load card from directory_components_tags %}

{% load breadcrumbs from directory_components_tags %}

{% block head_css %}
    {{ block.super }}
    <link href="{% static 'core/investment-support-directory-profile.css' %}" media="all" rel="stylesheet" />
{% endblock %}

{% block content %}
<div class="container">
    {% url 'investment-support-directory-search' as search_url %}
    {% url 'investment-support-directory-home' as home_url %}
    {% breadcrumbs left_url=home_url left_label='Home' middle_url=search_url middle_label='Search UK businesses' right_label=company.name %}
</div>
<div id="cover-image-container" class="hero" style="background-image: url('{% static "core/images/default-profile-cover.png" %}')">
    &nbsp;
</div>
<div class="container" id="main-content">
    <div class="grid-row">   
        <div class="column-one-third" id="data-column">
            <section id="logo-container">
                {% if company.logo %}
                    <img alt="{{ company.name }}" src="{{ company.logo }}" />
                {% endif %}
            </section>
            {% url 'investment-support-directory-company-contact' company_number=company.number as contact_url %}
            <section id="contact-company-container">
                <span>
                    <img alt="" height="54px" src="{% static 'core/images/clock.png' %}" width="54px" />
                    Contact this company for 1 hour of free advice.
                </span>
                <a href="{{ contact_url }}" class="button">Contact company</a>
            </section>
            <section id="about-company-container">
                <h3 class="heading-medium">Business details</h3>
                <dl>
                    {% if company.website %}
                        <dt>Website</dt>
                        <dd>
                            <a class="link" href="{{ company.website }}">{{ company.website }}</a>
                        </dd>
                    {% endif %}
                    <dt>Business type</dt>
                    {% if company.company_type == 'COMPANIES_HOUSE' %}
                        <dd>UK business registered in Companies House</dd>
                    {% else %}
                        <dd>UK business not registered in Companies House</dd>
                    {% endif %}
                    {% if company.employees %}
                        <dt>Number of employees</dt>
                        <dd>{{ company.employees }} employees</dd>
                    {% endif %}
                    {% if company.sectors %}
                        <dt>Core industry</dt>
                        <dd>{{ company.sectors|title }}</dd>
                    {% endif %}
                </dl>
            </section>
            <section class="underline-flag-red" id="underline"></section>
            <section id="online-profiles">
                <ul>
                    <li>
                        
                        {% if company.facebook_url %}
                            <a class="link" href="{{ company.facebook_url }}">
                                <img alt="with Facebook" height="36px" src="{% static 'core/images/facebook.png' %}" width="36px" />
                                <span>Visit company Facebook</span>
                            </a>
                        {% endif %}
                    </li>
                    <li>
                        {% if company.twitter_url %}
                            <a class="link" href="{{ company.twitter_url }}">
                                <img alt="with Twitter" height="36px" src="{% static 'core/images/twitter.png' %}" width="36px" />
                                <span>Visit company Twitter</span>
                            </a>
                        {% endif %}
                    </li>
                    <li>
                        {% if company.linkedin_url %}
                            <a class="link" href="{{ company.linkedin_url }}">
                                <img alt="with LinkedIn" height="36px" src="{% static 'core/images/linkedin.png' %}" width="36px" />                            
                                <span>Visit company LinkedIn</span>
                            </a>
                        {% endif %}
                    </li>
                </ul>
            </section>
            {% if company.address %}
            <section id="registered-office-address-container">
                {{ company.address }}
            </section>
            {% endif %}
        </div>
        <div class="column-two-thirds" id="content-column">
            <h2 class="heading-large" id="company-name">
                {{ company.name }}
            </h2>
            <hr>
            <div id="company-description-container">
              <div class="grid-row">
                <h3 class="box-heading heading-medium black-text column-one-half">Company description</h3>
              </div>
                {% if request.GET.verbose %}
                    <p>{{ company.description|linebreaks }}</p>
                {% else %}
                    {% if company.summary %}
                        {{ company.summary|linebreaks }}
                    {% elif company.description %}
                        {{ company.description|truncatechars:200|linebreaks }}
                    {% endif %}
                    <p><a class="link" href="?verbose=true#company-description-container" title="Read full company profile">Read more</a></p>
                {% endif %}
            </div>
            <hr>
            {% if company.expertise_products_services %}
                <div id="profile-products-services-container">
                    <h3 class="box-heading heading-medium black-text">Products and services</h3>
                    {% if company.expertise_products_services.Other %}
                        <p class="margin-bottom-15">{{ company.expertise_products_services.Other }}</p>
                    {% endif %}
                    <dl>
                        {% for key, values in company.expertise_products_services.items %}
                            {% if key != 'Other' %}
                                <dt>{{ key }}</dt>
                                <dd>{{ values }}</dd>
                            {% endif %}
                        {% endfor %}
                    </dl>
                </div>
                <hr>
            {% endif %}

          {% if company.has_expertise %}
            <div id="profile-expertise-container">
              <div class="grid-row">
                <h3 class="box-heading heading-medium black-text column-one-half">
                    Expertise
                </h3>
              </div>
              <dl>
                {% if company.expertise_industries %}
                    <dt>Industry</dt>
                    <dd>{{ company.expertise_industries }}</dd>
                {% endif %}
                {% if company.expertise_regions %}
                    <dt>Regional</dt>
                    <dd>{{ company.expertise_regions }}</dd>
                {% endif %}
                {% if company.expertise_countries %}
                    <dt>International</dt>
                    <dd>{{ company.expertise_countries }}</dd>
                {% endif %}
                {% if company.expertise_languages %}
                    <dt>Languages</dt>
                    <dd>{{ company.expertise_languages }}</dd>
                {% endif %}
{'fraction_non_alphanumeric': 0.13579251494994288, 'fraction_numerical': 0.004165826782234765, 'mean_word_length': 1.2432554634513941, 'pattern_counts': {'":': 0, '<': 255, '<?xml version=': 0, '>': 255, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '6990732', 'n_tokens_mistral': 4052, 'n_tokens_neox': 3520, 'n_words': 730}