<commit_before><?php
  add_stylesheet_to_page('project/comments.css');
?>
<div id="objectComments">
  <h2><?php echo lang('comments') ?></h2>
<?php $comments = $__comments_object->getComments() ?>
<?php if (is_array($comments) && count($comments)) { ?>
<?php $counter = 0; ?>
<?php foreach ($comments as $comment) { ?>
<?php $counter++; ?>
  <div class="comment block <?php echo $counter % 2 ? 'even' : 'odd';  ?>" id="comment<?php echo $comment->getId() ?>">
<?php if ($comment->isPrivate()) { ?>
    <div class="private" title="<?php echo lang('private comment') ?>"><span><?php echo lang('private comment') ?></span></div>
<?php } // if ?>
<?php $createdBy = $comment->getCreatedBy(); ?>
<?php if (createdBy instanceof User) { ?>
    <div class="commentHead header"><span><a href="<?php echo $comment->getViewUrl() ?>" title="<?php echo lang('permalink') ?>">#<?php echo $counter ?></a>:</span> <?php echo lang('comment posted on by', format_datetime($comment->getUpdatedOn()), $comment->getCreatedByCardUrl(), clean($comment->getCreatedByDisplayName())) ?>:</div>
<?php } else { ?>
    <div class="commentHead header"><span><a href="<?php echo $comment->getViewUrl() ?>" title="<?php echo lang('permalink') ?>">#<?php echo $counter ?></a>:</span> <?php echo lang('comment posted on', format_datetime($comment->getUpdatedOn())) ?>:</div>
<?php } // if ?>
    <div class="commentBody content">
<?php if (($createdBy instanceof User) && ($createdBy->getContact()->hasAvatar())) { ?>
      <div class="commentUserAvatar"><img src="<?php echo $createdBy->getContact()->getAvatarUrl() ?>" alt="<?php echo clean($createdBy->getContact()->getDisplayName()) ?>" /></div>
<?php } // if ?>
      <div class="commentText"><?php echo plugin_manager()->apply_filters('comment_text', do_textile($comment->getText())) ?></div>
      <div class="clear"></div>
      <?php echo render_object_files($comment, $comment->canEdit(logged_user())) ?>
    </div>
<?php
  $options = array();
  if ($comment->canEdit(logged_user())) {
    $options[] = '<a href="' . $comment->getEditUrl() . '">' . lang('edit') . '</a>';
  }
  if ($comment->canDelete(logged_user())) {
    $options[] = '<a href="' . $comment->getDeleteUrl() . '" onclick="return confirm(\'' . lang('confirm delete comment') . '\')">' . lang('delete') . '</a>';
  }
?>
<?php if (count($options)) { ?>
    <div class="options"><?php echo implode(' | ', $options) ?></div>
<?php } // if ?><commit_msg>commit 27 fix: added $ to createdBy<commit_after><?php
  add_stylesheet_to_page('project/comments.css');
?>
<div id="objectComments">
  <h2><?php echo lang('comments') ?></h2>
<?php $comments = $__comments_object->getComments() ?>
<?php if (is_array($comments) && count($comments)) { ?>
<?php $counter = 0; ?>
<?php foreach ($comments as $comment) { ?>
<?php $counter++; ?>
  <div class="comment block <?php echo $counter % 2 ? 'even' : 'odd';  ?>" id="comment<?php echo $comment->getId() ?>">
<?php if ($comment->isPrivate()) { ?>
    <div class="private" title="<?php echo lang('private comment') ?>"><span><?php echo lang('private comment') ?></span></div>
<?php } // if ?>
<?php $createdBy = $comment->getCreatedBy(); ?>
<?php if ($createdBy instanceof User) { ?>
    <div class="commentHead header"><span><a href="<?php echo $comment->getViewUrl() ?>" title="<?php echo lang('permalink') ?>">#<?php echo $counter ?></a>:</span> <?php echo lang('comment posted on by', format_datetime($comment->getUpdatedOn()), $comment->getCreatedByCardUrl(), clean($comment->getCreatedByDisplayName())) ?>:</div>
<?php } else { ?>
    <div class="commentHead header"><span><a href="<?php echo $comment->getViewUrl() ?>" title="<?php echo lang('permalink') ?>">#<?php echo $counter ?></a>:</span> <?php echo lang('comment posted on', format_datetime($comment->getUpdatedOn())) ?>:</div>
<?php } // if ?>
    <div class="commentBody content">
<?php if (($createdBy instanceof User) && ($createdBy->getContact()->hasAvatar())) { ?>
      <div class="commentUserAvatar"><img src="<?php echo $createdBy->getContact()->getAvatarUrl() ?>" alt="<?php echo clean($createdBy->getContact()->getDisplayName()) ?>" /></div>
<?php } // if ?>
      <div class="commentText"><?php echo plugin_manager()->apply_filters('comment_text', do_textile($comment->getText())) ?></div>
      <div class="clear"></div>
      <?php echo render_object_files($comment, $comment->canEdit(logged_user())) ?>
    </div>
<?php
  $options = array();
  if ($comment->canEdit(logged_user())) {
    $options[] = '<a href="' . $comment->getEditUrl() . '">' . lang('edit') . '</a>';
  }
  if ($comment->canDelete(logged_user())) {
    $options[] = '<a href="' . $comment->getDeleteUrl() . '" onclick="return confirm(\'' . lang('confirm delete comment') . '\')">' . lang('delete') . '</a>';
  }
?>
<?php if (count($options)) { ?>
    <div class="options"><?php echo implode(' | ', $options) ?></div>
<?php } // if ?>
{'fraction_non_alphanumeric': 0.2537191766863664, 'fraction_numerical': 0.002037905033625433, 'mean_word_length': 5.398956975228161, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 189, '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': '6430068', 'n_tokens_mistral': 1513, 'n_tokens_neox': 1534, 'n_words': 357}