<commit_before><div class="users index">
	<h2>Members</h2>
 	<table cellpadding="0" cellspacing="0" style="width:300px;">
	<tr>
			<th>Organisation</th>
			<th># of members</th>
 	</tr>
	<?php
foreach ($orgs as $org):?>
	<tr>
		<td><?php echo $org['User']['org']; ?>&nbsp;</td>
		<td><?php echo $org[0]['num_members']; ?>&nbsp;</td>

	</tr>
	<?php
endforeach; ?>
	</table>

	<h2>Attribute Types Histogram</h2>
	<div id="graph"></div>
	<script type="text/javascript" src="/js/ext-4.0.7-gpl/bootstrap.js"></script>
	<script>
	Ext.require('Ext.chart.*');
	Ext.require('Ext.layout.container.Fit');

	Ext.onReady(function () {
		var store = Ext.create('Ext.data.JsonStore', {
			fields: [<?php echo $graphFields;?>],
			data: [<?php
foreach ($graphData as $row) {
	echo '{' . $row . '},';
}
?>]
		});
		var panel1 = Ext.create('widget.panel', {
			width: 800,
			height: 900,
			//title: 'Attributes by Organisation',
			renderTo: 'graph',
			layout: 'fit',
			items: {
				xtype: 'chart',
				animate: true,
				shadow: false,
				store: store,
				legend: {
					position: 'right'
				},
				axes: [{
					type: 'Numeric',
					position: 'bottom',
					fields: [<?php echo $graphFields;?>],
					title: false,
					grid: true,
					label: {
						renderer: function(v) {
							return v;
						}
					},
					roundToDecimal: false
				}, {
					type: 'Category',
					position: 'left',
					fields: ['org'],
					title: false
				}],
				series: [{
					type: 'bar',
					axis: 'bottom',
					gutter: 80,
					xField: 'org',
					yField: [<?php echo $graphFields;?>],
					stacked: true,
					tips: {
						trackMouse: true,
						width: 65,
						height: 28,
						renderer: function(storeItem, item) {
							this.setTitle(item.value[1]);
						}
					}
				}]
			}
		});
	});
	</script>

	<!-- table cellpadding="0" cellspacing="0" style="width:400px;">
	<tr>
		<th>Org</th>
		<th>Type</th>
		<th>Amount</th>
	</tr>
	<?php
foreach ($typesHistogram as $item):?>
		<tr>
			<td><?php echo $item['Event']['org']; ?>&nbsp;</td>
			<td><?php echo $item['Attribute']['type']; ?>&nbsp;</td>
			<td><?php echo $item['0']['num_types']; ?>&nbsp;</td>

		</tr>
		<?php
endforeach; ?>
	</table -->

</div>

<div class="actions">
	<ul>
		<?php echo $this->element('actions_menu'); ?>
	</ul>
</div>

<div class="users index">

</div>
<commit_msg>Show the org logo in the memberslist<commit_after><div class="users index">
	<h2>Members</h2>
 	<table cellpadding="0" cellspacing="0" style="width:300px;">
	<tr>
			<th>Organisation</th>
			<th># of members</th>
			<th>Logo</th>
 	</tr>
	<?php
foreach ($orgs as $org):?>
	<tr>
		<td><?php echo $org['User']['org']; ?>&nbsp;</td>
		<td><?php echo $org[0]['num_members']; ?>&nbsp;</td>
		<?php
			$imgRelativePath = 'orgs' . DS . h($org['User']['org']) . '.png';
			$imgAbsolutePath = APP . WEBROOT_DIR . DS . 'img' . DS . $imgRelativePath;
		?>
		<td><?php if (file_exists($imgAbsolutePath)) echo $this->Html->image('orgs/' . h($org['User']['org']) . '.png', array('alt' => h($org['User']['org']),'width' => '48','hight' => '48'));?>&nbsp</td>
	</tr>
	<?php
endforeach; ?>
	</table>

	<h2>Attribute Types Histogram</h2>
	<div id="graph"></div>
	<script type="text/javascript" src="/js/ext-4.0.7-gpl/bootstrap.js"></script>
	<script>
	Ext.require('Ext.chart.*');
	Ext.require('Ext.layout.container.Fit');

	Ext.onReady(function () {
		var store = Ext.create('Ext.data.JsonStore', {
			fields: [<?php echo $graphFields;?>],
			data: [<?php
foreach ($graphData as $row) {
	echo '{' . $row . '},';
}
?>]
		});
		var panel1 = Ext.create('widget.panel', {
			width: 800,
			height: 900,
			//title: 'Attributes by Organisation',
			renderTo: 'graph',
			layout: 'fit',
			items: {
				xtype: 'chart',
				animate: true,
				shadow: false,
				store: store,
				legend: {
					position: 'right'
				},
				axes: [{
					type: 'Numeric',
					position: 'bottom',
					fields: [<?php echo $graphFields;?>],
					title: false,
					grid: true,
					label: {
						renderer: function(v) {
							return v;
						}
					},
					roundToDecimal: false
				}, {
					type: 'Category',
					position: 'left',
					fields: ['org'],
					title: false
				}],
				series: [{
					type: 'bar',
					axis: 'bottom',
					gutter: 80,
					xField: 'org',
					yField: [<?php echo $graphFields;?>],
					stacked: true,
					tips: {
						trackMouse: true,
						width: 65,
						height: 28,
						renderer: function(storeItem, item) {
							this.setTitle(item.value[1]);
						}
					}
				}]
			}
		});
	});
	</script>

	<!-- table cellpadding="0" cellspacing="0" style="width:400px;">
	<tr>
		<th>Org</th>
		<th>Type</th>
		<th>Amount</th>
	</tr>
	<?php
foreach ($typesHistogram as $item):?>
		<tr>
			<td><?php echo $item['Event']['org']; ?>&nbsp;</td>
			<td><?php echo $item['Attribute']['type']; ?>&nbsp;</td>
			<td><?php echo $item['0']['num_types']; ?>&nbsp;</td>

		</tr>
		<?php
endforeach; ?>
	</table -->

</div>

<div class="actions">
	<ul>
		<?php echo $this->element('actions_menu'); ?>
	</ul>
</div>

<div class="users index">

</div>

{'fraction_non_alphanumeric': 0.233201581027668, 'fraction_numerical': 0.01383399209486166, 'mean_word_length': 3.007125890736342, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 144, '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': '6620734', 'n_tokens_mistral': 2390, 'n_tokens_neox': 1918, 'n_words': 401}