<commit_before><?php
	require_once 'Utils.php';

	class WhatsBotCaller
	{
		private $ModuleManager = null;
		private $Whatsapp = null;
		private $Utils = null;

		public function __construct(&$MDLM, WhatsappBridge &$WPB)
		{
			if($MDLM != null && !($MDLM instanceof ModuleManager)) // Podríamos testear en cada método si $this->ModuleManager está o no instanciado correctamente
				trigger_error('You must pass a ModuleManager to WhatsBotCaller', E_USER_ERROR);
				
			$this->ModuleManager = &$MDLM;
			$this->Whatsapp = &$WPB;
			$this->Utils = new Utils();
		}

		public function CallModule($ModuleName, $Filename, $Me, $ID, $Time, $From, $Name, $Text)
		{
			$Whatsapp = &$this->Whatsapp;
			$Utils = &$this->Utils;

			return include $Filename;
		}

		public function CallDomainPlainModule($Code, $From, $Data, $URL, $ParsedURL) // cambiar orden, data al final
		{
			$Whatsapp = &$this->Whatsapp;
			$Utils = &$this->Utils;

			return eval($Code);
		}
	}<commit_msg>Agregamos referencia al manejador dentro de Call*()<commit_after><?php
	require_once 'Utils.php';

	class WhatsBotCaller
	{
		private $ModuleManager = null;
		private $Whatsapp = null;
		private $Utils = null;

		public function __construct(&$MDLM, WhatsappBridge &$WPB)
		{
			if($MDLM != null && !($MDLM instanceof ModuleManager)) // Podríamos testear en cada método si $this->ModuleManager está o no instanciado correctamente
				trigger_error('You must pass a ModuleManager to WhatsBotCaller', E_USER_ERROR);
				
			$this->ModuleManager = &$MDLM;
			$this->Whatsapp = &$WPB;
			$this->Utils = new Utils();
		}

		public function CallModule($ModuleName, $Filename, $Me, $ID, $Time, $From, $Name, $Text)
		{
			$ModuleManager = &$this->ModuleManager;
			$Whatsapp = &$this->Whatsapp;
			$Utils = &$this->Utils;

			return include $Filename;
		}

		public function CallDomainPlainModule($Code, $From, $Data, $URL, $ParsedURL) // cambiar orden, data al final
		{
			$Whatsapp = &$this->Whatsapp;
			$Utils = &$this->Utils;

			return eval($Code);
		}
	}
{'fraction_non_alphanumeric': 0.14405525407005426, 'fraction_numerical': 0.0, 'mean_word_length': 4.07, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, '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': '1969152', 'n_tokens_mistral': 793, 'n_tokens_neox': 686, 'n_words': 180}