<commit_before><?php foreach( $items as $key=>$item ): ?>

	<?php if( isset($item['actions'])===true && $item['actions']!==array() ): ?>

		<?php $controllerKey = isset($moduleName)===true ? $moduleName.'.'.$key : $key; ?>
		<?php $controllerExists = isset($existingItems[ strtolower($controllerKey.'.All') ]); ?>

		<tr class="controllerRow <?php echo $controllerExists===true ? 'exists' : ''; ?>">
			<td class="checkboxColumn"><?php echo $controllerExists===false ? $form->checkBox($model, 'items['.strtolower($controllerKey).'.All]') : ''; ?></td>
			<td class="nameColumn"><?php echo ucfirst($key).'Controller'; ?></td>
			<td class="pathColumn"><?php echo substr($item['path'], $basePathLength+1); ?></td>
		</tr>

		<?php $i=0; foreach( $item['actions'] as $action ): ?>

			<?php $actionKey = $controllerKey.'.'.$action['name']; ?>
			<?php $actionExists = isset($existingItems[ strtolower($actionKey) ]); ?>

			<tr class="actionRow <?php echo $actionExists===true ? 'exists' : ''; ?> <?php echo ($i++ % 2)===0 ? 'odd' : 'even'; ?>">
				<td class="checkboxColumn"><?php echo $actionExists===false ? $form->checkBox($model, 'items['.strtolower($actionKey).']') : ''; ?></td>
				<td class="nameColumn"><?php echo $action['name']; ?></td>
				<td class="pathColumn"><?php echo substr($item['path'], $basePathLength+1).'('.$action['line'].')'; ?></td>
			</tr>

		<?php endforeach; ?>

	<?php endif; ?>

	<?php if( $key==='modules' ): ?>

		<?php foreach( $item as $moduleName=>$c ): ?>

			<tr><th class="modulesRow" colspan="3"><?php echo Yii::t('RightsModule.setup', 'Modules'); ?></th></tr>
			<tr><th class="moduleRow" colspan="3"><?php echo ucfirst($moduleName).'Module'; ?></th></tr>

			<?php $this->renderPartial('_items', array(
				'model'=>$model,
				'form'=>$form,
				'items'=>$c,
				'existingItems'=>$existingItems,
				'moduleName'=>$moduleName,
				'basePathLength'=>$basePathLength,
			)); ?>

		<?php endforeach; ?>

	<?php endif; ?>

<?php endforeach; ?><commit_msg>Another minor fix to the previous commit.<commit_after><?php foreach( $items as $key=>$item ): ?>

	<?php if( isset($item['actions'])===true && $item['actions']!==array() ): ?>

		<?php $controllerKey = isset($moduleName)===true ? $moduleName.'.'.$key : $key; ?>
		<?php $controllerExists = isset($existingItems[ strtolower($controllerKey.'.all') ]); ?>

		<tr class="controllerRow <?php echo $controllerExists===true ? 'exists' : ''; ?>">
			<td class="checkboxColumn"><?php echo $controllerExists===false ? $form->checkBox($model, 'items['.strtolower($controllerKey).'.all]') : ''; ?></td>
			<td class="nameColumn"><?php echo ucfirst($key).'Controller'; ?></td>
			<td class="pathColumn"><?php echo substr($item['path'], $basePathLength+1); ?></td>
		</tr>

		<?php $i=0; foreach( $item['actions'] as $action ): ?>

			<?php $actionKey = $controllerKey.'.'.$action['name']; ?>
			<?php $actionExists = isset($existingItems[ strtolower($actionKey) ]); ?>

			<tr class="actionRow <?php echo $actionExists===true ? 'exists' : ''; ?> <?php echo ($i++ % 2)===0 ? 'odd' : 'even'; ?>">
				<td class="checkboxColumn"><?php echo $actionExists===false ? $form->checkBox($model, 'items['.strtolower($actionKey).']') : ''; ?></td>
				<td class="nameColumn"><?php echo $action['name']; ?></td>
				<td class="pathColumn"><?php echo substr($item['path'], $basePathLength+1).'('.$action['line'].')'; ?></td>
			</tr>

		<?php endforeach; ?>

	<?php endif; ?>

	<?php if( $key==='modules' ): ?>

		<?php foreach( $item as $moduleName=>$c ): ?>

			<tr><th class="modulesRow" colspan="3"><?php echo Yii::t('RightsModule.setup', 'Modules'); ?></th></tr>
			<tr><th class="moduleRow" colspan="3"><?php echo ucfirst($moduleName).'Module'; ?></th></tr>

			<?php $this->renderPartial('_items', array(
				'model'=>$model,
				'form'=>$form,
				'items'=>$c,
				'existingItems'=>$existingItems,
				'moduleName'=>$moduleName,
				'basePathLength'=>$basePathLength,
			)); ?>

		<?php endforeach; ?>

	<?php endif; ?>

<?php endforeach; ?>
{'fraction_non_alphanumeric': 0.26704828272772524, 'fraction_numerical': 0.003484320557491289, 'mean_word_length': 5.359177215189874, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 125, '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': '4296547', 'n_tokens_mistral': 1454, 'n_tokens_neox': 1342, 'n_words': 260}