<commit_before><?php
namespace watoki\fido;

use Composer\Composer;
use Composer\EventDispatcher\EventSubscriberInterface;
use Composer\Installer\InstallerEvent;
use Composer\Installer\InstallerEvents;
use Composer\IO\IOInterface;
use Composer\Plugin\PluginInterface;
use Composer\Script\ScriptEvents;

class FidoPlugin implements PluginInterface, EventSubscriberInterface {

    const REQUIRE_ASSETS_KEY = 'require-assets';

    /** @var string */
    private $root;

    /** @var \watoki\fido\Executor */
    private $executor;

    /** @var array */
    private $extra;

    /** @var IOInterface */
    private $io;

    function __construct($rootDir = '.', Executor $executor = null) {
        $this->root = $rootDir;
        $this->executor = $executor ? : new Executor();
    }

    public static function getSubscribedEvents() {
        return array(
                ScriptEvents::POST_AUTOLOAD_DUMP => array(<commit_msg>Do stuff after update or install<commit_after><?php
namespace watoki\fido;

use Composer\Composer;
use Composer\EventDispatcher\EventSubscriberInterface;
use Composer\Installer\InstallerEvent;
use Composer\Installer\InstallerEvents;
use Composer\IO\IOInterface;
use Composer\Plugin\PluginInterface;
use Composer\Script\ScriptEvents;

class FidoPlugin implements PluginInterface, EventSubscriberInterface {

    const REQUIRE_ASSETS_KEY = 'require-assets';

    /** @var string */
    private $root;

    /** @var \watoki\fido\Executor */
    private $executor;

    /** @var array */
    private $extra;

    /** @var IOInterface */
    private $io;

    function __construct($rootDir = '.', Executor $executor = null) {
        $this->root = $rootDir;
        $this->executor = $executor ? : new Executor();
    }

    public static function getSubscribedEvents() {
        return array(
                ScriptEvents::POST_UPDATE_CMD => array(
                        array('run', 0),
                ),
                ScriptEvents::POST_INSTALL_CMD => array(
{'fraction_non_alphanumeric': 0.11312217194570136, 'fraction_numerical': 0.0005027652086475615, 'mean_word_length': 3.1458333333333335, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '3603953', 'n_tokens_mistral': 595, 'n_tokens_neox': 566, 'n_words': 128}