<commit_before><?php

namespace Byng\PimcoreDoctrine\Composer;

use Composer\Script\Event;
use Composer\Util\Filesystem;
use Composer\Installer\PackageEvent;

class CliInstaller
{

    public static function postInstall(Event $event)
    {
        $config = $event->getComposer()->getConfig();
        $rootPath = dirname($config->get('vendor-dir'));

        if(!file_exists($rootPath."/cli-config.php")) {
            copy(
                $rootPath . "/vendor/asimlqt/byng-pimcore-doctrine/cli-config.php",
                $rootPath
            );
        }
    }

}<commit_msg>changed event<commit_after><?php

namespace Byng\PimcoreDoctrine\Composer;

use Composer\Script\Event;
use Composer\Util\Filesystem;
use Composer\Installer\PackageEvent;

class CliInstaller
{

    public static function postPackageInstall(PackageEvent $event)
    {
        $config = $event->getComposer()->getConfig();
        $rootPath = dirname($config->get('vendor-dir'));

        if(!file_exists($rootPath."/cli-config.php")) {
            copy(
                $rootPath . "/vendor/asimlqt/byng-pimcore-doctrine/cli-config.php",
                $rootPath
            );
        }
    }

}
{'fraction_non_alphanumeric': 0.1360544217687075, 'fraction_numerical': 0.0, 'mean_word_length': 2.5451807228915664, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '7481282', 'n_tokens_mistral': 374, 'n_tokens_neox': 364, 'n_words': 51}