<commit_before><div class="sharing_groups index">
<h2><?php echo __('Sharing Groups');?></h2>
<div class="pagination">
<ul>
<?php
    $this->Paginator->options(array(
            'update' => '.span12',
            'evalScripts' => true,
            'before' => '$(".progress").show()',
            'complete' => '$(".progress").hide()',
    ));

    echo $this->Paginator->prev('&laquo; ' . __('previous'), array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'prev disabled', 'escape' => false, 'disabledTag' => 'span'));
    echo $this->Paginator->numbers(array('modulus' => 20, 'separator' => '', 'tag' => 'li', 'currentClass' => 'active', 'currentTag' => 'span'));
    echo $this->Paginator->next(__('next') . ' &raquo;', array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'next disabled', 'escape' => false, 'disabledTag' => 'span'));
?>
        </ul>
    </div>
    <?php
        $data = array(
            'children' => array(
                array(
                    'children' => array(
                        array(
                            'url' => '/sharing_groups/index',
                            'text' => __('Active Sharing Groups'),
                            'active' => !$passive
                        ),
                        array(
                            'url' => '/sharing_groups/index/true',
                            'text' => __('Passive Sharing Groups'),
                            'active' => $passive
                        )
                    )
                )
            )
        );
        echo $this->element('/genericElements/ListTopBar/scaffold', array('data' => $data));
    ?>
    <table class="table table-striped table-hover table-condensed">
    <tr>
            <th><?php echo $this->Paginator->sort('id');?></th>
            <th><?php echo __('uuid');?></th>
            <th><?php echo $this->Paginator->sort('name');?></th>
            <th><?php echo $this->Paginator->sort('Creator');?></th>
            <th><?php echo __('Description');?></th>
            <th><?php echo __('Releasable to');?></th>
            <th class="actions"><?php echo __('Actions');?></th>
    </tr>
    <?php
foreach ($sharingGroups as $k => $sharingGroup):
?>
    <tr>
        <td class="short"><?php echo h($sharingGroup['SharingGroup']['id']); ?></td>
        <td class="short"><?php echo h($sharingGroup['SharingGroup']['uuid']); ?></td>
        <td class="short"><?php echo h($sharingGroup['SharingGroup']['name']); ?></td>
        <td class="short"><a href="/organisations/view/<?php echo h($sharingGroup['Organisation']['id']);?>"><?php echo h($sharingGroup['Organisation']['name']); ?></a></td>
        <td><?php echo h($sharingGroup['SharingGroup']['description']); ?></td>
        <?php
            $combined = "";
            $combined .= "Organisations:";
            if (count($sharingGroup['SharingGroupOrg']) == 0) $combined .= "<br />N/A";
            foreach ($sharingGroup['SharingGroupOrg'] as $k2 => $sge) {
                if (!empty($sge['Organisation'])) {
                    $combined .= "<br /><a href='/Organisation/view/" . h($sge['Organisation']['id']) . "'>" . h($sge['Organisation']['name']) . "</a>";
                    if ($sge['extend']) $combined .= (' (can extend)');
                }
            }
            $combined .= "<hr style='margin:5px 0;'><br />Instances:";
            if (count($sharingGroup['SharingGroupServer']) == 0) $combined .= "<br />N/A";
            foreach ($sharingGroup['SharingGroupServer'] as $k3 => $sgs) {
                if ($sgs['server_id'] != 0) {
                    $combined .= "<br /><a href='/Server/view/" . h($sgs['Server']['id']) . "'>" . h($sgs['Server']['name']) . "</a>";
                } else {<commit_msg>fix: [UI] UUID term should be uppercase<commit_after><div class="sharing_groups index">
<h2><?php echo __('Sharing Groups');?></h2>
<div class="pagination">
<ul>
<?php
    $this->Paginator->options(array(
            'update' => '.span12',
            'evalScripts' => true,
            'before' => '$(".progress").show()',
            'complete' => '$(".progress").hide()',
    ));

    echo $this->Paginator->prev('&laquo; ' . __('previous'), array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'prev disabled', 'escape' => false, 'disabledTag' => 'span'));
    echo $this->Paginator->numbers(array('modulus' => 20, 'separator' => '', 'tag' => 'li', 'currentClass' => 'active', 'currentTag' => 'span'));
    echo $this->Paginator->next(__('next') . ' &raquo;', array('tag' => 'li', 'escape' => false), null, array('tag' => 'li', 'class' => 'next disabled', 'escape' => false, 'disabledTag' => 'span'));
?>
        </ul>
    </div>
    <?php
        $data = array(
            'children' => array(
                array(
                    'children' => array(
                        array(
                            'url' => '/sharing_groups/index',
                            'text' => __('Active Sharing Groups'),
                            'active' => !$passive
                        ),
                        array(
                            'url' => '/sharing_groups/index/true',
                            'text' => __('Passive Sharing Groups'),
                            'active' => $passive
                        )
                    )
                )
            )
        );
        echo $this->element('/genericElements/ListTopBar/scaffold', array('data' => $data));
    ?>
    <table class="table table-striped table-hover table-condensed">
    <tr>
            <th><?php echo $this->Paginator->sort('id');?></th>
            <th><?php echo __('UUID');?></th>
            <th><?php echo $this->Paginator->sort('name');?></th>
            <th><?php echo $this->Paginator->sort('Creator');?></th>
            <th><?php echo __('Description');?></th>
            <th><?php echo __('Releasable to');?></th>
            <th class="actions"><?php echo __('Actions');?></th>
    </tr>
    <?php
foreach ($sharingGroups as $k => $sharingGroup):
?>
    <tr>
        <td class="short"><?php echo h($sharingGroup['SharingGroup']['id']); ?></td>
        <td class="short"><?php echo h($sharingGroup['SharingGroup']['uuid']); ?></td>
        <td class="short"><?php echo h($sharingGroup['SharingGroup']['name']); ?></td>
        <td class="short"><a href="/organisations/view/<?php echo h($sharingGroup['Organisation']['id']);?>"><?php echo h($sharingGroup['Organisation']['name']); ?></a></td>
        <td><?php echo h($sharingGroup['SharingGroup']['description']); ?></td>
        <?php
            $combined = "";
            $combined .= "Organisations:";
            if (count($sharingGroup['SharingGroupOrg']) == 0) $combined .= "<br />N/A";
            foreach ($sharingGroup['SharingGroupOrg'] as $k2 => $sge) {
                if (!empty($sge['Organisation'])) {
                    $combined .= "<br /><a href='/Organisation/view/" . h($sge['Organisation']['id']) . "'>" . h($sge['Organisation']['name']) . "</a>";
                    if ($sge['extend']) $combined .= (' (can extend)');
                }
            }
            $combined .= "<hr style='margin:5px 0;'><br />Instances:";
            if (count($sharingGroup['SharingGroupServer']) == 0) $combined .= "<br />N/A";
            foreach ($sharingGroup['SharingGroupServer'] as $k3 => $sgs) {
                if ($sgs['server_id'] != 0) {
                    $combined .= "<br /><a href='/Server/view/" . h($sgs['Server']['id']) . "'>" . h($sgs['Server']['name']) . "</a>";
                } else {
{'fraction_non_alphanumeric': 0.23088042049934296, 'fraction_numerical': 0.003416557161629435, 'mean_word_length': 2.1027313493681206, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 227, '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': '4111199', 'n_tokens_mistral': 2292, 'n_tokens_neox': 2244, 'n_words': 438}