<commit_before>// Copyright (c) <NAME>.
// Licensed under the Apache License, Version 2.0.

using System;
using Xunit;

namespace SixLabors.Fonts.Tests
{
    public class ConstructorGuards
    {
        [Fact]
        public void FontClass_DefaultFontFamilyThrowsException()
        {
            ArgumentException ex = Assert.Throws<ArgumentException>(() => new Font(default(FontFamily), 0f, FontStyle.Regular));
            Assert.Equal("family", ex.ParamName);
        }

        [Fact]
        public void FontClass_NullFontThrowsException()
        {
            ArgumentNullException ex = Assert.Throws<ArgumentNullException>(
                () => new Font(null, 0f, FontStyle.Regular));

            Assert.Equal("prototype", ex.ParamName);
        }
    }
}
<commit_msg>Update ConstructorGuards.cs<commit_after>// Copyright (c) <NAME>.
// Licensed under the Apache License, Version 2.0.

using System;
using Xunit;

namespace SixLabors.Fonts.Tests
{
    public class ConstructorGuards
    {
        [Fact]
        public void FontClass_DefaultFontFamilyThrowsException()
        {
            ArgumentException ex = Assert.Throws<ArgumentException>(
                () => new Font(default(FontFamily), FontStyle.Regular));

            Assert.Equal("family", ex.ParamName);
        }

        [Fact]
        public void FontClass_DefaultFontFamilyWithSizeThrowsException()
        {
            ArgumentException ex = Assert.Throws<ArgumentException>(
                () => new Font(default(FontFamily), 0f, FontStyle.Regular));

            Assert.Equal("family", ex.ParamName);
        }

        [Fact]
        public void FontClass_NullFontThrowsException()
        {
            ArgumentNullException ex = Assert.Throws<ArgumentNullException>(
                () => new Font(null, FontStyle.Regular));

            Assert.Equal("prototype", ex.ParamName);
        }

        [Fact]
        public void FontClass_NullWithSizeFontThrowsException()
        {
            ArgumentNullException ex = Assert.Throws<ArgumentNullException>(
                () => new Font(null, 0f, FontStyle.Regular));

            Assert.Equal("prototype", ex.ParamName);
        }
    }
}

{'fraction_non_alphanumeric': 0.10591471801925723, 'fraction_numerical': 0.0036680421824850985, 'mean_word_length': 2.341500765696784, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '7052322', 'n_tokens_mistral': 595, 'n_tokens_neox': 560, 'n_words': 117}