<commit_before><?php
/**
 * XML_Builder
 *
 * utility & constants class
 *
 * PHP versions 5
 *
 * LICENSE: MIT License
 *
 * @category  XML
 * @package   XML_Builder
 * @author    <NAME> <<EMAIL>>
 * @copyright 2012 <NAME>
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 * @link      http://openpear.org/packages/XML_Builder
 */

if (!class_exists('XML_Builder_Interface', false)) {
    require_once dirname(__FILE__).'/Builder/Interface.php';
}
if (!class_exists('XML_Builder_Abstract', false)) {
    require_once dirname(__FILE__).'/Builder/Abstract.php';
}
if (!class_exists('XML_Builder_DOM', false)) {
    require_once dirname(__FILE__).'/Builder/DOM.php';
}
if (!class_exists('XML_Builder_XMLWriter', false)) {
    require_once dirname(__FILE__).'/Builder/XMLWriter.php';
}
if (!class_exists('XML_Builder_Array', false)) {
    require_once dirname(__FILE__).'/Builder/Array.php';
}

/**
 * XML_Builder
 *
 * utility & constants
 *
 * @category  XML
 * @package   XML_Builder
 * @author    <NAME> <<EMAIL>>
 * @copyright 2012 <NAME>
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 * @link      http://openpear.org/packages/XML_Builder
 */
abstract class XML_Builder
{
    static $sigil = '_';

    static $HTML4_STRICT = array(
        'html',
        '-//W3C//DTD HTML 4.01//EN',
        'http://www.w3.org/TR/html4/strict.dtd',
    );
    static $HTML4_TRANSITIONAL = array(
        'html',
        '-//W3C//DTD HTML 4.01 Transitional//EN',
        'http://www.w3.org/TR/html4/loose.dtd',
    );
    static $HTML4_FRAMESET = array(
        'html',
        '-//W3C//DTD HTML 4.01 Frameset//EN',
        'http://www.w3.org/TR/html4/frameset.dtd',
    );
    static $HTML5 = array('html', null, null);
    static $XHTML1_STRICT = array(
        'html',
        '-//W3C//DTD XHTML 1.0 Strict//EN',
        'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd',
    );
    static $XHTML1_TRANSITIONAL = array(
        'html',
        '-//W3C//DTD XHTML 1.0 Transitional//EN',
        'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd',
    );
    static $XHTML1_FRAMESET = array(
        'html',
        '-//W3C//DTD XHTML 1.0 Frameset//EN',
        'http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd'
    );
    static $XHTML11 = array(
        'html',
        '-//W3C//DTD XHTML 1.1//EN',
        'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'
    );

    const
        NS_XHTML = 'http://www.w3.org/1999/xhtml'
      , NS_ATOM = 'http://www.w3.org/2005/Atom'
      , NS_ATOM_PUB = 'http://www.w3.org/2007/app'
      , NS_OPENSEARCH = 'http://a9.com/-/spec/opensearch/1.1/'
      , NS_GDATA = 'http://schemas.google.com/g/2005'
      , NS_RSS_10 = 'http://purl.org/rss/1.0/'<commit_msg>add Atom Extensions NAMESPACE<commit_after><?php
/**
 * XML_Builder
 *
 * utility & constants class
 *
 * PHP versions 5
 *
 * LICENSE: MIT License
 *
 * @category  XML
 * @package   XML_Builder
 * @author    <NAME> <<EMAIL>>
 * @copyright 2012 <NAME>
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 * @link      http://openpear.org/packages/XML_Builder
 */

if (!class_exists('XML_Builder_Interface', false)) {
    require_once dirname(__FILE__).'/Builder/Interface.php';
}
if (!class_exists('XML_Builder_Abstract', false)) {
    require_once dirname(__FILE__).'/Builder/Abstract.php';
}
if (!class_exists('XML_Builder_DOM', false)) {
    require_once dirname(__FILE__).'/Builder/DOM.php';
}
if (!class_exists('XML_Builder_XMLWriter', false)) {
    require_once dirname(__FILE__).'/Builder/XMLWriter.php';
}
if (!class_exists('XML_Builder_Array', false)) {
    require_once dirname(__FILE__).'/Builder/Array.php';
}

/**
 * XML_Builder
 *
 * utility & constants
 *
 * @category  XML
 * @package   XML_Builder
 * @author    <NAME> <<EMAIL>>
 * @copyright 2012 <NAME>
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 * @link      http://openpear.org/packages/XML_Builder
 */
abstract class XML_Builder
{
    static $sigil = '_';

    static $HTML4_STRICT = array(
        'html',
        '-//W3C//DTD HTML 4.01//EN',
        'http://www.w3.org/TR/html4/strict.dtd',
    );
    static $HTML4_TRANSITIONAL = array(
        'html',
        '-//W3C//DTD HTML 4.01 Transitional//EN',
        'http://www.w3.org/TR/html4/loose.dtd',
    );
    static $HTML4_FRAMESET = array(
        'html',
        '-//W3C//DTD HTML 4.01 Frameset//EN',
        'http://www.w3.org/TR/html4/frameset.dtd',
    );
    static $HTML5 = array('html', null, null);
    static $XHTML1_STRICT = array(
        'html',
        '-//W3C//DTD XHTML 1.0 Strict//EN',
        'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd',
    );
    static $XHTML1_TRANSITIONAL = array(
        'html',
        '-//W3C//DTD XHTML 1.0 Transitional//EN',
        'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd',
    );
    static $XHTML1_FRAMESET = array(
        'html',
        '-//W3C//DTD XHTML 1.0 Frameset//EN',
        'http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd'
    );
    static $XHTML11 = array(
        'html',
        '-//W3C//DTD XHTML 1.1//EN',
        'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'
    );

    const
        NS_XHTML = 'http://www.w3.org/1999/xhtml'
      , NS_ATOM = 'http://www.w3.org/2005/Atom'
      , NS_ATOM_PUB = 'http://www.w3.org/2007/app'
      , NS_ATOM_THREAD = 'http://purl.org/syndication/thread/1.0',
      , NS_ATOM_HISTORY = 'http://purl.org/syndication/history/1.0',
      , NS_OPENSEARCH = 'http://a9.com/-/spec/opensearch/1.1/'
      , NS_GDATA = 'http://schemas.google.com/g/2005'
      , NS_RSS_10 = 'http://purl.org/rss/1.0/'
{'fraction_non_alphanumeric': 0.18172194777699366, 'fraction_numerical': 0.03175723359209598, 'mean_word_length': 2.53428927680798, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 24, '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': '69911', 'n_tokens_mistral': 2232, 'n_tokens_neox': 2098, 'n_words': 316}