<commit_before><?php 
    
    // normal HTML output
    include ('sc-app.inc');
    include(APP_WEB_DIR . '/inc/header.inc');

    use \com\indigloo\Util as Util;
    use \com\indigloo\Url as Url ;

    use \com\indigloo\sc\auth\Login as Login;
    use \com\indigloo\sc\ui\Constants as UIConstants;

    set_exception_handler('webgloo_ajax_exception_handler');

    $hkey = Util::getArrayKey($_GET, "hkey");
    if(empty($hkey)) {
        echo "No help key supplied" ;
        exit ;
    }

    $html = \com\indigloo\sc\html\Site::getHelp($hkey);
    echo $html ;
?><commit_msg>URL exposed to world : do not expect it to contain hkey<commit_after><?php 
    
    // normal HTML output
    include ('sc-app.inc');
    include(APP_WEB_DIR . '/inc/header.inc');

    use \com\indigloo\Util as Util;
    use \com\indigloo\Url as Url ;

    use \com\indigloo\sc\auth\Login as Login;
    use \com\indigloo\sc\ui\Constants as UIConstants;

    set_exception_handler('webgloo_ajax_exception_handler');

    $hkey = Util::tryArrayKey($_GET, "hkey");
    if(empty($hkey)) {
        echo "No help key supplied" ;
        exit ;
    }

    $html = \com\indigloo\sc\html\Site::getHelp($hkey);
    echo $html ;

?>
{'fraction_non_alphanumeric': 0.14571190674437967, 'fraction_numerical': 0.0, 'mean_word_length': 2.675840978593272, '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': '6239553', 'n_tokens_mistral': 450, 'n_tokens_neox': 427, 'n_words': 88}