<commit_before>using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;

using NUnit.Framework;

namespace Machine.Specifications
{
  public static class ShouldExtensionMethods
  {
    public static void ShouldBeFalse(this bool condition)
    {
      Assert.IsFalse(condition);
    }

    public static void ShouldBeTrue(this bool condition)
    {
      Assert.IsTrue(condition);
    }

    public static object ShouldEqual(this object actual, object expected)
    {
      Assert.AreEqual(expected, actual);
      return expected;
    }

    public static object ShouldNotEqual(this object actual, object expected)
    {
      Assert.AreNotEqual(expected, actual);
      return expected;
    }

    public static void ShouldBeNull(this object anObject)
    {
      Assert.IsNull(anObject);
    }

    public static void ShouldNotBeNull(this object anObject)
    {
      Assert.IsNotNull(anObject);
    }

    public static object ShouldBeTheSameAs(this object actual, object expected)
    {
      Assert.AreSame(expected, actual);
      return expected;
    }

    public static object ShouldNotBeTheSameAs(this object actual, object expected)
    {
      Assert.AreNotSame(expected, actual);
      return expected;
    }

    public static void ShouldBeOfType(this object actual, Type expected)
    {
      Assert.IsInstanceOfType(expected, actual);
    }

    public static void ShouldBeOfType<T>(this object actual)
    {
      Assert.IsInstanceOfType(typeof(T), actual);
    }

    public static void ShouldBe(this object actual, Type expected)
    {
      Assert.IsInstanceOfType(expected, actual);
    }

    public static void ShouldNotBeOfType(this object actual, Type expected)
    {
      Assert.IsNotInstanceOfType(expected, actual);
    }

    public static void ShouldContain(this IList actual, params object[] expected)
    {
      foreach (var item in expected)
      {
        Assert.Contains(item, actual);
      }
    }

    public static void ShouldNotContain(this IList collection, object expected)
    {
      CollectionAssert.DoesNotContain(collection, expected);
    }

    public static IComparable ShouldBeGreaterThan(this IComparable arg1, IComparable arg2)
    {
      Assert.Greater(arg1, arg2);
      return arg2;
    }

    public static IComparable ShouldBeLessThan(this IComparable arg1, IComparable arg2)
    {
      Assert.Less(arg1, arg2);
      return arg2;
    }

    public static void ShouldBeEmpty(this ICollection collection)
    {
      Assert.IsEmpty(collection);
    }<commit_msg>Adding ShouldContain for IEnumerable<T> to mspec extension methods<commit_after>using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;

using NUnit.Framework;

namespace Machine.Specifications
{
  public static class ShouldExtensionMethods
  {
    public static void ShouldBeFalse(this bool condition)
    {
      Assert.IsFalse(condition);
    }

    public static void ShouldBeTrue(this bool condition)
    {
      Assert.IsTrue(condition);
    }

    public static object ShouldEqual(this object actual, object expected)
    {
      Assert.AreEqual(expected, actual);
      return expected;
    }

    public static object ShouldNotEqual(this object actual, object expected)
    {
      Assert.AreNotEqual(expected, actual);
      return expected;
    }

    public static void ShouldBeNull(this object anObject)
    {
      Assert.IsNull(anObject);
    }

    public static void ShouldNotBeNull(this object anObject)
    {
      Assert.IsNotNull(anObject);
    }

    public static object ShouldBeTheSameAs(this object actual, object expected)
    {
      Assert.AreSame(expected, actual);
      return expected;
    }

    public static object ShouldNotBeTheSameAs(this object actual, object expected)
    {
      Assert.AreNotSame(expected, actual);
      return expected;
    }

    public static void ShouldBeOfType(this object actual, Type expected)
    {
      Assert.IsInstanceOfType(expected, actual);
    }

    public static void ShouldBeOfType<T>(this object actual)
    {
      Assert.IsInstanceOfType(typeof(T), actual);
    }

    public static void ShouldBe(this object actual, Type expected)
    {
      Assert.IsInstanceOfType(expected, actual);
    }

    public static void ShouldNotBeOfType(this object actual, Type expected)
    {
      Assert.IsNotInstanceOfType(expected, actual);
    }

    public static void ShouldContain(this IList actual, params object[] expected)
    {
      foreach (var item in expected)
      {
        Assert.Contains(item, actual);
      }
    }

    public static void ShouldContain<T>(this IEnumerable<T> actual, params T[] expected)
    {
      var actualList = new List<T>(actual);
      foreach (var item in expected)
      {
        Assert.Contains(item, actualList);
      }
    }

    public static void ShouldNotContain(this IList collection, object expected)
    {
      CollectionAssert.DoesNotContain(collection, expected);
    }

    public static IComparable ShouldBeGreaterThan(this IComparable arg1, IComparable arg2)
    {
      Assert.Greater(arg1, arg2);
      return arg2;
    }

    public static IComparable ShouldBeLessThan(this IComparable arg1, IComparable arg2)
    {
      Assert.Less(arg1, arg2);
      return arg2;
    }

    public static void ShouldBeEmpty(this ICollection collection)
    {
      Assert.IsEmpty(collection);
    }
{'fraction_non_alphanumeric': 0.0759215110948102, 'fraction_numerical': 0.0036677058499908306, 'mean_word_length': 3.048997772828508, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2496089', 'n_tokens_mistral': 1520, 'n_tokens_neox': 1488, 'n_words': 405}