<commit_before>using System;
using Xunit;
using System.IO;

namespace Pfim.Tests
{
    public class HashTests
    {
        [Fact]
        public void TranslateIdentity()
        {
            byte[] buf = {1, 2, 3, 4, 5};
            var mem = new MemoryStream();
            var actual = Util.Translate(mem, buf, 0);
            Assert.Equal(5, actual);
        }

        [Fact]
        public void TranslateByteFromStream()
        {
            byte[] buf = {1, 2, 3, 4, 5};
            var mem = new MemoryStream(new byte[] {100});
            var actual = Util.Translate(mem, buf, 1);
            Assert.Equal(5, actual);
            Assert.Equal(new byte[] {2, 3, 4, 5, 100}, buf);
        }

        [Fact]
        public void TranslateByteFromStreamButNoByteToGive()
        {
            byte[] buf = {1, 2, 3, 4, 5};
            var mem = new MemoryStream();
            var actual = Util.Translate(mem, buf, 1);<commit_msg>Rename test class appropriate<commit_after>using System;
using Xunit;
using System.IO;

namespace Pfim.Tests
{
    public class PfimTests
    {
        [Fact]
        public void TranslateIdentity()
        {
            byte[] buf = {1, 2, 3, 4, 5};
            var mem = new MemoryStream();
            var actual = Util.Translate(mem, buf, 0);
            Assert.Equal(5, actual);
        }

        [Fact]
        public void TranslateByteFromStream()
        {
            byte[] buf = {1, 2, 3, 4, 5};
            var mem = new MemoryStream(new byte[] {100});
            var actual = Util.Translate(mem, buf, 1);
            Assert.Equal(5, actual);
            Assert.Equal(new byte[] {2, 3, 4, 5, 100}, buf);
        }

        [Fact]
        public void TranslateByteFromStreamButNoByteToGive()
        {
            byte[] buf = {1, 2, 3, 4, 5};
            var mem = new MemoryStream();
            var actual = Util.Translate(mem, buf, 1);
{'fraction_non_alphanumeric': 0.1239406779661017, 'fraction_numerical': 0.03177966101694915, 'mean_word_length': 1.6756373937677054, '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': '6169365', 'n_tokens_mistral': 612, 'n_tokens_neox': 559, 'n_words': 172}