<commit_before><?php
$ctrlDir = DIR."/php/controller";
if (!isset($login) || !in_array($login->level,[\SSBIN\User::USER_ADMIN,\SSBIN\User::USER_EXPERT]))
  { include "$ctrlDir/403.php"; die(); }
$template = DIR."/php/view/expert/tulang.php";
$services = [
    "users", //validate users
    "validate", //Findings data validation
    ];

if (!isset($paths[1]) || $paths[1]=="") include "$ctrlDir/expert/home.php";
elseif (in_array($paths[1], $services)) include "$ctrlDir/expert/$paths[1].php";
else { include "$ctrlDir/404.php"; die(); }<commit_msg>Benerin route expert. validate jadi input.<commit_after><?php
$ctrlDir = DIR."/php/controller";
if (!isset($login) || !in_array($login->level,[\SSBIN\User::USER_ADMIN,\SSBIN\User::USER_EXPERT]))
  { include "$ctrlDir/403.php"; die(); }
$template = DIR."/php/view/expert/tulang.php";
$services = [
    "users", //validate users
    "input", //Findings data validation
    ];

if (!isset($paths[1]) || $paths[1]=="") include "$ctrlDir/expert/home.php";
elseif (in_array($paths[1], $services)) include "$ctrlDir/expert/$paths[1].php";
else { include "$ctrlDir/404.php"; die(); }
{'fraction_non_alphanumeric': 0.23309608540925267, 'fraction_numerical': 0.017793594306049824, 'mean_word_length': 5.25, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4693684', 'n_tokens_mistral': 410, 'n_tokens_neox': 405, 'n_words': 71}