<commit_before><template>
  <div :id="anchor" :class="{'is-deleted': post.deleted_at, 'highlight-flash': highlight}" class="card card-post">
    <a v-if="post.deleted_at" @click="isCollapsed = !isCollapsed" href="javascript:" class="post-delete card-body text-decoration-none">
      <i class="fas fa-warning"></i>

      Post usunięty <vue-timeago :datetime="post.deleted_at"></vue-timeago>

      <template v-if="post.deleter_name">
        przez {{ post.deleter_name }}
      </template>.

      <template v-if="post.delete_reason">
        Powód: {{ post.delete_reason }}.
      </template>
    </a>

    <div :class="{'collapse': isCollapsed}" class="card-header">
      <div class="row d-none d-lg-flex">
        <div class="col-2">
          <h5 class="mb-0 post-author">
            <vue-user-name v-if="post.user" :user="post.user" :owner="post.user_id === topic.owner_id"></vue-user-name>
            <span v-else>{{ post.user_name }}</span>
          </h5>
        </div>

        <div class="col-10 text-truncate small">
          <i :class="{'fas new': !post.is_read, 'far': post.is_read}" class="fa-file"></i>

          <a :href="post.url" class="small text-body">
            <vue-timeago :datetime="post.created_at"></vue-timeago>
          </a>

          <small v-if="post.ip" :title="post.ip" class="text-muted">{{ post.ip }}</small>
          <small v-if="post.browser" :title="post.browser" class="text-muted">{{ post.browser }}</small>
        </div>
      </div>
    </div>

    <div :class="{'collapse': isCollapsed}" class="card-body">
      <div class="media d-lg-none mb-2">
        <div class="media-left mr-2">
          <vue-avatar
            v-if="post.user"
            :id="post.user.id"
            :name="post.user.name"
            :photo="post.user.photo"
            :is-online="post.user.is_online"
            class="d-block i-35 img-thumbnail"
          ></vue-avatar>
        </div>

        <div class="media-body">
          <h5 class="mb-0 post-author">
            <vue-user-name v-if="post.user" :user="post.user" :owner="post.user_id === topic.owner_id"></vue-user-name>
            <span v-else>{{ post.user_name }}</span>
          </h5>

          <a :href="post.url" class="text-muted small">
            <vue-timeago :datetime="post.created_at"></vue-timeago>

            <small v-if="post.ip" :title="post.ip" class="post-ip">({{ post.ip }})</small>
          </a>
        </div>
      </div>

      <div class="row">
        <div class="d-none d-lg-block col-lg-2">
          <template v-if="post.user">
            <vue-avatar
              v-if="post.user"
              :id="post.user.id"
              :name="post.user.name"
              :photo="post.user.photo"
              :is-online="post.user.is_online"
              class="post-avatar img-thumbnail"
            ></vue-avatar>

            <span v-if="post.user.group" class="badge badge-secondary mb-1">{{ post.user.group }}</span>

            <ul class="post-stats list-unstyled">
              <li>
                <strong>Rejestracja:</strong>
                <small>{{ formatDistanceToNow(post.user.created_at) }}</small>
              </li>

              <li><commit_msg>link do IP - klikalny<commit_after><template>
  <div :id="anchor" :class="{'is-deleted': post.deleted_at, 'highlight-flash': highlight}" class="card card-post">
    <a v-if="post.deleted_at" @click="isCollapsed = !isCollapsed" href="javascript:" class="post-delete card-body text-decoration-none">
      <i class="fas fa-warning"></i>

      Post usunięty <vue-timeago :datetime="post.deleted_at"></vue-timeago>

      <template v-if="post.deleter_name">
        przez {{ post.deleter_name }}
      </template>.

      <template v-if="post.delete_reason">
        Powód: {{ post.delete_reason }}.
      </template>
    </a>

    <div :class="{'collapse': isCollapsed}" class="card-header">
      <div class="row d-none d-lg-flex">
        <div class="col-2">
          <h5 class="mb-0 post-author">
            <vue-user-name v-if="post.user" :user="post.user" :owner="post.user_id === topic.owner_id"></vue-user-name>
            <span v-else>{{ post.user_name }}</span>
          </h5>
        </div>

        <div class="col-10 text-truncate small">
          <i :class="{'fas new': !post.is_read, 'far': post.is_read}" class="fa-file"></i>

          <a :href="post.url" class="small text-body">
            <vue-timeago :datetime="post.created_at"></vue-timeago>
          </a>

          <a v-if="post.ip" :href="`/Adm/Stream?ip=${post.ip}`" :title="post.ip" class="text-muted small">{{ post.ip }}</a>
          <small v-if="post.browser" :title="post.browser" class="text-muted">{{ post.browser }}</small>
        </div>
      </div>
    </div>

    <div :class="{'collapse': isCollapsed}" class="card-body">
      <div class="media d-lg-none mb-2">
        <div class="media-left mr-2">
          <vue-avatar
            v-if="post.user"
            :id="post.user.id"
            :name="post.user.name"
            :photo="post.user.photo"
            :is-online="post.user.is_online"
            class="d-block i-35 img-thumbnail"
          ></vue-avatar>
        </div>

        <div class="media-body">
          <h5 class="mb-0 post-author">
            <vue-user-name v-if="post.user" :user="post.user" :owner="post.user_id === topic.owner_id"></vue-user-name>
            <span v-else>{{ post.user_name }}</span>
          </h5>

          <a :href="post.url" class="text-muted small">
            <vue-timeago :datetime="post.created_at"></vue-timeago>
          </a>

          <a v-if="post.ip" :href="`/Adm/Stream?ip=${post.ip}`" :title="post.ip" class="text-muted small">
            ({{ post.ip }})
          </a>
        </div>
      </div>

      <div class="row">
        <div class="d-none d-lg-block col-lg-2">
          <template v-if="post.user">
            <vue-avatar
              v-if="post.user"
              :id="post.user.id"
              :name="post.user.name"
              :photo="post.user.photo"
              :is-online="post.user.is_online"
              class="post-avatar img-thumbnail"
            ></vue-avatar>

            <span v-if="post.user.group" class="badge badge-secondary mb-1">{{ post.user.group }}</span>

            <ul class="post-stats list-unstyled">
              <li>
                <strong>Rejestracja:</strong>
                <small>{{ formatDistanceToNow(post.user.created_at) }}</small>
              </li>

              <li>
{'fraction_non_alphanumeric': 0.1939701584371635, 'fraction_numerical': 0.0046146746654360865, 'mean_word_length': 2.0468603561387066, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 147, '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': '6330139', 'n_tokens_mistral': 2221, 'n_tokens_neox': 2181, 'n_words': 362}