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

namespace System.IO
{
    static class BinaryWriterExtensions
    {
        public static void WriteString(this BinaryWriter bw, string str)
        {
            bw.Write(Encoding.ASCII.GetBytes(str));
            bw.Write((byte)0x00);
        }
    }

    static class BinaryReaderExtensions
    {
        public static string ReadStringNULDelimiter(this BinaryReader br)
        {
            List<byte> bytes = new List<byte>();
            byte read;

            while ((read = br.ReadByte()) != 0x00)
                bytes.Add(read);

            return (bytes.Count > 0 ? Encoding.ASCII.GetString(bytes.ToArray()) : "");
        }
    }
}<commit_msg>Extension name fix<commit_after>﻿using System.Collections.Generic;
using System.Text;

namespace System.IO
{
    static class BinaryWriterExtensions
    {
        public static void WriteString(this BinaryWriter bw, string str)
        {
            bw.Write(Encoding.ASCII.GetBytes(str));
            bw.Write((byte)0x00);
        }
    }

    static class BinaryReaderExtensions
    {
        public static string ReadString(this BinaryReader br)
        {
            List<byte> bytes = new List<byte>();
            byte read;

            while ((read = br.ReadByte()) != 0x00)
                bytes.Add(read);

            return (bytes.Count > 0 ? Encoding.ASCII.GetString(bytes.ToArray()) : "");
        }
    }
}
{'fraction_non_alphanumeric': 0.10766045548654245, 'fraction_numerical': 0.00966183574879227, 'mean_word_length': 2.039832285115304, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '1270735', 'n_tokens_mistral': 425, 'n_tokens_neox': 400, 'n_words': 88}