<commit_before><?php
namespace Balloon;

use Balloon\Manager\FileManager;
use Balloon\Proxy\FileReaderProxy;
use Balloon\Proxy\IProxy;

/**
 * Class Balloon
 * @package Balloon
 * @author <NAME> <<EMAIL>>
 * @method FileReaderProxy getFileReader()
 */
class Balloon extends FileManager implements IProxy
{
    /**
     * @param FileReaderProxy $fileReaderProxy
     * @param string $primaryKey
     */
    public function __construct(FileReaderProxy $fileReaderProxy, $primaryKey = '')
    {
        parent::__construct($fileReaderProxy, $primaryKey);
    }

    /**
     * @return int
     */
    public function flush()
    {
        return $this->getFileReader()->flush();
    }

    /**
     * rollbacks the modifications not pushed.
     */
    public function clear()
    {
        $this->getFileReader()->clear();
    }

    /**
     * @return int
     */
    public function invalidate()
    {
        return $this->getFileReader()->invalidate();
    }
}<commit_msg>add comments<commit_after><?php
namespace Balloon;

use Balloon\Manager\FileManager;
use Balloon\Proxy\FileReaderProxy;
use Balloon\Proxy\IProxy;

/**
 * Class Balloon
 * @package Balloon
 * @author <NAME> <<EMAIL>>
 * @method FileReaderProxy getFileReader()
 */
class Balloon extends FileManager implements IProxy
{
    /**
     * @param FileReaderProxy $fileReaderProxy
     * @param string $primaryKey
     */
    public function __construct(FileReaderProxy $fileReaderProxy, $primaryKey = '')
    {
        parent::__construct($fileReaderProxy, $primaryKey);
    }

    /**
     * writes the modification into the file.
     *
     * @return int
     */
    public function flush()
    {
        return $this->getFileReader()->flush();
    }

    /**
     * rollbacks the modifications not pushed.
     */
    public function clear()
    {
        $this->getFileReader()->clear();
    }

    /**
     * invalidates the cache of the file.
     *
     * @return int
     */
    public function invalidate()
    {
        return $this->getFileReader()->invalidate();
    }
}
{'fraction_non_alphanumeric': 0.12884333821376281, 'fraction_numerical': 0.0, 'mean_word_length': 2.5964912280701755, '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': '7100843', 'n_tokens_mistral': 593, 'n_tokens_neox': 587, 'n_words': 135}