<commit_before>unit uWordCountTests;

interface
uses
  System.Generics.Collections, DUnitX.TestFramework;
  
const
  CanonicalVersion = '1.2.0';  

type

  [TestFixture]
  WordCountTests = class(TObject)
  private
    procedure CompareDictionaries(Expected, Actual: TDictionary<String, integer>);
  public
    [Test]
    procedure Validate_CompareDictionaries;
	
    [Test]
    // [Ignore('Comment the "[Ignore]" statement to run the test')]
    procedure Count_one_word;<commit_msg>Word Count: add Setup and TearDown methods<commit_after>unit uWordCountTests;

interface
uses
  System.Generics.Collections, DUnitX.TestFramework;

const
  CanonicalVersion = '1.3.0';

type

  [TestFixture]
  WordCountTests = class(TObject)
  private
    Expected,
    Actual: TDictionary<String, integer>;
    procedure CompareDictionaries(Expected, Actual: TDictionary<String, integer>);
  public
    [Setup]
    procedure Setup;

    [TearDown]
    procedure TearDown;

    [Test]
    procedure Validate_CompareDictionaries;

    [Test]
//    [Ignore('Comment the "[Ignore]" statement to run the test')]
    procedure Count_one_word;
{'fraction_non_alphanumeric': 0.0938337801608579, 'fraction_numerical': 0.005361930294906166, 'mean_word_length': 4.209302325581396, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '5923600', 'n_tokens_mistral': 356, 'n_tokens_neox': 340, 'n_words': 83}