<commit_before><?php

namespace PhpPdg\SystemDependence;

use PhpPdg\Graph\GraphInterface;
use PhpPdg\ProgramDependence\Func;

class System {
	/** @var Func[] */
	public $scripts = [];
	/** @var Func[] */
	public $functions = [];
	/** @var Func[] */
	public $methods = [];
	/** @var Func[] */
	public $closures = [];
	/** @var GraphInterface  */
	public $sdg;

	public function __construct(GraphInterface $sdg) {
		$this->sdg = $sdg;
	}
}<commit_msg>added getFuncs helper method to retrieve all Func's in a System<commit_after><?php

namespace PhpPdg\SystemDependence;

use PhpPdg\Graph\GraphInterface;
use PhpPdg\ProgramDependence\Func;

class System {
	/** @var Func[] */
	public $scripts = [];
	/** @var Func[] */
	public $functions = [];
	/** @var Func[] */
	public $methods = [];
	/** @var Func[] */
	public $closures = [];
	/** @var GraphInterface  */
	public $sdg;

	public function __construct(GraphInterface $sdg) {
		$this->sdg = $sdg;
	}

	public function getFuncs() {
		return array_merge($this->scripts, $this->functions, $this->methods, $this->closures);
	}
}
{'fraction_non_alphanumeric': 0.18173345759552656, 'fraction_numerical': 0.0, 'mean_word_length': 4.018691588785047, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6525558', 'n_tokens_mistral': 395, 'n_tokens_neox': 382, 'n_words': 88}