<commit_before><template lang="jade">  

    .component
      h2.ui.header
        i.icon.inverted.circular.blue.comment 
        |Comments
      div.ui.large.labels
        div.ui.label
          | 回復 {{comment.length}}
        div.ui.label
          | 觀看 {{views['views']}}
        div.ui.label
          | 用戶 {{views['participant_count']}}
        div.ui.label
          | 最新回復 {{date}}
      div(v-for="(item, index) in comment")
        div.ui.comments
          div.comment
            a.avatar
              img(:src="comment[index]['avatar_template']")
            div.content
              a.author
              {{comment[index]['username']}}
              div.metadata               
                span.date
                  div(v-html="comment[index]['created_at']")
              div.text
                div(v-html="comment[index]['cooked']")
              div.line
      a(v-bind:href="'https://talk.vtaiwan.tw/t/topic/'+comment_id" target="_blank")
        div.ui.fluid.green.labeled.submit.icon.button
          i.icon.edit
          |我要留言
      

        
              
            
</template>

<script>
import axios from 'axios'

export default {
  props:['comment_id'],
  data () {
    return {
      comment:[],
      username:[],
      views:[],
      date:[],
    }
  },
  created:function(a,b){
    axios.get('https://talk.vtaiwan.tw/t/topic/'+ this.comment_id +'.json')
    .then((response_comment)=>{
     this.views = response_comment['data']['last_posted_at'];
      this.comment = response_comment['data']['post_stream']['posts'].slice(1);
      for(var i=0; i<this.comment.length; i++){
        this.username =this.comment[i]['avatar_template'].replace(/{size}/,"100");<commit_msg>add space<commit_after><template lang="jade">  

    .component
      h2.ui.header
        i.icon.inverted.circular.blue.comment 
        | Comments
      div.ui.large.labels
        div.ui.label
          | 回復 {{comment.length}}
        div.ui.label
          | 觀看 {{views['views']}}
        div.ui.label
          | 用戶 {{views['participant_count']}}
        div.ui.label
          | 最新回復 {{date}}
      div(v-for="(item, index) in comment")
        div.ui.comments
          div.comment
            a.avatar
              img(:src="comment[index]['avatar_template']")
            div.content
              a.author
                | {{comment[index]['username']}}
              div.metadata               
                span.date
                  div(v-html="comment[index]['created_at']")
              div.text
                div(v-html="comment[index]['cooked']")
              div.line
      a(v-bind:href="'https://talk.vtaiwan.tw/t/topic/'+comment_id" target="_blank")
        div.ui.fluid.green.labeled.submit.icon.button
          i.icon.edit
          | 我要留言
      

        
              
            
</template>

<script>
import axios from 'axios'

export default {
  props:['comment_id'],
  data () {
    return {
      comment:[],
      username:[],
      views:[],
      date:[],
    }
  },
  created:function(a,b){
    axios.get('https://talk.vtaiwan.tw/t/topic/'+ this.comment_id +'.json')
    .then((response_comment)=>{
     this.views = response_comment['data']['last_posted_at'];
      this.comment = response_comment['data']['post_stream']['posts'].slice(1);
      for(var i=0; i<this.comment.length; i++){
        this.username =this.comment[i]['avatar_template'].replace(/{size}/,"100");
{'fraction_non_alphanumeric': 0.16394874781595806, 'fraction_numerical': 0.0034944670937682005, 'mean_word_length': 1.7858880778588808, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '929431', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1077, 'n_words': 142}