<commit_before><template>
  <section class="au-animate">
    <div class="row">
      <div class="col-lg-12">
        <div class="card card-default card-block" if.bind="!news">
          <p class="card-text">
            The selected news entry is not available.
          </p>
        </div>

        <div class="card news-card">
          <div class="card-default card-block" if.bind="news">
            <div class="news-card-header">
              <a href="#/profiles/view/${news.user_id}" class="pull-left">
                <!-- Todo -->
                <img alt="${news.user.username}" src="http://lr.local/img/avatar/${news.user.avatar}">
              </a>
              <h4><a href="#/news/view/${news.id}">${news.title}</a></h4>
              <a href="#/profiles/view/${news.user_id}">${news.user.username}</a>
              <small class="text-muted">on ${news.created_at}</small>
            </div>
            <div class="card-text">${news.text}</div>
          </div>
          <div class="card-footer" if.bind="isAuthenticated">
            <div class="news-card-comment" if.bind="isAuthenticated">
              <a href="#/profiles/view/${user.id}" class="pull-left">
                <img alt="${user.username}" src="http://lr.local/img/avatar/${user.avatar}">
              </a>
              <div class="media-body">
                <textarea class="form-control" placeholder="Write comment..."></textarea>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
</template><commit_msg>feat(news): list comments for news<commit_after><template>
  <section class="au-animate">
    <div class="row">
      <div class="col-lg-12">
        <div class="card card-default card-block" if.bind="!news">
          <p class="card-text">
            The selected news entry is not available.
          </p>
        </div>

        <div class="card news-card">
          <div class="card-default card-block" if.bind="news">
            <div class="news-card-header">
              <a href="#/profiles/view/${news.user_id}" class="pull-left">
                <!-- Todo -->
                <img alt="${news.user.username}" src="http://lr.local/img/avatar/${news.user.avatar}">
              </a>
              <h4><a href="#/news/view/${news.id}">${news.title}</a></h4>
              <a href="#/profiles/view/${news.user_id}">${news.user.username}</a>
              <small class="text-muted">on ${news.created_at}</small>
            </div>
            <div class="card-text">${news.text}</div>
          </div>
          <div class="card-footer" if.bind="isAuthenticated || news.comments.length > 0">
            <div class="news-card-comment" repeat.for="item of news.comments">
              <a href="#/profiles/view/${item.user.id}" class="pull-left">
                <img alt="${item.user.username}" src="http://lr.local/img/avatar/${item.user.avatar}">
              </a>
              <div class="media-body">
                <a href="#/profiles/view/${item.user.id}">${item.user.username}</a> ${item.text}
                <br>
                <small class="text-muted">${item.created_at}</small>
              </div>
            </div>
            <div class="news-card-comment" if.bind="isAuthenticated">
              <a href="#/profiles/view/${user.id}" class="pull-left">
                <img alt="${user.username}" src="http://lr.local/img/avatar/${user.avatar}">
              </a>
              <div class="media-body">
                <textarea class="form-control" placeholder="Write comment..."></textarea>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
</template>
{'fraction_non_alphanumeric': 0.2003244120032441, 'fraction_numerical': 0.0024330900243309003, 'mean_word_length': 1.8222730739893211, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 102, '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': '1747091', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1129, 'n_words': 183}