<commit_before><div>
    <div class="row no-overflow"
         ng-if="ctrl.parent"
         style="padding: 1em">

        <div class="col-md-12">
            <span class="text-muted">
                <waltz-icon name="level-up"></waltz-icon>
                Parent:
            </span>
            <a ui-sref="main.org-units.unit ({id: ctrl.parent.id })">
                {{ ctrl.parent.name }}
            </a>
            <span class="text-muted small ">
                {{ ctrl.parent.description }}
            </span>
        </div>

    </div>


    <div class="row"
         style="padding: 1em">

        <div class="col-md-offset-1 col-md-10 waltz-page-summary">
            <h3 style="margin-top: 10px; padding-bottom: 4px; border-bottom: 1px solid #eee;"> {{ ctrl.unit.name }} </h3>

            <div waltz-has-role="ORGUNIT_EDITOR">
                <waltz-inline-edit-area value="ctrl.unit.description"
                                        save="ctrl.saveDescriptionFn"></waltz-inline-edit-area>
            </div>
            <div waltz-unless-role="ORGUNIT_EDITOR">
                {{ ctrl.unit.description }}
            </div>

            <br>

            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-4">
                        <waltz-pie-table data="ctrl.pies.app.data"
                                         config="ctrl.pies.app.config"
                                         class="clickable"
                                         waltz-jump-to="ouv-apps"
                                         title="Apps / Lifecycle Phase"
                                         icon="desktop">
                        </waltz-pie-table>
                    </div>
                    <div class="col-md-4">

                        <waltz-basic-info-tile name="Portfolio Cost"
                                               description="Cumulative value of infra and app dev costs"
                                               waltz-jump-to="ouv-costs"
                                               icon="euro">
                            <span style="font-size: xx-large;">
                                {{ ctrl.portfolioCostStr }}
                            </span>
                        </waltz-basic-info-tile>

                    </div>
                    <div class="col-md-4">
                        <waltz-pie-table data="ctrl.pies.appConnections.data"
                                         config="ctrl.pies.appConnections.config"
                                         class="clickable"
                                         waltz-jump-to="ouv-flows"
                                         icon="random"
                                         title="Application Connections">
                        </waltz-pie-table>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-4">
                        <waltz-basic-info-tile name="Complexity"
                                               description="Derived from capabilities, connections and servers"
                                               icon="rocket">
                            <div style="font-size: xx-large;">
                                {{ ctrl.complexitySummary.cumulativeScore | toFixed:1 }}
                            </div>
                            <div class="small text-muted">
                                {{ ctrl.complexitySummary.averageScore | toFixed:2 }} per app
                            </div>
                        </waltz-basic-info-tile>

                    </div>
                    <div class="col-md-4">
                        <waltz-basic-info-tile name="Servers"

                                               description="Number of servers supporting this org unit"
                                               waltz-jump-to="ouv-servers"
                                               icon="server">
                            <div>
                                <div style="font-size: xx-large;">
                                    {{ ctrl.serverStats.total }}
                                </div>
                                <div class="small text-muted">
                                    {{ ctrl.serverStats.virtualPercentage }}% virtual
                                </div>
                            </div>
                        </waltz-basic-info-tile>

                    </div>

                    <div class="col-md-4">
                        <waltz-basic-info-tile name="Capabilities"
                                               description="Capabilities performed within this OU"
                                               waltz-jump-to="ouv-ratings"
                                               icon="puzzle-piece">
                            <div>
                                <div style="font-size: xx-large;">
                                    {{ ctrl.capabilityStats.total }}
                                </div>
                                <div class="small text-muted">
                                    {{ ctrl.capabilityStats.perApplication }} per app
                                </div>
                            </div>
                        </waltz-basic-info-tile>
                    </div>
                </div>
            </div>

        </div>
    </div>

    <div class="row" ng-if="ctrl.children.length > 0">

        <div class="col-md-offset-2 col-md-10">
            <h4>Sub Units</h4>
            <table class="table table-hover table-condensed fixed-table">
                <tr ng-repeat="subUnit in ctrl.children | orderBy:'name'">
                    <td>
                        <a ui-sref="main.org-units.unit ({ id: subUnit.id })">
                            {{ ::subUnit.name }}
                        </a>
                    </td>
                    <td class="text-muted small no-overflow">
                        {{ ::subUnit.description }}
                    </td><commit_msg>Add 'units' to ou summary blocks<commit_after><div>
    <div class="row no-overflow"
         ng-if="ctrl.parent"
         style="padding: 1em">

        <div class="col-md-12">
            <span class="text-muted">
                <waltz-icon name="level-up"></waltz-icon>
                Parent:
            </span>
            <a ui-sref="main.org-units.unit ({id: ctrl.parent.id })">
                {{ ctrl.parent.name }}
            </a>
            <span class="text-muted small ">
                {{ ctrl.parent.description }}
            </span>
        </div>

    </div>


    <div class="row"
         style="padding: 1em">

        <div class="col-md-offset-1 col-md-10 waltz-page-summary">
            <h3 style="margin-top: 10px; padding-bottom: 4px; border-bottom: 1px solid #eee;"> {{ ctrl.unit.name }} </h3>

            <div waltz-has-role="ORGUNIT_EDITOR">
                <waltz-inline-edit-area value="ctrl.unit.description"
                                        save="ctrl.saveDescriptionFn"></waltz-inline-edit-area>
            </div>
            <div waltz-unless-role="ORGUNIT_EDITOR">
                {{ ctrl.unit.description }}
            </div>

            <br>

            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-4">
                        <waltz-pie-table data="ctrl.pies.app.data"
                                         config="ctrl.pies.app.config"
                                         class="clickable"
                                         waltz-jump-to="ouv-apps"
                                         title="Apps / Lifecycle Phase"
                                         icon="desktop">
                        </waltz-pie-table>
                    </div>
                    <div class="col-md-4">

                        <waltz-basic-info-tile name="Portfolio Cost"
                                               description="Cumulative value of infra and app dev costs"
                                               waltz-jump-to="ouv-costs"
                                               icon="euro">
                            <span style="font-size: xx-large;">
                                {{ ctrl.portfolioCostStr }}
                            </span>
                        </waltz-basic-info-tile>

                    </div>
                    <div class="col-md-4">
                        <waltz-pie-table data="ctrl.pies.appConnections.data"
                                         config="ctrl.pies.appConnections.config"
                                         class="clickable"
                                         waltz-jump-to="ouv-flows"
                                         icon="random"
                                         title="Application Connections">
                        </waltz-pie-table>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-4">
                        <waltz-basic-info-tile name="Complexity"
                                               description="Derived from capabilities, connections and servers"
                                               icon="rocket">
                            <div style="font-size: xx-large;">
                                &Sigma; {{ ctrl.complexitySummary.cumulativeScore | toFixed:1 }}
                            </div>
                            <div class="small text-muted">
                                {{ ctrl.complexitySummary.averageScore | toFixed:2 }} per app
                            </div>
                        </waltz-basic-info-tile>

                    </div>
                    <div class="col-md-4">
                        <waltz-basic-info-tile name="Servers"

                                               description="Number of servers supporting this org unit"
                                               waltz-jump-to="ouv-servers"
                                               icon="server">
                            <div>
                                <div style="font-size: xx-large;">
                                    # {{ ctrl.serverStats.total }}
                                </div>
                                <div class="small text-muted">
                                    {{ ctrl.serverStats.virtualPercentage }}% virtual
                                </div>
                            </div>
                        </waltz-basic-info-tile>

                    </div>

                    <div class="col-md-4">
                        <waltz-basic-info-tile name="Capabilities"
                                               description="Capabilities performed within this OU"
                                               waltz-jump-to="ouv-ratings"
                                               icon="puzzle-piece">
                            <div>
                                <div style="font-size: xx-large;">
                                    # {{ ctrl.capabilityStats.total }}
                                </div>
                                <div class="small text-muted">
                                    {{ ctrl.capabilityStats.perApplication }} per app
                                </div>
                            </div>
                        </waltz-basic-info-tile>
                    </div>
                </div>
            </div>

        </div>
    </div>

    <div class="row" ng-if="ctrl.children.length > 0">

        <div class="col-md-offset-2 col-md-10">
            <h4>Sub Units</h4>
            <table class="table table-hover table-condensed fixed-table">
                <tr ng-repeat="subUnit in ctrl.children | orderBy:'name'">
                    <td>
                        <a ui-sref="main.org-units.unit ({ id: subUnit.id })">
                            {{ ::subUnit.name }}
                        </a>
                    </td>
                    <td class="text-muted small no-overflow">
                        {{ ::subUnit.description }}
                    </td>
{'fraction_non_alphanumeric': 0.11122959560331391, 'fraction_numerical': 0.004429497170043475, 'mean_word_length': 0.7932048830710399, 'pattern_counts': {'":': 0, '<': 175, '<?xml version=': 0, '>': 177, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 101, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5627012', 'n_tokens_mistral': 2882, 'n_tokens_neox': 2695, 'n_words': 467}