<commit_before><?php
/** @var \bbn\mvc\model $model */
$widgets = (array)$model->inc->perm->get('home/widgets');
$r = [
  'data' => []
];
$obs = new \bbn\appui\observer($model->db);
$no_cache = ['consultations', 'bugs', 'stats', 'users', 'dossiers', 'news'];
$i = 0;
foreach ( $widgets as $i => $w ){
  if ( empty($w['template']) ){
    $w['template'] = 'adh';
  }
  if ( !empty($w['code']) ){<commit_msg>Normalized permissions<commit_after><?php
/** @var \bbn\mvc\model $model */
$widgets = (array)$model->inc->perm->get('dashboard/home/widgets');
$r = [
  'data' => []
];
$obs = new \bbn\appui\observer($model->db);
$no_cache = ['consultations', 'bugs', 'stats', 'users', 'dossiers', 'news'];
$i = 0;
foreach ( $widgets as $i => $w ){
  if ( empty($w['template']) ){
    $w['template'] = 'adh';
  }
  if ( !empty($w['code']) ){
{'fraction_non_alphanumeric': 0.2858866103739445, 'fraction_numerical': 0.0024125452352231603, 'mean_word_length': 4.42483660130719, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '624205', 'n_tokens_mistral': 335, 'n_tokens_neox': 323, 'n_words': 63}