<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ForgetTheMilk.Controllers;

namespace ConsoleVerification
{
    class Program
    {
        private static void Main(string[] args)
        {
            var input = "Pickup the groceries";
            Console.WriteLine("Scenario: " + input);
            var task = new Task(input);
            var descriptionShouldBe = input;
            DateTime? dueDateShouldBe = null;
            if (descriptionShouldBe == task.Description
                && dueDateShouldBe == task.DueDate)
            {
                Console.WriteLine("SUCCESS");
            }
            else
            {
                Console.WriteLine("Description: " + task.Description + " should be " + descriptionShouldBe);
                Console.WriteLine("Due date: " + task.DueDate + "should be " + dueDateShouldBe);
                Console.WriteLine("ERROR");
            }
            Console.WriteLine();

            input = "Pickup the groceries may 5";
            Console.WriteLine("Scenario: " + input);
            task = new Task(input);
            dueDateShouldBe = new DateTime(DateTime.Today.Year, 5, 5);
            if (dueDateShouldBe == task.DueDate)
            {
                Console.WriteLine("SUCCESS");
            }
            else
            {
                Console.WriteLine("Due date: " + task.DueDate + "should be " + dueDateShouldBe);
                Console.WriteLine("ERROR");
            }
            Console.WriteLine();

            Console.ReadLine();
        }
    }
}
<commit_msg>extract tests into own methods<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ForgetTheMilk.Controllers;

namespace ConsoleVerification
{
    class Program
    {
        private static void Main(string[] args)
        {
            TestDescriptionAndNoDueDate();

            TestMayDueDate();

            Console.ReadLine();
        }

        private static void TestDescriptionAndNoDueDate()
        {
            var input = "Pickup the groceries";
            Console.WriteLine("Scenario: " + input);
            var task = new Task(input);
            var descriptionShouldBe = input;
            DateTime? dueDateShouldBe = null;
            if (descriptionShouldBe == task.Description
                && dueDateShouldBe == task.DueDate)
            {
                Console.WriteLine("SUCCESS");
            }
            else
            {
                Console.WriteLine("Description: " + task.Description + " should be " + descriptionShouldBe);
                Console.WriteLine("Due date: " + task.DueDate + "should be " + dueDateShouldBe);
                Console.WriteLine("ERROR");
            }
            Console.WriteLine();
        }

        private static void TestMayDueDate()
        {
            var input = "Pickup the groceries may 5";
            Console.WriteLine("Scenario: " + input);
            var task = new Task(input);
            var dueDateShouldBe = new DateTime(DateTime.Today.Year, 5, 5);
            if (dueDateShouldBe == task.DueDate)
            {
                Console.WriteLine("SUCCESS");
            }
            else
            {
                Console.WriteLine("Due date: " + task.DueDate + "should be " + dueDateShouldBe);
                Console.WriteLine("ERROR");
            }
            Console.WriteLine();
        }
    }
}

{'fraction_non_alphanumeric': 0.10049090384060064, 'fraction_numerical': 0.0017326017903551833, 'mean_word_length': 1.6282245827010622, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3390289', 'n_tokens_mistral': 882, 'n_tokens_neox': 831, 'n_words': 189}