<commit_before><?php
// nonums = no numbering
//{MODULE(nonums=y|n /}

//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}
if (empty($imagegallib) or !is_object($imagegallib)) include_once 'lib/imagegals/imagegallib.php';
$ranking = $imagegallib->list_visible_galleries(0, $module_rows, 'lastModif_desc', $user, '');

$smarty->assign('modLastGalleries', $ranking["data"]);
$smarty->assign('nonums', isset($module_params["nonums"]) ? $module_params["nonums"] : 'n');

<commit_msg>missing global<commit_after><?php
// nonums = no numbering
//{MODULE(nonums=y|n /}

//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}
global $imagegallib; include_once 'lib/imagegals/imagegallib.php';
$ranking = $imagegallib->list_visible_galleries(0, $module_rows, 'lastModif_desc', $user, '');

$smarty->assign('modLastGalleries', $ranking["data"]);
$smarty->assign('nonums', isset($module_params["nonums"]) ? $module_params["nonums"] : 'n');


{'fraction_non_alphanumeric': 0.18900915903413823, 'fraction_numerical': 0.0016652789342214821, 'mean_word_length': 6.907894736842105, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '5307899', 'n_tokens_mistral': 429, 'n_tokens_neox': 414, 'n_words': 83}