<commit_before><?php use_helper('Date'); ?>

<?php
$communityConfigPublicFlag = CommunityConfigPeer::retrieveByNameAndCommunityId('public_flag', $community->getId());
if ($communityConfigPublicFlag === null || $community->isPrivilegeBelong($sf_user->getMemberId()) || $communityConfigPublicFlag->getValue() === 'public') :
?>
<tr>
<th>コミュニティ掲示板</th>
<td>
<ul>
<?php
$communityTopics = CommunityTopicPeer::getTopics($community->getId());
if ($communityTopics) :
for ($i = 0; $i < 7; $i++) :
?>
<li>
<?php
echo format_datetime($communityTopics[$i]->getUpdatedAt(), 'f');
echo ' ';
echo link_to($communityTopics[$i]->getName().'('.$communityTopics[$i]->countCommunityTopicComments().')', 'communityTopic/detail?id='.$communityTopics[$i]->getId());
?>
</li>
<?php endfor; ?>
<li><?php echo link_to('もっと読む', 'communityTopic/list?community_id='.$community->getId()); ?></li>
<?php endif; ?><commit_msg>#3267:fixed fatal error of community/home when number of the community topics is less than seven<commit_after><?php use_helper('Date'); ?>

<?php
$communityConfigPublicFlag = CommunityConfigPeer::retrieveByNameAndCommunityId('public_flag', $community->getId());
if ($communityConfigPublicFlag === null || $community->isPrivilegeBelong($sf_user->getMemberId()) || $communityConfigPublicFlag->getValue() === 'public') :
?>
<tr>
<th>コミュニティ掲示板</th>
<td>
<ul>
<?php $communityTopics = CommunityTopicPeer::getTopics($community->getId()); ?>
<?php if ($communityTopics) : ?>
<?php foreach ($communityTopics as $key => $communityTopic) : ?>
<?php if (5 <= $key)
{
  break;
} ?>
<li>
<?php echo format_datetime($communityTopic->getUpdatedAt(), 'f'); ?>
&nbsp;
<?php echo link_to(sprintf('%s(%d)', $communityTopic->getName(), $communityTopic->countCommunityTopicComments()), 'communityTopic/detail?id='.$communityTopic->getId()); ?>
</li>
<?php endforeach; ?>
<li><?php echo link_to('もっと読む', 'communityTopic/list?community_id='.$community->getId()); ?></li>
<?php endif; ?>
{'fraction_non_alphanumeric': 0.2200102092904543, 'fraction_numerical': 0.0035732516590096988, 'mean_word_length': 8.8989898989899, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 60, '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': '4334710', 'n_tokens_mistral': 679, 'n_tokens_neox': 653, 'n_words': 115}