<commit_before><?php
namespace Deepdivedylan\DylanAndTonyFiesta;

/**
 * JsonObjectStorage Class
 *
 * This class adds JsonSerializable to SplObjectStorage, allowing for the stored data to be json serialized. This lets the data be gotten in the interactions between frontend and backend in the RESTful apis.
 *
 * @author <NAME> <<EMAIL>>
 **/
class JsonObjectStorage extends \SplObjectStorage implements \JsonSerializable {
	public function jsonSerialize() {
		$fields = [];
		foreach($this as $object) {
			$fields[] = $object;
			$object->info = $this[$object];
		}
		return ($fields);
	}
}<commit_msg>doc blocked jsonSerialize() method<commit_after><?php
namespace Deepdivedylan\DylanAndTonyFiesta;

/**
 * JsonObjectStorage Class
 *
 * This class adds JsonSerializable to SplObjectStorage, allowing for the stored data to be json serialized. This lets the data be gotten in the interactions between frontend and backend in the RESTful apis.
 *
 * @author <NAME> <<EMAIL>>
 **/
class JsonObjectStorage extends \SplObjectStorage implements \JsonSerializable {

	/**
	 * organizes the SplObjectStorage into associative JSON
	 *
	 * @return array organized fields to JSONify
	 **/
	public function jsonSerialize() : array {
		$fields = [];
		foreach($this as $object) {
			$fields[] = $object;
			$object->info = $this[$object];
		}
		return ($fields);
	}
}
{'fraction_non_alphanumeric': 0.10677466863033873, 'fraction_numerical': 0.0, 'mean_word_length': 4.502024291497976, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3497677', 'n_tokens_mistral': 406, 'n_tokens_neox': 380, 'n_words': 134}