<commit_before><?php 

/**
 * This engine is responsible to create a table grouped by entry ID from multiple sub engines 
 */
class LiveReportEntryBasedChunkerEngine extends LiveReportEngine {
	
	const ENTRY_CHUNK_SIZE = 100;

	/** Array of LiveReportEntryQueryEngine working as subengines */
	protected $subEngines;

	public function LiveReportEntryBasedChunkerEngine(array $subEngines) {
		$this->subEngines = $subEngines;
	}

	public function run($fp, array $args = array()) {
		$this->checkParams($args, array( LiveReportConstants::ENTRY_IDS, LiveReportConstants::TIME_REFERENCE_PARAM));
		$entryIdStr = $args[LiveReportConstants::ENTRY_IDS];
		$entryIds = explode(",", $entryIdStr);
		$entryChunks = array_chunk($entryIds, self::ENTRY_CHUNK_SIZE);

		$headers = $this->printHeaders($fp, "ENTRY ID");
		$values = array();
		// Execute all engines
		foreach ( $entryChunks as $entryChunk ) {<commit_msg>#PLAT-2279 #time 2m<commit_after><?php 

/**
 * This engine is responsible to create a table grouped by entry ID from multiple sub engines 
 */
class LiveReportEntryBasedChunkerEngine extends LiveReportEngine {
	
	const ENTRY_CHUNK_SIZE = 100;

	/** Array of LiveReportEntryQueryEngine working as subengines */
	protected $subEngines;

	public function LiveReportEntryBasedChunkerEngine(array $subEngines) {
		$this->subEngines = $subEngines;
	}

	public function run($fp, array $args = array()) {
		$this->checkParams($args, array( LiveReportConstants::ENTRY_IDS, LiveReportConstants::TIME_REFERENCE_PARAM));
		$entryIdStr = $args[LiveReportConstants::ENTRY_IDS];
		$entryIds = explode(",", $entryIdStr);
		$entryChunks = array_chunk($entryIds, self::ENTRY_CHUNK_SIZE);

		$headers = $this->printHeaders($fp, "Entry Id");
		$values = array();
		// Execute all engines
		foreach ( $entryChunks as $entryChunk ) {
{'fraction_non_alphanumeric': 0.11936193619361936, 'fraction_numerical': 0.00605060506050605, 'mean_word_length': 5.737037037037037, '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': '7252317', 'n_tokens_mistral': 587, 'n_tokens_neox': 549, 'n_words': 140}