<commit_before><div class="box admin">
	<h2>System</h2>
	<ul class="navigation admin">
		<?php foreach (array(
			'Settings' => '/admin/settings',
		) as $title => $uri) {?>
			<li<?php if (Yii::app()->getController()->action->id == preg_replace('/^\/admin\//','',$uri)) {?> class="selected"<?php }?>>
				<?php if (Yii::app()->getController()->action->id == preg_replace('/^\/admin\//','',$uri)) {?>
					<?php echo CHtml::link($title,array($uri),array('class' => 'selected'))?>
				<?php } else {?>
					<?php echo CHtml::link($title,array($uri))?>
				<?php }?>
			</li>
		<?php }?>
	</ul>
</div>
<div class="box admin">
	<h2>Core</h2>
	<ul class="navigation admin">
		<?php foreach (array(
			'Users' => '/admin/users',
			'Firms' => '/admin/firms',
			'Contacts' => '/admin/contacts',
			'Contact labels' => '/admin/contactlabels',
			'Data sources' => '/admin/datasources',
			'Institutions' => '/admin/institutions',
			'Sites' => '/admin/sites',
			'Commissioning bodies' => '/admin/commissioning_bodies',
			'Commissioning body types' => '/admin/commissioning_body_types',
			'Commissioning body services' => '/admin/commissioning_body_services',
			'Commissioning body service types' => '/admin/commissioning_body_service_types',
			'Event deletion requests' => '/admin/eventDeletionRequests',
			'Custom episode summaries' => '/admin/episodeSummaries',
			'Medication Stop Reason'=>'/admin/editmedicationstopreason',
			'Previous Ophthalmic Surgery'=>'/admin/editpreviousoperation',
			'Social History'=>'/admin/socialhistory',
			'Common Ophthalmic Disorder Groups' => '/admin/editcommonophthalmicdisordergroups',
			'Common Ophthalmic Disorders' => '/admin/editcommonophthalmicdisorder',
		 	'Secondary Common Ophthalmic Disorders' => '/admin/editsecondarytocommonophthalmicdisorder',
			'Findings' => '/admin/managefindings',
			'Anaesthetic Agent' => '/admin/viewAnaestheticAgent'
		) as $title => $uri) {?>
			<li<?php if (Yii::app()->getController()->action->id == preg_replace('/^\/admin\//','',$uri)) {?> class="selected"<?php }?>>
				<?php if (Yii::app()->getController()->action->id == preg_replace('/^\/admin\//','',$uri)) {?>
					<?php echo CHtml::link($title,array($uri),array('class' => 'selected'))?>
				<?php } else {?>
					<?php echo CHtml::link($title,array($uri))?>
				<?php }?>
			</li>
		<?php }?>
	</ul>
</div>
<div class="box admin">
	<h2>Procedure Management</h2>
	<ul class="navigation admin">
		<?php foreach (array(
						'Procedures' => '/oeadmin/procedure/list',
						'Benefits' => '/oeadmin/benefit/list',
					   ) as $title => $uri) {?>
			<li<?php if (Yii::app()->getController()->action->id == preg_replace('/^\/admin\//','',$uri)) {?> class="selected"<?php }?>>
				<?php if (Yii::app()->getController()->action->id == preg_replace('/^\/admin\//','',$uri)) {?>
					<?php echo CHtml::link($title,array($uri),array('class' => 'selected'))?>
				<?php } else {?>
					<?php echo CHtml::link($title,array($uri))?>
				<?php }?>
			</li>
		<?php }?>
</div>
<?php foreach (ModuleAdmin::getAll() as $module => $items) {?>
	<div class="admin box">
		<h2><?php echo $module?></h2>
		<ul class="navigation admin">
			<?php foreach ($items as $item => $uri) {
				$e = explode('/',$uri);
				$action = array_pop($e)?>
				<li<?php if (Yii::app()->getController()->action->id == $action) {?> class="selected"<?php }?>>
					<?php if (Yii::app()->getController()->action->id == $action) {?>
						<?php echo CHtml::link($item,array($uri), array('class' => 'selected'))?>
					<?php } else {?><commit_msg>Menu for admin page<commit_after><div class="box admin">
	<h2>System</h2>
	<ul class="navigation admin">
		<?php foreach (array(
			'Settings' => '/admin/settings',
		) as $title => $uri) {?>
			<li<?php if (Yii::app()->getController()->action->id == preg_replace('/^\/admin\//','',$uri)) {?> class="selected"<?php }?>>
				<?php if (Yii::app()->getController()->action->id == preg_replace('/^\/admin\//','',$uri)) {?>
					<?php echo CHtml::link($title,array($uri),array('class' => 'selected'))?>
				<?php } else {?>
					<?php echo CHtml::link($title,array($uri))?>
				<?php }?>
			</li>
		<?php }?>
	</ul>
</div>
<div class="box admin">
	<h2>Core</h2>
	<ul class="navigation admin">
		<?php foreach (array(
			'Users' => '/admin/users',
			'Firms' => '/admin/firms',
			'Contacts' => '/admin/contacts',
			'Contact labels' => '/admin/contactlabels',
			'Data sources' => '/admin/datasources',
			'Institutions' => '/admin/institutions',
			'Sites' => '/admin/sites',
			'Commissioning bodies' => '/admin/commissioning_bodies',
			'Commissioning body types' => '/admin/commissioning_body_types',
			'Commissioning body services' => '/admin/commissioning_body_services',
			'Commissioning body service types' => '/admin/commissioning_body_service_types',
			'Event deletion requests' => '/admin/eventDeletionRequests',
			'Custom episode summaries' => '/admin/episodeSummaries',
			'Medication Stop Reason'=>'/admin/editmedicationstopreason',
			'Previous Ophthalmic Surgery'=>'/admin/editpreviousoperation',
			'Social History'=>'/admin/socialhistory',
			'Common Ophthalmic Disorder Groups' => '/admin/editcommonophthalmicdisordergroups',
			'Common Ophthalmic Disorders' => '/admin/editcommonophthalmicdisorder',
		 	'Secondary Common Ophthalmic Disorders' => '/admin/editsecondarytocommonophthalmicdisorder',
			'Findings' => '/admin/managefindings',
			'Anaesthetic Agent' => '/admin/viewAnaestheticAgent'
		) as $title => $uri) {?>
			<li<?php if (Yii::app()->getController()->action->id == preg_replace('/^\/admin\//','',$uri)) {?> class="selected"<?php }?>>
				<?php if (Yii::app()->getController()->action->id == preg_replace('/^\/admin\//','',$uri)) {?>
					<?php echo CHtml::link($title,array($uri),array('class' => 'selected'))?>
				<?php } else {?>
					<?php echo CHtml::link($title,array($uri))?>
				<?php }?>
			</li>
		<?php }?>
	</ul>
</div>
<div class="box admin">
	<h2>Procedure Management</h2>
	<ul class="navigation admin">
		<?php foreach (array(
						'Procedures' => '/oeadmin/procedure/list',
						'Benefits' => '/oeadmin/benefit/list',
					   ) as $title => $uri) {?>
			<li<?php if (Yii::app()->getController()->action->id == preg_replace('/^\/admin\//','',$uri)) {?> class="selected"<?php }?>>
				<?php if (Yii::app()->getController()->action->id == preg_replace('/^\/admin\//','',$uri)) {?>
					<?php echo CHtml::link($title,array($uri),array('class' => 'selected'))?>
				<?php } else {?>
					<?php echo CHtml::link($title,array($uri))?>
				<?php }?>
			</li>
		<?php }?>
</div>
<div class="box admin">
	<h2>Drugs</h2>
	<ul class="navigation admin">
		<?php foreach (array(
						   'Medication List' => '/oeadmin/medication/list'
					   ) as $title => $uri) { ?>
			<li<?php if (Yii::app()->getController()->action->id == preg_replace('/^\/admin\//', '', $uri)
			) { ?> class="selected"<?php } ?>>
				<?php if (Yii::app()->getController()->action->id == preg_replace('/^\/admin\//', '', $uri)) { ?>
					<?php echo CHtml::link($title, array($uri), array('class' => 'selected')) ?>
				<?php } else { ?>
					<?php echo CHtml::link($title, array($uri)) ?>
				<?php } ?>
			</li>
		<?php } ?>
</div>

<?php foreach (ModuleAdmin::getAll() as $module => $items) {?>
	<div class="admin box">
		<h2><?php echo $module?></h2>
		<ul class="navigation admin">
			<?php foreach ($items as $item => $uri) {
				$e = explode('/',$uri);
				$action = array_pop($e)?>
				<li<?php if (Yii::app()->getController()->action->id == $action) {?> class="selected"<?php }?>>
					<?php if (Yii::app()->getController()->action->id == $action) {?>
						<?php echo CHtml::link($item,array($uri), array('class' => 'selected'))?>
					<?php } else {?>
{'fraction_non_alphanumeric': 0.2502914885347843, 'fraction_numerical': 0.002331908278274388, 'mean_word_length': 4.324137931034483, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 268, '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': '648829', 'n_tokens_mistral': 3014, 'n_tokens_neox': 2620, 'n_words': 490}