<commit_before><?php

namespace Skeleton\Integrations;

use Rougin\Slytherin\Integration\Configuration;
use Rougin\Slytherin\Container\ContainerInterface;

/**
 * Eloquent Integration
 *
 * An integration for Laravel's Eloquent package.
 *
 * @package Skeleton
 * @author  <NAME> <<EMAIL>>
 */
class EloquentIntegration implements \Rougin\Slytherin\Integration\IntegrationInterface
{
    /**
     * Defines the specified integration.
     *
     * @param  \Rougin\Slytherin\Container\ContainerInterface $container
     * @param  \Rougin\Slytherin\Integration\Configuration    $config
     * @return \Rougin\Slytherin\Container\ContainerInterface
     */
    public function define(ContainerInterface $container, Configuration $config)
    {
        if (class_exists('Illuminate\Database\Capsule\Manager')) {
            $capsule = new \Illuminate\Database\Capsule\Manager;

            $database = $config->get('database.' . $config->get('database.default'));

            $database['charset']   = 'utf8';
            $database['collation'] = 'utf8_unicode_ci';
            $database['prefix']    = '';

            $capsule->addConnection($database);

            $capsule->setAsGlobal();
            $capsule->bootEloquent();
        }

        return $container;
    }
}<commit_msg>Update EloquentIntegration<commit_after><?php

namespace Skeleton\Integrations;

use Rougin\Slytherin\Integration\Configuration;
use Rougin\Slytherin\Container\ContainerInterface;

/**
 * Eloquent Integration
 *
 * An integration for Laravel's Eloquent package.
 *
 * @package Skeleton
 * @author  <NAME> <<EMAIL>>
 */
class EloquentIntegration implements \Rougin\Slytherin\Integration\IntegrationInterface
{
    /**
     * Defines the specified integration.
     *
     * @param  \Rougin\Slytherin\Container\ContainerInterface $container
     * @param  \Rougin\Slytherin\Integration\Configuration    $config
     * @return \Rougin\Slytherin\Container\ContainerInterface
     */
    public function define(ContainerInterface $container, Configuration $config)
    {
        if (class_exists('Illuminate\Database\Capsule\Manager')) {
            $capsule = new \Illuminate\Database\Capsule\Manager;

            $database = $config->get('database');

            $database['charset']   = 'utf8';
            $database['collation'] = 'utf8_unicode_ci';
            $database['prefix']    = '';

            $capsule->addConnection($database);

            $capsule->setAsGlobal();
            $capsule->bootEloquent();
        }

        return $container;
    }
}
{'fraction_non_alphanumeric': 0.12406753042795446, 'fraction_numerical': 0.0015704750687082843, 'mean_word_length': 2.9688473520249223, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 18, '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': '3617581', 'n_tokens_mistral': 759, 'n_tokens_neox': 742, 'n_words': 120}