<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TransferLibrary
{
    static class CommonHelper
    {
        public static string DelTags(string sourceStr)
        {
            string newStr = CommonHelper.DelHtmlTags(sourceStr);
            return CommonHelper.DelLinsTags(newStr);
        }


        /// <summary>
        /// 删除HTML标签
        /// </summary>
        /// <param name="sourceStr">源字符串</param>
        /// <returns>处理后字符串</returns>
        private static string DelHtmlTags(string sourceStr)
        {
            string newStr = System.Text.RegularExpressions.Regex.Replace(sourceStr, "<[^>]+>", "");
            return newStr;
        }
<commit_msg>CommonHelper Note Add<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TransferLibrary
{
    static class CommonHelper
    {
        /// <summary>
        /// 删除HTML标签以及删除字符串换行符
        /// </summary>
        /// <param name="sourceStr">源字符串</param>
        /// <returns>处理后字符串</returns>
        public static string DelTags(string sourceStr)
        {
            string newStr = CommonHelper.DelHtmlTags(sourceStr);
            return CommonHelper.DelLinsTags(newStr);
        }


        /// <summary>
        /// 删除HTML标签
        /// </summary>
        /// <param name="sourceStr">源字符串</param>
        /// <returns>处理后字符串</returns>
        private static string DelHtmlTags(string sourceStr)
        {
            string newStr = System.Text.RegularExpressions.Regex.Replace(sourceStr, "<[^>]+>", "");
            return newStr;
        }

{'fraction_non_alphanumeric': 0.12419070041200707, 'fraction_numerical': 0.0, 'mean_word_length': 2.159851301115242, 'pattern_counts': {'":': 0, '<': 23, '<?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': '101373', 'n_tokens_mistral': 495, 'n_tokens_neox': 521, 'n_words': 90}