<commit_before><ot-view>

    <div class="row" ng-show="loadingPortfolios">
        <div class="col-md-12">
            <div class="alert alert-info">
                <span class="ot-loading-indicator"></span>
                Loading portfolios...
            </div>
        </div>
    </div>

    <div class="row" ng-show="!loadingPortfolios && portfolios.length == 0">
        <div class="col-md-12">
            <div class="alert alert-info">
                No indicator portfolio is set yet. Create one by clicking on this
                <a class="ot-action" ng-click="createPorfolio()">link</a>.
            </div>
        </div>
    </div>

    <div class="row" ng-repeat="portfolio in portfolios">
        <div class="col-md-12">
            <h4>
                <a href="#/extension/indicators/portfolios/{{portfolio.id}}">
                    <span class="fa fa-folder-open-o"></span>
                    {{portfolio.name}}
                </a>
                <a ng-if="portfolio.links._update"
                   href="#/extension/indicators/portfolios/{{portfolio.id}}/edit"
                   title="Edit the content of the {{portfolio.name}} portfolio"><span
                        class="fa fa-pencil ot-command"></span></a>
                <a ng-if="portfolio.links._delete"
                   ng-click="deletePortfolio(portfolio)"
                   title="Delete the {{portfolio.name}} portfolio"><span class="fa fa-trash ot-command"></span></a>
            </h4>
        </div>
        <div class="col-md-12">
            <div class="row">
                <div class="col-md-2" ng-repeat="typeStats in portfolio.globalStats">
                    <div class="row">
                        <div class="col-md-5">
                            <span class="fa fa-circle fa-5x" ng-if="typeStats.stats.count == 0"
                                  ng-style="{
                                    'color': getIndicatorStatusColor(null)
                                  }"
                                  title="Not enough data."></span>
                            <span class="fa fa-circle fa-5x" ng-if="typeStats.stats.count > 0"
                                  ng-style="{
                                    'color': getIndicatorStatusColor(typeStats.stats.avg)
                                  }"
                                  title="Average status over {{typeStats.stats.count}} project(s)."></span>
                        </div>
                        <div class="col-md-7">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</ot-view><commit_msg>#773 Portfolio of portfolios - basic layout :(<commit_after><ot-view>

    <div class="row" ng-show="loadingPortfolios">
        <div class="col-md-12">
            <div class="alert alert-info">
                <span class="ot-loading-indicator"></span>
                Loading portfolios...
            </div>
        </div>
    </div>

    <div class="row" ng-show="!loadingPortfolios && portfolios.length == 0">
        <div class="col-md-12">
            <div class="alert alert-info">
                No indicator portfolio is set yet. Create one by clicking on this
                <a class="ot-action" ng-click="createPorfolio()">link</a>.
            </div>
        </div>
    </div>

    <div class="row" ng-repeat="portfolio in portfolios">
        <div class="col-md-12">
            <h4>
                <a href="#/extension/indicators/portfolios/{{portfolio.id}}">
                    <span class="fa fa-folder-open-o"></span>
                    {{portfolio.name}}
                </a>
                <a ng-if="portfolio.links._update"
                   href="#/extension/indicators/portfolios/{{portfolio.id}}/edit"
                   title="Edit the content of the {{portfolio.name}} portfolio"><span
                        class="fa fa-pencil ot-command"></span></a>
                <a ng-if="portfolio.links._delete"
                   ng-click="deletePortfolio(portfolio)"
                   title="Delete the {{portfolio.name}} portfolio"><span class="fa fa-trash ot-command"></span></a>
            </h4>
        </div>
        <div class="col-md-12">
            <div class="row">
                <div class="col-md-2" ng-repeat="typeStats in portfolio.globalStats">
                    <div class="row">
                        <div class="col-md-3">
                            <span class="fa fa-circle fa-5x" ng-if="typeStats.stats.count == 0"
                                  ng-style="{
                                    'color': getIndicatorStatusColor(null)
                                  }"
                                  title="Not enough data."></span>
                            <span class="fa fa-circle fa-5x" ng-if="typeStats.stats.count > 0"
                                  ng-style="{
                                    'color': getIndicatorStatusColor(typeStats.stats.avg)
                                  }"
                                  title="Average status over {{typeStats.stats.count}} project(s)."></span>
                        </div>
                        <div class="col-md-9">
                            <strong title="{{typeStats.type.name}}">{{typeStats.type.shortName}}</strong>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</ot-view>
{'fraction_non_alphanumeric': 0.14487438107463782, 'fraction_numerical': 0.00715202640748212, 'mean_word_length': 1.2334152334152335, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3321483', 'n_tokens_mistral': 1515, 'n_tokens_neox': 1414, 'n_words': 273}