<commit_before>    <div class="subnav photodetail-nav">
      <ul class="nav nav-pills">
        <li><a href="#" class="action-post-click"><i class="icon-heart icon-large"></i> Mark as favorite</a></li>
        <li><a href="#comment-form"><i class="icon-comment icon-large"></i> Leave a comment</a></li>
        <!-- <li><a href="#"><i class="icon-envelope icon-large"></i> Share this photo</a></li> -->
        <li class="last"><a href="<?php $this->url->photoView($photo['next']['id'], $options); ?>">Next <i class="icon-arrow-right icon-large"></i></a></li>
        <li class="last"><a href="<?php $this->url->photoView($photo['previous']['id'], $options); ?>"><i class="icon-arrow-left icon-large"></i> Previous</a></li>
      </ul>
    </div>
  
    <div class="row hero-unit photodetail photo-view">
      <?php if(isset($_GET['modal']) && $_GET['modal'] == 'true') { ?>
        <div class="modal-header">
          <a href="#" class="close" data-dismiss="modal">&times;</a>
          <h3>
            <?php if($photo['title'] != '') { ?>
              <?php $this->utility->safe($photo['title']); ?>
            <?php } else { ?>
              <?php $this->utility->safe($photo['filenameOriginal']); ?><commit_msg>Requiring login when marking a photo as favorite. Closes #648<commit_after>    <div class="subnav photodetail-nav">
      <ul class="nav nav-pills">
      <li><a href="#" class="<?php if($this->user->isLoggedIn()) { ?>action-post-click<?php } else { ?>login-modal-click<?php } ?>"><i class="icon-heart icon-large"></i> Mark as favorite</a></li>
        <li><a href="#comment-form"><i class="icon-comment icon-large"></i> Leave a comment</a></li>
        <!-- <li><a href="#"><i class="icon-envelope icon-large"></i> Share this photo</a></li> -->
        <li class="last"><a href="<?php $this->url->photoView($photo['next']['id'], $options); ?>">Next <i class="icon-arrow-right icon-large"></i></a></li>
        <li class="last"><a href="<?php $this->url->photoView($photo['previous']['id'], $options); ?>"><i class="icon-arrow-left icon-large"></i> Previous</a></li>
      </ul>
    </div>
  
    <div class="row hero-unit photodetail photo-view">
      <?php if(isset($_GET['modal']) && $_GET['modal'] == 'true') { ?>
        <div class="modal-header">
          <a href="#" class="close" data-dismiss="modal">&times;</a>
          <h3>
            <?php if($photo['title'] != '') { ?>
              <?php $this->utility->safe($photo['title']); ?>
            <?php } else { ?>
              <?php $this->utility->safe($photo['filenameOriginal']); ?>
{'fraction_non_alphanumeric': 0.26010886469673405, 'fraction_numerical': 0.0019440124416796269, 'mean_word_length': 3.2740863787375414, 'pattern_counts': {'":': 0, '<': 100, '<?xml version=': 0, '>': 118, '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': '6077663', 'n_tokens_mistral': 820, 'n_tokens_neox': 818, 'n_words': 160}