<commit_before><?php

namespace Sokil\Vast\Ad;

class Wrapper extends \Sokil\Vast\Ad
{
    public function addVASTAdTagURI($uri)
    {
        // create VASTAdTagURI-Node
        $VASTAdTagURIDomElement = $this->_domElement->ownerDocument->createElement('VASTAdTagURI');
        $this->_domElement->firstChild->appendChild($VASTAdTagURIDomElement);

        // create VASTAdTagURI-cdata
        $cdata = $this->_domElement->ownerDocument->createCDATASection($uri);
        $VASTAdTagURIDomElement->appendChild($cdata);
        
        return $this;
    }
}<commit_msg>Wrapper-Node can now hold an AdSystem-Node<commit_after><?php

namespace Sokil\Vast\Ad;

class Wrapper extends \Sokil\Vast\Ad
{

    /**
     * adds a VASTAdTagURI-Node to Wrapper-Node
     *
     * @param $uri
     * @return $this
     */
    public function addVASTAdTagURI($uri)
    {
        // create VASTAdTagURI-Node
        $VASTAdTagURIDomElement = $this->_domElement->ownerDocument->createElement('VASTAdTagURI');
        $this->_domElement->firstChild->appendChild($VASTAdTagURIDomElement);

        // create VASTAdTagURI-cdata
        $cdata = $this->_domElement->ownerDocument->createCDATASection($uri);
        $VASTAdTagURIDomElement->appendChild($cdata);

        return $this;
    }

    /**
     * adds a AdSystem-Node to Wrapper-Node
     *
     * @param string $adSystem
     * @return \Sokil\Vast\Ad\Wrapper
     */
    public function setAdSystem($adSystem)
    {
        $adSystemDomElement = $this->_domElement->getElementsByTagName('AdSystem')->item(0);
        if($adSystemDomElement) {
            $adSystemDomElement->nodeValue = $adSystem;
        }
        else {
            $adSystemDomElement = $this->_domElement->ownerDocument->createElement('AdSystem', $adSystem);
            $this->_domElement->firstChild->appendChild($adSystemDomElement);
        }

        return $this;
    }
}
{'fraction_non_alphanumeric': 0.12705134992059292, 'fraction_numerical': 0.0005293806246691371, 'mean_word_length': 2.825910931174089, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '494285', 'n_tokens_mistral': 592, 'n_tokens_neox': 588, 'n_words': 83}