<commit_before><?php
namespace Rolice\LaravelDbSwitch;

use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\MySqlConnection;

/**
 * Class DbSwitcher
 */
class DbSwitchService
{
    /**
     * Function which changes directly the default connection DB transparently for the database and models instances.
     * @param string $database The database to switch to.<commit_msg>Update DbSwitchService.php<commit_after><?php
namespace Rolice\LaravelDbSwitch;

use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;
use Illuminate\Database\MySqlConnection;

/**
 * The service class itself registered by the service provider inside Laravel/Lumen application.
 * @name DbSwitchService
 * @package LaravelDbSwitch
 * @author <NAME> <<EMAIL>>
 * @version 1.0
 */
class DbSwitchService
{
    /**
     * Function which changes directly the default connection DB transparently for the database and models instances.
     * @param string $database The database to switch to.
{'fraction_non_alphanumeric': 0.08390243902439025, 'fraction_numerical': 0.001951219512195122, 'mean_word_length': 4.668508287292818, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 6, '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': '6577388', 'n_tokens_mistral': 273, 'n_tokens_neox': 279, 'n_words': 91}