<commit_before>// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Collection.cs" company="<NAME>">
//    2014 - Refer to the License.md for the project.
// </copyright>
// <summary>
//  Integration for the Collection request.
//  <see cref="Request"/> for the request code.
//  <see cref="Return"/> for the returned object.
//  <see cref="Item"/> for the specific items returned.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace BGGAPI_UnitTests.Integration
{
    using BGGAPI;
    using BGGAPI.Collection;

    using Microsoft.VisualStudio.TestTools.UnitTesting;

    /// <summary>
    /// Integration for the Collection request.
    /// <see cref="Request"/> for the request code.
    /// <see cref="Return"/> for the returned object.
    /// <see cref="Item"/> for the specific items returned.
    /// </summary>
    [TestClass]
    public class Collection
    {
        /// <summary>
        /// Gets or sets the collection.
        /// </summary>
        public static Return CollectionReturn { get; set; }

        /// <summary>
        /// Gets or sets the test context which provides
        /// information about and functionality for the current test run.
        /// </summary>
        public TestContext TestContext { get; set; }

        /// <summary>
        /// The setup.
        /// </summary>
        /// <param name="testContext">
        /// The test context.
        /// </param>
        [ClassInitialize]
        public static void Setup(TestContext testContext)
        {
            var client = new Client();
            var collectionRequest = new Request { UserName = "tysonjhayes" };
            CollectionReturn = client.GetCollection(collectionRequest);
        }

        /// <summary>
        /// The collection returns more then zero.
        /// </summary>
        [TestMethod]
        public void CollectionReturnsMoreThenZero()
        {
            Assert.IsTrue(CollectionReturn.TotalItems > 0);
        }

        /// <summary>
        /// The collection name is not null.
        /// </summary>
        [TestMethod]
        public void CollectionNameIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].Name);
        }

        /// <summary>
        /// The collection year is not null.
        /// </summary>
        [TestMethod]
        public void CollectionYearIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].YearPublished);
        }

        /// <summary>
        /// The collection image is not null.
        /// </summary>
        [TestMethod]
        public void CollectionImageIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].Image);
        }

        /// <summary>
        /// The collection thumbnail is not null.
        /// </summary>
        [TestMethod]
        public void CollectionThumbnailIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].Thumbnail);
        }

        /// <summary>
        /// The collection number of plays is not null.
        /// </summary>
        [TestMethod]
        public void CollectionNumPlaysIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].NumPlays);
        }

        /// <summary>
        /// The collection status is not null.
        /// </summary>
        [TestMethod]
        public void CollectionStatusIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].Status);
        }

        /// <summary>
        /// The collection status own is not null.
        /// </summary>
        [TestMethod]
        public void CollectionStatusOwnIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].Status.Own);
        }

        /// <summary>
        /// The collection status previously owned is not null.
        /// </summary>
        [TestMethod]
        public void CollectionStatusPrevOwnedIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].Status.PreviouslyOwned);
        }

        /// <summary>
        /// The collection status for trade is not null.
        /// </summary>
        [TestMethod]
        public void CollectionStatusForTradeIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].Status.ForTrade);
        }
    }
}
<commit_msg>Naming Collection testing better.<commit_after>// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Collection.cs" company="<NAME>">
//    2014 - Refer to the License.md for the project.
// </copyright>
// <summary>
//  Integration for the Collection request.
//  <see cref="Request"/> for the request code.
//  <see cref="Return"/> for the returned object.
//  <see cref="Item"/> for the specific items returned.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace BGGAPI_UnitTests.Integration
{
    using BGGAPI;
    using BGGAPI.Collection;

    using Microsoft.VisualStudio.TestTools.UnitTesting;

    /// <summary>
    /// Integration for the Collection request.
    /// <see cref="Request"/> for the request code.
    /// <see cref="Return"/> for the returned object.
    /// <see cref="Item"/> for the specific items returned.
    /// </summary>
    [TestClass]
    public class Collection
    {
        /// <summary>
        /// Gets or sets the collection.
        /// </summary>
        public static Return CollectionReturn { get; set; }

        /// <summary>
        /// Gets or sets the test context which provides
        /// information about and functionality for the current test run.
        /// </summary>
        public TestContext TestContext { get; set; }

        /// <summary>
        /// The setup.
        /// </summary>
        /// <param name="testContext">
        /// The test context.
        /// </param>
        [ClassInitialize]
        public static void Setup(TestContext testContext)
        {
            var client = new Client();
            var collectionRequest = new Request { UserName = "tysonjhayes" };
            CollectionReturn = client.GetCollection(collectionRequest);
        }

        /// <summary>
        /// The collection returns more then zero.
        /// </summary>
        [TestMethod]
        public void IntegrationCollectionReturnsMoreThenZero()
        {
            Assert.IsTrue(CollectionReturn.TotalItems > 0);
        }

        /// <summary>
        /// The collection name is not null.
        /// </summary>
        [TestMethod]
        public void IntegrationCollectionNameIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].Name);
        }

        /// <summary>
        /// The collection year is not null.
        /// </summary>
        [TestMethod]
        public void IntegrationCollectionYearIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].YearPublished);
        }

        /// <summary>
        /// The collection image is not null.
        /// </summary>
        [TestMethod]
        public void IntegrationCollectionImageIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].Image);
        }

        /// <summary>
        /// The collection thumbnail is not null.
        /// </summary>
        [TestMethod]
        public void IntegrationCollectionThumbnailIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].Thumbnail);
        }

        /// <summary>
        /// The collection number of plays is not null.
        /// </summary>
        [TestMethod]
        public void IntegrationCollectionNumPlaysIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].NumPlays);
        }

        /// <summary>
        /// The collection status is not null.
        /// </summary>
        [TestMethod]
        public void IntegrationCollectionStatusIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].Status);
        }

        /// <summary>
        /// The collection status own is not null.
        /// </summary>
        [TestMethod]
        public void IntegrationCollectionStatusOwnIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].Status.Own);
        }

        /// <summary>
        /// The collection status previously owned is not null.
        /// </summary>
        [TestMethod]
        public void IntegrationCollectionStatusPrevOwnedIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].Status.PreviouslyOwned);
        }

        /// <summary>
        /// The collection status for trade is not null.
        /// </summary>
        [TestMethod]
        public void IntegrationCollectionStatusForTradeIsNotNull()
        {
            Assert.IsNotNull(CollectionReturn.Items[0].Status.ForTrade);
        }
    }
}

{'fraction_non_alphanumeric': 0.16013281919451586, 'fraction_numerical': 0.0029991431019708655, 'mean_word_length': 1.387368959345436, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 87, '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': '4639871', 'n_tokens_mistral': 2219, 'n_tokens_neox': 2149, 'n_words': 563}