<commit_before>---
layout: default
---

<!-- Image to hack wechat -->
<!-- <img src="/img/icon_wechat.png" width="0" height="0"> -->
<!-- <img src="{{ site.baseurl }}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}" width="0" height="0"> -->

<!-- header -->
<header class="intro-header" >
  <div class="container">
    <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
      <div class="post-heading">
        <div class="tags">
          {% for tag in page.tags %}
          <a class="tag" href="/tags.html#{{ tag }}" title="{{ tag }}">{{ tag }}</a>
          {% endfor %}
        </div>
        <h1>{{ page.title }}</h1>
        {% comment %}
            always create a h2 for keeping the margin , Hux
        {% endcomment %}
        {% comment %} if page.subtitle {% endcomment %}
        <h2 class="subheading">{{ page.subtitle }}</h2>
        {% comment %} endif {% endcomment %}
        <span class="meta">last edited by {% if page.author %}{{ page.author }}{% else %}{{ site.title }}{% endif %} on {{ page.update-date | date: "%Y-%m-%d" }}</span>
      </div>
    </div>
  </div>
</header>

<!-- Post Content -->
<article>
  <div class="container">
    <div class="row">
      <div class="col-lg-8 col-lg-offset-2
                      col-md-10 col-md-offset-1
                      post-container">
          <ul class="pager pager-top">
            {% if page.previous.url %}
            <li class="previous">
                <a href="{{ page.previous.url | prepend: site.baseurl | replace: '//', '/' }}" data-toggle="tooltip" data-placement="top" title="{{page.previous.title}}">&larr; Previous Post</a>
            </li>
            {% endif %}
            {% if page.next.url %}
            <li class="next">
                <a href="{{ page.next.url | prepend: site.baseurl | replace: '//', '/' }}" data-toggle="tooltip" data-placement="top" title="{{page.next.title}}">Next Post &rarr;</a>
            </li>
            {% endif %}
        </ul>

          {{ content }}
          <a id="article-end-anchor"></a>
          {% include comment.html %}
          
      </div>
    <!-- Side Catalog Container -->

      <div class="
          col-lg-2 col-lg-offset-0
          visible-lg-block
          sidebar-container
          catalog-container">
          <div class="side-catalog">
              <h5>
                  <a class="catalog-toggle" href="#">CATALOG</a>
              </h5>
              <ul class="catalog-body"></ul>
          </div>
      </div>

      <!-- sidebar container -->
      <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1
                sidebar-container">
        {% include featured-tags.html %}
        {% include friends.html %}
      </div>
    </div>
  </div>
</article>


{% if site.anchorjs %}
<!-- async load function -->
<script>
  function async(u, c) {
    var d = document, t = 'script',
        o = d.createElement(t),
        s = d.getElementsByTagName(t)[0];
    o.src = u;
    if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
    s.parentNode.insertBefore(o, s);
  }
</script>
<!-- anchor-js, Doc:http://bryanbraun.github.io/anchorjs/ -->
<script>
  async("https://cdn.bootcss.com/anchor-js/1.1.1/anchor.min.js",function(){
    anchors.options = {
      visible: 'always',
      placement: 'right',
      icon: '#'
    };
    anchors.add('.post-container h1, .post-container h2, .post-container h3, .post-container h4, .post-container h5, .post-container h6');
  })
</script>
{% endif %}

<script src="{{ "/js/jquery.js" | prepend: site.baseurl }}"></script>
<script src="{{ "/js/jquery.nav.js" | prepend: site.baseurl }}"></script>
<script src="{{ "/js/highlight.pack.js" | prepend: site.baseurl }}"></script>

<script type="text/javascript">
  $(document).ready(function() {
    var lanMap = {
      "language-kramdown": 'language-markdown',
      "language-c": 'language-cpp',
      "language-git": 'language-bash',
      'language-liquid': 'language-django'
    };
    $('.post-container > div.highlighter-rouge, .post-container > pre code').each(function(i, e) {
      var code = $(this);
      if (code.prop('tagName').toLowerCase() != 'code') code = code.find('code');
      var result = $(this).prop('className').match(/language-[\w]{1,}/);
      // remove '\n'
      // var codeText = code.text();
      // code.text(code.text().slice(0, -1));
      if (result) {
        var classToAdd = lanMap[result[0]] || result[0];
        code.removeClass(result[0]);
        code.addClass(classToAdd);
        hljs.highlightBlock(code[0]);
      } else {<commit_msg>fix the last '\n' display problem<commit_after>---
layout: default
---

<!-- Image to hack wechat -->
<!-- <img src="/img/icon_wechat.png" width="0" height="0"> -->
<!-- <img src="{{ site.baseurl }}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}" width="0" height="0"> -->

<!-- header -->
<header class="intro-header" >
  <div class="container">
    <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
      <div class="post-heading">
        <div class="tags">
          {% for tag in page.tags %}
          <a class="tag" href="/tags.html#{{ tag }}" title="{{ tag }}">{{ tag }}</a>
          {% endfor %}
        </div>
        <h1>{{ page.title }}</h1>
        {% comment %}
            always create a h2 for keeping the margin , Hux
        {% endcomment %}
        {% comment %} if page.subtitle {% endcomment %}
        <h2 class="subheading">{{ page.subtitle }}</h2>
        {% comment %} endif {% endcomment %}
        <span class="meta">last edited by {% if page.author %}{{ page.author }}{% else %}{{ site.title }}{% endif %} on {{ page.update-date | date: "%Y-%m-%d" }}</span>
      </div>
    </div>
  </div>
</header>

<!-- Post Content -->
<article>
  <div class="container">
    <div class="row">
      <div class="col-lg-8 col-lg-offset-2
                      col-md-10 col-md-offset-1
                      post-container">
          <ul class="pager pager-top">
            {% if page.previous.url %}
            <li class="previous">
                <a href="{{ page.previous.url | prepend: site.baseurl | replace: '//', '/' }}" data-toggle="tooltip" data-placement="top" title="{{page.previous.title}}">&larr; Previous Post</a>
            </li>
            {% endif %}
            {% if page.next.url %}
            <li class="next">
                <a href="{{ page.next.url | prepend: site.baseurl | replace: '//', '/' }}" data-toggle="tooltip" data-placement="top" title="{{page.next.title}}">Next Post &rarr;</a>
            </li>
            {% endif %}
        </ul>

          {{ content }}
          <a id="article-end-anchor"></a>
          {% include comment.html %}
          
      </div>
    <!-- Side Catalog Container -->

      <div class="
          col-lg-2 col-lg-offset-0
          visible-lg-block
          sidebar-container
          catalog-container">
          <div class="side-catalog">
              <h5>
                  <a class="catalog-toggle" href="#">CATALOG</a>
              </h5>
              <ul class="catalog-body"></ul>
          </div>
      </div>

      <!-- sidebar container -->
      <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1
                sidebar-container">
        {% include featured-tags.html %}
        {% include friends.html %}
      </div>
    </div>
  </div>
</article>


{% if site.anchorjs %}
<!-- async load function -->
<script>
  function async(u, c) {
    var d = document, t = 'script',
        o = d.createElement(t),
        s = d.getElementsByTagName(t)[0];
    o.src = u;
    if (c) { o.addEventListener('load', function (e) { c(null, e); }, false); }
    s.parentNode.insertBefore(o, s);
  }
</script>
<!-- anchor-js, Doc:http://bryanbraun.github.io/anchorjs/ -->
<script>
  async("https://cdn.bootcss.com/anchor-js/1.1.1/anchor.min.js",function(){
    anchors.options = {
      visible: 'always',
      placement: 'right',
      icon: '#'
    };
    anchors.add('.post-container h1, .post-container h2, .post-container h3, .post-container h4, .post-container h5, .post-container h6');
  })
</script>
{% endif %}

<script src="{{ "/js/jquery.js" | prepend: site.baseurl }}"></script>
<script src="{{ "/js/jquery.nav.js" | prepend: site.baseurl }}"></script>
<script src="{{ "/js/highlight.pack.js" | prepend: site.baseurl }}"></script>

<script type="text/javascript">
  $(document).ready(function() {
    var lanMap = {
      "language-kramdown": 'language-markdown',
      "language-c": 'language-cpp',
      "language-git": 'language-bash',
      'language-liquid': 'language-django'
    };
    $('.post-container > div.highlighter-rouge, .post-container > pre code').each(function(i, e) {
      var code = $(this);
      if (code.prop('tagName').toLowerCase() != 'code') code = code.find('code');
      var result = $(this).prop('className').match(/language-[\w]{1,}/);
      // remove '\n'
      var codeText = code.text();
      if (codeText.endsWith('\n')) {
        code.text(codeText.slice(0, -1));
      }
      if (result) {
        var classToAdd = lanMap[result[0]] || result[0];
        code.removeClass(result[0]);
        code.addClass(classToAdd);
        hljs.highlightBlock(code[0]);
      } else {
{'fraction_non_alphanumeric': 0.2094420600858369, 'fraction_numerical': 0.009656652360515022, 'mean_word_length': 2.140498652291105, 'pattern_counts': {'":': 6, '<': 147, '<?xml version=': 0, '>': 151, 'https://': 2, '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': '3172309', 'n_tokens_mistral': 3119, 'n_tokens_neox': 2977, 'n_words': 623}