<commit_before>using Fan.Helpers;
using Fan.Membership;
using System.Collections.Generic;
using Xunit;
namespace Fan.UnitTests.Helpers
{
    /// <summary>
    /// Test for <see cref="RegexUtilities"/> class.
    /// </summary>
    public class RegexUtilitiesTest
    {
        [Fact]
        public void RegexUtilities_Valid_Email_Address()
        {
            // list valid email addres
            string[] emailAddresses = { "<EMAIL>", "<EMAIL>",
                                  "<EMAIL>",
                                  "<EMAIL>", "<EMAIL>",
                                  "j_9@[192.168.3.11]",
                                  "<EMAIL>", "<EMAIL>",
                                   "\"j\\\"s\\\"\"<EMAIL>", "<EMAIL>" };
            // Arrange: a list of two blog post
            // Act: valid email
            var valid = true;
            foreach (var item in emailAddresses)
            {
                var result = RegexUtilities.IsValidEmail(item);
                
                if(!result)
                //if item is Invalid email address
                    valid = result;
            }
            Assert.True(valid);
            // Assert
        }

        [Fact]
        public void RegexUtilities_InValid_Email_Address()
        {
            // list valid email addres
            string[] emailAddresses = {"<EMAIL>","<EMAIL>","<EMAIL>","<EMAIL>","username"};
            // Arrange: a list of two blog post
            // Act: serialize it to bytes and back
            var valid = true;
            foreach (var item in emailAddresses)
            {
                var result = RegexUtilities.IsValidEmail(item);
                
                if(!result)
                //if item is Invalid email address
                    valid = result;
            }
            Assert.True(!valid);

            // Assert
        }
    }
}<commit_msg>remove comments<commit_after>using Fan.Helpers;
using Fan.Membership;
using System.Collections.Generic;
using Xunit;
namespace Fan.UnitTests.Helpers
{
    /// <summary>
    /// Test for <see cref="RegexUtilities"/> class.
    /// </summary>
    public class RegexUtilitiesTest
    {
        [Fact]
        public void RegexUtilities_Valid_Email_Address()
        {
            // list valid email addres
            string[] emailAddresses = { "<EMAIL>", "<EMAIL>",
                                  "<EMAIL>",
                                  "<EMAIL>", "<EMAIL>",
                                  "j_9@[192.168.3.11]",
                                  "<EMAIL>", "<EMAIL>",
                                   "\"<EMAIL>", "<EMAIL>" };
            // Act: valid email
            var valid = true;
            foreach (var item in emailAddresses)
            {
                var result = RegexUtilities.IsValidEmail(item);
                
                if(!result)
                //if item is Invalid email address
                    valid = result;
            }
            // Assert
            Assert.True(valid);
            
        }

        [Fact]
        public void RegexUtilities_InValid_Email_Address()
        {
            // list invalid email addres
            string[] emailAddresses = {"<EMAIL>","<EMAIL>","<EMAIL>","<EMAIL>","username"};

            // Act: valid email
            var valid = true;
            foreach (var item in emailAddresses)
            {
                var result = RegexUtilities.IsValidEmail(item);
                
                if(!result)
                //if item is Invalid email address
                    valid = result;
            }
            // Assert
            Assert.True(!valid);

           
        }
    }
}
{'fraction_non_alphanumeric': 0.11198695297635226, 'fraction_numerical': 0.005436259853220984, 'mean_word_length': 1.1358096343586768, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5824228', 'n_tokens_mistral': 935, 'n_tokens_neox': 906, 'n_words': 221}