<commit_before><?php

/*
 * This file is part of the Assetic package, an OpenSky project.
 *
 * (c) 2010-2013 OpenSky Project Inc
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AssetManager\Asset;

use Assetic\Filter\FilterInterface;
use Assetic\Asset\BaseAsset;

/**
 * Represents a string asset.
 *
 * @author <NAME> <<EMAIL>>
 */
class ConcatStringAsset extends BaseAsset
{
    private $lastModified;

    /**
     * Constructor.
     *
     * @param string $content    The content of the asset
     * @param array  $filters    Filters for the asset
     * @param string $sourceRoot The source asset root directory
     * @param string $sourcePath The source asset path
     */
    public function __construct($content = '', $filters = array(), $sourceRoot = null, $sourcePath = null)
    {
        $this->setContent($content);

        parent::__construct($filters, $sourceRoot, $sourcePath);
    }

    public function load(FilterInterface $additionalFilter = null)
    {
        $this->doLoad($this->getContent(), $additionalFilter);
    }

    public function setLastModified($lastModified)
    {
        $this->lastModified = $lastModified;
    }

    public function getLastModified()
    {
        return $this->lastModified;
    }
}
<commit_msg>append content method to concat string asset<commit_after><?php

/*
 * This file is part of the Assetic package, an OpenSky project.
 *
 * (c) 2010-2013 OpenSky Project Inc
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AssetManager\Asset;

use Assetic\Filter\FilterInterface;
use Assetic\Asset\BaseAsset;

/**
 * Represents a string asset.
 *
 * @author <NAME> <<EMAIL>>
 */
class ConcatStringAsset extends BaseAsset
{
    private $lastModified;

    /**
     * Constructor.
     *
     * @param string $content    The content of the asset
     * @param array  $filters    Filters for the asset
     * @param string $sourceRoot The source asset root directory
     * @param string $sourcePath The source asset path
     */
    public function __construct($content = '', $filters = array(), $sourceRoot = null, $sourcePath = null)
    {
        $this->setContent($content);

        parent::__construct($filters, $sourceRoot, $sourcePath);
    }

    public function load(FilterInterface $additionalFilter = null)
    {
        $this->doLoad($this->getContent(), $additionalFilter);
    }

    public function setLastModified($lastModified)
    {
        $this->lastModified = $lastModified;
    }

    public function getLastModified()
    {
        return $this->lastModified;
    }

    /**
     * Append content to current content
     *
     * @param string $content
     *
     * @return $this
     */
    public function appendContent($content)
    {
        $this->setContent(
            $this->getContent().$content
        );
        return $this;
    }
}

{'fraction_non_alphanumeric': 0.10665783371977476, 'fraction_numerical': 0.005299768135144088, 'mean_word_length': 2.83248730964467, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, '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': '815165', 'n_tokens_mistral': 862, 'n_tokens_neox': 823, 'n_words': 255}