<commit_before>using System.Globalization;
using CallMeMaybe;
using NUnit.Framework;
using System.Linq;

namespace TestMeMaybe
{
    [TestFixture]
    public class MaybeLinqTests
    {
        [Test]
        public void TestEmptySelectLinq()
        {
            var q =
                from m in Maybe.Empty<int>()
                select m;
            Assert.AreEqual("", string.Join(",", q));
        }

        [Test]
        public void TestSelectLinq()
        {
            Assert.AreEqual(1, Maybe.From(1).Single());
            Assert.AreEqual("hi", Maybe.From("hi").Single());
        }

        [Test]
        public void TestSelectManyLinq()
        {
            var q =
                (from number in Maybe.From(1)
                    from name in Maybe.From("hi")
                    select new {number, name})
                    .Single();
            Assert.AreEqual(1, q.number);
            Assert.AreEqual("hi", q.name);
        }
    }
}<commit_msg>Fixed and added some linq tests<commit_after>using System.Globalization;
using CallMeMaybe;
using NUnit.Framework;
using System.Linq;

namespace TestMeMaybe
{
    [TestFixture]
    public class MaybeLinqTests
    {
        [Test]
        public void TestEmptyStringJoin()
        {
            var q = Maybe.Empty<int>();
            Assert.AreEqual("", string.Join(",", q));
        }

        [Test]
        public void TestValuedStringJoin()
        {
            var q = Maybe.From(1).Concat(Maybe.From(2));
            Assert.AreEqual("1,2", string.Join(",", q));
        }

        [Test]
        public void TestSingleLinq()
        {
            Assert.AreEqual(1, Maybe.From(1).Single());
            Assert.AreEqual("hi", Maybe.From("hi").Single());
        }

        [Test]
        public void TestSelectManyLinq()
        {
            var q =
                (from number in Maybe.From(1)
                    from name in Maybe.From("hi")
                    select new {number, name})
                    .Single();
            Assert.AreEqual(1, q.number);
            Assert.AreEqual("hi", q.name);
        }

        [Test]
        public void TestWhereLinq()
        {
            var q =
                (from number in Maybe.From(1)
                 from name in Maybe.From("hi")
                 select new { number, name })
                    .Single();
            Assert.AreEqual(1, q.number);
            Assert.AreEqual("hi", q.name);
        }

    }
}
{'fraction_non_alphanumeric': 0.12061939690301549, 'fraction_numerical': 0.0057049714751426246, 'mean_word_length': 1.4234945705824285, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3490167', 'n_tokens_mistral': 682, 'n_tokens_neox': 674, 'n_words': 153}