<commit_before>﻿
using System;

namespace SocialToolBox.Core.Present.Bootstrap3
{
    /// <summary>
    /// A renderer system that uses Bootstrap3 for design.
    /// </summary>
    public class PageNodeRenderer : BasicNodeRenderer
    {
        public string BootstrapCssUrl =
            "//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css";
        public string BootstrapJsUrl =
            "//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.js";

        /// <summary>
        /// Renders a wrapper around the provided body, including bootstrap
        /// code along.
        /// </summary>
        protected virtual Action<HtmlOutput> RenderHtml(string title, Action<HtmlOutput> body)
        {
            return output =>
            {
                output.AddVerbatim("<!DOCTYPE html><html><head><meta charset='utf-8'/><title>");
                output.Add(title);
                output.AddVerbatim("</title><link rel='stylesheet' href='");
                output.Add(BootstrapCssUrl);
                output.AddVerbatim("</head><body>");
                body(output);
                output.AddVerbatim("<script src='");
                output.Add(BootstrapJsUrl);
                output.AddVerbatim("'></script></body></html>");                
            };
        }

        /// <summary>
        /// The default layout includes a centered container.
        /// </summary>
        protected override Action<HtmlOutput> DefaultLayout(Action<HtmlOutput> body)<commit_msg>Fix head HTML rendering<commit_after>﻿
using System;

namespace SocialToolBox.Core.Present.Bootstrap3
{
    /// <summary>
    /// A renderer system that uses Bootstrap3 for design.
    /// </summary>
    public class PageNodeRenderer : BasicNodeRenderer
    {
        public string BootstrapCssUrl =
            "//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css";
        public string BootstrapJsUrl =
            "//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.js";

        /// <summary>
        /// Renders a wrapper around the provided body, including bootstrap
        /// code along.
        /// </summary>
        protected virtual Action<HtmlOutput> RenderHtml(string title, Action<HtmlOutput> body)
        {
            return output =>
            {
                output.AddVerbatim("<!DOCTYPE html><html><head><meta charset='utf-8'/><title>");
                output.Add(title);
                output.AddVerbatim("</title><link rel='stylesheet' href='");
                output.Add(BootstrapCssUrl);
                output.AddVerbatim("'/></head><body>");
                body(output);
                output.AddVerbatim("<script src='");
                output.Add(BootstrapJsUrl);
                output.AddVerbatim("'></script></body></html>");                
            };
        }

        /// <summary>
        /// The default layout includes a centered container.
        /// </summary>
        protected override Action<HtmlOutput> DefaultLayout(Action<HtmlOutput> body)
{'fraction_non_alphanumeric': 0.13304721030042918, 'fraction_numerical': 0.005942555298778475, 'mean_word_length': 1.8995215311004785, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 50, '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': '3016275', 'n_tokens_mistral': 822, 'n_tokens_neox': 769, 'n_words': 156}