<commit_before><?php
namespace Rocketeer\Plugins\Newrelic;

use Illuminate\Container\Container;
use Rocketeer\Abstracts\AbstractPlugin;
use Rocketeer\Services\TasksHandler;

class RocketeerNewrelic extends AbstractPlugin
{
    /**
     * Setup the plugin
     *
     * @param Container $app
     */
    public function __construct(Container $app)
    {
        parent::__construct($app);
        $this->configurationFolder = __DIR__.'/../config';
    }

    /**
     * Bind additional classes to the Container
     *
     * @param Container $app
     *
     * @return void
     */
    public function register(Container $app)
    {
        $app->bind('newrelic-config', function ($app) {
            return new RocketeerNewrelicConfig($app['config']->get('rocketeer-newrelic::config'));
        });
        return $app;
    }

    /**
     * Register Tasks with Rocketeer
     *
     * @param \Rocketeer\Services\TasksHandler $queue
     *
     * @return void
     */
    public function onQueue(TasksHandler $queue)
    {
        $afterDeploy = function() {
            $this->afterDeploy();
        };

        $queue->addTaskListeners('deploy', 'after', $afterDeploy, 0, true);<commit_msg>Improve hook for develop<commit_after><?php
namespace Rocketeer\Plugins\Newrelic;

use Illuminate\Container\Container;
use Rocketeer\Abstracts\AbstractPlugin;
use Rocketeer\Services\TasksHandler;

class RocketeerNewrelic extends AbstractPlugin
{
    /**
     * Setup the plugin
     *
     * @param Container $app
     */
    public function __construct(Container $app)
    {
        parent::__construct($app);
        $this->configurationFolder = __DIR__.'/../config';
    }

    /**
     * Bind additional classes to the Container
     *
     * @param Container $app
     *
     * @return void
     */
    public function register(Container $app)
    {
        $app->bind('newrelic-config', function ($app) {
            return new RocketeerNewrelicConfig($app['config']->get('rocketeer-newrelic::config'));
        });
        return $app;
    }

    /**
     * Register Tasks with Rocketeer
     *
     * @param \Rocketeer\Services\TasksHandler $queue
     *
     * @return void
     */
    public function onQueue(TasksHandler $queue)
    {
        $queue->after('deploy', function ($task) {
            $this->afterDeploy();
        });
{'fraction_non_alphanumeric': 0.12596401028277635, 'fraction_numerical': 0.0004284490145672665, 'mean_word_length': 2.4237536656891496, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4804450', 'n_tokens_mistral': 687, 'n_tokens_neox': 682, 'n_words': 138}