<commit_before><?php

namespace Oxygen\Data;

use Illuminate\Support\ServiceProvider;
use Oxygen\Data\Validation\Laravel\LaravelValidationService;
use Oxygen\Data\Validation\ValidationSubscriber;

class DataServiceProvider extends ServiceProvider {

    /**
     * Indicates if loading of the provider is deferred.
     *
     * @var bool
     */

    protected $defer = true;

    /**
     * Register the service provider.
     *
     * @return void
     */

    public function register() {
        $this->app->resolving('Doctrine\ORM\EntityManagerInterface', function($entities) {
            $entities->getEventManager()
                     ->addEventSubscriber(
                         new ValidationSubscriber(new LaravelValidationService($this->app['validator']))<commit_msg>Fixed critial issue where the `ValidationSubscriber` is not added<commit_after><?php

namespace Oxygen\Data;

use Illuminate\Support\ServiceProvider;
use Oxygen\Data\Validation\Laravel\LaravelValidationService;
use Oxygen\Data\Validation\ValidationSubscriber;

class DataServiceProvider extends ServiceProvider {

    /**
     * Indicates if loading of the provider is deferred.
     *
     * @var bool
     */

    protected $defer = true;

    /**
     * Register the service provider.
     *
     * @return void
     */

    public function register() {
        $this->app->resolving('Doctrine\ORM\EntityManager', function($entities) {
            $entities->getEventManager()
                     ->addEventSubscriber(
                         new ValidationSubscriber(new LaravelValidationService($this->app['validator']))
{'fraction_non_alphanumeric': 0.1005586592178771, 'fraction_numerical': 0.0, 'mean_word_length': 2.810874704491726, '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': '1654853', 'n_tokens_mistral': 419, 'n_tokens_neox': 410, 'n_words': 91}