<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace PhantomNet
{
    public class TagProcessor
    {
        public string ProcessTagsForSaving(IEnumerable<string> tags)
        {
            return tags == null || tags.Select(x => x.Trim()).Count() == 0 ? null : $"\n{string.Join("\n", tags.Select(x => x.Trim()))}\n";
        }

        public IEnumerable<string> ProcessTagsForEditting(string tags)
        {
            return (string.IsNullOrWhiteSpace(tags) ? string.Empty : tags).Split(new char[] { '\n' }, StringSplitOptions.RemoveEmptyEntries);
        }
<commit_msg>ProcessTagsForSaving<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace PhantomNet
{
    public class TagProcessor
    {
        public string ProcessTagsForSaving(IEnumerable<string> tags)
        {
            return tags == null || tags.Select(x => x).Count() == 0 ? null : $"\n{string.Join("\n", tags.Select(x => x))}\n";
        }

        public IEnumerable<string> ProcessTagsForEditting(string tags)
        {
            return (string.IsNullOrWhiteSpace(tags) ? string.Empty : tags).Split(new char[] { '\n' }, StringSplitOptions.RemoveEmptyEntries);
        }

{'fraction_non_alphanumeric': 0.13669650122050447, 'fraction_numerical': 0.0016273393002441008, 'mean_word_length': 3.0594059405940595, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '5377737', 'n_tokens_mistral': 359, 'n_tokens_neox': 354, 'n_words': 72}