<commit_before>using System;
using Xunit;

namespace AudioWorks.Extensions.Tests
{
    public sealed class SampleBufferTests
    {
        [Fact(DisplayName = "SampleBuffer.Empty returns an empty SampleBuffer")]
        public void SampleBufferEmptyReturnsEmpty()
        {
            Assert.Equal(0, SampleBuffer.Empty.Frames);<commit_msg>Added integer overflow test.<commit_after>using System;
using Xunit;

namespace AudioWorks.Extensions.Tests
{
    public sealed class SampleBufferTests
    {
        [Fact(DisplayName = "SampleBuffer.Empty returns an empty SampleBuffer")]
        public void SampleBufferEmptyReturnsEmpty()
        {
            Assert.Equal(0, SampleBuffer.Empty.Frames);
        }

        [Fact(DisplayName = "32-bit integers don't overflow")]
        public void IntegersDontOverflow()
        {
            var inSamples = new[] { int.MaxValue, int.MinValue };

            var outSamples = new int[inSamples.Length];
            new SampleBuffer(inSamples, 32).CopyToInterleaved(outSamples, 32);

            Assert.True(true);
{'fraction_non_alphanumeric': 0.0888468809073724, 'fraction_numerical': 0.007561436672967864, 'mean_word_length': 2.879120879120879, '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': '1462894', 'n_tokens_mistral': 290, 'n_tokens_neox': 269, 'n_words': 66}