<commit_before><div id="distribution_graph_container">
    <div class="loadingPopover">
        <div class="spinner"></div>
        <div class="loadingText"><?php echo __('Loading');?></div>
    </div>

    <div id="eventdistri_graph" data-event-id="<?php echo h($event['Event']['id']); ?>" data-event-distribution="<?php echo h($event['Event']['distribution']); ?>" data-event-distribution-text="<?php echo $event['Event']['distribution'] == 4 ? h($event['SharingGroup']['name']) : h($distributionLevels[$event['Event']['distribution']]); ?>" data-user-manipulation="<?php echo $mayModify || $isSiteAdmin ? 'true' : 'false'; ?>" data-extended="<?php echo $extended; ?>">
        <canvas id="distribution_graph_canvas" height="290" width="400"></canvas>
    </div>
    <div class="popupDistriSeparator"></div>
    <div id="eventdistri_pb_container">
        <div id="eventdistri_pb_background" class="customProgress useCursorPointer">
            <div id="eventdistri_pb_min" class="customProgress useCursorPointer animatedPB" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" data-toggle="tooltip" data-placement="left" data-container="body" title="<?php echo __('Elements having lower distribution level than the event'); ?>"></div>
            <div id="eventdistri_pb" class="customProgress useCursorPointer animatedPB" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" data-toggle="tooltip" data-placement="top" data-container="body" title="<?php echo __('Distribution of the event'); ?>"></div>
            <div id="eventdistri_pb_invalid" class="customProgress useCursorPointer animatedPB" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" data-toggle="tooltip" data-placement="right" data-container="body" title="<?php echo __('Inconsistent distribution level, fallback on the event distribution'); ?>"></div>
        </div>
    </div>
    <div id="eventdistri_sg_pb_container">
        <span class="sharingGroup_pb_text useCursorPointer badge"><?php echo __("Sharing group"); ?></span>
        <div id="eventdistri_sg_pb_background" class="customProgress useCursorPointer">
            <div id="eventdistri_sg_pb" class="customProgress useCursorPointer animatedPB" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" data-toggle="tooltip" data-placement="bottom" data-container="body"></div>
        </div>
    </div>
</div>

<?php
    echo $this->Html->script('Chart.min');
    echo $this->Html->script('event-distribution-graph');
    echo $this->Html->css('distribution-graph');
?>
<commit_msg>chg: [UI] Use asset loader for view_event_distribution_graph.ctp<commit_after><div id="distribution_graph_container">
    <div class="loadingPopover">
        <div class="spinner"></div>
        <div class="loadingText"><?php echo __('Loading');?></div>
    </div>

    <div id="eventdistri_graph" data-event-id="<?php echo h($event['Event']['id']); ?>" data-event-distribution="<?php echo h($event['Event']['distribution']); ?>" data-event-distribution-text="<?php echo $event['Event']['distribution'] == 4 ? h($event['SharingGroup']['name']) : h($distributionLevels[$event['Event']['distribution']]); ?>" data-user-manipulation="<?php echo $mayModify || $isSiteAdmin ? 'true' : 'false'; ?>" data-extended="<?php echo $extended; ?>">
        <canvas id="distribution_graph_canvas" height="290" width="400"></canvas>
    </div>
    <div class="popupDistriSeparator"></div>
    <div id="eventdistri_pb_container">
        <div id="eventdistri_pb_background" class="customProgress useCursorPointer">
            <div id="eventdistri_pb_min" class="customProgress useCursorPointer animatedPB" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" data-toggle="tooltip" data-placement="left" data-container="body" title="<?php echo __('Elements having lower distribution level than the event'); ?>"></div>
            <div id="eventdistri_pb" class="customProgress useCursorPointer animatedPB" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" data-toggle="tooltip" data-placement="top" data-container="body" title="<?php echo __('Distribution of the event'); ?>"></div>
            <div id="eventdistri_pb_invalid" class="customProgress useCursorPointer animatedPB" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" data-toggle="tooltip" data-placement="right" data-container="body" title="<?php echo __('Inconsistent distribution level, fallback on the event distribution'); ?>"></div>
        </div>
    </div>
    <div id="eventdistri_sg_pb_container">
        <span class="sharingGroup_pb_text useCursorPointer badge"><?php echo __("Sharing group"); ?></span>
        <div id="eventdistri_sg_pb_background" class="customProgress useCursorPointer">
            <div id="eventdistri_sg_pb" class="customProgress useCursorPointer animatedPB" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" data-toggle="tooltip" data-placement="bottom" data-container="body"></div>
        </div>
    </div>
</div>
<?= $this->element('genericElements/assetLoader', [
    'js' => [
        'Chart.min',
        'event-distribution-graph',
    ],
    'css' => [
        'distribution-graph',
    ],
]);

{'fraction_non_alphanumeric': 0.1820935074768124, 'fraction_numerical': 0.010221465076660987, 'mean_word_length': 5.555831265508685, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5445401', 'n_tokens_mistral': 1618, 'n_tokens_neox': 1572, 'n_words': 305}