<commit_before><?php
    echo $this->element('/genericElements/SideMenu/side_menu', array('menuList' => 'galaxies', 'menuItem' => 'view_cluster'));

    $extendedFromHtml = '';
    $extendFromLinks = array();
    if (!empty($cluster['GalaxyCluster']['extended_from'])) {
        $element = $this->element('genericElements/IndexTable/Fields/links', array(
            'url' => $baseurl . '/galaxy_clusters/view/',
            'row' => $cluster,
            'field' => array(
                'data_path' => 'GalaxyCluster.extended_from.GalaxyCluster.id',
                'title' => $cluster['GalaxyCluster']['extended_from']['GalaxyCluster']['value']
            ),
        ));
        $extendFromLinks[] = sprintf('<li>%s</li>', $element);
    }
    $extendedFromHtml = sprintf('<ul>%s</ul>', implode('', $extendFromLinks));

    $extendedByHtml = '';
    $extendByLinks = array();
    foreach($cluster['GalaxyCluster']['extended_by'] as $extendCluster) {
        $element = $this->element('genericElements/IndexTable/Fields/links', array(
            'url' => '/galaxy_clusters/view/',
            'row' => $extendCluster,
            'field' => array(
                'data_path' => 'GalaxyCluster.id',
                'title' => $extendCluster['GalaxyCluster']['value']
            ),
        ));
        $extendByLinks[] = sprintf('<li>%s</li>', $element);
    }
    $extendedByHtml = sprintf('<ul>%s</ul>', implode('', $extendByLinks));
    $table_data = array();
    $table_data[] = array('key' => __('Cluster ID'), 'value' => $cluster['GalaxyCluster']['id']);
    $table_data[] = array('key' => __('Name'), 'value' => $cluster['GalaxyCluster']['value']);
    $table_data[] = array('key' => __('Parent Galaxy'), 'value' => $cluster['Galaxy']['name'] ? $cluster['Galaxy']['name'] : $cluster['Galaxy']['type']);
    $table_data[] = array('key' => __('Description'), 'value' => $cluster['GalaxyCluster']['description']);
    $table_data[] = array('key' => __('Version'), 'value' => $cluster['GalaxyCluster']['version']);<commit_msg>chg: [galaxyClusters:view] Added forked version number<commit_after><?php
    echo $this->element('/genericElements/SideMenu/side_menu', array('menuList' => 'galaxies', 'menuItem' => 'view_cluster'));

    $extendedFromHtml = '';
    $extendFromLinks = array();
    if (!empty($cluster['GalaxyCluster']['extended_from'])) {
        $element = $this->element('genericElements/IndexTable/Fields/links', array(
            'url' => $baseurl . '/galaxy_clusters/view/',
            'row' => $cluster,
            'field' => array(
                'data_path' => 'GalaxyCluster.extended_from.GalaxyCluster.id',
                'title' => sprintf(__('%s (version: %s)'), $cluster['GalaxyCluster']['extended_from']['GalaxyCluster']['value'], $cluster['GalaxyCluster']['extends_version'])
            ),
        ));
        $extendFromLinks[] = sprintf('<li>%s</li>', $element);
    }
    $extendedFromHtml = sprintf('<ul>%s</ul>', implode('', $extendFromLinks));

    $extendedByHtml = '';
    $extendByLinks = array();
    foreach($cluster['GalaxyCluster']['extended_by'] as $extendCluster) {
        $element = $this->element('genericElements/IndexTable/Fields/links', array(
            'url' => '/galaxy_clusters/view/',
            'row' => $extendCluster,
            'field' => array(
                'data_path' => 'GalaxyCluster.id',
                'title' => sprintf(__('%s (parent version: %s)'), $extendCluster['GalaxyCluster']['value'], $extendCluster['GalaxyCluster']['extends_version'])
            ),
        ));
        $extendByLinks[] = sprintf('<li>%s</li>', $element);
    }
    $extendedByHtml = sprintf('<ul>%s</ul>', implode('', $extendByLinks));
    $table_data = array();
    $table_data[] = array('key' => __('Cluster ID'), 'value' => $cluster['GalaxyCluster']['id']);
    $table_data[] = array('key' => __('Name'), 'value' => $cluster['GalaxyCluster']['value']);
    $table_data[] = array('key' => __('Parent Galaxy'), 'value' => $cluster['Galaxy']['name'] ? $cluster['Galaxy']['name'] : $cluster['Galaxy']['type']);
    $table_data[] = array('key' => __('Description'), 'value' => $cluster['GalaxyCluster']['description']);
    $table_data[] = array('key' => __('Version'), 'value' => $cluster['GalaxyCluster']['version']);
{'fraction_non_alphanumeric': 0.2252336448598131, 'fraction_numerical': 0.0, 'mean_word_length': 3.730386740331492, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 69, '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': '499409', 'n_tokens_mistral': 1312, 'n_tokens_neox': 1275, 'n_words': 193}