<commit_before><?php if($photos[0]['totalRows'] > 0) { ?>
  <?php $this->theme->display('partials/pagination.php', $pages); ?>
  <ul class="photo-grid grid-200">
    <?php foreach($photos as $photo) { ?>
      <li class="grid-item id-<?php $this->utility->safe($photo['id']); ?>">
        <a href="<?php $this->url->photoView($photo['id'], $options); ?>"><img src="<?php $this->url->photoUrl($photo, $this->config->photoSizes->thumbnail); ?>" alt="<?php $this->utility->safe($photo['title']); ?>"></a>
        <ul class="meta">
          <li class="age"><?php $this->utility->timeAsText($photo['dateTaken'], 'Taken'); ?></li>
          <li class="permission <?php $this->utility->permissionAsText($photo['permission']); ?>"><?php $this->utility->permissionAsText($photo['permission']); ?></li>
          <?php if(!empty($photo['tags'])) { ?><li class="tags"><img src="<?php $this->theme->asset('image', 'icon-tags.png'); ?>" alt="This photo has tags"></li><?php } ?>
          <?php if(!empty($photo['latitude'])) { ?><li class="geo"><img src="<?php $this->theme->asset('image', 'icon-globe.png'); ?>" alt="This photo has location information"></li><?php } ?>
        </ul>
      </li>
    <?php } ?>
  </ul>
  <br clear="all">
  <?php $this->theme->display('partials/pagination.php', array_merge($pages, array('labelPosition' => 'bottom'))); ?>
<?php } else { ?>
  <?php if($this->user-$this->user->er()) { ?>
    <h1>There don't seem to be any photos. You should <a href="<?php $this->url->photosUpload(); ?>">upload</a> some.</h1>
    <p><commit_msg>Fixing fatal error in default theme. Closes #605<commit_after><?php if($photos[0]['totalRows'] > 0) { ?>
  <?php $this->theme->display('partials/pagination.php', $pages); ?>
  <ul class="photo-grid grid-200">
    <?php foreach($photos as $photo) { ?>
      <li class="grid-item id-<?php $this->utility->safe($photo['id']); ?>">
        <a href="<?php $this->url->photoView($photo['id'], $options); ?>"><img src="<?php $this->url->photoUrl($photo, $this->config->photoSizes->thumbnail); ?>" alt="<?php $this->utility->safe($photo['title']); ?>"></a>
        <ul class="meta">
          <li class="age"><?php $this->utility->timeAsText($photo['dateTaken'], 'Taken'); ?></li>
          <li class="permission <?php $this->utility->permissionAsText($photo['permission']); ?>"><?php $this->utility->permissionAsText($photo['permission']); ?></li>
          <?php if(!empty($photo['tags'])) { ?><li class="tags"><img src="<?php $this->theme->asset('image', 'icon-tags.png'); ?>" alt="This photo has tags"></li><?php } ?>
          <?php if(!empty($photo['latitude'])) { ?><li class="geo"><img src="<?php $this->theme->asset('image', 'icon-globe.png'); ?>" alt="This photo has location information"></li><?php } ?>
        </ul>
      </li>
    <?php } ?>
  </ul>
  <br clear="all">
  <?php $this->theme->display('partials/pagination.php', array_merge($pages, array('labelPosition' => 'bottom'))); ?>
<?php } else { ?>
  <?php if($this->user->isOwner()) { ?>
    <h1>There don't seem to be any photos. You should <a href="<?php $this->url->photosUpload(); ?>">upload</a> some.</h1>
    <p>
{'fraction_non_alphanumeric': 0.27760051052967455, 'fraction_numerical': 0.005424377791959157, 'mean_word_length': 4.568383658969805, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 158, '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': '4621598', 'n_tokens_mistral': 1022, 'n_tokens_neox': 1033, 'n_words': 196}