<commit_before><?php
namespace PharIo\Phive;

class PhiveInstallDB {

    /**
     * @var Directory
     */
    private $pharDirectory;

    /**
     * @var XmlFile
     */
    private $dbFile;

    /**
     * @param Filename  $filename
     * @param Directory $pharDirectory
     */
    public function __construct(XmlFile $xmlFile, Directory $pharDirectory) {
        $this->dbFile = $xmlFile;
        $this->pharDirectory = $pharDirectory;
    }

    /**
     * @param Phar $phar
     */
    public function addPhar(Phar $phar) {
        $this->savePhar($phar->getFile());
        $pharNode = $this->dbFile->createElement('phar');
        $pharNode->setAttribute('name', $phar->getName());
        $pharNode->setAttribute('version', $phar->getVersion()->getVersionString());<commit_msg>fix docblock<commit_after><?php
namespace PharIo\Phive;

class PhiveInstallDB {

    /**
     * @var Directory
     */
    private $pharDirectory;

    /**
     * @var XmlFile
     */
    private $dbFile;

    /**
     * @param XmlFile $xmlFile
     * @param Directory $pharDirectory
     */
    public function __construct(XmlFile $xmlFile, Directory $pharDirectory) {
        $this->dbFile = $xmlFile;
        $this->pharDirectory = $pharDirectory;
    }

    /**
     * @param Phar $phar
     */
    public function addPhar(Phar $phar) {
        $this->savePhar($phar->getFile());
        $pharNode = $this->dbFile->createElement('phar');
        $pharNode->setAttribute('name', $phar->getName());
        $pharNode->setAttribute('version', $phar->getVersion()->getVersionString());
{'fraction_non_alphanumeric': 0.156289707750953, 'fraction_numerical': 0.0, 'mean_word_length': 2.6206896551724137, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '2109512', 'n_tokens_mistral': 508, 'n_tokens_neox': 496, 'n_words': 86}