<commit_before><?php

require_once 'config.php';
require_once 'lib/session.php';
require_once 'lib/actions.php';

init();

$action = getAction();
if (!function_exists($action)) {
    $action = 'action_default';
}

$resp = $action();

writeResponse($resp);

?><commit_msg>[project @ Make the entry point script tell the user when he needs to configure the server]<commit_after><?php

require_once 'config.php';

if ($server_url) {
    require_once 'lib/session.php';
    require_once 'lib/actions.php';

    init();

    $action = getAction();
    if (!function_exists($action)) {
        $action = 'action_default';
    }

    $resp = $action();

    writeResponse($resp);
} else {
?>
<html>
  <head>
    <title>PHP OpenID Server</title>
    <body>
      <h1>PHP OpenID Server</h1>
      <p>
        This server needs to be configured before it can be used. Edit
        <code>config.php</code> to reflect your server's setup, then
        load this page again.
      </p>
    </body>
  </head>
</html>
<?php
}
?>
{'fraction_non_alphanumeric': 0.15597235932872655, 'fraction_numerical': 0.0019743336623889436, 'mean_word_length': 3.20746887966805, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, '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': '1522019', 'n_tokens_mistral': 337, 'n_tokens_neox': 332, 'n_words': 90}