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

namespace Blender
{
	public static class ConvertUtil
	{
		public static String CharArray2String(object obj)
		{
			var sb = new StringBuilder();
			object[] array = (object[])obj;
			foreach (object o in array)
			{
				char? c = (char?)o;
				if (c != '\0')
				{
					sb.Append(c);
				}
			}

			return sb.ToString();
		}

		

	}
}<commit_msg>fix bug (null terminate does not work)<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace Blender
{
	public static class ConvertUtil
	{
		public static String CharArray2String(object obj)
		{
			var sb = new StringBuilder();
			object[] array = (object[])obj;
			foreach (object o in array)
			{
				char? c = (char?)o;
				if (c == '\0')
				{
					break;
				}

				sb.Append(c);
			}

			return sb.ToString();
		}

		

	}
}
{'fraction_non_alphanumeric': 0.12664640324214793, 'fraction_numerical': 0.004052684903748734, 'mean_word_length': 2.967871485943775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3843486', 'n_tokens_mistral': 400, 'n_tokens_neox': 324, 'n_words': 91}