package seedu.address.model.util;

import seedu.address.commons.exceptions.IllegalValueException;
import seedu.address.model.AddressBook;
import seedu.address.model.ReadOnlyAddressBook;
import seedu.address.model.tag.UniqueTagList;
import seedu.address.model.task.Deadline;
import seedu.address.model.task.Instruction;
import seedu.address.model.task.Priority;
import seedu.address.model.task.Task;
import seedu.address.model.task.Title;
import seedu.address.model.task.UniqueTaskList.DuplicateTaskException;

public class SampleDataUtil {
    public static Task[] getSampleTasks() {
        try {
            return new Task[] {
                new Task(new Title("Alex Yeoh"), new Deadline("tomorrow"), new Priority("urgent"),
                    new Instruction("Blk 30 Geylang Street 29, #06-40"),
                    new UniqueTagList("friends")),
                new Task(new Title("Bernice Yu"), new Deadline("tomorrow"), new Priority("urgent"),
                    new Instruction("Blk 30 Lorong 3 Serangoon Gardens, #07-18"),
                    new UniqueTagList("colleagues", "friends")),
                new Task(new Title("Charlotte Oliveiro"), new Deadline("tomorrow"), new Priority("urgent"),
                    new Instruction("Blk 11 Ang Mo Kio Street 74, #11-04"),
                    new UniqueTagList("neighbours")),
                new Task(new Title("David Li"), new Deadline("tomorrow"), new Priority("urgent"),
                    new Instruction("Blk 436 Serangoon Gardens Street 26, #16-43"),
                    new UniqueTagList("family")),
                new Task(new Title("Irfan Ibrahim"), new Deadline("tomorrow"), new Priority("urgent"),
                    new Instruction("Blk 47 Tampines Street 20, #17-35"),
                    new UniqueTagList("classmates")),
                new Task(new Title("Roy Balakrishnan"), new Deadline("tomorrow"), new Priority("urgent"),
                    new Instruction("Blk 45 Aljunied Street 85, #11-31"),
                    new UniqueTagList("colleagues"))
            };
        } catch (IllegalValueException e) {
            throw new AssertionError("sample data cannot be invalid", e);
        }
    }

    public static ReadOnlyAddressBook getSampleAddressBook() {
        try {
            AddressBook sampleAB = new AddressBook();
            for (Task sampleTask : getSampleTasks()) {
                sampleAB.addTask(sampleTask);
            }
            return sampleAB;
        } catch (DuplicateTaskException e) {
            throw new AssertionError("sample data cannot contain duplicate tasks", e);
        }
    }
}

@@ -663,17 +663,21 @@
 le(%22
-Alex Yeoh
+Buy groceries
 %22), 
@@ -684,38 +684,35 @@
 new Deadline(%22to
-morrow
+day
 %22), new Priority
@@ -705,38 +705,33 @@
 , new Priority(%22
-urgent
+1
 %22),%0A            
@@ -759,40 +759,34 @@
 on(%22
-Blk 30 Geylang Street 29, #06-40
+eggs x2, bread x1, milk x4
 %22),%0A
@@ -824,22 +824,21 @@
 agList(%22
-friend
+chore
 s%22)),%0A  
@@ -875,18 +875,21 @@
 le(%22
-Bernice Yu
+Fill ice tray
 %22), 
@@ -896,38 +896,44 @@
 new Deadline(%22to
-morrow
+night at 9pm
 %22), new Priority
@@ -926,38 +926,33 @@
 , new Priority(%22
-urgent
+2
 %22),%0A            
@@ -980,49 +980,65 @@
 on(%22
-Blk 30 Lorong 3 Serangoon Gardens, #07-18
+or tomorrow no coffee, no coffee no work, no work no life
 %22),%0A
@@ -1080,29 +1080,37 @@
 st(%22
-colleagues
+everyday
 %22, %22
-friends
+trivialButCanKill
 %22)),
@@ -1150,26 +1150,34 @@
 le(%22
-Charlotte Oliveiro
+Finish React Native course
 %22), 
@@ -1186,32 +1186,32 @@
 w Deadline(%22
-tomorrow
+floating
 %22), new Prio
@@ -1208,38 +1208,33 @@
 , new Priority(%22
-urgent
+3
 %22),%0A            
@@ -1262,43 +1262,38 @@
 on(%22
-Blk 11 Ang Mo Kio Street 74, #11-04
+clear section 7 and final test
 %22),%0A
@@ -1335,18 +1335,17 @@
 st(%22
-neighbours
+selfLearn
 %22)),
@@ -1385,16 +1385,21 @@
 le(%22
-David Li
+Revise CS3243
 %22), 
@@ -1408,32 +1408,30 @@
 w Deadline(%22
-tomorrow
+sunday
 %22), new Prio
@@ -1428,38 +1428,33 @@
 , new Priority(%22
-urgent
+3
 %22),%0A            
@@ -1482,51 +1482,17 @@
 on(%22
-Blk 436 Serangoon Gardens Street 26, #16-43
+lecture 9
 %22),%0A
@@ -1534,14 +1534,14 @@
 st(%22
-family
+school
 %22)),
@@ -1581,21 +1581,32 @@
 le(%22
-Irfan Ibrahim
+Finish CS2103T issues 23
 %22), 
@@ -1637,38 +1637,33 @@
 , new Priority(%22
-urgent
+5
 %22),%0A            
@@ -1691,41 +1691,27 @@
 on(%22
-Blk 47 Tampines Street 20, #17-35
+clear up for Travis
 %22),%0A
@@ -1753,18 +1753,25 @@
 st(%22
-classmates
+project%22, %22school
 %22)),
@@ -1812,23 +1812,18 @@
 e(%22R
-oy Balakrishnan
+elease v01
 %22), 
@@ -1832,32 +1832,35 @@
 w Deadline(%22
-tomorrow
+last sunday
 %22), new Prio
@@ -1869,14 +1869,10 @@
 ty(%22
-urgent
+-2
 %22),%0A
@@ -1912,41 +1912,12 @@
 on(%22
-Blk 45 Aljunied Street 85, #11-31
+done
 %22),%0A
@@ -1959,18 +1959,25 @@
 st(%22
-colleagues
+project%22, %22school
 %22))%0A

Fix sample data