<commit_before><?php

namespace AccessManager\Radius\Helpers;

use PDO;
use Illuminate\Database\Capsule\Manager as Capsule;
use Illuminate\Events\Dispatcher;
use Illuminate\Container\Container;

class Database extends Capsule{

	public static $connected = NULL;

	public static function connect()
	{
		if( static::$instance === NULL ) {
			$db = require_once __DIR__."/../../../../../app/config/database.php";
			$configdb = $db['connections']['mysql'];
			$instance = new self;
			$instance->addConnection($configdb);
			$instance->setFetchMode(PDO::FETCH_CLASS);
			$instance->setEventDispatcher(new Dispatcher( new Container ) );
			$instance->setAsGlobal();
			$instance->bootEloquent();
		}
		
	}

}

//end of file Database.php<commit_msg>minor fix<commit_after><?php

namespace AccessManager\Radius\Helpers;

use PDO;
use Illuminate\Database\Capsule\Manager as Capsule;
use Illuminate\Events\Dispatcher;
use Illuminate\Container\Container;

class Database extends Capsule{

	public static function connect()
	{
		if( static::$instance === NULL ) {
			$db = require_once __DIR__."/../../../../../app/config/database.php";
			$configdb = $db['connections']['mysql'];
			$instance = new self;
			$instance->addConnection($configdb);
			$instance->setFetchMode(PDO::FETCH_CLASS);
			$instance->setEventDispatcher(new Dispatcher( new Container ) );
			$instance->setAsGlobal();
		}
		
	}

}

//end of file Database.php
{'fraction_non_alphanumeric': 0.15715292459478505, 'fraction_numerical': 0.0, 'mean_word_length': 4.298507462686567, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '7024845', 'n_tokens_mistral': 484, 'n_tokens_neox': 449, 'n_words': 91}