<commit_before><?php
// This is the annotated source code of the [FACT-Finder PHP Library Demo](https://github.com/FACT-Finder/FACT-Finder-PHP-Library-Demo), a minimal example that showcases
// how to use the most recent version of the [FACT-Finder PHP Library](https://github.com/FACT-Finder/FACT-Finder-PHP-Library).
//
// **Note:** The entire library resides in the `\FACTFinder` namespace, which is
// why that namespace will be omitted in all "fully" qualified class names in
// this documentation.
//
// There are three different entry-point scripts. *index.php* (the one you are
// looking at, which handles displaying all pages to the user), [*suggest.php*](suggest.html)
// and [*tracking.php*](tracking.html) which are called by AJAX requests.
//
// **Here we go!**

// ## Setting up the environment

// The demo can live in any namespace.
namespace FACTFinderDemo;

error_reporting(E_ALL);

// Set up constants with a few useful directory names.
define('DS', DIRECTORY_SEPARATOR);
define('DEMO_DIR', dirname(__FILE__));
define('LIB_DIR', dirname(DEMO_DIR).DS.'lib');
define('TEMPLATE_DIR', DEMO_DIR.DS.'templates');
define('USERDATA_DIR', DEMO_DIR.DS.'userdata');
define('HELPER_DIR', DEMO_DIR.DS.'helper');

// ## Setting up the library

// As far as the library is concerned we only need to `require` the<commit_msg>Remove unnecessary constant<commit_after><?php
// This is the annotated source code of the [FACT-Finder PHP Library Demo](https://github.com/FACT-Finder/FACT-Finder-PHP-Library-Demo), a minimal example that showcases
// how to use the most recent version of the [FACT-Finder PHP Library](https://github.com/FACT-Finder/FACT-Finder-PHP-Library).
//
// **Note:** The entire library resides in the `\FACTFinder` namespace, which is
// why that namespace will be omitted in all "fully" qualified class names in
// this documentation.
//
// There are three different entry-point scripts. *index.php* (the one you are
// looking at, which handles displaying all pages to the user), [*suggest.php*](suggest.html)
// and [*tracking.php*](tracking.html) which are called by AJAX requests.
//
// **Here we go!**

// ## Setting up the environment

// The demo can live in any namespace.
namespace FACTFinderDemo;

error_reporting(E_ALL);

// Set up constants with a few useful directory names.
define('DS', DIRECTORY_SEPARATOR);
define('DEMO_DIR', dirname(__FILE__));
define('LIB_DIR', dirname(DEMO_DIR).DS.'lib');
define('TEMPLATE_DIR', DEMO_DIR.DS.'templates');
define('USERDATA_DIR', DEMO_DIR.DS.'userdata');

// ## Setting up the library

// As far as the library is concerned we only need to `require` the
{'fraction_non_alphanumeric': 0.1354642313546423, 'fraction_numerical': 0.0, 'mean_word_length': 4.465696465696466, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1402431', 'n_tokens_mistral': 803, 'n_tokens_neox': 787, 'n_words': 281}