<commit_before>﻿using System;
using System.Windows.Forms;

namespace TweetDick.Core{
    public partial class RichTextLabel : RichTextBox{
        public RichTextLabel(){
            InitializeComponent();<commit_msg>Add RichTextLabel.Wrap for default RTF text formatting<commit_after>﻿using System;
using System.Windows.Forms;

namespace TweetDick.Core{
    public partial class RichTextLabel : RichTextBox{
        /// <summary>
        /// Wraps the body of a RTF formatted string with default tags and formatting.
        /// </summary>
        public static string Wrap(string str){
            string rtf = @"{\rtf1\ansi\ansicpg1250\deff0\deflang1029{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}}";
            rtf += @"{\*\generator Msftedit 4.20.69.1337;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang1036\f0\fs20 ";
            rtf += str;
            return rtf;
        }

        public RichTextLabel(){
            InitializeComponent();
{'fraction_non_alphanumeric': 0.1090146750524109, 'fraction_numerical': 0.03878406708595388, 'mean_word_length': 2.7159533073929962, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '6052433', 'n_tokens_mistral': 305, 'n_tokens_neox': 279, 'n_words': 67}