<commit_before><section data-ng-controller="StatisticsController" data-ng-init="find(view)" data-ng-show="authentication.user">
    <span keycuts></span>
    <div class="page-header">
        <div class="view-buttons text-right pull-right">
            <label class="btn btn-primary" ng-model="view" btn-radio="'Anime'">Anime</label>
            <label class="btn btn-primary" ng-model="view" btn-radio="'Manga'">Manga</label>
            <label class="btn btn-primary" ng-model="view" btn-radio="'Character'">Character</label>
        </div>
        <h1>{{view}} statistics</h1>
    </div>
    <div class="col-lg-12 col-md-12 col-sm-12" ng-hide="view === 'Character'">
        <div class="col-lg-12 col-md-12 col-sm-12 stat-overview">
            <span class="accent-text">{{overview.ongoing}} in progress</span> - <span class="green-text">{{overview.completed}}  completed</span>
        </div><!-- OVERVIEW STATS END -->
        <div class="col-lg-12 col-md-12 col-sm-12 stat-history-panel">
            <div class="stat-header">
                <div class="stat-header-label-container">
                    <h3 class="clickable" ng-click="showHistory = !showHistory"><i class="fa" ng-class="showHistory ? 'fa-minus-square' : 'fa-plus-square'"></i> History</h3>
                    <h3 class="btn btn-primary stat-header-label" ng-model="detail.history" btn-radio="'months'" ng-click="detail.isVisible=false" ng-show="showHistory">by month</h3>
                    <h3 class="btn btn-primary stat-header-label" ng-model="detail.history" btn-radio="'seasons'" ng-click="detail.isVisible=false" ng-show="showHistory && view === 'Anime'">by season</h3>
                </div>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12 stat-history" ng-init="showHistory = true">
                <table class="col-lg-12 col-md-12 col-sm-12" ng-show="showHistory">
                    <thead>
                        <tr>
                            <th></th>
                            <th class="text-center" ng-class="(detail.history === 'months') ? 'stat-month-header' : 'stat-season-header'" ng-repeat="header in commonArrays[detail.history]">
                                {{detail.history === 'months' ? header.text.substring(0,3) : header.text }}
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat="year in historyDetails[detail.history][detail.history] | orderBy: '-year'" ng-hide="loading(year.year)">
                            <th class="clickable" ng-click="historyDetail(year.year, '', '', detail.history)">
                                <span>{{year.year}}</span>
                            </th>
                            <td ng-repeat="part in year[detail.history]" ng-click="historyDetail(year.year, part[detail.history==='months' ? 'number' : 'text'], part.text);" 
                                hover-data="{{part.count}} {{detail.history === 'months' ? 'completed' : 'watched' }} {{part.text}} {{year.year}}.">
                                <span class="stat-month-box" ng-style="{'opacity': part.count / historyDetails[detail.history].max }"></span>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div><!-- HISTORY PANEL END -->
            <div class="col-lg-12 col-md-12 col-sm-12 stat-month-detail" ng-show="showHistory && detail.isVisible">
                <div class="col-lg-12 col-md-12 col-sm-12 margin-top-10" ng-show="(detail.summary.isVisible && detailItems.length > 1)">
                    <table class="col-lg-12 col-md-12 col-sm-12">
                        <thead>
                            <th>{{detail.year}}</th>
                            <th class="text-right" ng-repeat="item in commonArrays[detail.summary.type]">{{ detail.summary.type === 'months' ? item.text.substring(0,3) : item.text }}</th>
                        </thead>
                        <tbody>
                            <tr ng-repeat="item in historyDetails.yearSummary">
                                <th>{{item.metric}}</th>
                                <td class="text-right" ng-repeat="value in item.values">{{value.value}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="col-lg-8 col-md-8 col-sm-8 stat-detail">
                    <div class="stat-detail-header"><commit_msg>stat detail container needed padding<commit_after><section data-ng-controller="StatisticsController" data-ng-init="find(view)" data-ng-show="authentication.user">
    <span keycuts></span>
    <div class="page-header">
        <div class="view-buttons text-right pull-right">
            <label class="btn btn-primary" ng-model="view" btn-radio="'Anime'">Anime</label>
            <label class="btn btn-primary" ng-model="view" btn-radio="'Manga'">Manga</label>
            <label class="btn btn-primary" ng-model="view" btn-radio="'Character'">Character</label>
        </div>
        <h1>{{view}} statistics</h1>
    </div>
    <div class="col-lg-12 col-md-12 col-sm-12" ng-hide="view === 'Character'">
        <div class="col-lg-12 col-md-12 col-sm-12 stat-overview">
            <span class="accent-text">{{overview.ongoing}} in progress</span> - <span class="green-text">{{overview.completed}}  completed</span>
        </div><!-- OVERVIEW STATS END -->
        <div class="col-lg-12 col-md-12 col-sm-12 stat-history-panel">
            <div class="stat-header">
                <div class="stat-header-label-container">
                    <h3 class="clickable" ng-click="showHistory = !showHistory"><i class="fa" ng-class="showHistory ? 'fa-minus-square' : 'fa-plus-square'"></i> History</h3>
                    <h3 class="btn btn-primary stat-header-label" ng-model="detail.history" btn-radio="'months'" ng-click="detail.isVisible=false" ng-show="showHistory">by month</h3>
                    <h3 class="btn btn-primary stat-header-label" ng-model="detail.history" btn-radio="'seasons'" ng-click="detail.isVisible=false" ng-show="showHistory && view === 'Anime'">by season</h3>
                </div>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12 stat-history" ng-init="showHistory = true">
                <table class="col-lg-12 col-md-12 col-sm-12" ng-show="showHistory">
                    <thead>
                        <tr>
                            <th></th>
                            <th class="text-center" ng-class="(detail.history === 'months') ? 'stat-month-header' : 'stat-season-header'" ng-repeat="header in commonArrays[detail.history]">
                                {{detail.history === 'months' ? header.text.substring(0,3) : header.text }}
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat="year in historyDetails[detail.history][detail.history] | orderBy: '-year'" ng-hide="loading(year.year)">
                            <th class="clickable" ng-click="historyDetail(year.year, '', '', detail.history)">
                                <span>{{year.year}}</span>
                            </th>
                            <td ng-repeat="part in year[detail.history]" ng-click="historyDetail(year.year, part[detail.history==='months' ? 'number' : 'text'], part.text);" 
                                hover-data="{{part.count}} {{detail.history === 'months' ? 'completed' : 'watched' }} {{part.text}} {{year.year}}.">
                                <span class="stat-month-box" ng-style="{'opacity': part.count / historyDetails[detail.history].max }"></span>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div><!-- HISTORY PANEL END -->
            <div class="col-lg-12 col-md-12 col-sm-12 stat-month-detail" ng-show="showHistory && detail.isVisible">
                <div class="col-lg-12 col-md-12 col-sm-12 margin-top-10" ng-show="(detail.summary.isVisible && detailItems.length > 1)">
                    <table class="col-lg-12 col-md-12 col-sm-12">
                        <thead>
                            <th>{{detail.year}}</th>
                            <th class="text-right" ng-repeat="item in commonArrays[detail.summary.type]">{{ detail.summary.type === 'months' ? item.text.substring(0,3) : item.text }}</th>
                        </thead>
                        <tbody>
                            <tr ng-repeat="item in historyDetails.yearSummary">
                                <th>{{item.metric}}</th>
                                <td class="text-right" ng-repeat="value in item.values">{{value.value}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="col-lg-8 col-md-8 col-sm-8 stat-detail padding-bottom-15">
                    <div class="stat-detail-header">
{'fraction_non_alphanumeric': 0.17189391438318477, 'fraction_numerical': 0.014746340926598437, 'mean_word_length': 1.725854829034193, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 0, '>': 169, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6538934', 'n_tokens_mistral': 2718, 'n_tokens_neox': 2526, 'n_words': 448}