<commit_before><?php
namespace TYPO3\Flow\Error;

/*                                                                        *
 * This script belongs to the TYPO3 Flow framework.                       *
 *                                                                        *
 * It is free software; you can redistribute it and/or modify it under    *
 * the terms of the GNU Lesser General Public License, either version 3   *
 * of the License, or (at your option) any later version.                 *
 *                                                                        *
 * The TYPO3 project - inspiring people to share!                         *
 *                                                                        */

use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Reflection\ObjectAccess;

/**
 * A debugging utility class
 *
 * @Flow\Proxy(false)
 */
class Debugger {

	/**
	 * @var \TYPO3\Flow\Object\ObjectManagerInterface
	 */
	static protected $objectManager;

	/**
	 *
	 * @var array
	 */
	static protected $renderedObjects = array();

	/**
	 * Hardcoded list of Flow class names (regex) which should not be displayed during debugging
	 * @var array
	 */
	static protected $blacklistedClassNames = '/
		(TYPO3\\\\Flow\\\\Aop.*)
		(TYPO3\\\\Flow\\\\Cac.*) |
		(TYPO3\\\\Flow\\\\Core\\\\.*) |
		(TYPO3\\\\Flow\\\\Con.*) |
		(TYPO3\\\\Flow\\\\Http\\\\RequestHandler) |
		(TYPO3\\\\Flow\\\\Uti.*) |
		(TYPO3\\\\Flow\\\\Mvc\\\\Routing.*) |
		(TYPO3\\\\Flow\\\\Log.*) |
		(TYPO3\\\\Flow\\\\Obj.*) |
		(TYPO3\\\\Flow\\\\Pac.*) |
		(TYPO3\\\\Flow\\\\Persistence\\\\(?!Doctrine\\\\Mapping).*) |
		(TYPO3\\\\Flow\\\\Pro.*) |
		(TYPO3\\\\Flow\\\\Ref.*) |
		(TYPO3\\\\Flow\\\\Sec.*) |
		(TYPO3\\\\Flow\\\\Sig.*) |
		(TYPO3\\\\Fluid\\\\.*) |
		(PHPUnit_Framework_MockObject_InvocationMocker)
		/xs';

	static protected $blacklistedPropertyNames = '/
		(Flow_Aop_.*)
		/xs';

	/**
	 * Is set to TRUE once the CSS file is included in the current page to prevent double inclusions of the CSS file.
	 * @var boolean
	 */
	static public $stylesheetEchoed = FALSE;

	/**
	 * Injects the Object Manager
	 *
	 * @param \TYPO3\Flow\Object\ObjectManagerInterface $objectManager
	 * @return void
	 */
	static public function injectObjectManager(\TYPO3\Flow\Object\ObjectManagerInterface $objectManager) {
		self::$objectManager = $objectManager;
	}

	/**
	 * Clear the state of the debugger<commit_msg>[TASK] In Debugger, blacklist Repository and Service objects<commit_after><?php
namespace TYPO3\Flow\Error;

/*                                                                        *
 * This script belongs to the TYPO3 Flow framework.                       *
 *                                                                        *
 * It is free software; you can redistribute it and/or modify it under    *
 * the terms of the GNU Lesser General Public License, either version 3   *
 * of the License, or (at your option) any later version.                 *
 *                                                                        *
 * The TYPO3 project - inspiring people to share!                         *
 *                                                                        */

use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Reflection\ObjectAccess;

/**
 * A debugging utility class
 *
 * @Flow\Proxy(false)
 */
class Debugger {

	/**
	 * @var \TYPO3\Flow\Object\ObjectManagerInterface
	 */
	static protected $objectManager;

	/**
	 *
	 * @var array
	 */
	static protected $renderedObjects = array();

	/**
	 * Hardcoded list of Flow class names (regex) which should not be displayed during debugging
	 * @var array
	 */
	static protected $blacklistedClassNames = '/
		(TYPO3\\\\Flow\\\\Aop.*)
		(TYPO3\\\\Flow\\\\Cac.*) |
		(TYPO3\\\\Flow\\\\Core\\\\.*) |
		(TYPO3\\\\Flow\\\\Con.*) |
		(TYPO3\\\\Flow\\\\Http\\\\RequestHandler) |
		(TYPO3\\\\Flow\\\\Uti.*) |
		(TYPO3\\\\Flow\\\\Mvc\\\\Routing.*) |
		(TYPO3\\\\Flow\\\\Log.*) |
		(TYPO3\\\\Flow\\\\Obj.*) |
		(TYPO3\\\\Flow\\\\Pac.*) |
		(TYPO3\\\\Flow\\\\Persistence\\\\(?!Doctrine\\\\Mapping).*) |
		(TYPO3\\\\Flow\\\\Pro.*) |
		(TYPO3\\\\Flow\\\\Ref.*) |
		(TYPO3\\\\Flow\\\\Sec.*) |
		(TYPO3\\\\Flow\\\\Sig.*) |
		(TYPO3\\\\Fluid\\\\.*) |
		(.+Service$) |
		(.+Repository$) |
		(PHPUnit_Framework_MockObject_InvocationMocker)
		/xs';

	static protected $blacklistedPropertyNames = '/
		(Flow_Aop_.*)
		/xs';

	/**
	 * Is set to TRUE once the CSS file is included in the current page to prevent double inclusions of the CSS file.
	 * @var boolean
	 */
	static public $stylesheetEchoed = FALSE;

	/**
	 * Injects the Object Manager
	 *
	 * @param \TYPO3\Flow\Object\ObjectManagerInterface $objectManager
	 * @return void
	 */
	static public function injectObjectManager(\TYPO3\Flow\Object\ObjectManagerInterface $objectManager) {
		self::$objectManager = $objectManager;
	}

	/**
	 * Clear the state of the debugger
{'fraction_non_alphanumeric': 0.16231114740710495, 'fraction_numerical': 0.010208248264597795, 'mean_word_length': 1.6683006535947713, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4256638', 'n_tokens_mistral': 1561, 'n_tokens_neox': 1379, 'n_words': 344}