<commit_before><?php  
defined('C5_EXECUTE') or die("Access Denied.");  
$ih = Loader::helper('image'); 
?> 
	
<div id="ccm-next-previous-<?php echo intval($bID)?>" class="ccm-next-previous-wrapper">

    <div class="ccm-next-previous-previouslink">
    <?php  if( is_object($previousCollection) ){ ?>
        <a href="<?php echo View::url($previousCollection->getCollectionPath())?>"><?php echo $previousLinkText ?></a>  
    <?php  } else { ?>
		&nbsp;
    <?php  } ?>
    </div>
    
    <div class="ccm-next-previous-parentlink">
	<?php  if( is_object($parentCollection) && $parentLinkText){ ?> 
        <a href="<?php echo View::url($parentCollection->getCollectionPath())?>"><?php echo $parentLinkText ?></a>
    <?php  } else { ?>
		&nbsp;
    <?php  } ?>
    </div>

    <div class="ccm-next-previous-nextlink">
	<?php  if( is_object($nextCollection) ){ ?> 
        <a href="<?php echo View::url($nextCollection->getCollectionPath())?>"><?php echo $nextLinkText ?></a>
    <?php  } else { ?>
		&nbsp;
    <?php  } ?>
    </div>
    
    <div class="spacer"></div> 
</div><commit_msg>Don't output useless divs when there is no link to generate in prev & next blocks.<commit_after><?php
defined('C5_EXECUTE') or die("Access Denied.");
$ih = Loader::helper('image');
?>

<div id="ccm-next-previous-<?php echo intval($bID)?>" class="ccm-next-previous-wrapper">

    <?php  if( strlen($previousLinkText) > 0){ ?>
      <div class="ccm-next-previous-previouslink">
        <?php  if( is_object($previousCollection) ){ ?>
          <a href="<?php echo View::url($previousCollection->getCollectionPath())?>"><?php echo $previousLinkText ?></a>
        <?php  } else { ?>
          &nbsp;
        <?php  } ?>
      </div>
    <?php } ?>

    <?php  if( strlen($parentLinkText) > 0){ ?>
      <div class="ccm-next-previous-parentlink">
        <?php  if( is_object($parentCollection) && $parentLinkText){ ?>
          <a href="<?php echo View::url($parentCollection->getCollectionPath())?>"><?php echo $parentLinkText ?></a>
        <?php  } else { ?>
          &nbsp;
        <?php  } ?>
      </div>
    <?php } ?>

    <?php  if( strlen($nextLinkText) > 0){ ?>
      <div class="ccm-next-previous-nextlink">
        <?php  if( is_object($nextCollection) ){ ?>
          <a href="<?php echo View::url($nextCollection->getCollectionPath())?>"><?php echo $nextLinkText ?></a>
        <?php  } else { ?>
          &nbsp;
        <?php  } ?>
      </div>
    <?php } ?>

    <div class="spacer"></div>
</div>
{'fraction_non_alphanumeric': 0.2128594249201278, 'fraction_numerical': 0.001996805111821086, 'mean_word_length': 3.099836333878887, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 84, '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': '5552607', 'n_tokens_mistral': 824, 'n_tokens_neox': 832, 'n_words': 162}