<commit_before><?php
/* vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 foldmethod=marker: */

/**
 * TIP_Application definition file
 *
 * LICENSE: This source file is subject to the New BSD license that is 
 * available through the world-wide-web at the following URI:
 * http://www.opensource.org/licenses/bsd-license.php
 * If you did not receive a copy of the New BSD License and are unable to
 * obtain it through the web, please send a note to license@php.net so we
 * can mail you a copy immediately.
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright Copyright &copy; 2006-2008 <NAME>
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
 * @package   TIP
 * @since     0.0.1
 */

/**
 * The main module
 *
 * This module manages the generation of the "page" (the most dynamic part of
 * a TIP site). This is done by using the "content" property as a text buffer.
 *
 * When the tagPage() is called, usually throught a tag in the main template,
 * the TIP_Application module will call the callbacks stored in the queue
 * in sequential order. The page is the output of these callbacks.
 *
 * After a TIP_Application instantiation, the global variable $GLOBALS[TIP_MAIN]
 * will contain a reference to this TIP_Application instantiated object.
 * Your index.php, if the TIP system is properly configured, will usually be
 * as the following one:
 *
 * <code>
 * <?php
 * require_once './logic/TIP.php';
 *
 * TIP_Type::getInstance('main');
 * $GLOBALS[TIP_MAIN]->go();
 * ?>
 * </code>
 *
 * @package  TIP
 */
class TIP_Application extends TIP_Module
{
    //{{{ Properties

    /**
     * Page begin string (incipit)
     * @var string
     */
    protected $incipit = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"it-IT\" lang=\"it-IT\">\n\n";

    /**
     * Page end string (explicit)
     * @var string
     */
    protected $explicit = '</html>';

    /**
     * Namespace
     * @var string
     */
    protected $namespace = null;

    /**
     * Flag to enable global JSON infrastructure for unobtrusive javascript
     * @var boolean
     */
    protected $json = false;

    /**
     * Page title
     * @var string
     */
    protected $title = 'Untitled TIP site';

    /**
     * Page description
     * @var string
     */
    protected $description = 'This is a generic TIP site';

    /**
     * Robots metatag
     * @var string
     */
    protected $robots = 'index,follow';

    /**
     * Page keywords
     * @var string
     */
    protected $keywords = 'tip';

    /**
     * Additional code to add at the end of the <head> section
     * @var string
     */
    protected $additional = '';

    /**
     * The default data engine to use: required
     * @var TIP_Data_Engine
     */
    protected $data_engine = null;

    /**
     * The data root path
     * @var string<commit_msg>[TIP_Application] "description" must be null by default<commit_after><?php
/* vim: set expandtab shiftwidth=4 softtabstop=4 tabstop=4 foldmethod=marker: */

/**
 * TIP_Application definition file
 *
 * LICENSE: This source file is subject to the New BSD license that is 
 * available through the world-wide-web at the following URI:
 * http://www.opensource.org/licenses/bsd-license.php
 * If you did not receive a copy of the New BSD License and are unable to
 * obtain it through the web, please send a note to license@php.net so we
 * can mail you a copy immediately.
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright Copyright &copy; 2006-2008 Nicola Fontana
 * @license   http://www.opensource.org/licenses/bsd-license.php New BSD License
 * @package   TIP
 * @since     0.0.1
 */

/**
 * The main module
 *
 * This module manages the generation of the "page" (the most dynamic part of
 * a TIP site). This is done by using the "content" property as a text buffer.
 *
 * When the tagPage() is called, usually throught a tag in the main template,
 * the TIP_Application module will call the callbacks stored in the queue
 * in sequential order. The page is the output of these callbacks.
 *
 * After a TIP_Application instantiation, the global variable $GLOBALS[TIP_MAIN]
 * will contain a reference to this TIP_Application instantiated object.
 * Your index.php, if the TIP system is properly configured, will usually be
 * as the following one:
 *
 * <code>
 * <?php
 * require_once './logic/TIP.php';
 *
 * TIP_Type::getInstance('main');
 * $GLOBALS[TIP_MAIN]->go();
 * ?>
 * </code>
 *
 * @package  TIP
 */
class TIP_Application extends TIP_Module
{
    //{{{ Properties

    /**
     * Page begin string (incipit)
     * @var string
     */
    protected $incipit = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"it-IT\" lang=\"it-IT\">\n\n";

    /**
     * Page end string (explicit)
     * @var string
     */
    protected $explicit = '</html>';

    /**
     * Namespace
     * @var string
     */
    protected $namespace = null;

    /**
     * Flag to enable global JSON infrastructure for unobtrusive javascript
     * @var boolean
     */
    protected $json = false;

    /**
     * Page title
     * @var string
     */
    protected $title = 'Untitled TIP site';

    /**
     * Page description
     * @var string
     */
    protected $description = null;

    /**
     * Robots metatag
     * @var string
     */
    protected $robots = 'index,follow';

    /**
     * Page keywords
     * @var string
     */
    protected $keywords = 'tip';

    /**
     * Additional code to add at the end of the <head> section
     * @var string
     */
    protected $additional = '';

    /**
     * The default data engine to use: required
     * @var TIP_Data_Engine
     */
    protected $data_engine = null;

    /**
     * The data root path
     * @var string
{'fraction_non_alphanumeric': 0.1234113712374582, 'fraction_numerical': 0.008361204013377926, 'mean_word_length': 2.587882423515297, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 4}, 'pii_count': 2, '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': '212025', 'n_tokens_mistral': 1880, 'n_tokens_neox': 1800, 'n_words': 629}