<commit_before>
@extends(Config::get("writing.template-view"))

<?php
  //{{-- @extends('layout.main') --}}
    /*
    / [ writing ]
    /
    / $writing_type (SINGLE_WRITING_TYPE, MULTIPLE_WRITING_TYPE)
    / $tag
    /
    */

    // 1. Defaults
    $site_title = 'Writing — '.Config::get('settings.title');
    $og_description = 'Description of the blog.';
    $services_typekit = Config::get('services.typekit.writing');
    $header_classes = 'c-header--white';
    $is_header_static = true;

    // 2. Defaults Cover
    $cover_subtitle = Thinker::array_rand_value(['Subtitle 01', 'Subtitle 02']);
    $cover_classes_title_b = '';
    $cover_image = '';
    $cover_classes = '';
    $cover_active = true;

    // 3. Define Article Type
    if(isset($articles)) {
      $writing_type = 'MULTIPLE_WRITING_TYPE';
    } else if(isset($article)) {
      $writing_type = 'SINGLE_WRITING_TYPE';
    } else {
      $writing_type = 'EMPTY_TYPE';
    }

    // 4. Single Article Settings
    if ($writing_type == 'SINGLE_WRITING_TYPE') {

        // 4.1. General
        $site_title = $article->title.' — '.Config::get('settings.title');
        $og_description = Thinker::limitMarkdownText($article->text, 159);
        $og_type = 'article';
        if ($article->image) {
          $og_image = $article->image;
        } else if ($article->video) {
          $og_image = Thinker::getVideoThumb($article->video);
        }

        // 4.2. Cover or not
        if ($article->image == '') {

            // 4.2.1. Article w/o cover
            $header_classes = 'c-header--relative';
            $cover_active = false;

        } else {

            // 4.2.2. Article w/ cover
            $cover_subtitle = $article->title;
            if(strlen($article->title) > 40) {
              $cover_classes_title_b = 'c-cover__title-b--small';
            }
            $cover_image = $article->image;
            $cover_classes .= 'is-faded is-fullscreen';    
        }<commit_msg>Added Markdown::string to og_description.<commit_after>
@extends(Config::get("writing.template-view"))

<?php
  //{{-- @extends('layout.main') --}}
    /*
    / [ writing ]
    /
    / $writing_type (SINGLE_WRITING_TYPE, MULTIPLE_WRITING_TYPE)
    / $tag
    /
    */

    // 1. Defaults
    $site_title = 'Writing — '.Config::get('settings.title');
    $og_description = 'Description of the blog.';
    $services_typekit = Config::get('services.typekit.writing');
    $header_classes = 'c-header--white';
    $is_header_static = true;

    // 2. Defaults Cover
    $cover_subtitle = Thinker::array_rand_value(['Subtitle 01', 'Subtitle 02']);
    $cover_classes_title_b = '';
    $cover_image = '';
    $cover_classes = '';
    $cover_active = true;

    // 3. Define Article Type
    if(isset($articles)) {
      $writing_type = 'MULTIPLE_WRITING_TYPE';
    } else if(isset($article)) {
      $writing_type = 'SINGLE_WRITING_TYPE';
    } else {
      $writing_type = 'EMPTY_TYPE';
    }

    // 4. Single Article Settings
    if ($writing_type == 'SINGLE_WRITING_TYPE') {

        // 4.1. General
        $site_title = $article->title.' — '.Config::get('settings.title');
        $og_description = Thinker::limitMarkdownText(Markdown::string($article->text), 159);
        $og_type = 'article';
        if ($article->image) {
          $og_image = $article->image;
        } else if ($article->video) {
          $og_image = Thinker::getVideoThumb($article->video);
        }

        // 4.2. Cover or not
        if ($article->image == '') {

            // 4.2.1. Article w/o cover
            $header_classes = 'c-header--relative';
            $cover_active = false;

        } else {

            // 4.2.2. Article w/ cover
            $cover_subtitle = $article->title;
            if(strlen($article->title) > 40) {
              $cover_classes_title_b = 'c-cover__title-b--small';
            }
            $cover_image = $article->image;
            $cover_classes .= 'is-faded is-fullscreen';    
        }
{'fraction_non_alphanumeric': 0.16223671013039118, 'fraction_numerical': 0.011534603811434303, 'mean_word_length': 2.1886490807354115, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '2338112', 'n_tokens_mistral': 1332, 'n_tokens_neox': 1282, 'n_words': 223}