<commit_before>﻿using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Glimpse.Server.Internal.Extensions
{
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static class JsonStringExtensions
    {
        public static string ToJsonArray(this IEnumerable<string> jsonStringCollection)
        {
            var sb = new StringBuilder("[");
            sb.Append(string.Join(",", jsonStringCollection));
            sb.Append("]");
            return sb.ToString();
        }<commit_msg>Don't allow enumerable to be changed.<commit_after>﻿using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Glimpse.Server.Internal.Extensions
{
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static class JsonStringExtensions
    {
        public static string ToJsonArray(this IEnumerable<string> jsonStringCollection)
        {
            var sb = new StringBuilder("[");
            sb.Append(string.Join(",", jsonStringCollection.ToArray()));
            sb.Append("]");
            return sb.ToString();
        }
{'fraction_non_alphanumeric': 0.10577777777777778, 'fraction_numerical': 0.0, 'mean_word_length': 3.1858736059479553, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5450505', 'n_tokens_mistral': 284, 'n_tokens_neox': 290, 'n_words': 63}