<commit_before>---
title: Defman's Blog
og: no
js:
    - search
layout: :layout
---
= partial "partials/search", locals: {file: "articles"}
- blogs.each do |page|
    - y, m, d, h, min = page.data.date.to_s.match(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/i).captures
    .container.article id=page.data.url
        span.title = link_to page.data.title, page.url
        .infobar
            span.timestamp
                i.fa.fa-clock-o>
                = "#{y}/#{m}/#{d} #{h}:#{min}"
            span.tags
                i.fa.fa-tags>
                ruby:
                    tags = []
                    page.data.tags.split.each do |tag|
                        tags << "<a class=\"tag search-link\" data-search='tag:#{tag}'>#{tag}</a>"
                    end
                == tags.join ", "
        .content
            = truncate_with_ellipses page.data.description, 150
.pagination
    - unless last
        - unless first
            = link_to "Previous page", "/blog/pages/#{page - 1}"
        = link_to "Next page", "/blog/pages/#{page + 1}"
    - else<commit_msg>Misc: updated blog/page proxy<commit_after>---
title: Defman's Blog
og: no
js:
    - search
layout: :layout
---
= partial "partials/search", locals: {file: "articles"}
- blogs.each do |page|
    - date = Date.strptime(page.data.date.to_s, '%Y%m%d%H%M').strftime "%B %d, %Y"
    .container.article id=page.data.url
        span.title = link_to page.data.title, page.url
        .infobar
            span.timestamp
                i.fa.fa-calendar>
                = date
            span.tags
                i.fa.fa-tags>
                ruby:
                    tags = []
                    page.data.tags.split.each do |tag|
                        tags << "<a class=\"tag search-link\" data-search='tag:#{tag}'>#{tag}</a>"
                    end
                == tags.join ", "
            span.readtime
                i.fa.fa-clock-o>
                = readtime page.source_file, true
        .content
            = truncate_with_ellipses page.data.description, 150
.pagination
    - unless last
        - unless first
            = link_to "Previous page", "/blog/pages/#{page - 1}"
        = link_to "Next page", "/blog/pages/#{page + 1}"
    - else
{'fraction_non_alphanumeric': 0.15966010733452593, 'fraction_numerical': 0.006708407871198569, 'mean_word_length': 1.4636563876651982, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '3496200', 'n_tokens_mistral': 738, 'n_tokens_neox': 702, 'n_words': 144}