From 52ada81ec0eb72c2025a18d2d83a1bd57aab5dc2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 10 Feb 2024 00:30:44 +0000 Subject: [PATCH] Rebuild pages at c4811e71b5a323c5f8567c2ece35bac25b1ae2fd --- Aak242_ip_master/authorship.json | 2 +- Aak242_ip_master/commits.json | 2 +- ChinYanXu_ip_master/authorship.json | 2 +- ChinYanXu_ip_master/commits.json | 2 +- Ijaaz01_ip_master/authorship.json | 2 +- Ijaaz01_ip_master/commits.json | 2 +- Joellimjr_ip_master/authorship.json | 2 +- Joellimjr_ip_master/commits.json | 2 +- Kishen271828_ip_master/authorship.json | 2 +- Kishen271828_ip_master/commits.json | 2 +- LuoYu-uwu_ip_master/authorship.json | 2 +- LuoYu-uwu_ip_master/commits.json | 2 +- NGXZS_ip_master/commits.json | 2 +- OKW32_ip_master/authorship.json | 2 +- OKW32_ip_master/commits.json | 2 +- Praneet-25_ip_master/authorship.json | 2 +- Praneet-25_ip_master/commits.json | 2 +- YoengKokLeong_ip_master/authorship.json | 2 +- YoengKokLeong_ip_master/commits.json | 2 +- Zhengwinter_ip_master/authorship.json | 2 +- Zhengwinter_ip_master/commits.json | 2 +- archive.zip | Bin 807543 -> 825271 bytes hwc0419_ip_master/authorship.json | 2 +- hwc0419_ip_master/commits.json | 2 +- leongxingyu_ip_master/authorship.json | 2 +- leongxingyu_ip_master/commits.json | 2 +- nyh3_ip_master/authorship.json | 2 +- nyh3_ip_master/commits.json | 2 +- reposense-logs/reposense.log.0 | 5342 +++++++++++------------ rexyyong_ip_master/authorship.json | 2 +- rexyyong_ip_master/commits.json | 2 +- summary.json | 2 +- wenenhoe_ip_master/authorship.json | 2 +- wenenhoe_ip_master/commits.json | 2 +- 34 files changed, 2703 insertions(+), 2703 deletions(-) diff --git a/Aak242_ip_master/authorship.json b/Aak242_ip_master/authorship.json index 749ade7a..354949b4 100644 --- a/Aak242_ip_master/authorship.json +++ b/Aak242_ip_master/authorship.json @@ -1 +1 @@ -[{"path":"src/main/java/Deadline.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Aak242"},"content":"public class Deadline extends Task {","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":3,"author":{"gitId":"Aak242"},"content":" protected String deadlineDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":4,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":5,"author":{"gitId":"Aak242"},"content":" public Deadline(String description) {","lastModifiedDate":"2024-02-08"},{"lineNumber":6,"author":{"gitId":"Aak242"},"content":" super(description);","lastModifiedDate":"2024-02-08"},{"lineNumber":7,"author":{"gitId":"Aak242"},"content":" taskType \u003d \"D\";","lastModifiedDate":"2024-02-08"},{"lineNumber":8,"author":{"gitId":"Aak242"},"content":" int indexOfDivider \u003d description.indexOf(\"/\");","lastModifiedDate":"2024-02-08"},{"lineNumber":9,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":10,"author":{"gitId":"Aak242"},"content":" if (indexOfDivider \u003d\u003d -1) {","lastModifiedDate":"2024-02-08"},{"lineNumber":11,"author":{"gitId":"Aak242"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-08"},{"lineNumber":12,"author":{"gitId":"Aak242"},"content":" setDeadlineDate(null);","lastModifiedDate":"2024-02-08"},{"lineNumber":13,"author":{"gitId":"Aak242"},"content":" } else {","lastModifiedDate":"2024-02-08"},{"lineNumber":14,"author":{"gitId":"Aak242"},"content":" String endDate \u003d description.substring(indexOfDivider + 4);","lastModifiedDate":"2024-02-08"},{"lineNumber":15,"author":{"gitId":"Aak242"},"content":" String descriptionWithoutDate \u003d description.substring(0, (indexOfDivider - 1)).replace(\"deadline\", \"\");","lastModifiedDate":"2024-02-08"},{"lineNumber":16,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":17,"author":{"gitId":"Aak242"},"content":" setDeadlineDate(endDate);","lastModifiedDate":"2024-02-08"},{"lineNumber":18,"author":{"gitId":"Aak242"},"content":" this.description \u003d descriptionWithoutDate + \" (by: \" + getDeadlineDate() + \")\";","lastModifiedDate":"2024-02-08"},{"lineNumber":19,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":20,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":21,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":22,"author":{"gitId":"Aak242"},"content":" public String getDeadlineDate() {","lastModifiedDate":"2024-02-08"},{"lineNumber":23,"author":{"gitId":"Aak242"},"content":" return deadlineDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":24,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":25,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":26,"author":{"gitId":"Aak242"},"content":" public void setDeadlineDate(String deadlineDate) {","lastModifiedDate":"2024-02-08"},{"lineNumber":27,"author":{"gitId":"Aak242"},"content":" this.deadlineDate \u003d deadlineDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":28,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":29,"author":{"gitId":"Aak242"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Aak242":29}},{"path":"src/main/java/Event.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Aak242"},"content":"public class Event extends Task {","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":3,"author":{"gitId":"Aak242"},"content":" protected String startDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":4,"author":{"gitId":"Aak242"},"content":" protected String endDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":5,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":6,"author":{"gitId":"Aak242"},"content":" public Event(String description) {","lastModifiedDate":"2024-02-08"},{"lineNumber":7,"author":{"gitId":"Aak242"},"content":" super(description);","lastModifiedDate":"2024-02-08"},{"lineNumber":8,"author":{"gitId":"Aak242"},"content":" taskType \u003d \"E\";","lastModifiedDate":"2024-02-08"},{"lineNumber":9,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":10,"author":{"gitId":"Aak242"},"content":" int indexOfFromDivider \u003d description.indexOf(\"/\");","lastModifiedDate":"2024-02-08"},{"lineNumber":11,"author":{"gitId":"Aak242"},"content":" int indexOfToDivider \u003d description.lastIndexOf(\"/\");","lastModifiedDate":"2024-02-08"},{"lineNumber":12,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":13,"author":{"gitId":"Aak242"},"content":" setStartDate(description.substring(indexOfFromDivider + 6, indexOfToDivider - 1));","lastModifiedDate":"2024-02-08"},{"lineNumber":14,"author":{"gitId":"Aak242"},"content":" setEndDate(description.substring(indexOfToDivider + 4));","lastModifiedDate":"2024-02-08"},{"lineNumber":15,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":16,"author":{"gitId":"Aak242"},"content":" if (indexOfFromDivider \u003d\u003d -1) {","lastModifiedDate":"2024-02-08"},{"lineNumber":17,"author":{"gitId":"Aak242"},"content":" setStartDate(null);","lastModifiedDate":"2024-02-08"},{"lineNumber":18,"author":{"gitId":"Aak242"},"content":" } else if (indexOfToDivider \u003d\u003d -1) {","lastModifiedDate":"2024-02-08"},{"lineNumber":19,"author":{"gitId":"Aak242"},"content":" setEndDate(null);","lastModifiedDate":"2024-02-08"},{"lineNumber":20,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":21,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":22,"author":{"gitId":"Aak242"},"content":" String descriptionWithoutDate \u003d description.substring(0, (indexOfFromDivider - 1)).replace(\"event\", \"\");","lastModifiedDate":"2024-02-08"},{"lineNumber":23,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":24,"author":{"gitId":"Aak242"},"content":" this.description \u003d descriptionWithoutDate + \" from: \" + getStartDate() + \" to: \" + getEndDate() + \")\";","lastModifiedDate":"2024-02-08"},{"lineNumber":25,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":26,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":27,"author":{"gitId":"Aak242"},"content":" public String getStartDate() {","lastModifiedDate":"2024-02-08"},{"lineNumber":28,"author":{"gitId":"Aak242"},"content":" return startDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":29,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":30,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":31,"author":{"gitId":"Aak242"},"content":" public void setStartDate(String startDate) {","lastModifiedDate":"2024-02-08"},{"lineNumber":32,"author":{"gitId":"Aak242"},"content":" this.startDate \u003d startDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":33,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":34,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":35,"author":{"gitId":"Aak242"},"content":" public String getEndDate() {","lastModifiedDate":"2024-02-08"},{"lineNumber":36,"author":{"gitId":"Aak242"},"content":" return endDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":37,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":38,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":39,"author":{"gitId":"Aak242"},"content":" public void setEndDate(String endDate) {","lastModifiedDate":"2024-02-08"},{"lineNumber":40,"author":{"gitId":"Aak242"},"content":" this.endDate \u003d endDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":41,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":42,"author":{"gitId":"Aak242"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Aak242":42}},{"path":"src/main/java/Mavis.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Aak242"},"content":"import java.util.Arrays;","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Aak242"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-08"},{"lineNumber":3,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":4,"author":{"gitId":"Aak242"},"content":"public class Mavis {","lastModifiedDate":"2024-02-08"},{"lineNumber":5,"author":{"gitId":"Aak242"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-02-08"},{"lineNumber":6,"author":{"gitId":"Aak242"},"content":" final String LOGO \u003d \" z$$$$P\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":7,"author":{"gitId":"Aak242"},"content":" \" d$$$$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":8,"author":{"gitId":"Aak242"},"content":" \" .$$$$$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":9,"author":{"gitId":"Aak242"},"content":" \" z$$$$$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":10,"author":{"gitId":"Aak242"},"content":" \" z$$$$P\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":11,"author":{"gitId":"Aak242"},"content":" \" d$$$$$$$$$$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":12,"author":{"gitId":"Aak242"},"content":" \" *******$$$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":13,"author":{"gitId":"Aak242"},"content":" \" .$$$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":14,"author":{"gitId":"Aak242"},"content":" \" .$$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":15,"author":{"gitId":"Aak242"},"content":" \" 4$P\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":16,"author":{"gitId":"Aak242"},"content":" \" z$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":17,"author":{"gitId":"Aak242"},"content":" \" zP\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":18,"author":{"gitId":"Aak242"},"content":" \" z\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":19,"author":{"gitId":"Aak242"},"content":" \" / \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":20,"author":{"gitId":"Aak242"},"content":" \" ^ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":21,"author":{"gitId":"Aak242"},"content":" \" ___ ___ ___ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":22,"author":{"gitId":"Aak242"},"content":" \" /__/\\\\ / /\\\\ ___ ___ / /\\\\ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":23,"author":{"gitId":"Aak242"},"content":" \" | |::\\\\ / /::\\\\ /__/\\\\ / /\\\\ / /:/_ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":24,"author":{"gitId":"Aak242"},"content":" \" | |:|:\\\\ / /:/\\\\:\\\\ \\\\ \\\\:\\\\ / /:/ / /:/ /\\\\ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":25,"author":{"gitId":"Aak242"},"content":" \" __|__|:|\\\\:\\\\ / /:/~/::\\\\ \\\\ \\\\:\\\\ /__/::\\\\ / /:/ /::\\\\ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":26,"author":{"gitId":"Aak242"},"content":" \" /__/::::| \\\\:\\\\ /__/:/ /:/\\\\:\\\\ ___ \\\\__\\\\:\\\\ \\\\__\\\\/\\\\:\\\\__ /__/:/ /:/\\\\:\\\\\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":27,"author":{"gitId":"Aak242"},"content":" \" \\\\ \\\\:\\\\~~\\\\__\\\\/ \\\\ \\\\:\\\\/:/__\\\\/ /__/\\\\ | |:| \\\\ \\\\:\\\\/\\\\ \\\\ \\\\:\\\\/:/~/:/\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":28,"author":{"gitId":"Aak242"},"content":" \" \\\\ \\\\:\\\\ \\\\ \\\\::/ \\\\ \\\\:\\\\| |:| \\\\__\\\\::/ \\\\ \\\\::/ /:/ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":29,"author":{"gitId":"Aak242"},"content":" \" \\\\ \\\\:\\\\ \\\\ \\\\:\\\\ \\\\ \\\\:\\\\__|:| /__/:/ \\\\__\\\\/ /:/ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":30,"author":{"gitId":"Aak242"},"content":" \" \\\\ \\\\:\\\\ \\\\ \\\\:\\\\ \\\\__\\\\::::/ \\\\__\\\\/ /__/:/ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":31,"author":{"gitId":"Aak242"},"content":" \" \\\\__\\\\/ \\\\__\\\\/ ~~~~ \\\\__\\\\/ \";","lastModifiedDate":"2024-02-08"},{"lineNumber":32,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":33,"author":{"gitId":"Aak242"},"content":" Task[] listOfTasks \u003d new Task[100];","lastModifiedDate":"2024-02-08"},{"lineNumber":34,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":35,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Hello from\\n\" + LOGO);","lastModifiedDate":"2024-02-08"},{"lineNumber":36,"author":{"gitId":"Aak242"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":37,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Hello! I\u0027m Mavis!\");","lastModifiedDate":"2024-02-08"},{"lineNumber":38,"author":{"gitId":"Aak242"},"content":" System.out.println(\"What can I do for you?\\n\");","lastModifiedDate":"2024-02-08"},{"lineNumber":39,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":40,"author":{"gitId":"Aak242"},"content":" //String to store the input entered by the user","lastModifiedDate":"2024-02-08"},{"lineNumber":41,"author":{"gitId":"Aak242"},"content":" String inputToEcho;","lastModifiedDate":"2024-02-08"},{"lineNumber":42,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":43,"author":{"gitId":"Aak242"},"content":" //This variable stores the current number of tasks added","lastModifiedDate":"2024-02-08"},{"lineNumber":44,"author":{"gitId":"Aak242"},"content":" // and also uses it to place a new task in the next available spot.","lastModifiedDate":"2024-02-08"},{"lineNumber":45,"author":{"gitId":"Aak242"},"content":" int listOfTasksSize \u003d 0;","lastModifiedDate":"2024-02-08"},{"lineNumber":46,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":47,"author":{"gitId":"Aak242"},"content":" Scanner in \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-08"},{"lineNumber":48,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":49,"author":{"gitId":"Aak242"},"content":" while(true) {","lastModifiedDate":"2024-02-08"},{"lineNumber":50,"author":{"gitId":"Aak242"},"content":" inputToEcho \u003d in.nextLine();","lastModifiedDate":"2024-02-08"},{"lineNumber":51,"author":{"gitId":"Aak242"},"content":" String[] splitInput \u003d inputToEcho.split(\" \");","lastModifiedDate":"2024-02-08"},{"lineNumber":52,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":53,"author":{"gitId":"Aak242"},"content":" if (inputToEcho.equals(\"bye\")) {","lastModifiedDate":"2024-02-08"},{"lineNumber":54,"author":{"gitId":"Aak242"},"content":" break;","lastModifiedDate":"2024-02-08"},{"lineNumber":55,"author":{"gitId":"Aak242"},"content":" } else if (inputToEcho.equals(\"list\")) {","lastModifiedDate":"2024-02-08"},{"lineNumber":56,"author":{"gitId":"Aak242"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":57,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Here are the tasks in your list: \");","lastModifiedDate":"2024-02-08"},{"lineNumber":58,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":59,"author":{"gitId":"Aak242"},"content":" for (int i \u003d 0; (listOfTasks[i] !\u003d null); i++) {","lastModifiedDate":"2024-02-08"},{"lineNumber":60,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":61,"author":{"gitId":"Aak242"},"content":" listTask(i, listOfTasks[i]);","lastModifiedDate":"2024-02-08"},{"lineNumber":62,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":63,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":64,"author":{"gitId":"Aak242"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":65,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":66,"author":{"gitId":"Aak242"},"content":" } else if (inputToEcho.startsWith(\"mark\")) {","lastModifiedDate":"2024-02-08"},{"lineNumber":67,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":68,"author":{"gitId":"Aak242"},"content":" //Extract the index of the task the user wishes to mark","lastModifiedDate":"2024-02-08"},{"lineNumber":69,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":70,"author":{"gitId":"Aak242"},"content":" int taskIndex \u003d Integer.parseInt(splitInput[1]) - 1;","lastModifiedDate":"2024-02-08"},{"lineNumber":71,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":72,"author":{"gitId":"Aak242"},"content":" listOfTasks[taskIndex].markAsCompleted();","lastModifiedDate":"2024-02-08"},{"lineNumber":73,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":74,"author":{"gitId":"Aak242"},"content":" System.out.println(\"As you wish, good sir. Here is the task you just marked as completed:\");","lastModifiedDate":"2024-02-08"},{"lineNumber":75,"author":{"gitId":"Aak242"},"content":" listTask(taskIndex, listOfTasks[taskIndex]);","lastModifiedDate":"2024-02-08"},{"lineNumber":76,"author":{"gitId":"Aak242"},"content":" } else if (inputToEcho.startsWith(\"unmark\")) {","lastModifiedDate":"2024-02-08"},{"lineNumber":77,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":78,"author":{"gitId":"Aak242"},"content":" //Extract the index of the task the user wishes to mark","lastModifiedDate":"2024-02-08"},{"lineNumber":79,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":80,"author":{"gitId":"Aak242"},"content":" int taskIndex \u003d Integer.parseInt(splitInput[1]) - 1;","lastModifiedDate":"2024-02-08"},{"lineNumber":81,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":82,"author":{"gitId":"Aak242"},"content":" listOfTasks[taskIndex].markAsNotCompleted();","lastModifiedDate":"2024-02-08"},{"lineNumber":83,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":84,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Reversing the flow of space and time to undo the task...\");","lastModifiedDate":"2024-02-08"},{"lineNumber":85,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Here is the task you just marked as not completed:\");","lastModifiedDate":"2024-02-08"},{"lineNumber":86,"author":{"gitId":"Aak242"},"content":" listTask(taskIndex, listOfTasks[taskIndex]);","lastModifiedDate":"2024-02-08"},{"lineNumber":87,"author":{"gitId":"Aak242"},"content":" } else if (inputToEcho.startsWith(\"todo\")){","lastModifiedDate":"2024-02-08"},{"lineNumber":88,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":89,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":90,"author":{"gitId":"Aak242"},"content":" listOfTasks[listOfTasksSize] \u003d new ToDo(inputToEcho);","lastModifiedDate":"2024-02-08"},{"lineNumber":91,"author":{"gitId":"Aak242"},"content":" listOfTasksSize +\u003d 1;","lastModifiedDate":"2024-02-08"},{"lineNumber":92,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":93,"author":{"gitId":"Aak242"},"content":" showNewlyAddedTask(listOfTasks[listOfTasksSize - 1], listOfTasksSize);","lastModifiedDate":"2024-02-08"},{"lineNumber":94,"author":{"gitId":"Aak242"},"content":" } else if (inputToEcho.startsWith(\"deadline\")) {","lastModifiedDate":"2024-02-08"},{"lineNumber":95,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":96,"author":{"gitId":"Aak242"},"content":" listOfTasks[listOfTasksSize] \u003d new Deadline(inputToEcho);","lastModifiedDate":"2024-02-08"},{"lineNumber":97,"author":{"gitId":"Aak242"},"content":" listOfTasksSize +\u003d 1;","lastModifiedDate":"2024-02-08"},{"lineNumber":98,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":99,"author":{"gitId":"Aak242"},"content":" showNewlyAddedTask(listOfTasks[listOfTasksSize - 1], listOfTasksSize);","lastModifiedDate":"2024-02-08"},{"lineNumber":100,"author":{"gitId":"Aak242"},"content":" } else if (inputToEcho.startsWith(\"event\")) {","lastModifiedDate":"2024-02-08"},{"lineNumber":101,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":102,"author":{"gitId":"Aak242"},"content":" listOfTasks[listOfTasksSize] \u003d new Event(inputToEcho);","lastModifiedDate":"2024-02-08"},{"lineNumber":103,"author":{"gitId":"Aak242"},"content":" listOfTasksSize +\u003d 1;","lastModifiedDate":"2024-02-08"},{"lineNumber":104,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":105,"author":{"gitId":"Aak242"},"content":" showNewlyAddedTask(listOfTasks[listOfTasksSize - 1], listOfTasksSize);","lastModifiedDate":"2024-02-08"},{"lineNumber":106,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":107,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":108,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":109,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":110,"author":{"gitId":"Aak242"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":111,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Bye. Hope to see you again soon!\");","lastModifiedDate":"2024-02-08"},{"lineNumber":112,"author":{"gitId":"Aak242"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":113,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":114,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":115,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":116,"author":{"gitId":"Aak242"},"content":" public static void listTask(int currentTaskIndex, Task currentTask) {","lastModifiedDate":"2024-02-08"},{"lineNumber":117,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":118,"author":{"gitId":"Aak242"},"content":" System.out.println(\"[\" + currentTask.taskType + \"]\" + \"[\" + currentTask.getStatusIcon() + \"] \" + (currentTaskIndex + 1) + \". \" + currentTask.description);","lastModifiedDate":"2024-02-08"},{"lineNumber":119,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":120,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":121,"author":{"gitId":"Aak242"},"content":" public static void showNewlyAddedTask(Task newTask, int currentNumberOfTasks) {","lastModifiedDate":"2024-02-08"},{"lineNumber":122,"author":{"gitId":"Aak242"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":123,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Alright, you\u0027ve added this new task: \");","lastModifiedDate":"2024-02-08"},{"lineNumber":124,"author":{"gitId":"Aak242"},"content":" System.out.println(\"[\" + newTask.taskType + \"]\" + \"[\" + newTask.getStatusIcon() + \"]\" + newTask.description);","lastModifiedDate":"2024-02-08"},{"lineNumber":125,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Now you have \" + currentNumberOfTasks + \" task(s) in your list!\");","lastModifiedDate":"2024-02-08"},{"lineNumber":126,"author":{"gitId":"Aak242"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":127,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":128,"author":{"gitId":"Aak242"},"content":"}","lastModifiedDate":"2024-02-08"},{"lineNumber":129,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":130,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":131,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Aak242":131}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Aak242"},"content":"public class Task {","lastModifiedDate":"2024-02-02"},{"lineNumber":2,"author":{"gitId":"Aak242"},"content":" protected String description;","lastModifiedDate":"2024-02-02"},{"lineNumber":3,"author":{"gitId":"Aak242"},"content":" protected boolean isCompleted;","lastModifiedDate":"2024-02-02"},{"lineNumber":4,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":5,"author":{"gitId":"Aak242"},"content":" protected String taskType;","lastModifiedDate":"2024-02-08"},{"lineNumber":6,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":7,"author":{"gitId":"Aak242"},"content":" public Task(String description) {","lastModifiedDate":"2024-02-02"},{"lineNumber":8,"author":{"gitId":"Aak242"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-02"},{"lineNumber":9,"author":{"gitId":"Aak242"},"content":" this.isCompleted \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":10,"author":{"gitId":"Aak242"},"content":" taskType \u003d \"\";","lastModifiedDate":"2024-02-08"},{"lineNumber":11,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":12,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":13,"author":{"gitId":"Aak242"},"content":" public String getStatusIcon() {","lastModifiedDate":"2024-02-02"},{"lineNumber":14,"author":{"gitId":"Aak242"},"content":" return (isCompleted ? \"✔\" : \" \"); // mark done task with X","lastModifiedDate":"2024-02-08"},{"lineNumber":15,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":16,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":17,"author":{"gitId":"Aak242"},"content":" public void markAsCompleted() {","lastModifiedDate":"2024-02-02"},{"lineNumber":18,"author":{"gitId":"Aak242"},"content":" isCompleted \u003d true;","lastModifiedDate":"2024-02-02"},{"lineNumber":19,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":20,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"Aak242"},"content":" public void markAsNotCompleted() {","lastModifiedDate":"2024-02-02"},{"lineNumber":22,"author":{"gitId":"Aak242"},"content":" isCompleted \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":23,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":24,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":25,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":26,"author":{"gitId":"Aak242"},"content":"}","lastModifiedDate":"2024-02-02"},{"lineNumber":27,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-02"}],"authorContributionMap":{"Aak242":27}},{"path":"src/main/java/ToDo.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Aak242"},"content":"public class ToDo extends Task{","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":3,"author":{"gitId":"Aak242"},"content":" protected String deadlineDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":4,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":5,"author":{"gitId":"Aak242"},"content":" public ToDo(String description) {","lastModifiedDate":"2024-02-08"},{"lineNumber":6,"author":{"gitId":"Aak242"},"content":" super(description);","lastModifiedDate":"2024-02-08"},{"lineNumber":7,"author":{"gitId":"Aak242"},"content":" taskType \u003d \"T\";","lastModifiedDate":"2024-02-08"},{"lineNumber":8,"author":{"gitId":"Aak242"},"content":" this.description \u003d description.replace(\"todo\", \"\");","lastModifiedDate":"2024-02-08"},{"lineNumber":9,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":10,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":11,"author":{"gitId":"Aak242"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Aak242":11}}] +[{"path":"src/main/java/Deadline.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Aak242"},"content":"public class Deadline extends Task {","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":3,"author":{"gitId":"Aak242"},"content":" protected String deadlineDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":4,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":5,"author":{"gitId":"Aak242"},"content":" public Deadline(String description) {","lastModifiedDate":"2024-02-08"},{"lineNumber":6,"author":{"gitId":"Aak242"},"content":" super(description);","lastModifiedDate":"2024-02-08"},{"lineNumber":7,"author":{"gitId":"Aak242"},"content":" taskType \u003d \"D\";","lastModifiedDate":"2024-02-08"},{"lineNumber":8,"author":{"gitId":"Aak242"},"content":" int indexOfDivider \u003d description.indexOf(\"/\");","lastModifiedDate":"2024-02-08"},{"lineNumber":9,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":10,"author":{"gitId":"Aak242"},"content":" if (indexOfDivider \u003d\u003d -1) {","lastModifiedDate":"2024-02-08"},{"lineNumber":11,"author":{"gitId":"Aak242"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-08"},{"lineNumber":12,"author":{"gitId":"Aak242"},"content":" setDeadlineDate(null);","lastModifiedDate":"2024-02-08"},{"lineNumber":13,"author":{"gitId":"Aak242"},"content":" } else {","lastModifiedDate":"2024-02-08"},{"lineNumber":14,"author":{"gitId":"Aak242"},"content":" String endDate \u003d description.substring(indexOfDivider + 4);","lastModifiedDate":"2024-02-08"},{"lineNumber":15,"author":{"gitId":"Aak242"},"content":" String descriptionWithoutDate \u003d description.substring(0, (indexOfDivider - 1)).replace(\"deadline\", \"\");","lastModifiedDate":"2024-02-08"},{"lineNumber":16,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":17,"author":{"gitId":"Aak242"},"content":" setDeadlineDate(endDate);","lastModifiedDate":"2024-02-08"},{"lineNumber":18,"author":{"gitId":"Aak242"},"content":" this.description \u003d descriptionWithoutDate + \" (by: \" + getDeadlineDate() + \")\";","lastModifiedDate":"2024-02-08"},{"lineNumber":19,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":20,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":21,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":22,"author":{"gitId":"Aak242"},"content":" public String getDeadlineDate() {","lastModifiedDate":"2024-02-08"},{"lineNumber":23,"author":{"gitId":"Aak242"},"content":" return deadlineDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":24,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":25,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":26,"author":{"gitId":"Aak242"},"content":" public void setDeadlineDate(String deadlineDate) {","lastModifiedDate":"2024-02-08"},{"lineNumber":27,"author":{"gitId":"Aak242"},"content":" this.deadlineDate \u003d deadlineDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":28,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":29,"author":{"gitId":"Aak242"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Aak242":29}},{"path":"src/main/java/Event.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Aak242"},"content":"public class Event extends Task {","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":3,"author":{"gitId":"Aak242"},"content":" protected String startDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":4,"author":{"gitId":"Aak242"},"content":" protected String endDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":5,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":6,"author":{"gitId":"Aak242"},"content":" public Event(String description) {","lastModifiedDate":"2024-02-08"},{"lineNumber":7,"author":{"gitId":"Aak242"},"content":" super(description);","lastModifiedDate":"2024-02-08"},{"lineNumber":8,"author":{"gitId":"Aak242"},"content":" taskType \u003d \"E\";","lastModifiedDate":"2024-02-08"},{"lineNumber":9,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":10,"author":{"gitId":"Aak242"},"content":" int indexOfFromDivider \u003d description.indexOf(\"/\");","lastModifiedDate":"2024-02-08"},{"lineNumber":11,"author":{"gitId":"Aak242"},"content":" int indexOfToDivider \u003d description.lastIndexOf(\"/\");","lastModifiedDate":"2024-02-08"},{"lineNumber":12,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":13,"author":{"gitId":"Aak242"},"content":" setStartDate(description.substring(indexOfFromDivider + 6, indexOfToDivider - 1));","lastModifiedDate":"2024-02-08"},{"lineNumber":14,"author":{"gitId":"Aak242"},"content":" setEndDate(description.substring(indexOfToDivider + 4));","lastModifiedDate":"2024-02-08"},{"lineNumber":15,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":16,"author":{"gitId":"Aak242"},"content":" if (indexOfFromDivider \u003d\u003d -1) {","lastModifiedDate":"2024-02-08"},{"lineNumber":17,"author":{"gitId":"Aak242"},"content":" setStartDate(null);","lastModifiedDate":"2024-02-08"},{"lineNumber":18,"author":{"gitId":"Aak242"},"content":" } else if (indexOfToDivider \u003d\u003d -1) {","lastModifiedDate":"2024-02-08"},{"lineNumber":19,"author":{"gitId":"Aak242"},"content":" setEndDate(null);","lastModifiedDate":"2024-02-08"},{"lineNumber":20,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":21,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":22,"author":{"gitId":"Aak242"},"content":" String descriptionWithoutDate \u003d description.substring(0, (indexOfFromDivider - 1)).replace(\"event\", \"\");","lastModifiedDate":"2024-02-08"},{"lineNumber":23,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":24,"author":{"gitId":"Aak242"},"content":" this.description \u003d descriptionWithoutDate + \" (from: \" + getStartDate() + \" to: \" + getEndDate() + \")\";","lastModifiedDate":"2024-02-10"},{"lineNumber":25,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":26,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":27,"author":{"gitId":"Aak242"},"content":" public String getStartDate() {","lastModifiedDate":"2024-02-08"},{"lineNumber":28,"author":{"gitId":"Aak242"},"content":" return startDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":29,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":30,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":31,"author":{"gitId":"Aak242"},"content":" public void setStartDate(String startDate) {","lastModifiedDate":"2024-02-08"},{"lineNumber":32,"author":{"gitId":"Aak242"},"content":" this.startDate \u003d startDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":33,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":34,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":35,"author":{"gitId":"Aak242"},"content":" public String getEndDate() {","lastModifiedDate":"2024-02-08"},{"lineNumber":36,"author":{"gitId":"Aak242"},"content":" return endDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":37,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":38,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":39,"author":{"gitId":"Aak242"},"content":" public void setEndDate(String endDate) {","lastModifiedDate":"2024-02-08"},{"lineNumber":40,"author":{"gitId":"Aak242"},"content":" this.endDate \u003d endDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":41,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":42,"author":{"gitId":"Aak242"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Aak242":42}},{"path":"src/main/java/Mavis.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Aak242"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":3,"author":{"gitId":"Aak242"},"content":"public class Mavis {","lastModifiedDate":"2024-02-08"},{"lineNumber":4,"author":{"gitId":"Aak242"},"content":" private static final String LOGO \u003d \" z$$$$P\\n\" +","lastModifiedDate":"2024-02-10"},{"lineNumber":5,"author":{"gitId":"Aak242"},"content":" \" d$$$$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":6,"author":{"gitId":"Aak242"},"content":" \" .$$$$$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":7,"author":{"gitId":"Aak242"},"content":" \" z$$$$$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":8,"author":{"gitId":"Aak242"},"content":" \" z$$$$P\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":9,"author":{"gitId":"Aak242"},"content":" \" d$$$$$$$$$$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":10,"author":{"gitId":"Aak242"},"content":" \" *******$$$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":11,"author":{"gitId":"Aak242"},"content":" \" .$$$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":12,"author":{"gitId":"Aak242"},"content":" \" .$$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":13,"author":{"gitId":"Aak242"},"content":" \" 4$P\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":14,"author":{"gitId":"Aak242"},"content":" \" z$\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":15,"author":{"gitId":"Aak242"},"content":" \" zP\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":16,"author":{"gitId":"Aak242"},"content":" \" z\\\"\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":17,"author":{"gitId":"Aak242"},"content":" \" / \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":18,"author":{"gitId":"Aak242"},"content":" \" ^ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":19,"author":{"gitId":"Aak242"},"content":" \" ___ ___ ___ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":20,"author":{"gitId":"Aak242"},"content":" \" /__/\\\\ / /\\\\ ___ ___ / /\\\\ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":21,"author":{"gitId":"Aak242"},"content":" \" | |::\\\\ / /::\\\\ /__/\\\\ / /\\\\ / /:/_ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":22,"author":{"gitId":"Aak242"},"content":" \" | |:|:\\\\ / /:/\\\\:\\\\ \\\\ \\\\:\\\\ / /:/ / /:/ /\\\\ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":23,"author":{"gitId":"Aak242"},"content":" \" __|__|:|\\\\:\\\\ / /:/~/::\\\\ \\\\ \\\\:\\\\ /__/::\\\\ / /:/ /::\\\\ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":24,"author":{"gitId":"Aak242"},"content":" \" /__/::::| \\\\:\\\\ /__/:/ /:/\\\\:\\\\ ___ \\\\__\\\\:\\\\ \\\\__\\\\/\\\\:\\\\__ /__/:/ /:/\\\\:\\\\\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":25,"author":{"gitId":"Aak242"},"content":" \" \\\\ \\\\:\\\\~~\\\\__\\\\/ \\\\ \\\\:\\\\/:/__\\\\/ /__/\\\\ | |:| \\\\ \\\\:\\\\/\\\\ \\\\ \\\\:\\\\/:/~/:/\\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":26,"author":{"gitId":"Aak242"},"content":" \" \\\\ \\\\:\\\\ \\\\ \\\\::/ \\\\ \\\\:\\\\| |:| \\\\__\\\\::/ \\\\ \\\\::/ /:/ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":27,"author":{"gitId":"Aak242"},"content":" \" \\\\ \\\\:\\\\ \\\\ \\\\:\\\\ \\\\ \\\\:\\\\__|:| /__/:/ \\\\__\\\\/ /:/ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":28,"author":{"gitId":"Aak242"},"content":" \" \\\\ \\\\:\\\\ \\\\ \\\\:\\\\ \\\\__\\\\::::/ \\\\__\\\\/ /__/:/ \\n\" +","lastModifiedDate":"2024-02-08"},{"lineNumber":29,"author":{"gitId":"Aak242"},"content":" \" \\\\__\\\\/ \\\\__\\\\/ ~~~~ \\\\__\\\\/ \";","lastModifiedDate":"2024-02-08"},{"lineNumber":30,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":31,"author":{"gitId":"Aak242"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-02-10"},{"lineNumber":32,"author":{"gitId":"Aak242"},"content":" Task[] listOfTasks \u003d new Task[100];","lastModifiedDate":"2024-02-08"},{"lineNumber":33,"author":{"gitId":"Aak242"},"content":" greetUser();","lastModifiedDate":"2024-02-10"},{"lineNumber":34,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":35,"author":{"gitId":"Aak242"},"content":" int listOfTasksSize \u003d 0;","lastModifiedDate":"2024-02-08"},{"lineNumber":36,"author":{"gitId":"Aak242"},"content":" Scanner in \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-08"},{"lineNumber":37,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":38,"author":{"gitId":"Aak242"},"content":" while (true) {","lastModifiedDate":"2024-02-08"},{"lineNumber":39,"author":{"gitId":"Aak242"},"content":" String inputToEcho \u003d in.nextLine();","lastModifiedDate":"2024-02-10"},{"lineNumber":40,"author":{"gitId":"Aak242"},"content":" String[] splitInput \u003d inputToEcho.split(\" \");","lastModifiedDate":"2024-02-08"},{"lineNumber":41,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":42,"author":{"gitId":"Aak242"},"content":" if (inputToEcho.equals(\"bye\")) {","lastModifiedDate":"2024-02-08"},{"lineNumber":43,"author":{"gitId":"Aak242"},"content":" break;","lastModifiedDate":"2024-02-08"},{"lineNumber":44,"author":{"gitId":"Aak242"},"content":" } else if (inputToEcho.equals(\"list\")) {","lastModifiedDate":"2024-02-08"},{"lineNumber":45,"author":{"gitId":"Aak242"},"content":" printTasks(listOfTasks, listOfTasksSize);","lastModifiedDate":"2024-02-10"},{"lineNumber":46,"author":{"gitId":"Aak242"},"content":" } else if (inputToEcho.startsWith(\"mark\")) {","lastModifiedDate":"2024-02-10"},{"lineNumber":47,"author":{"gitId":"Aak242"},"content":" markTask(splitInput, listOfTasks);","lastModifiedDate":"2024-02-10"},{"lineNumber":48,"author":{"gitId":"Aak242"},"content":" } else if (inputToEcho.startsWith(\"unmark\")) {","lastModifiedDate":"2024-02-10"},{"lineNumber":49,"author":{"gitId":"Aak242"},"content":" unmarkTask(splitInput, listOfTasks);","lastModifiedDate":"2024-02-10"},{"lineNumber":50,"author":{"gitId":"Aak242"},"content":" } else if (inputToEcho.startsWith(\"todo\") || inputToEcho.startsWith(\"deadline\") || inputToEcho.startsWith(\"event\")) {","lastModifiedDate":"2024-02-10"},{"lineNumber":51,"author":{"gitId":"Aak242"},"content":" addTask(inputToEcho, listOfTasks, splitInput, listOfTasksSize);","lastModifiedDate":"2024-02-10"},{"lineNumber":52,"author":{"gitId":"Aak242"},"content":" listOfTasksSize++;","lastModifiedDate":"2024-02-10"},{"lineNumber":53,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":54,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":55,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":56,"author":{"gitId":"Aak242"},"content":" bidFarewell();","lastModifiedDate":"2024-02-10"},{"lineNumber":57,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":58,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":59,"author":{"gitId":"Aak242"},"content":" private static void greetUser() {","lastModifiedDate":"2024-02-10"},{"lineNumber":60,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Hello from\\n\" + LOGO);","lastModifiedDate":"2024-02-10"},{"lineNumber":61,"author":{"gitId":"Aak242"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":62,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Hello! I\u0027m Mavis!\");","lastModifiedDate":"2024-02-10"},{"lineNumber":63,"author":{"gitId":"Aak242"},"content":" System.out.println(\"What can I do for you?\\n\");","lastModifiedDate":"2024-02-10"},{"lineNumber":64,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":65,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":66,"author":{"gitId":"Aak242"},"content":" private static void printTasks(Task[] listOfTasks, int size) {","lastModifiedDate":"2024-02-10"},{"lineNumber":67,"author":{"gitId":"Aak242"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-10"},{"lineNumber":68,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Here are the tasks in your list: \");","lastModifiedDate":"2024-02-10"},{"lineNumber":69,"author":{"gitId":"Aak242"},"content":" for (int i \u003d 0; i \u003c size; i++) {","lastModifiedDate":"2024-02-10"},{"lineNumber":70,"author":{"gitId":"Aak242"},"content":" listTask(i, listOfTasks[i]);","lastModifiedDate":"2024-02-10"},{"lineNumber":71,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":72,"author":{"gitId":"Aak242"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-10"},{"lineNumber":73,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":74,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":75,"author":{"gitId":"Aak242"},"content":" private static void listTask(int currentTaskIndex, Task currentTask) {","lastModifiedDate":"2024-02-10"},{"lineNumber":76,"author":{"gitId":"Aak242"},"content":" System.out.println(\"[\" + currentTask.taskType + \"]\" + \"[\" + currentTask.getStatusIcon() + \"] \" + (currentTaskIndex + 1) + \". \" + currentTask.description);","lastModifiedDate":"2024-02-10"},{"lineNumber":77,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":78,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":79,"author":{"gitId":"Aak242"},"content":" private static void markTask(String[] splitInput, Task[] listOfTasks) {","lastModifiedDate":"2024-02-10"},{"lineNumber":80,"author":{"gitId":"Aak242"},"content":" int taskIndex \u003d Integer.parseInt(splitInput[1]) - 1;","lastModifiedDate":"2024-02-08"},{"lineNumber":81,"author":{"gitId":"Aak242"},"content":" listOfTasks[taskIndex].markAsCompleted();","lastModifiedDate":"2024-02-08"},{"lineNumber":82,"author":{"gitId":"Aak242"},"content":" System.out.println(\"As you wish, good sir.\"","lastModifiedDate":"2024-02-10"},{"lineNumber":83,"author":{"gitId":"Aak242"},"content":" + \"Here is the task you just marked as completed:\");","lastModifiedDate":"2024-02-10"},{"lineNumber":84,"author":{"gitId":"Aak242"},"content":" listTask(taskIndex, listOfTasks[taskIndex]);","lastModifiedDate":"2024-02-08"},{"lineNumber":85,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":86,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":87,"author":{"gitId":"Aak242"},"content":" private static void unmarkTask(String[] splitInput, Task[] listOfTasks) {","lastModifiedDate":"2024-02-10"},{"lineNumber":88,"author":{"gitId":"Aak242"},"content":" int taskIndex \u003d Integer.parseInt(splitInput[1]) - 1;","lastModifiedDate":"2024-02-08"},{"lineNumber":89,"author":{"gitId":"Aak242"},"content":" listOfTasks[taskIndex].markAsNotCompleted();","lastModifiedDate":"2024-02-08"},{"lineNumber":90,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Reversing the flow of space and time to undo the task...\");","lastModifiedDate":"2024-02-08"},{"lineNumber":91,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Here is the task you just marked as not completed:\");","lastModifiedDate":"2024-02-08"},{"lineNumber":92,"author":{"gitId":"Aak242"},"content":" listTask(taskIndex, listOfTasks[taskIndex]);","lastModifiedDate":"2024-02-08"},{"lineNumber":93,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":94,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":95,"author":{"gitId":"Aak242"},"content":" private static void addTask(String inputToEcho, Task[] listOfTasks, String[] splitInput, int listOfTasksSize) {","lastModifiedDate":"2024-02-10"},{"lineNumber":96,"author":{"gitId":"Aak242"},"content":" Task newTask;","lastModifiedDate":"2024-02-10"},{"lineNumber":97,"author":{"gitId":"Aak242"},"content":" if (inputToEcho.startsWith(\"todo\")) {","lastModifiedDate":"2024-02-10"},{"lineNumber":98,"author":{"gitId":"Aak242"},"content":" newTask \u003d new ToDo(inputToEcho);","lastModifiedDate":"2024-02-10"},{"lineNumber":99,"author":{"gitId":"Aak242"},"content":" } else if (inputToEcho.startsWith(\"deadline\")) {","lastModifiedDate":"2024-02-10"},{"lineNumber":100,"author":{"gitId":"Aak242"},"content":" newTask \u003d new Deadline(inputToEcho);","lastModifiedDate":"2024-02-10"},{"lineNumber":101,"author":{"gitId":"Aak242"},"content":" } else { // event","lastModifiedDate":"2024-02-10"},{"lineNumber":102,"author":{"gitId":"Aak242"},"content":" newTask \u003d new Event(inputToEcho);","lastModifiedDate":"2024-02-10"},{"lineNumber":103,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":104,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":105,"author":{"gitId":"Aak242"},"content":" listOfTasks[listOfTasksSize] \u003d newTask;","lastModifiedDate":"2024-02-10"},{"lineNumber":106,"author":{"gitId":"Aak242"},"content":" showNewlyAddedTask(newTask, listOfTasksSize + 1);","lastModifiedDate":"2024-02-10"},{"lineNumber":107,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":108,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":109,"author":{"gitId":"Aak242"},"content":" private static void showNewlyAddedTask(Task newTask, int currentNumberOfTasks) {","lastModifiedDate":"2024-02-10"},{"lineNumber":110,"author":{"gitId":"Aak242"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":111,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Alright, you\u0027ve added this new task: \");","lastModifiedDate":"2024-02-08"},{"lineNumber":112,"author":{"gitId":"Aak242"},"content":" System.out.println(\"[\" + newTask.taskType + \"]\" + \"[\" + newTask.getStatusIcon() + \"]\" + newTask.description);","lastModifiedDate":"2024-02-08"},{"lineNumber":113,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Now you have \" + currentNumberOfTasks + \" task(s) in your list!\");","lastModifiedDate":"2024-02-08"},{"lineNumber":114,"author":{"gitId":"Aak242"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":115,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":116,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":117,"author":{"gitId":"Aak242"},"content":" private static void bidFarewell() {","lastModifiedDate":"2024-02-10"},{"lineNumber":118,"author":{"gitId":"Aak242"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-10"},{"lineNumber":119,"author":{"gitId":"Aak242"},"content":" System.out.println(\"Bye. Hope to see you again soon!\");","lastModifiedDate":"2024-02-10"},{"lineNumber":120,"author":{"gitId":"Aak242"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-10"},{"lineNumber":121,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":122,"author":{"gitId":"Aak242"},"content":"}","lastModifiedDate":"2024-02-10"}],"authorContributionMap":{"Aak242":122}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Aak242"},"content":"public class Task {","lastModifiedDate":"2024-02-02"},{"lineNumber":2,"author":{"gitId":"Aak242"},"content":" protected String description;","lastModifiedDate":"2024-02-02"},{"lineNumber":3,"author":{"gitId":"Aak242"},"content":" protected boolean isCompleted;","lastModifiedDate":"2024-02-02"},{"lineNumber":4,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":5,"author":{"gitId":"Aak242"},"content":" protected String taskType;","lastModifiedDate":"2024-02-08"},{"lineNumber":6,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":7,"author":{"gitId":"Aak242"},"content":" public Task(String description) {","lastModifiedDate":"2024-02-02"},{"lineNumber":8,"author":{"gitId":"Aak242"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-02"},{"lineNumber":9,"author":{"gitId":"Aak242"},"content":" this.isCompleted \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":10,"author":{"gitId":"Aak242"},"content":" taskType \u003d \"\";","lastModifiedDate":"2024-02-08"},{"lineNumber":11,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":12,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":13,"author":{"gitId":"Aak242"},"content":" public String getStatusIcon() {","lastModifiedDate":"2024-02-02"},{"lineNumber":14,"author":{"gitId":"Aak242"},"content":" return (isCompleted ? \"✔\" : \" \"); // mark done task with X","lastModifiedDate":"2024-02-08"},{"lineNumber":15,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":16,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":17,"author":{"gitId":"Aak242"},"content":" public void markAsCompleted() {","lastModifiedDate":"2024-02-02"},{"lineNumber":18,"author":{"gitId":"Aak242"},"content":" isCompleted \u003d true;","lastModifiedDate":"2024-02-02"},{"lineNumber":19,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":20,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"Aak242"},"content":" public void markAsNotCompleted() {","lastModifiedDate":"2024-02-02"},{"lineNumber":22,"author":{"gitId":"Aak242"},"content":" isCompleted \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":23,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":24,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":25,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":26,"author":{"gitId":"Aak242"},"content":"}","lastModifiedDate":"2024-02-02"},{"lineNumber":27,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-02"}],"authorContributionMap":{"Aak242":27}},{"path":"src/main/java/ToDo.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Aak242"},"content":"public class ToDo extends Task{","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":3,"author":{"gitId":"Aak242"},"content":" protected String deadlineDate;","lastModifiedDate":"2024-02-08"},{"lineNumber":4,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":5,"author":{"gitId":"Aak242"},"content":" public ToDo(String description) {","lastModifiedDate":"2024-02-08"},{"lineNumber":6,"author":{"gitId":"Aak242"},"content":" super(description);","lastModifiedDate":"2024-02-08"},{"lineNumber":7,"author":{"gitId":"Aak242"},"content":" taskType \u003d \"T\";","lastModifiedDate":"2024-02-08"},{"lineNumber":8,"author":{"gitId":"Aak242"},"content":" this.description \u003d description.replace(\"todo\", \"\");","lastModifiedDate":"2024-02-08"},{"lineNumber":9,"author":{"gitId":"Aak242"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":10,"author":{"gitId":"Aak242"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":11,"author":{"gitId":"Aak242"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Aak242":11}}] diff --git a/Aak242_ip_master/commits.json b/Aak242_ip_master/commits.json index dfa9f1c5..75f67aaf 100644 --- a/Aak242_ip_master/commits.json +++ b/Aak242_ip_master/commits.json @@ -1 +1 @@ -{"authorDailyContributionsMap":{"Aak242":[{"date":"2024-01-25","commitResults":[{"hash":"c4f5c3fc342152cddcc349d3a8fb9faf53e937e5","isMergeCommit":false,"messageTitle":"Added Level 0 - Rename, Greet, Exit: a) Renamed Chatbot to Mavis b) Implemented an initial skeletal version that greets the user and exits","messageBody":"","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":14,"deletions":6}}}]},{"date":"2024-01-31","commitResults":[{"hash":"e68ac4be4b0d6c12eadc965faed7f80220d7dd35","isMergeCommit":false,"messageTitle":"Uncomment Duke ASCII art","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":6,"deletions":6}}}]},{"date":"2024-02-02","commitResults":[{"hash":"2226ce57c18c4df0e23c5b4a098d51a0e579f4fd","isMergeCommit":false,"messageTitle":"Add unique ASCII art for logo,and Level-1 functionality (take input and echo text)","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":32,"deletions":6}}},{"hash":"2a7d953565d5747e35c22af60ecedd56438d48aa","isMergeCommit":false,"messageTitle":"Add list function and ability to store tasks (Level 2)","messageBody":"","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":40,"deletions":3}}},{"hash":"f42d47f4786abdb2de2fad7aa13c418874b5ec00","isMergeCommit":false,"messageTitle":"Refactor code to represent Task as a class, and added mark and unmark functionalities (Level 3)","messageBody":"","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":50,"deletions":5}}}]},{"date":"2024-02-05","commitResults":[{"hash":"329276db5dd86bb49838b6ab6c3fd5505d3c0cc6","isMergeCommit":false,"messageTitle":"Make aesthetic changes to how the code is presented/printed","messageBody":"","tags":["Level-4","A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":4,"deletions":2}}}]},{"date":"2024-02-08","commitResults":[{"hash":"10ae3ecd83c14723f52e1aabcab3226d58d90555","isMergeCommit":false,"messageTitle":"Add Level 4 changes (make three types of tasks: todo, deadline and event)","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":218,"deletions":106}}}]}]},"authorFileTypeContributionMap":{"Aak242":{"java":240,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"Aak242":5344.87},"authorDisplayNameMap":{"Aak242":"CS2113-W13-2 AAKA..WAMY"}} +{"authorDailyContributionsMap":{"Aak242":[{"date":"2024-01-25","commitResults":[{"hash":"c4f5c3fc342152cddcc349d3a8fb9faf53e937e5","isMergeCommit":false,"messageTitle":"Added Level 0 - Rename, Greet, Exit: a) Renamed Chatbot to Mavis b) Implemented an initial skeletal version that greets the user and exits","messageBody":"","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":14,"deletions":6}}}]},{"date":"2024-01-31","commitResults":[{"hash":"e68ac4be4b0d6c12eadc965faed7f80220d7dd35","isMergeCommit":false,"messageTitle":"Uncomment Duke ASCII art","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":6,"deletions":6}}}]},{"date":"2024-02-02","commitResults":[{"hash":"2226ce57c18c4df0e23c5b4a098d51a0e579f4fd","isMergeCommit":false,"messageTitle":"Add unique ASCII art for logo,and Level-1 functionality (take input and echo text)","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":32,"deletions":6}}},{"hash":"2a7d953565d5747e35c22af60ecedd56438d48aa","isMergeCommit":false,"messageTitle":"Add list function and ability to store tasks (Level 2)","messageBody":"","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":40,"deletions":3}}},{"hash":"f42d47f4786abdb2de2fad7aa13c418874b5ec00","isMergeCommit":false,"messageTitle":"Refactor code to represent Task as a class, and added mark and unmark functionalities (Level 3)","messageBody":"","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":50,"deletions":5}}}]},{"date":"2024-02-05","commitResults":[{"hash":"329276db5dd86bb49838b6ab6c3fd5505d3c0cc6","isMergeCommit":false,"messageTitle":"Make aesthetic changes to how the code is presented/printed","messageBody":"","tags":["Level-4","A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":4,"deletions":2}}}]},{"date":"2024-02-08","commitResults":[{"hash":"10ae3ecd83c14723f52e1aabcab3226d58d90555","isMergeCommit":false,"messageTitle":"Add Level 4 changes (make three types of tasks: todo, deadline and event)","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":218,"deletions":106}}}]},{"date":"2024-02-10","commitResults":[{"hash":"b8ce560fe349162310fe3a9f211df2a441772ab5","isMergeCommit":false,"messageTitle":"Add code quality improvements by refactoring main into many readable methods to make code cleaner","messageBody":"","tags":["A-CodeQuality"],"fileTypesAndContributionMap":{"java":{"insertions":89,"deletions":98}}}]}]},"authorFileTypeContributionMap":{"Aak242":{"java":231,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"Aak242":6026.953},"authorDisplayNameMap":{"Aak242":"CS2113-W13-2 AAKA..WAMY"}} diff --git a/ChinYanXu_ip_master/authorship.json b/ChinYanXu_ip_master/authorship.json index 0e17c267..21fb47fc 100644 --- a/ChinYanXu_ip_master/authorship.json +++ b/ChinYanXu_ip_master/authorship.json @@ -1 +1 @@ -[{"path":"src/main/java/Serf.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"ChinYanXu"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-01"},{"lineNumber":2,"author":{"gitId":"ChinYanXu"},"content":"import java.util.Arrays;","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"ChinYanXu"},"content":"public class Serf {","lastModifiedDate":"2024-01-24"},{"lineNumber":4,"author":{"gitId":"ChinYanXu"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-01-24"},{"lineNumber":5,"author":{"gitId":"ChinYanXu"},"content":" String VERTICALLINES \u003d \" ____________________________________________________________\";","lastModifiedDate":"2024-02-01"},{"lineNumber":6,"author":{"gitId":"ChinYanXu"},"content":" String FIVEWHITESPACES \u003d \" \";","lastModifiedDate":"2024-02-02"},{"lineNumber":7,"author":{"gitId":"ChinYanXu"},"content":" Task[] taskList \u003d new Task[100];","lastModifiedDate":"2024-02-02"},{"lineNumber":8,"author":{"gitId":"ChinYanXu"},"content":" int taskCounter \u003d 0; // tracks number of tasks in taskList","lastModifiedDate":"2024-02-02"},{"lineNumber":9,"author":{"gitId":"ChinYanXu"},"content":" String chatBotName \u003d \"Serf\";","lastModifiedDate":"2024-01-24"},{"lineNumber":10,"author":{"gitId":"ChinYanXu"},"content":" String GREETINGMESSAGE \u003d VERTICALLINES","lastModifiedDate":"2024-02-01"},{"lineNumber":11,"author":{"gitId":"ChinYanXu"},"content":" + \"\\n\"","lastModifiedDate":"2024-02-01"},{"lineNumber":12,"author":{"gitId":"ChinYanXu"},"content":" + FIVEWHITESPACES","lastModifiedDate":"2024-02-02"},{"lineNumber":13,"author":{"gitId":"ChinYanXu"},"content":" + \"Good day my lord! I\u0027m \" + chatBotName + \"\\n\"","lastModifiedDate":"2024-02-01"},{"lineNumber":14,"author":{"gitId":"ChinYanXu"},"content":" + FIVEWHITESPACES","lastModifiedDate":"2024-02-02"},{"lineNumber":15,"author":{"gitId":"ChinYanXu"},"content":" + \"How shall I serve thee?\\n\"","lastModifiedDate":"2024-02-01"},{"lineNumber":16,"author":{"gitId":"ChinYanXu"},"content":" + VERTICALLINES;","lastModifiedDate":"2024-02-01"},{"lineNumber":17,"author":{"gitId":"ChinYanXu"},"content":" String FAREWELLMESSAGE \u003d VERTICALLINES","lastModifiedDate":"2024-02-01"},{"lineNumber":18,"author":{"gitId":"ChinYanXu"},"content":" + \"\\n\"","lastModifiedDate":"2024-02-01"},{"lineNumber":19,"author":{"gitId":"ChinYanXu"},"content":" + FIVEWHITESPACES","lastModifiedDate":"2024-02-02"},{"lineNumber":20,"author":{"gitId":"ChinYanXu"},"content":" + \"Farewell, my lord. \\n\"","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"ChinYanXu"},"content":" + VERTICALLINES;","lastModifiedDate":"2024-02-01"},{"lineNumber":22,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(GREETINGMESSAGE + \"\\n\");","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"ChinYanXu"},"content":" Scanner requestedMessage \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-01"},{"lineNumber":24,"author":{"gitId":"ChinYanXu"},"content":" String receivedMessage \u003d requestedMessage.nextLine();","lastModifiedDate":"2024-02-01"},{"lineNumber":25,"author":{"gitId":"ChinYanXu"},"content":"","lastModifiedDate":"2024-02-01"},{"lineNumber":26,"author":{"gitId":"ChinYanXu"},"content":" while(!receivedMessage.equals(\"bye\")) {","lastModifiedDate":"2024-02-01"},{"lineNumber":27,"author":{"gitId":"ChinYanXu"},"content":" if (receivedMessage.equals(\"list\") \u0026\u0026 taskCounter \u003e 0) { // list is not empty","lastModifiedDate":"2024-02-02"},{"lineNumber":28,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICALLINES);","lastModifiedDate":"2024-02-01"},{"lineNumber":29,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \"My lord, here are the tasks as recorded in thy list:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"ChinYanXu"},"content":" for (int i \u003d 0; i \u003c taskCounter; i +\u003d 1) {","lastModifiedDate":"2024-02-01"},{"lineNumber":31,"author":{"gitId":"ChinYanXu"},"content":" switch (taskList[i].getTaskStatus()) {","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"ChinYanXu"},"content":" case \"T\":","lastModifiedDate":"2024-02-09"},{"lineNumber":33,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + (i + 1) + \".\" + \"[\"","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"ChinYanXu"},"content":" + taskList[i].getTaskStatus() + \"]\" + \"[\"","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"ChinYanXu"},"content":" + taskList[i].getStatusIcon() + \"] \" + taskList[i].description","lastModifiedDate":"2024-02-09"},{"lineNumber":36,"author":{"gitId":"ChinYanXu"},"content":" + \" \");","lastModifiedDate":"2024-02-02"},{"lineNumber":37,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":38,"author":{"gitId":"ChinYanXu"},"content":" case \"D\":","lastModifiedDate":"2024-02-09"},{"lineNumber":39,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + (i + 1) + \".\" + \"[\"","lastModifiedDate":"2024-02-09"},{"lineNumber":40,"author":{"gitId":"ChinYanXu"},"content":" + taskList[i].getTaskStatus() + \"]\" + \"[\"","lastModifiedDate":"2024-02-09"},{"lineNumber":41,"author":{"gitId":"ChinYanXu"},"content":" + taskList[i].getStatusIcon() + \"] \" + taskList[i].description","lastModifiedDate":"2024-02-09"},{"lineNumber":42,"author":{"gitId":"ChinYanXu"},"content":" + \" (by: \" + taskList[i].getEndDate() + \")\");","lastModifiedDate":"2024-02-09"},{"lineNumber":43,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":44,"author":{"gitId":"ChinYanXu"},"content":" case \"E\":","lastModifiedDate":"2024-02-09"},{"lineNumber":45,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + (i + 1) + \".\" + \"[\"","lastModifiedDate":"2024-02-09"},{"lineNumber":46,"author":{"gitId":"ChinYanXu"},"content":" + taskList[i].getTaskStatus() + \"]\" + \"[\"","lastModifiedDate":"2024-02-09"},{"lineNumber":47,"author":{"gitId":"ChinYanXu"},"content":" + taskList[i].getStatusIcon() + \"] \" + taskList[i].description","lastModifiedDate":"2024-02-09"},{"lineNumber":48,"author":{"gitId":"ChinYanXu"},"content":" + \" (from: \" + taskList[i].getStartDate()","lastModifiedDate":"2024-02-09"},{"lineNumber":49,"author":{"gitId":"ChinYanXu"},"content":" + \" to: \" + taskList[i].getEndDate() +\")\");","lastModifiedDate":"2024-02-09"},{"lineNumber":50,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":51,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":52,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":53,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICALLINES + \"\\n\");","lastModifiedDate":"2024-02-09"},{"lineNumber":54,"author":{"gitId":"ChinYanXu"},"content":" } else if (receivedMessage.equals(\"list\") \u0026\u0026 taskCounter \u003d\u003d 0) { // list is not empty","lastModifiedDate":"2024-02-02"},{"lineNumber":55,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICALLINES);","lastModifiedDate":"2024-02-01"},{"lineNumber":56,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \"list is empty\");","lastModifiedDate":"2024-02-02"},{"lineNumber":57,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICALLINES);","lastModifiedDate":"2024-02-01"},{"lineNumber":58,"author":{"gitId":"ChinYanXu"},"content":" receivedMessage \u003d requestedMessage.nextLine();","lastModifiedDate":"2024-02-01"},{"lineNumber":59,"author":{"gitId":"ChinYanXu"},"content":" continue;","lastModifiedDate":"2024-02-01"},{"lineNumber":60,"author":{"gitId":"ChinYanXu"},"content":" } else if (receivedMessage.contains(\"mark\") \u0026\u0026 !receivedMessage.contains(\"unmark\")) { // user keys in mark","lastModifiedDate":"2024-02-02"},{"lineNumber":61,"author":{"gitId":"ChinYanXu"},"content":" String number \u003d \"\";","lastModifiedDate":"2024-02-02"},{"lineNumber":62,"author":{"gitId":"ChinYanXu"},"content":" for (int j \u003d 0; j \u003c receivedMessage.length(); j +\u003d 1) { // reads number from input and store it in String number","lastModifiedDate":"2024-02-02"},{"lineNumber":63,"author":{"gitId":"ChinYanXu"},"content":" if (Character.isDigit(receivedMessage.charAt(j))) {","lastModifiedDate":"2024-02-02"},{"lineNumber":64,"author":{"gitId":"ChinYanXu"},"content":" number +\u003d receivedMessage.charAt(j);","lastModifiedDate":"2024-02-02"},{"lineNumber":65,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":66,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":67,"author":{"gitId":"ChinYanXu"},"content":" if (number.isEmpty()) {","lastModifiedDate":"2024-02-02"},{"lineNumber":68,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \"Error\");","lastModifiedDate":"2024-02-02"},{"lineNumber":69,"author":{"gitId":"ChinYanXu"},"content":" continue;","lastModifiedDate":"2024-02-02"},{"lineNumber":70,"author":{"gitId":"ChinYanXu"},"content":" } else {","lastModifiedDate":"2024-02-02"},{"lineNumber":71,"author":{"gitId":"ChinYanXu"},"content":" taskList[Integer.parseInt(number) - 1].markAsDone();","lastModifiedDate":"2024-02-02"},{"lineNumber":72,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":73,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICALLINES);","lastModifiedDate":"2024-02-02"},{"lineNumber":74,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \"Acknowledged sire, I\u0027ve marked this task as complete:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":75,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES","lastModifiedDate":"2024-02-02"},{"lineNumber":76,"author":{"gitId":"ChinYanXu"},"content":" + \" \" + \"[\" + taskList[Integer.parseInt(number) - 1].getTaskStatus() + \"]\"","lastModifiedDate":"2024-02-09"},{"lineNumber":77,"author":{"gitId":"ChinYanXu"},"content":" + \"[\" + taskList[Integer.parseInt(number) - 1].getStatusIcon() + \"] \"","lastModifiedDate":"2024-02-09"},{"lineNumber":78,"author":{"gitId":"ChinYanXu"},"content":" + taskList[Integer.parseInt(number) - 1].getDescription());","lastModifiedDate":"2024-02-02"},{"lineNumber":79,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICALLINES + \"\\n\");","lastModifiedDate":"2024-02-09"},{"lineNumber":80,"author":{"gitId":"ChinYanXu"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":81,"author":{"gitId":"ChinYanXu"},"content":" } else if (receivedMessage.contains(\"unmark\")) { // user keys in unmark","lastModifiedDate":"2024-02-02"},{"lineNumber":82,"author":{"gitId":"ChinYanXu"},"content":" String number \u003d \"\";","lastModifiedDate":"2024-02-02"},{"lineNumber":83,"author":{"gitId":"ChinYanXu"},"content":" for (int j \u003d 0; j \u003c receivedMessage.length(); j +\u003d 1) { // reads number from input and store it in String number","lastModifiedDate":"2024-02-02"},{"lineNumber":84,"author":{"gitId":"ChinYanXu"},"content":" if (Character.isDigit(receivedMessage.charAt(j))) {","lastModifiedDate":"2024-02-02"},{"lineNumber":85,"author":{"gitId":"ChinYanXu"},"content":" number +\u003d receivedMessage.charAt(j);","lastModifiedDate":"2024-02-02"},{"lineNumber":86,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":87,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":88,"author":{"gitId":"ChinYanXu"},"content":" if (number.isEmpty()) {","lastModifiedDate":"2024-02-02"},{"lineNumber":89,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \"Error\");","lastModifiedDate":"2024-02-02"},{"lineNumber":90,"author":{"gitId":"ChinYanXu"},"content":" continue;","lastModifiedDate":"2024-02-02"},{"lineNumber":91,"author":{"gitId":"ChinYanXu"},"content":" } else {","lastModifiedDate":"2024-02-02"},{"lineNumber":92,"author":{"gitId":"ChinYanXu"},"content":" taskList[Integer.parseInt(number) - 1].markAsUndone();","lastModifiedDate":"2024-02-02"},{"lineNumber":93,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":94,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICALLINES);","lastModifiedDate":"2024-02-02"},{"lineNumber":95,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \"Acknowledged sire, I\u0027ve marked this task as incomplete:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":96,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES","lastModifiedDate":"2024-02-02"},{"lineNumber":97,"author":{"gitId":"ChinYanXu"},"content":" + \" \" + \"[\" + taskList[Integer.parseInt(number) - 1].getTaskStatus() + \"]\"","lastModifiedDate":"2024-02-09"},{"lineNumber":98,"author":{"gitId":"ChinYanXu"},"content":" + \"[\" + taskList[Integer.parseInt(number) - 1].getStatusIcon() + \"] \"","lastModifiedDate":"2024-02-09"},{"lineNumber":99,"author":{"gitId":"ChinYanXu"},"content":" + taskList[Integer.parseInt(number) - 1].getDescription());","lastModifiedDate":"2024-02-02"},{"lineNumber":100,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICALLINES + \"\\n\");","lastModifiedDate":"2024-02-09"},{"lineNumber":101,"author":{"gitId":"ChinYanXu"},"content":" } else if (receivedMessage.contains(\"todo\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":102,"author":{"gitId":"ChinYanXu"},"content":" String[] splittedMessage \u003d receivedMessage.split(\"todo \");","lastModifiedDate":"2024-02-09"},{"lineNumber":103,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter] \u003d new Task(splittedMessage[1]);","lastModifiedDate":"2024-02-09"},{"lineNumber":104,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter].setTaskStatus(\"todo\");","lastModifiedDate":"2024-02-09"},{"lineNumber":105,"author":{"gitId":"ChinYanXu"},"content":" taskCounter +\u003d 1;","lastModifiedDate":"2024-02-09"},{"lineNumber":106,"author":{"gitId":"ChinYanXu"},"content":" //taskList[taskCounter - 1].setTaskStatus(\"todo\");","lastModifiedDate":"2024-02-09"},{"lineNumber":107,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICALLINES);","lastModifiedDate":"2024-02-02"},{"lineNumber":108,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \"Got it. I\u0027ve added this task:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":109,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \" \" + \"[\" + taskList[taskCounter - 1].getTaskStatus() + \"]\" +","lastModifiedDate":"2024-02-09"},{"lineNumber":110,"author":{"gitId":"ChinYanXu"},"content":" \"[\" + taskList[taskCounter - 1].getStatusIcon() + \"] \" + taskList[taskCounter - 1].getDescription());","lastModifiedDate":"2024-02-09"},{"lineNumber":111,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \"Now you have \" + Integer.toString(taskCounter) + \" tasks in the list.\");","lastModifiedDate":"2024-02-09"},{"lineNumber":112,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICALLINES + \"\\n\");","lastModifiedDate":"2024-02-09"},{"lineNumber":113,"author":{"gitId":"ChinYanXu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":114,"author":{"gitId":"ChinYanXu"},"content":" } else if (receivedMessage.contains(\"deadline\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":115,"author":{"gitId":"ChinYanXu"},"content":" String[] splittedMessage \u003d receivedMessage.split(\"deadline \");","lastModifiedDate":"2024-02-09"},{"lineNumber":116,"author":{"gitId":"ChinYanXu"},"content":" String[] doubleSplittedMessage \u003d splittedMessage[1].split(\" /by \");","lastModifiedDate":"2024-02-09"},{"lineNumber":117,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter] \u003d new Task(doubleSplittedMessage[0]);","lastModifiedDate":"2024-02-09"},{"lineNumber":118,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter].setTaskStatus(\"deadline\");","lastModifiedDate":"2024-02-09"},{"lineNumber":119,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter].setEndDate(doubleSplittedMessage[1]);","lastModifiedDate":"2024-02-09"},{"lineNumber":120,"author":{"gitId":"ChinYanXu"},"content":" taskCounter +\u003d 1;","lastModifiedDate":"2024-02-01"},{"lineNumber":121,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICALLINES);","lastModifiedDate":"2024-02-01"},{"lineNumber":122,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \"Got it. I\u0027ve added this task:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":123,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \" \" + \"[\" + taskList[taskCounter - 1].getTaskStatus() + \"]\" +","lastModifiedDate":"2024-02-09"},{"lineNumber":124,"author":{"gitId":"ChinYanXu"},"content":" \"[\" + taskList[taskCounter - 1].getStatusIcon() + \"] \" + taskList[taskCounter - 1].getDescription() +","lastModifiedDate":"2024-02-09"},{"lineNumber":125,"author":{"gitId":"ChinYanXu"},"content":" \" (by: \" + taskList[taskCounter - 1].getEndDate() + \")\");","lastModifiedDate":"2024-02-09"},{"lineNumber":126,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \"Now you have \" + Integer.toString(taskCounter) + \" tasks in the list.\");","lastModifiedDate":"2024-02-09"},{"lineNumber":127,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICALLINES + \"\\n\");","lastModifiedDate":"2024-02-09"},{"lineNumber":128,"author":{"gitId":"ChinYanXu"},"content":" } else if (receivedMessage.contains(\"event\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":129,"author":{"gitId":"ChinYanXu"},"content":" String[] splittedMessage \u003d receivedMessage.split(\"event \");","lastModifiedDate":"2024-02-09"},{"lineNumber":130,"author":{"gitId":"ChinYanXu"},"content":" String[] doubleSplittedMessage \u003d splittedMessage[1].split(\" /from \");","lastModifiedDate":"2024-02-09"},{"lineNumber":131,"author":{"gitId":"ChinYanXu"},"content":" String[] tripleSplittedMessage \u003d doubleSplittedMessage[1].split(\" /to \");","lastModifiedDate":"2024-02-09"},{"lineNumber":132,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter] \u003d new Task(doubleSplittedMessage[0]);","lastModifiedDate":"2024-02-09"},{"lineNumber":133,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter].setTaskStatus(\"event\");","lastModifiedDate":"2024-02-09"},{"lineNumber":134,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter].setStartDate(tripleSplittedMessage[0]);","lastModifiedDate":"2024-02-09"},{"lineNumber":135,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter].setEndDate(tripleSplittedMessage[1]);","lastModifiedDate":"2024-02-09"},{"lineNumber":136,"author":{"gitId":"ChinYanXu"},"content":" taskCounter +\u003d 1;","lastModifiedDate":"2024-02-09"},{"lineNumber":137,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICALLINES);","lastModifiedDate":"2024-02-01"},{"lineNumber":138,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \"Got it. I\u0027ve added this task:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":139,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \" \" + \"[\" + taskList[taskCounter - 1].getTaskStatus() + \"]\" +","lastModifiedDate":"2024-02-09"},{"lineNumber":140,"author":{"gitId":"ChinYanXu"},"content":" \"[\" + taskList[taskCounter - 1].getStatusIcon() + \"] \" + taskList[taskCounter - 1].getDescription() +","lastModifiedDate":"2024-02-09"},{"lineNumber":141,"author":{"gitId":"ChinYanXu"},"content":" \" (from: \" + taskList[taskCounter - 1].getStartDate() + \" to: \" + taskList[taskCounter - 1].getEndDate() +","lastModifiedDate":"2024-02-09"},{"lineNumber":142,"author":{"gitId":"ChinYanXu"},"content":" \")\");","lastModifiedDate":"2024-02-09"},{"lineNumber":143,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVEWHITESPACES + \"Now you have \" + Integer.toString(taskCounter) + \" tasks in the list.\");","lastModifiedDate":"2024-02-09"},{"lineNumber":144,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICALLINES + \"\\n\");","lastModifiedDate":"2024-02-09"},{"lineNumber":145,"author":{"gitId":"ChinYanXu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":146,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":147,"author":{"gitId":"ChinYanXu"},"content":" receivedMessage \u003d requestedMessage.nextLine();","lastModifiedDate":"2024-02-01"},{"lineNumber":148,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":149,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FAREWELLMESSAGE);","lastModifiedDate":"2024-02-01"},{"lineNumber":150,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-01-24"},{"lineNumber":151,"author":{"gitId":"ChinYanXu"},"content":"}","lastModifiedDate":"2024-01-24"}],"authorContributionMap":{"ChinYanXu":151}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"ChinYanXu"},"content":"public class Task {","lastModifiedDate":"2024-02-02"},{"lineNumber":2,"author":{"gitId":"ChinYanXu"},"content":" protected String description;","lastModifiedDate":"2024-02-02"},{"lineNumber":3,"author":{"gitId":"ChinYanXu"},"content":" protected boolean isDone;","lastModifiedDate":"2024-02-02"},{"lineNumber":4,"author":{"gitId":"ChinYanXu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"ChinYanXu"},"content":" protected String startDate \u003d \"\";","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"ChinYanXu"},"content":" protected String endDate \u003d \"\";","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"ChinYanXu"},"content":" protected String taskStatus \u003d \"\";","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"ChinYanXu"},"content":" public Task(String description) {","lastModifiedDate":"2024-02-02"},{"lineNumber":9,"author":{"gitId":"ChinYanXu"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-02"},{"lineNumber":10,"author":{"gitId":"ChinYanXu"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":11,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":12,"author":{"gitId":"ChinYanXu"},"content":" public String getStatusIcon() {","lastModifiedDate":"2024-02-02"},{"lineNumber":13,"author":{"gitId":"ChinYanXu"},"content":" return (isDone ? \"X\" : \" \"); // mark done task with X","lastModifiedDate":"2024-02-02"},{"lineNumber":14,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":15,"author":{"gitId":"ChinYanXu"},"content":" public String getDescription() {","lastModifiedDate":"2024-02-02"},{"lineNumber":16,"author":{"gitId":"ChinYanXu"},"content":" return this.description;","lastModifiedDate":"2024-02-02"},{"lineNumber":17,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":18,"author":{"gitId":"ChinYanXu"},"content":" public void markAsDone() {","lastModifiedDate":"2024-02-02"},{"lineNumber":19,"author":{"gitId":"ChinYanXu"},"content":" this.isDone \u003d true;","lastModifiedDate":"2024-02-02"},{"lineNumber":20,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"ChinYanXu"},"content":" public void markAsUndone() {","lastModifiedDate":"2024-02-02"},{"lineNumber":22,"author":{"gitId":"ChinYanXu"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":23,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":24,"author":{"gitId":"ChinYanXu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"ChinYanXu"},"content":" public void setStartDate(String startDate) {","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"ChinYanXu"},"content":" this.startDate \u003d startDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"ChinYanXu"},"content":" public String getStartDate() {","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"ChinYanXu"},"content":" return this.startDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"ChinYanXu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"ChinYanXu"},"content":" public void setEndDate(String endDate) {","lastModifiedDate":"2024-02-09"},{"lineNumber":33,"author":{"gitId":"ChinYanXu"},"content":" this.endDate \u003d endDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"ChinYanXu"},"content":" public String getEndDate() {","lastModifiedDate":"2024-02-09"},{"lineNumber":36,"author":{"gitId":"ChinYanXu"},"content":" return this.endDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":37,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":38,"author":{"gitId":"ChinYanXu"},"content":" public void setTaskStatus(String status) {","lastModifiedDate":"2024-02-09"},{"lineNumber":39,"author":{"gitId":"ChinYanXu"},"content":" switch(status) {","lastModifiedDate":"2024-02-09"},{"lineNumber":40,"author":{"gitId":"ChinYanXu"},"content":" case \"todo\":","lastModifiedDate":"2024-02-09"},{"lineNumber":41,"author":{"gitId":"ChinYanXu"},"content":" this.taskStatus \u003d \"T\";","lastModifiedDate":"2024-02-09"},{"lineNumber":42,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":43,"author":{"gitId":"ChinYanXu"},"content":" case \"deadline\":","lastModifiedDate":"2024-02-09"},{"lineNumber":44,"author":{"gitId":"ChinYanXu"},"content":" this.taskStatus \u003d \"D\";","lastModifiedDate":"2024-02-09"},{"lineNumber":45,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":46,"author":{"gitId":"ChinYanXu"},"content":" case \"event\":","lastModifiedDate":"2024-02-09"},{"lineNumber":47,"author":{"gitId":"ChinYanXu"},"content":" this.taskStatus \u003d \"E\";","lastModifiedDate":"2024-02-09"},{"lineNumber":48,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":49,"author":{"gitId":"ChinYanXu"},"content":" default:","lastModifiedDate":"2024-02-09"},{"lineNumber":50,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":51,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":52,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":53,"author":{"gitId":"ChinYanXu"},"content":" public String getTaskStatus() {","lastModifiedDate":"2024-02-09"},{"lineNumber":54,"author":{"gitId":"ChinYanXu"},"content":" return this.taskStatus;","lastModifiedDate":"2024-02-09"},{"lineNumber":55,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":56,"author":{"gitId":"ChinYanXu"},"content":"}","lastModifiedDate":"2024-02-02"}],"authorContributionMap":{"ChinYanXu":56}}] +[{"path":"src/main/java/ConditionHandlers.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"ChinYanXu"},"content":"public class ConditionHandlers {","lastModifiedDate":"2024-02-10"},{"lineNumber":2,"author":{"gitId":"ChinYanXu"},"content":" public static void listIsNotEmpty(Task[] taskList, int taskCounter) {","lastModifiedDate":"2024-02-10"},{"lineNumber":3,"author":{"gitId":"ChinYanXu"},"content":" Messages.startOfListMessage();","lastModifiedDate":"2024-02-10"},{"lineNumber":4,"author":{"gitId":"ChinYanXu"},"content":" for (int i \u003d 0; i \u003c taskCounter; i +\u003d 1) {","lastModifiedDate":"2024-02-10"},{"lineNumber":5,"author":{"gitId":"ChinYanXu"},"content":" switch (taskList[i].getTaskType()) {","lastModifiedDate":"2024-02-10"},{"lineNumber":6,"author":{"gitId":"ChinYanXu"},"content":" case \"T\":","lastModifiedDate":"2024-02-10"},{"lineNumber":7,"author":{"gitId":"ChinYanXu"},"content":" Messages.todoListMessage(i, taskList[i].getTaskType(),","lastModifiedDate":"2024-02-10"},{"lineNumber":8,"author":{"gitId":"ChinYanXu"},"content":" taskList[i].getStatusIcon(), taskList[i].getDescription());","lastModifiedDate":"2024-02-10"},{"lineNumber":9,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-10"},{"lineNumber":10,"author":{"gitId":"ChinYanXu"},"content":" case \"D\":","lastModifiedDate":"2024-02-10"},{"lineNumber":11,"author":{"gitId":"ChinYanXu"},"content":" Messages.deadlineListMessage(i, taskList[i].getTaskType(),","lastModifiedDate":"2024-02-10"},{"lineNumber":12,"author":{"gitId":"ChinYanXu"},"content":" taskList[i].getStatusIcon(), taskList[i].getDescription(),","lastModifiedDate":"2024-02-10"},{"lineNumber":13,"author":{"gitId":"ChinYanXu"},"content":" taskList[i].getEndDate());","lastModifiedDate":"2024-02-10"},{"lineNumber":14,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-10"},{"lineNumber":15,"author":{"gitId":"ChinYanXu"},"content":" case \"E\":","lastModifiedDate":"2024-02-10"},{"lineNumber":16,"author":{"gitId":"ChinYanXu"},"content":" Messages.eventListMessage(i, taskList[i].getTaskType(),","lastModifiedDate":"2024-02-10"},{"lineNumber":17,"author":{"gitId":"ChinYanXu"},"content":" taskList[i].getStatusIcon(), taskList[i].getDescription(),","lastModifiedDate":"2024-02-10"},{"lineNumber":18,"author":{"gitId":"ChinYanXu"},"content":" taskList[i].getStartDate(), taskList[i].getEndDate());","lastModifiedDate":"2024-02-10"},{"lineNumber":19,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-10"},{"lineNumber":20,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":21,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":22,"author":{"gitId":"ChinYanXu"},"content":" Messages.printVerticalLines();","lastModifiedDate":"2024-02-10"},{"lineNumber":23,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":24,"author":{"gitId":"ChinYanXu"},"content":" public static void markTask(String receivedMessage, Task[] taskList) {","lastModifiedDate":"2024-02-10"},{"lineNumber":25,"author":{"gitId":"ChinYanXu"},"content":" String number \u003d \"\";","lastModifiedDate":"2024-02-10"},{"lineNumber":26,"author":{"gitId":"ChinYanXu"},"content":" for (int j \u003d 0; j \u003c receivedMessage.length(); j +\u003d 1) { // reads number from input and store it in String number","lastModifiedDate":"2024-02-10"},{"lineNumber":27,"author":{"gitId":"ChinYanXu"},"content":" if (Character.isDigit(receivedMessage.charAt(j))) {","lastModifiedDate":"2024-02-10"},{"lineNumber":28,"author":{"gitId":"ChinYanXu"},"content":" number +\u003d receivedMessage.charAt(j);","lastModifiedDate":"2024-02-10"},{"lineNumber":29,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":30,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":31,"author":{"gitId":"ChinYanXu"},"content":" if (number.isEmpty()) {","lastModifiedDate":"2024-02-10"},{"lineNumber":32,"author":{"gitId":"ChinYanXu"},"content":" Messages.errorMessage();","lastModifiedDate":"2024-02-10"},{"lineNumber":33,"author":{"gitId":"ChinYanXu"},"content":" return;","lastModifiedDate":"2024-02-10"},{"lineNumber":34,"author":{"gitId":"ChinYanXu"},"content":" } else {","lastModifiedDate":"2024-02-10"},{"lineNumber":35,"author":{"gitId":"ChinYanXu"},"content":" taskList[Integer.parseInt(number) - 1].markAsDone();","lastModifiedDate":"2024-02-10"},{"lineNumber":36,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":37,"author":{"gitId":"ChinYanXu"},"content":" Messages.markOrUnmarkTaskMessage(taskList[Integer.parseInt(number) - 1].getTaskType(),","lastModifiedDate":"2024-02-10"},{"lineNumber":38,"author":{"gitId":"ChinYanXu"},"content":" taskList[Integer.parseInt(number) - 1].getStatusIcon(),","lastModifiedDate":"2024-02-10"},{"lineNumber":39,"author":{"gitId":"ChinYanXu"},"content":" taskList[Integer.parseInt(number) - 1].getDescription(), \"complete\");","lastModifiedDate":"2024-02-10"},{"lineNumber":40,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":41,"author":{"gitId":"ChinYanXu"},"content":" public static void unmarkTask(String receivedMessage, Task[] taskList){","lastModifiedDate":"2024-02-10"},{"lineNumber":42,"author":{"gitId":"ChinYanXu"},"content":" String number \u003d \"\";","lastModifiedDate":"2024-02-10"},{"lineNumber":43,"author":{"gitId":"ChinYanXu"},"content":" for (int j \u003d 0; j \u003c receivedMessage.length(); j +\u003d 1) { // reads number from input and store it in String number","lastModifiedDate":"2024-02-10"},{"lineNumber":44,"author":{"gitId":"ChinYanXu"},"content":" if (Character.isDigit(receivedMessage.charAt(j))) {","lastModifiedDate":"2024-02-10"},{"lineNumber":45,"author":{"gitId":"ChinYanXu"},"content":" number +\u003d receivedMessage.charAt(j);","lastModifiedDate":"2024-02-10"},{"lineNumber":46,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":47,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":48,"author":{"gitId":"ChinYanXu"},"content":" if (number.isEmpty()) {","lastModifiedDate":"2024-02-10"},{"lineNumber":49,"author":{"gitId":"ChinYanXu"},"content":" Messages.errorMessage();","lastModifiedDate":"2024-02-10"},{"lineNumber":50,"author":{"gitId":"ChinYanXu"},"content":" return;","lastModifiedDate":"2024-02-10"},{"lineNumber":51,"author":{"gitId":"ChinYanXu"},"content":" } else {","lastModifiedDate":"2024-02-10"},{"lineNumber":52,"author":{"gitId":"ChinYanXu"},"content":" taskList[Integer.parseInt(number) - 1].markAsUndone();","lastModifiedDate":"2024-02-10"},{"lineNumber":53,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":54,"author":{"gitId":"ChinYanXu"},"content":" Messages.markOrUnmarkTaskMessage(taskList[Integer.parseInt(number) - 1].getTaskType(),","lastModifiedDate":"2024-02-10"},{"lineNumber":55,"author":{"gitId":"ChinYanXu"},"content":" taskList[Integer.parseInt(number) - 1].getStatusIcon(),","lastModifiedDate":"2024-02-10"},{"lineNumber":56,"author":{"gitId":"ChinYanXu"},"content":" taskList[Integer.parseInt(number) - 1].getDescription(), \"incomplete\");","lastModifiedDate":"2024-02-10"},{"lineNumber":57,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":58,"author":{"gitId":"ChinYanXu"},"content":" public static int addTodoTaskToList(String receivedMessage, Task[] taskList, int taskCounter) {","lastModifiedDate":"2024-02-10"},{"lineNumber":59,"author":{"gitId":"ChinYanXu"},"content":" String[] splittedMessage \u003d receivedMessage.split(\"todo \");","lastModifiedDate":"2024-02-10"},{"lineNumber":60,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter] \u003d new Task(splittedMessage[1]);","lastModifiedDate":"2024-02-10"},{"lineNumber":61,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter].setTaskType(\"todo\");","lastModifiedDate":"2024-02-10"},{"lineNumber":62,"author":{"gitId":"ChinYanXu"},"content":" taskCounter +\u003d 1;","lastModifiedDate":"2024-02-10"},{"lineNumber":63,"author":{"gitId":"ChinYanXu"},"content":" Messages.addTodoMessage(taskList[taskCounter - 1].getTaskType(),","lastModifiedDate":"2024-02-10"},{"lineNumber":64,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter - 1].getStatusIcon(), taskList[taskCounter - 1].getDescription(),","lastModifiedDate":"2024-02-10"},{"lineNumber":65,"author":{"gitId":"ChinYanXu"},"content":" taskCounter);","lastModifiedDate":"2024-02-10"},{"lineNumber":66,"author":{"gitId":"ChinYanXu"},"content":" return taskCounter;","lastModifiedDate":"2024-02-10"},{"lineNumber":67,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":68,"author":{"gitId":"ChinYanXu"},"content":" public static int addDeadlineTaskToList(String receivedMessage, Task[] taskList, int taskCounter) {","lastModifiedDate":"2024-02-10"},{"lineNumber":69,"author":{"gitId":"ChinYanXu"},"content":" String[] splittedMessage \u003d receivedMessage.split(\"deadline \");","lastModifiedDate":"2024-02-10"},{"lineNumber":70,"author":{"gitId":"ChinYanXu"},"content":" String[] doubleSplittedMessage \u003d splittedMessage[1].split(\" /by \");","lastModifiedDate":"2024-02-10"},{"lineNumber":71,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter] \u003d new Task(doubleSplittedMessage[0]);","lastModifiedDate":"2024-02-10"},{"lineNumber":72,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter].setTaskType(\"deadline\");","lastModifiedDate":"2024-02-10"},{"lineNumber":73,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter].setEndDate(doubleSplittedMessage[1]);","lastModifiedDate":"2024-02-10"},{"lineNumber":74,"author":{"gitId":"ChinYanXu"},"content":" taskCounter +\u003d 1;","lastModifiedDate":"2024-02-10"},{"lineNumber":75,"author":{"gitId":"ChinYanXu"},"content":" Messages.addDeadlineMessage(taskList[taskCounter - 1].getTaskType(),","lastModifiedDate":"2024-02-10"},{"lineNumber":76,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter - 1].getStatusIcon(), taskList[taskCounter - 1].getDescription(),","lastModifiedDate":"2024-02-10"},{"lineNumber":77,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter - 1].getEndDate(), taskCounter);","lastModifiedDate":"2024-02-10"},{"lineNumber":78,"author":{"gitId":"ChinYanXu"},"content":" return taskCounter;","lastModifiedDate":"2024-02-10"},{"lineNumber":79,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":80,"author":{"gitId":"ChinYanXu"},"content":" public static int addEventTaskToList(String receivedMessage, Task[] taskList, int taskCounter){","lastModifiedDate":"2024-02-10"},{"lineNumber":81,"author":{"gitId":"ChinYanXu"},"content":" String[] splittedMessage \u003d receivedMessage.split(\"event \");","lastModifiedDate":"2024-02-10"},{"lineNumber":82,"author":{"gitId":"ChinYanXu"},"content":" String[] doubleSplittedMessage \u003d splittedMessage[1].split(\" /from \");","lastModifiedDate":"2024-02-10"},{"lineNumber":83,"author":{"gitId":"ChinYanXu"},"content":" String[] tripleSplittedMessage \u003d doubleSplittedMessage[1].split(\" /to \");","lastModifiedDate":"2024-02-10"},{"lineNumber":84,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter] \u003d new Task(doubleSplittedMessage[0]);","lastModifiedDate":"2024-02-10"},{"lineNumber":85,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter].setTaskType(\"event\");","lastModifiedDate":"2024-02-10"},{"lineNumber":86,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter].setStartDate(tripleSplittedMessage[0]);","lastModifiedDate":"2024-02-10"},{"lineNumber":87,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter].setEndDate(tripleSplittedMessage[1]);","lastModifiedDate":"2024-02-10"},{"lineNumber":88,"author":{"gitId":"ChinYanXu"},"content":" taskCounter +\u003d 1;","lastModifiedDate":"2024-02-10"},{"lineNumber":89,"author":{"gitId":"ChinYanXu"},"content":" Messages.addEventMessage(taskList[taskCounter - 1].getTaskType(),","lastModifiedDate":"2024-02-10"},{"lineNumber":90,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter - 1].getStatusIcon(), taskList[taskCounter - 1].getDescription(),","lastModifiedDate":"2024-02-10"},{"lineNumber":91,"author":{"gitId":"ChinYanXu"},"content":" taskList[taskCounter - 1].getStartDate(), taskList[taskCounter - 1].getEndDate(),","lastModifiedDate":"2024-02-10"},{"lineNumber":92,"author":{"gitId":"ChinYanXu"},"content":" taskCounter);","lastModifiedDate":"2024-02-10"},{"lineNumber":93,"author":{"gitId":"ChinYanXu"},"content":" return taskCounter;","lastModifiedDate":"2024-02-10"},{"lineNumber":94,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":95,"author":{"gitId":"ChinYanXu"},"content":"}","lastModifiedDate":"2024-02-10"}],"authorContributionMap":{"ChinYanXu":95}},{"path":"src/main/java/Messages.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"ChinYanXu"},"content":"public class Messages {","lastModifiedDate":"2024-02-10"},{"lineNumber":2,"author":{"gitId":"ChinYanXu"},"content":" protected final static String VERTICAL_LINES \u003d \" ____________________________________________________________\";","lastModifiedDate":"2024-02-10"},{"lineNumber":3,"author":{"gitId":"ChinYanXu"},"content":" protected final static String FIVE_WHITE_SPACES \u003d \" \";","lastModifiedDate":"2024-02-10"},{"lineNumber":4,"author":{"gitId":"ChinYanXu"},"content":"","lastModifiedDate":"2024-02-10"},{"lineNumber":5,"author":{"gitId":"ChinYanXu"},"content":" public static void printVerticalLines() {","lastModifiedDate":"2024-02-10"},{"lineNumber":6,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICAL_LINES + \"\\n\");","lastModifiedDate":"2024-02-10"},{"lineNumber":7,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":8,"author":{"gitId":"ChinYanXu"},"content":" public static void errorMessage() {","lastModifiedDate":"2024-02-10"},{"lineNumber":9,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + \"Error\");","lastModifiedDate":"2024-02-10"},{"lineNumber":10,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":11,"author":{"gitId":"ChinYanXu"},"content":"","lastModifiedDate":"2024-02-10"},{"lineNumber":12,"author":{"gitId":"ChinYanXu"},"content":" public static void printGreetingMessage(String chatBotName) {","lastModifiedDate":"2024-02-10"},{"lineNumber":13,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICAL_LINES + \"\\n\" + FIVE_WHITE_SPACES","lastModifiedDate":"2024-02-10"},{"lineNumber":14,"author":{"gitId":"ChinYanXu"},"content":" + \"Good day my lord! I\u0027m \" + chatBotName + \"\\n\"","lastModifiedDate":"2024-02-10"},{"lineNumber":15,"author":{"gitId":"ChinYanXu"},"content":" + FIVE_WHITE_SPACES + \"How shall I serve thee?\\n\"","lastModifiedDate":"2024-02-10"},{"lineNumber":16,"author":{"gitId":"ChinYanXu"},"content":" + VERTICAL_LINES + \"\\n\");","lastModifiedDate":"2024-02-10"},{"lineNumber":17,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":18,"author":{"gitId":"ChinYanXu"},"content":" public static void printFarewellMessage() {","lastModifiedDate":"2024-02-10"},{"lineNumber":19,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICAL_LINES + \"\\n\"","lastModifiedDate":"2024-02-10"},{"lineNumber":20,"author":{"gitId":"ChinYanXu"},"content":" + FIVE_WHITE_SPACES + \"Farewell, my lord.\\n\"","lastModifiedDate":"2024-02-10"},{"lineNumber":21,"author":{"gitId":"ChinYanXu"},"content":" + VERTICAL_LINES);","lastModifiedDate":"2024-02-10"},{"lineNumber":22,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":23,"author":{"gitId":"ChinYanXu"},"content":" public static void startOfListMessage() {","lastModifiedDate":"2024-02-10"},{"lineNumber":24,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICAL_LINES);","lastModifiedDate":"2024-02-10"},{"lineNumber":25,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + \"My lord, here are the tasks as recorded in thy list:\");","lastModifiedDate":"2024-02-10"},{"lineNumber":26,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":27,"author":{"gitId":"ChinYanXu"},"content":" public static void todoListMessage(int itemNum, String type, String status, String description) {","lastModifiedDate":"2024-02-10"},{"lineNumber":28,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + (itemNum + 1) + \".\" + \"[\"","lastModifiedDate":"2024-02-10"},{"lineNumber":29,"author":{"gitId":"ChinYanXu"},"content":" + type + \"]\" + \"[\" + status + \"] \" + description);","lastModifiedDate":"2024-02-10"},{"lineNumber":30,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":31,"author":{"gitId":"ChinYanXu"},"content":" public static void deadlineListMessage(int itemNum, String type, String status,","lastModifiedDate":"2024-02-10"},{"lineNumber":32,"author":{"gitId":"ChinYanXu"},"content":" String description, String deadline) {","lastModifiedDate":"2024-02-10"},{"lineNumber":33,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + (itemNum + 1) + \".\" + \"[\" + type + \"]\"","lastModifiedDate":"2024-02-10"},{"lineNumber":34,"author":{"gitId":"ChinYanXu"},"content":" + \"[\" + status + \"] \" + description + \" (by: \" + deadline + \")\");","lastModifiedDate":"2024-02-10"},{"lineNumber":35,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":36,"author":{"gitId":"ChinYanXu"},"content":" public static void eventListMessage(int itemNum, String type, String status,","lastModifiedDate":"2024-02-10"},{"lineNumber":37,"author":{"gitId":"ChinYanXu"},"content":" String description, String startDate, String deadline) {","lastModifiedDate":"2024-02-10"},{"lineNumber":38,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + (itemNum + 1) + \".\" + \"[\" + type + \"]\"","lastModifiedDate":"2024-02-10"},{"lineNumber":39,"author":{"gitId":"ChinYanXu"},"content":" + \"[\" + status + \"] \" + description","lastModifiedDate":"2024-02-10"},{"lineNumber":40,"author":{"gitId":"ChinYanXu"},"content":" + \" (from: \" + startDate + \" to: \" + deadline +\")\");","lastModifiedDate":"2024-02-10"},{"lineNumber":41,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":42,"author":{"gitId":"ChinYanXu"},"content":" public static void listIsEmptyMessage() {","lastModifiedDate":"2024-02-10"},{"lineNumber":43,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICAL_LINES);","lastModifiedDate":"2024-02-10"},{"lineNumber":44,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + \"list is empty\");","lastModifiedDate":"2024-02-10"},{"lineNumber":45,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICAL_LINES);","lastModifiedDate":"2024-02-10"},{"lineNumber":46,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":47,"author":{"gitId":"ChinYanXu"},"content":"","lastModifiedDate":"2024-02-10"},{"lineNumber":48,"author":{"gitId":"ChinYanXu"},"content":" public static void markOrUnmarkTaskMessage(String type, String status, String description,","lastModifiedDate":"2024-02-10"},{"lineNumber":49,"author":{"gitId":"ChinYanXu"},"content":" String markedStatus) {","lastModifiedDate":"2024-02-10"},{"lineNumber":50,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICAL_LINES);","lastModifiedDate":"2024-02-10"},{"lineNumber":51,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + \"Acknowledged sire, I\u0027ve marked this task as \" + markedStatus + \":\");","lastModifiedDate":"2024-02-10"},{"lineNumber":52,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES","lastModifiedDate":"2024-02-10"},{"lineNumber":53,"author":{"gitId":"ChinYanXu"},"content":" + \" \" + \"[\" + type + \"]\"","lastModifiedDate":"2024-02-10"},{"lineNumber":54,"author":{"gitId":"ChinYanXu"},"content":" + \"[\" + status + \"] \"","lastModifiedDate":"2024-02-10"},{"lineNumber":55,"author":{"gitId":"ChinYanXu"},"content":" + description);","lastModifiedDate":"2024-02-10"},{"lineNumber":56,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICAL_LINES + \"\\n\");","lastModifiedDate":"2024-02-10"},{"lineNumber":57,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":58,"author":{"gitId":"ChinYanXu"},"content":" public static void addTodoMessage(String type, String status, String description, int taskCounter) {","lastModifiedDate":"2024-02-10"},{"lineNumber":59,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICAL_LINES);","lastModifiedDate":"2024-02-10"},{"lineNumber":60,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + \"Got it. I\u0027ve added this task:\");","lastModifiedDate":"2024-02-10"},{"lineNumber":61,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + \" \" + \"[\" + type + \"]\" +","lastModifiedDate":"2024-02-10"},{"lineNumber":62,"author":{"gitId":"ChinYanXu"},"content":" \"[\" + status + \"] \" + description);","lastModifiedDate":"2024-02-10"},{"lineNumber":63,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + \"Now you have \" + taskCounter + \" tasks in the list.\");","lastModifiedDate":"2024-02-10"},{"lineNumber":64,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICAL_LINES + \"\\n\");","lastModifiedDate":"2024-02-10"},{"lineNumber":65,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":66,"author":{"gitId":"ChinYanXu"},"content":"","lastModifiedDate":"2024-02-10"},{"lineNumber":67,"author":{"gitId":"ChinYanXu"},"content":" public static void addDeadlineMessage(String type, String status, String description,","lastModifiedDate":"2024-02-10"},{"lineNumber":68,"author":{"gitId":"ChinYanXu"},"content":" String endDate, int taskCounter) {","lastModifiedDate":"2024-02-10"},{"lineNumber":69,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICAL_LINES);","lastModifiedDate":"2024-02-10"},{"lineNumber":70,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + \"Got it. I\u0027ve added this task:\");","lastModifiedDate":"2024-02-10"},{"lineNumber":71,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + \" \" + \"[\" + type + \"]\" +","lastModifiedDate":"2024-02-10"},{"lineNumber":72,"author":{"gitId":"ChinYanXu"},"content":" \"[\" + status + \"] \" + description +","lastModifiedDate":"2024-02-10"},{"lineNumber":73,"author":{"gitId":"ChinYanXu"},"content":" \" (by: \" + endDate + \")\");","lastModifiedDate":"2024-02-10"},{"lineNumber":74,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + \"Now you have \" + Integer.toString(taskCounter) + \" tasks in the list.\");","lastModifiedDate":"2024-02-10"},{"lineNumber":75,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICAL_LINES + \"\\n\");","lastModifiedDate":"2024-02-10"},{"lineNumber":76,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":77,"author":{"gitId":"ChinYanXu"},"content":" public static void addEventMessage(String type, String status, String description,","lastModifiedDate":"2024-02-10"},{"lineNumber":78,"author":{"gitId":"ChinYanXu"},"content":" String startDate, String endDate, int taskCounter) {","lastModifiedDate":"2024-02-10"},{"lineNumber":79,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICAL_LINES);","lastModifiedDate":"2024-02-10"},{"lineNumber":80,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + \"Got it. I\u0027ve added this task:\");","lastModifiedDate":"2024-02-10"},{"lineNumber":81,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + \" \" + \"[\" + type + \"]\" +","lastModifiedDate":"2024-02-10"},{"lineNumber":82,"author":{"gitId":"ChinYanXu"},"content":" \"[\" + status + \"] \" + description +","lastModifiedDate":"2024-02-10"},{"lineNumber":83,"author":{"gitId":"ChinYanXu"},"content":" \" (from: \" + startDate + \" to: \" + endDate +","lastModifiedDate":"2024-02-10"},{"lineNumber":84,"author":{"gitId":"ChinYanXu"},"content":" \")\");","lastModifiedDate":"2024-02-10"},{"lineNumber":85,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(FIVE_WHITE_SPACES + \"Now you have \" + Integer.toString(taskCounter) + \" tasks in the list.\");","lastModifiedDate":"2024-02-10"},{"lineNumber":86,"author":{"gitId":"ChinYanXu"},"content":" System.out.println(VERTICAL_LINES + \"\\n\");","lastModifiedDate":"2024-02-10"},{"lineNumber":87,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":88,"author":{"gitId":"ChinYanXu"},"content":"}","lastModifiedDate":"2024-02-10"}],"authorContributionMap":{"ChinYanXu":88}},{"path":"src/main/java/Serf.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"ChinYanXu"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-01"},{"lineNumber":2,"author":{"gitId":"ChinYanXu"},"content":"","lastModifiedDate":"2024-02-10"},{"lineNumber":3,"author":{"gitId":"ChinYanXu"},"content":"public class Serf {","lastModifiedDate":"2024-01-24"},{"lineNumber":4,"author":{"gitId":"ChinYanXu"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-01-24"},{"lineNumber":5,"author":{"gitId":"ChinYanXu"},"content":" Task[] taskList \u003d new Task[100];","lastModifiedDate":"2024-02-02"},{"lineNumber":6,"author":{"gitId":"ChinYanXu"},"content":" int taskCounter \u003d 0; // tracks number of tasks in taskList","lastModifiedDate":"2024-02-02"},{"lineNumber":7,"author":{"gitId":"ChinYanXu"},"content":" String chatBotName \u003d \"Serf\";","lastModifiedDate":"2024-01-24"},{"lineNumber":8,"author":{"gitId":"ChinYanXu"},"content":"","lastModifiedDate":"2024-02-10"},{"lineNumber":9,"author":{"gitId":"ChinYanXu"},"content":" Messages.printGreetingMessage(chatBotName);","lastModifiedDate":"2024-02-10"},{"lineNumber":10,"author":{"gitId":"ChinYanXu"},"content":" Scanner requestedMessage \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-01"},{"lineNumber":11,"author":{"gitId":"ChinYanXu"},"content":" String receivedMessage \u003d requestedMessage.nextLine();","lastModifiedDate":"2024-02-01"},{"lineNumber":12,"author":{"gitId":"ChinYanXu"},"content":"","lastModifiedDate":"2024-02-01"},{"lineNumber":13,"author":{"gitId":"ChinYanXu"},"content":" while(!receivedMessage.equals(\"bye\")) {","lastModifiedDate":"2024-02-01"},{"lineNumber":14,"author":{"gitId":"ChinYanXu"},"content":" if (receivedMessage.equals(\"list\") \u0026\u0026 taskCounter \u003d\u003d 0) { // list is empty","lastModifiedDate":"2024-02-10"},{"lineNumber":15,"author":{"gitId":"ChinYanXu"},"content":" Messages.listIsEmptyMessage();","lastModifiedDate":"2024-02-10"},{"lineNumber":16,"author":{"gitId":"ChinYanXu"},"content":" receivedMessage \u003d requestedMessage.nextLine();","lastModifiedDate":"2024-02-01"},{"lineNumber":17,"author":{"gitId":"ChinYanXu"},"content":" continue;","lastModifiedDate":"2024-02-01"},{"lineNumber":18,"author":{"gitId":"ChinYanXu"},"content":" } else if (receivedMessage.equals(\"list\") \u0026\u0026 taskCounter \u003e 0) { // list is not empty","lastModifiedDate":"2024-02-10"},{"lineNumber":19,"author":{"gitId":"ChinYanXu"},"content":" ConditionHandlers.listIsNotEmpty(taskList, taskCounter);","lastModifiedDate":"2024-02-10"},{"lineNumber":20,"author":{"gitId":"ChinYanXu"},"content":" } else if (receivedMessage.contains(\"mark\") \u0026\u0026 !receivedMessage.contains(\"unmark\")) { // user keys in mark","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"ChinYanXu"},"content":" ConditionHandlers.markTask(receivedMessage, taskList);","lastModifiedDate":"2024-02-10"},{"lineNumber":22,"author":{"gitId":"ChinYanXu"},"content":" } else if (receivedMessage.contains(\"unmark\")) { // user keys in unmark","lastModifiedDate":"2024-02-02"},{"lineNumber":23,"author":{"gitId":"ChinYanXu"},"content":" ConditionHandlers.unmarkTask(receivedMessage, taskList);","lastModifiedDate":"2024-02-10"},{"lineNumber":24,"author":{"gitId":"ChinYanXu"},"content":" } else if (receivedMessage.contains(\"todo\")) { //user keys in todo","lastModifiedDate":"2024-02-10"},{"lineNumber":25,"author":{"gitId":"ChinYanXu"},"content":" taskCounter \u003d ConditionHandlers.addTodoTaskToList(receivedMessage, taskList, taskCounter);","lastModifiedDate":"2024-02-10"},{"lineNumber":26,"author":{"gitId":"ChinYanXu"},"content":" } else if (receivedMessage.contains(\"deadline\")) { //user keys in deadline","lastModifiedDate":"2024-02-10"},{"lineNumber":27,"author":{"gitId":"ChinYanXu"},"content":" taskCounter \u003d ConditionHandlers.addDeadlineTaskToList(receivedMessage, taskList, taskCounter);","lastModifiedDate":"2024-02-10"},{"lineNumber":28,"author":{"gitId":"ChinYanXu"},"content":" } else if (receivedMessage.contains(\"event\")) { //user keys in event","lastModifiedDate":"2024-02-10"},{"lineNumber":29,"author":{"gitId":"ChinYanXu"},"content":" taskCounter \u003d ConditionHandlers.addEventTaskToList(receivedMessage, taskList, taskCounter);","lastModifiedDate":"2024-02-10"},{"lineNumber":30,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-10"},{"lineNumber":31,"author":{"gitId":"ChinYanXu"},"content":" if (requestedMessage.hasNextLine()) { //check if user added another line","lastModifiedDate":"2024-02-10"},{"lineNumber":32,"author":{"gitId":"ChinYanXu"},"content":" receivedMessage \u003d requestedMessage.nextLine();","lastModifiedDate":"2024-02-01"},{"lineNumber":33,"author":{"gitId":"ChinYanXu"},"content":" } else {","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":36,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":37,"author":{"gitId":"ChinYanXu"},"content":" Messages.printFarewellMessage();","lastModifiedDate":"2024-02-10"},{"lineNumber":38,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-01-24"},{"lineNumber":39,"author":{"gitId":"ChinYanXu"},"content":"}","lastModifiedDate":"2024-01-24"}],"authorContributionMap":{"ChinYanXu":39}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"ChinYanXu"},"content":"public class Task {","lastModifiedDate":"2024-02-02"},{"lineNumber":2,"author":{"gitId":"ChinYanXu"},"content":" protected String description;","lastModifiedDate":"2024-02-02"},{"lineNumber":3,"author":{"gitId":"ChinYanXu"},"content":" protected boolean isDone;","lastModifiedDate":"2024-02-02"},{"lineNumber":4,"author":{"gitId":"ChinYanXu"},"content":" protected String startDate \u003d \"\";","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"ChinYanXu"},"content":" protected String endDate \u003d \"\";","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"ChinYanXu"},"content":" protected String taskType \u003d \"\";","lastModifiedDate":"2024-02-10"},{"lineNumber":7,"author":{"gitId":"ChinYanXu"},"content":" public Task(String description) {","lastModifiedDate":"2024-02-02"},{"lineNumber":8,"author":{"gitId":"ChinYanXu"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-02"},{"lineNumber":9,"author":{"gitId":"ChinYanXu"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":10,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":11,"author":{"gitId":"ChinYanXu"},"content":" public String getStatusIcon() {","lastModifiedDate":"2024-02-02"},{"lineNumber":12,"author":{"gitId":"ChinYanXu"},"content":" return (isDone ? \"X\" : \" \"); // mark done task with X","lastModifiedDate":"2024-02-02"},{"lineNumber":13,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":14,"author":{"gitId":"ChinYanXu"},"content":" public String getDescription() {","lastModifiedDate":"2024-02-02"},{"lineNumber":15,"author":{"gitId":"ChinYanXu"},"content":" return this.description;","lastModifiedDate":"2024-02-02"},{"lineNumber":16,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":17,"author":{"gitId":"ChinYanXu"},"content":" public void markAsDone() {","lastModifiedDate":"2024-02-02"},{"lineNumber":18,"author":{"gitId":"ChinYanXu"},"content":" this.isDone \u003d true;","lastModifiedDate":"2024-02-02"},{"lineNumber":19,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":20,"author":{"gitId":"ChinYanXu"},"content":" public void markAsUndone() {","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"ChinYanXu"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":22,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":23,"author":{"gitId":"ChinYanXu"},"content":" public void setStartDate(String startDate) {","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"ChinYanXu"},"content":" this.startDate \u003d startDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"ChinYanXu"},"content":" public String getStartDate() {","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"ChinYanXu"},"content":" return this.startDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"ChinYanXu"},"content":" public void setEndDate(String endDate) {","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"ChinYanXu"},"content":" this.endDate \u003d endDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"ChinYanXu"},"content":" public String getEndDate() {","lastModifiedDate":"2024-02-09"},{"lineNumber":33,"author":{"gitId":"ChinYanXu"},"content":" return this.endDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"ChinYanXu"},"content":" public void setTaskType(String status) {","lastModifiedDate":"2024-02-10"},{"lineNumber":36,"author":{"gitId":"ChinYanXu"},"content":" switch(status) {","lastModifiedDate":"2024-02-09"},{"lineNumber":37,"author":{"gitId":"ChinYanXu"},"content":" case \"todo\":","lastModifiedDate":"2024-02-09"},{"lineNumber":38,"author":{"gitId":"ChinYanXu"},"content":" this.taskType \u003d \"T\";","lastModifiedDate":"2024-02-10"},{"lineNumber":39,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":40,"author":{"gitId":"ChinYanXu"},"content":" case \"deadline\":","lastModifiedDate":"2024-02-09"},{"lineNumber":41,"author":{"gitId":"ChinYanXu"},"content":" this.taskType \u003d \"D\";","lastModifiedDate":"2024-02-10"},{"lineNumber":42,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":43,"author":{"gitId":"ChinYanXu"},"content":" case \"event\":","lastModifiedDate":"2024-02-09"},{"lineNumber":44,"author":{"gitId":"ChinYanXu"},"content":" this.taskType \u003d \"E\";","lastModifiedDate":"2024-02-10"},{"lineNumber":45,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":46,"author":{"gitId":"ChinYanXu"},"content":" default:","lastModifiedDate":"2024-02-09"},{"lineNumber":47,"author":{"gitId":"ChinYanXu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":48,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":49,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":50,"author":{"gitId":"ChinYanXu"},"content":" public String getTaskType() {","lastModifiedDate":"2024-02-10"},{"lineNumber":51,"author":{"gitId":"ChinYanXu"},"content":" return this.taskType;","lastModifiedDate":"2024-02-10"},{"lineNumber":52,"author":{"gitId":"ChinYanXu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":53,"author":{"gitId":"ChinYanXu"},"content":"}","lastModifiedDate":"2024-02-02"}],"authorContributionMap":{"ChinYanXu":53}},{"path":"text-ui-test/input.txt","fileType":"txt","lines":[{"lineNumber":1,"author":{"gitId":"ChinYanXu"},"content":"deadline CS2113 ip /by Friday 9pm","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"ChinYanXu"},"content":"deadline buy gift /by 10 feb","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"ChinYanXu"},"content":"todo run new year errands","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"ChinYanXu"},"content":"todo ee2026 assignment","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"ChinYanXu"},"content":"mark 2","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"ChinYanXu"},"content":"mark 3","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"ChinYanXu"},"content":"mark 4","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"ChinYanXu"},"content":"unmark 4","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"ChinYanXu"},"content":"event cny gathering /from 11am /to 6pm","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"ChinYanXu"},"content":"event gym /from 10pm /to 12am","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"ChinYanXu"},"content":"list","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"ChinYanXu":11}},{"path":"text-ui-test/runtest.bat","fileType":"bat","lines":[{"lineNumber":1,"author":{"gitId":"-"},"content":"@ECHO OFF","lastModifiedDate":"2020-05-25"},{"lineNumber":2,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":3,"author":{"gitId":"-"},"content":"REM create bin directory if it doesn\u0027t exist","lastModifiedDate":"2020-05-25"},{"lineNumber":4,"author":{"gitId":"-"},"content":"if not exist ..\\bin mkdir ..\\bin","lastModifiedDate":"2020-05-25"},{"lineNumber":5,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":6,"author":{"gitId":"-"},"content":"REM delete output from previous run","lastModifiedDate":"2020-05-25"},{"lineNumber":7,"author":{"gitId":"-"},"content":"if exist ACTUAL.TXT del ACTUAL.TXT","lastModifiedDate":"2020-08-25"},{"lineNumber":8,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":9,"author":{"gitId":"-"},"content":"REM compile the code into the bin folder","lastModifiedDate":"2020-05-25"},{"lineNumber":10,"author":{"gitId":"-"},"content":"javac -cp ..\\src\\main\\java -Xlint:none -d ..\\bin ..\\src\\main\\java\\*.java","lastModifiedDate":"2020-08-25"},{"lineNumber":11,"author":{"gitId":"-"},"content":"IF ERRORLEVEL 1 (","lastModifiedDate":"2020-05-25"},{"lineNumber":12,"author":{"gitId":"-"},"content":" echo ********** BUILD FAILURE **********","lastModifiedDate":"2020-05-25"},{"lineNumber":13,"author":{"gitId":"-"},"content":" exit /b 1","lastModifiedDate":"2020-05-25"},{"lineNumber":14,"author":{"gitId":"-"},"content":")","lastModifiedDate":"2020-05-25"},{"lineNumber":15,"author":{"gitId":"-"},"content":"REM no error here, errorlevel \u003d\u003d 0","lastModifiedDate":"2020-05-25"},{"lineNumber":16,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":17,"author":{"gitId":"-"},"content":"REM run the program, feed commands from input.txt file and redirect the output to the ACTUAL.TXT","lastModifiedDate":"2020-05-25"},{"lineNumber":18,"author":{"gitId":"ChinYanXu"},"content":"java -classpath ..\\bin Serf \u003c input.txt \u003e ACTUAL.TXT","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":20,"author":{"gitId":"-"},"content":"REM compare the output to the expected output","lastModifiedDate":"2020-05-25"},{"lineNumber":21,"author":{"gitId":"-"},"content":"FC ACTUAL.TXT EXPECTED.TXT","lastModifiedDate":"2020-05-25"}],"authorContributionMap":{"ChinYanXu":1,"-":20}}] diff --git a/ChinYanXu_ip_master/commits.json b/ChinYanXu_ip_master/commits.json index 2693ec01..6b6040c0 100644 --- a/ChinYanXu_ip_master/commits.json +++ b/ChinYanXu_ip_master/commits.json @@ -1 +1 @@ -{"authorDailyContributionsMap":{"ChinYanXu":[{"date":"2024-01-25","commitResults":[{"hash":"0e04baf273bec8e2feec64d3c98e1a2c13b90e95","isMergeCommit":false,"messageTitle":"Update Duke.java and rename Duke.java to Serf.java","messageBody":"","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":12,"deletions":10}}}]},{"date":"2024-02-01","commitResults":[{"hash":"92fd0e03d02919d422f6a2d61aa83341a9738dc6","isMergeCommit":false,"messageTitle":"Add echo functionality","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":31,"deletions":8}}},{"hash":"0a0caecec11ec82a95c30d63524abeb91252aa9e","isMergeCommit":false,"messageTitle":"Add text store functionality and list functionality","messageBody":"","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":33,"deletions":20}}}]},{"date":"2024-02-02","commitResults":[{"hash":"e03e8a7c59e98cb9cd3b5dd4fb637bbd29dc1580","isMergeCommit":false,"messageTitle":"Add markAsDone and markAsUndone functionality and Task class","messageBody":"","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":74,"deletions":9}}},{"hash":"5789c10c9beaf587daa8299a8f9ebc3bff3dda96","isMergeCommit":false,"messageTitle":"Ensure compliance with Java coding standard","messageBody":"","tags":["A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":28,"deletions":21}}}]},{"date":"2024-02-09","commitResults":[{"hash":"9545200d5d3ef55d18fd1068f797b3e1dfc54c9d","isMergeCommit":false,"messageTitle":"Add Todo, Event and Deadline functionality","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":109,"deletions":13}}},{"hash":"0f9a833dfde4c17a4c6945f4e700c4179cc97ccf","isMergeCommit":false,"messageTitle":"Add Todo, Event and Deadline functionality","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":111,"deletions":23}}},{"hash":"77a6148cfdcce3a02bc4e1352a70d1578e1e7b04","isMergeCommit":true,"messageTitle":"Merge branch \u0027master\u0027 of github.com:ChinYanXu/ip","messageBody":"","fileTypesAndContributionMap":{}},{"hash":"e79bb7065c2cdf72af924e2f4bbbfb7cb699505f","isMergeCommit":false,"messageTitle":"Add Todo, Event and Deadline functionality","messageBody":"","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":0,"deletions":1}}}]}]},"authorFileTypeContributionMap":{"ChinYanXu":{"java":207,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"ChinYanXu":3678.2087},"authorDisplayNameMap":{"ChinYanXu":"CS2113-T12-4 CHIN..N XU"}} +{"authorDailyContributionsMap":{"ChinYanXu":[{"date":"2024-01-25","commitResults":[{"hash":"0e04baf273bec8e2feec64d3c98e1a2c13b90e95","isMergeCommit":false,"messageTitle":"Update Duke.java and rename Duke.java to Serf.java","messageBody":"","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":12,"deletions":10}}}]},{"date":"2024-02-01","commitResults":[{"hash":"92fd0e03d02919d422f6a2d61aa83341a9738dc6","isMergeCommit":false,"messageTitle":"Add echo functionality","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":31,"deletions":8}}},{"hash":"0a0caecec11ec82a95c30d63524abeb91252aa9e","isMergeCommit":false,"messageTitle":"Add text store functionality and list functionality","messageBody":"","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":33,"deletions":20}}}]},{"date":"2024-02-02","commitResults":[{"hash":"e03e8a7c59e98cb9cd3b5dd4fb637bbd29dc1580","isMergeCommit":false,"messageTitle":"Add markAsDone and markAsUndone functionality and Task class","messageBody":"","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":74,"deletions":9}}},{"hash":"5789c10c9beaf587daa8299a8f9ebc3bff3dda96","isMergeCommit":false,"messageTitle":"Ensure compliance with Java coding standard","messageBody":"","tags":["A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":28,"deletions":21}}}]},{"date":"2024-02-09","commitResults":[{"hash":"9545200d5d3ef55d18fd1068f797b3e1dfc54c9d","isMergeCommit":false,"messageTitle":"Add Todo, Event and Deadline functionality","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":109,"deletions":13}}},{"hash":"0f9a833dfde4c17a4c6945f4e700c4179cc97ccf","isMergeCommit":false,"messageTitle":"Add Todo, Event and Deadline functionality","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":111,"deletions":23}}},{"hash":"77a6148cfdcce3a02bc4e1352a70d1578e1e7b04","isMergeCommit":true,"messageTitle":"Merge branch \u0027master\u0027 of github.com:ChinYanXu/ip","messageBody":"","fileTypesAndContributionMap":{}},{"hash":"e79bb7065c2cdf72af924e2f4bbbfb7cb699505f","isMergeCommit":false,"messageTitle":"Add Todo, Event and Deadline functionality","messageBody":"","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":0,"deletions":1}}},{"hash":"634398aee0cce33f83bf635d359ffb8b22324473","isMergeCommit":false,"messageTitle":"Add Text UI testing","messageBody":"","tags":["A-TextUiTesting"],"fileTypesAndContributionMap":{"txt":{"insertions":11,"deletions":0},"java":{"insertions":8,"deletions":5},"bat":{"insertions":1,"deletions":1}}}]},{"date":"2024-02-10","commitResults":[{"hash":"92bae9f87cc6eb1e199c0b00dc394976d04387c8","isMergeCommit":false,"messageTitle":"Refactor codebase","messageBody":"","tags":["A-CodeQuality"],"fileTypesAndContributionMap":{"java":{"insertions":207,"deletions":142}}}]}]},"authorFileTypeContributionMap":{"ChinYanXu":{"java":275,"md":0,"fxml":0,"sh":0,"bat":1,"gradle":0,"txt":11}},"authorContributionVariance":{"ChinYanXu":8467.187},"authorDisplayNameMap":{"ChinYanXu":"CS2113-T12-4 CHIN..N XU"}} diff --git a/Ijaaz01_ip_master/authorship.json b/Ijaaz01_ip_master/authorship.json index ac28d9fb..8e1417c4 100644 --- a/Ijaaz01_ip_master/authorship.json +++ b/Ijaaz01_ip_master/authorship.json @@ -1 +1 @@ -[{"path":"src/main/java/Duke.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Ijaaz01"},"content":"import java.util.ArrayList;","lastModifiedDate":"2024-02-02"},{"lineNumber":2,"author":{"gitId":"Ijaaz01"},"content":"import java.util.List;","lastModifiedDate":"2024-02-02"},{"lineNumber":3,"author":{"gitId":"Ijaaz01"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-01"},{"lineNumber":4,"author":{"gitId":"-"},"content":"public class Duke {","lastModifiedDate":"2019-07-29"},{"lineNumber":5,"author":{"gitId":"Ijaaz01"},"content":" public static void printList(List\u003cTask\u003e list) {","lastModifiedDate":"2024-02-02"},{"lineNumber":6,"author":{"gitId":"Ijaaz01"},"content":" for (int i \u003d 0; i \u003c list.size(); i++) {","lastModifiedDate":"2024-02-02"},{"lineNumber":7,"author":{"gitId":"Ijaaz01"},"content":" System.out.println((i+1)+\".\"+list.get(i).getDoneStatus()+\" \"+list.get(i).getDescription());","lastModifiedDate":"2024-02-02"},{"lineNumber":8,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":9,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":10,"author":{"gitId":"-"},"content":" public static void main(String[] args) {","lastModifiedDate":"2019-07-29"},{"lineNumber":11,"author":{"gitId":"Ijaaz01"},"content":" String lineBreak \u003d \"----------------------------------------------------------\";","lastModifiedDate":"2024-01-25"},{"lineNumber":12,"author":{"gitId":"Ijaaz01"},"content":" String idle \u003d \" █████████████ \\n\"","lastModifiedDate":"2024-01-25"},{"lineNumber":13,"author":{"gitId":"Ijaaz01"},"content":" + \" ██ ██ \\n\"","lastModifiedDate":"2024-01-25"},{"lineNumber":14,"author":{"gitId":"Ijaaz01"},"content":" + \" ██ █████ ██ \\n\"","lastModifiedDate":"2024-01-25"},{"lineNumber":15,"author":{"gitId":"Ijaaz01"},"content":" + \" ██ █████ ██ \\n\"","lastModifiedDate":"2024-01-25"},{"lineNumber":16,"author":{"gitId":"Ijaaz01"},"content":" + \" ██ ██ \\n\"","lastModifiedDate":"2024-01-25"},{"lineNumber":17,"author":{"gitId":"Ijaaz01"},"content":" + \" █████████████ \\n\"","lastModifiedDate":"2024-01-25"},{"lineNumber":18,"author":{"gitId":"Ijaaz01"},"content":" + \" ██ ██\\n\"","lastModifiedDate":"2024-01-25"},{"lineNumber":19,"author":{"gitId":"Ijaaz01"},"content":" + \" ██████████████████ \\n\\n\";","lastModifiedDate":"2024-01-25"},{"lineNumber":20,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-01-25"},{"lineNumber":21,"author":{"gitId":"Ijaaz01"},"content":" String happy\u003d \" ███ \\n\"","lastModifiedDate":"2024-01-25"},{"lineNumber":22,"author":{"gitId":"Ijaaz01"},"content":" + \" ███████ \\n\"","lastModifiedDate":"2024-01-25"},{"lineNumber":23,"author":{"gitId":"Ijaaz01"},"content":" + \" ████ ████ \\n\"","lastModifiedDate":"2024-01-25"},{"lineNumber":24,"author":{"gitId":"Ijaaz01"},"content":" + \" ███ ███ \\n\"","lastModifiedDate":"2024-01-25"},{"lineNumber":25,"author":{"gitId":"Ijaaz01"},"content":" + \" ██ ██ \\n\"","lastModifiedDate":"2024-01-25"},{"lineNumber":26,"author":{"gitId":"Ijaaz01"},"content":" + \" ██ ██\\n\"","lastModifiedDate":"2024-01-25"},{"lineNumber":27,"author":{"gitId":"Ijaaz01"},"content":" + \" ███ ███ \\n\"","lastModifiedDate":"2024-01-25"},{"lineNumber":28,"author":{"gitId":"Ijaaz01"},"content":" + \" ███████████████ \\n\\n\";","lastModifiedDate":"2024-01-25"},{"lineNumber":29,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-01"},{"lineNumber":30,"author":{"gitId":"Ijaaz01"},"content":" String input \u003d \"Start\";","lastModifiedDate":"2024-02-01"},{"lineNumber":31,"author":{"gitId":"Ijaaz01"},"content":" List\u003cTask\u003e list \u003d new ArrayList\u003c\u003e(2);","lastModifiedDate":"2024-02-02"},{"lineNumber":32,"author":{"gitId":"Ijaaz01"},"content":" Scanner in \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-01"},{"lineNumber":33,"author":{"gitId":"Ijaaz01"},"content":" System.out.println(idle + \"Hello, Im Pythia, how may I help you today?\\n\"+lineBreak);","lastModifiedDate":"2024-01-25"},{"lineNumber":34,"author":{"gitId":"Ijaaz01"},"content":" while (!input.equals(\"bye\")) {","lastModifiedDate":"2024-02-01"},{"lineNumber":35,"author":{"gitId":"Ijaaz01"},"content":" input \u003d in.nextLine();","lastModifiedDate":"2024-02-01"},{"lineNumber":36,"author":{"gitId":"Ijaaz01"},"content":" if (input.equalsIgnoreCase(\"list\")) {","lastModifiedDate":"2024-02-02"},{"lineNumber":37,"author":{"gitId":"Ijaaz01"},"content":" printList(list);","lastModifiedDate":"2024-02-02"},{"lineNumber":38,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":39,"author":{"gitId":"Ijaaz01"},"content":" else if (input.contains(\"add \")) {","lastModifiedDate":"2024-02-02"},{"lineNumber":40,"author":{"gitId":"Ijaaz01"},"content":" String[] splitInput \u003d input.split(\" \");","lastModifiedDate":"2024-02-02"},{"lineNumber":41,"author":{"gitId":"Ijaaz01"},"content":" System.out.println(\"added: \"+splitInput[1]);","lastModifiedDate":"2024-02-02"},{"lineNumber":42,"author":{"gitId":"Ijaaz01"},"content":" list.add(new Task(input));","lastModifiedDate":"2024-02-02"},{"lineNumber":43,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":44,"author":{"gitId":"Ijaaz01"},"content":" else if (input.contains(\"unmark \")) {","lastModifiedDate":"2024-02-02"},{"lineNumber":45,"author":{"gitId":"Ijaaz01"},"content":" String[] splitInput \u003d input.split(\" \");","lastModifiedDate":"2024-02-02"},{"lineNumber":46,"author":{"gitId":"Ijaaz01"},"content":" list.get(Integer.parseInt(splitInput[1])-1).doneIsFalse();","lastModifiedDate":"2024-02-02"},{"lineNumber":47,"author":{"gitId":"Ijaaz01"},"content":" System.out.println(\"Unmarked \"+ Integer.parseInt(splitInput[1]));","lastModifiedDate":"2024-02-02"},{"lineNumber":48,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":49,"author":{"gitId":"Ijaaz01"},"content":" else if (input.contains(\"mark \")) {","lastModifiedDate":"2024-02-02"},{"lineNumber":50,"author":{"gitId":"Ijaaz01"},"content":" String[] splitInput \u003d input.split(\" \");","lastModifiedDate":"2024-02-02"},{"lineNumber":51,"author":{"gitId":"Ijaaz01"},"content":" list.get(Integer.parseInt(splitInput[1])-1).doneIsTrue();","lastModifiedDate":"2024-02-02"},{"lineNumber":52,"author":{"gitId":"Ijaaz01"},"content":" System.out.println(\"Marked \"+ Integer.parseInt(splitInput[1]));","lastModifiedDate":"2024-02-02"},{"lineNumber":53,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":54,"author":{"gitId":"Ijaaz01"},"content":" else {","lastModifiedDate":"2024-02-02"},{"lineNumber":55,"author":{"gitId":"Ijaaz01"},"content":" System.out.println(input);","lastModifiedDate":"2024-02-02"},{"lineNumber":56,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":57,"author":{"gitId":"Ijaaz01"},"content":" System.out.println(lineBreak);","lastModifiedDate":"2024-02-02"},{"lineNumber":58,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":59,"author":{"gitId":"Ijaaz01"},"content":" System.out.println(happy+\"Happy to help, have a great day.\\n\"+lineBreak);","lastModifiedDate":"2024-01-25"},{"lineNumber":60,"author":{"gitId":"-"},"content":" }","lastModifiedDate":"2019-07-29"},{"lineNumber":61,"author":{"gitId":"-"},"content":"}","lastModifiedDate":"2019-07-29"}],"authorContributionMap":{"-":4,"Ijaaz01":57}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Ijaaz01"},"content":"public class Task {","lastModifiedDate":"2024-02-02"},{"lineNumber":2,"author":{"gitId":"Ijaaz01"},"content":" private String description;","lastModifiedDate":"2024-02-02"},{"lineNumber":3,"author":{"gitId":"Ijaaz01"},"content":" private boolean isDone;","lastModifiedDate":"2024-02-02"},{"lineNumber":4,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":5,"author":{"gitId":"Ijaaz01"},"content":" public Task(String description) {","lastModifiedDate":"2024-02-02"},{"lineNumber":6,"author":{"gitId":"Ijaaz01"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-02"},{"lineNumber":7,"author":{"gitId":"Ijaaz01"},"content":" isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":8,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":9,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":10,"author":{"gitId":"Ijaaz01"},"content":" public void doneIsFalse() {","lastModifiedDate":"2024-02-02"},{"lineNumber":11,"author":{"gitId":"Ijaaz01"},"content":" isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":12,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":13,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":14,"author":{"gitId":"Ijaaz01"},"content":" public void doneIsTrue() {","lastModifiedDate":"2024-02-02"},{"lineNumber":15,"author":{"gitId":"Ijaaz01"},"content":" isDone \u003d true;","lastModifiedDate":"2024-02-02"},{"lineNumber":16,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":17,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":18,"author":{"gitId":"Ijaaz01"},"content":" public String getDoneStatus() {","lastModifiedDate":"2024-02-02"},{"lineNumber":19,"author":{"gitId":"Ijaaz01"},"content":" return (isDone ? \"[X]\" : \"[ ]\");","lastModifiedDate":"2024-02-02"},{"lineNumber":20,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":22,"author":{"gitId":"Ijaaz01"},"content":" public String getDescription() {","lastModifiedDate":"2024-02-02"},{"lineNumber":23,"author":{"gitId":"Ijaaz01"},"content":" return description;","lastModifiedDate":"2024-02-02"},{"lineNumber":24,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":25,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":26,"author":{"gitId":"Ijaaz01"},"content":"}","lastModifiedDate":"2024-02-02"}],"authorContributionMap":{"Ijaaz01":26}}] +[{"path":"src/main/java/Deadline.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Ijaaz01"},"content":"public class Deadline extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Ijaaz01"},"content":" protected String by;","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Ijaaz01"},"content":" public Deadline(String description, String by) {","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Ijaaz01"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Ijaaz01"},"content":" this.by \u003d by.replaceFirst(\"by\", \"by:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Ijaaz01"},"content":" this.taskId \u003d \"[D]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Ijaaz01"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Ijaaz01"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Ijaaz01"},"content":" return taskId + this.getDoneStatus() + \" \" + description + \" (\" + by + \")\";","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Ijaaz01"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Ijaaz01":14}},{"path":"src/main/java/Duke.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Ijaaz01"},"content":"import java.util.ArrayList;","lastModifiedDate":"2024-02-02"},{"lineNumber":2,"author":{"gitId":"Ijaaz01"},"content":"import java.util.List;","lastModifiedDate":"2024-02-02"},{"lineNumber":3,"author":{"gitId":"Ijaaz01"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-01"},{"lineNumber":4,"author":{"gitId":"-"},"content":"public class Duke {","lastModifiedDate":"2019-07-29"},{"lineNumber":5,"author":{"gitId":"Ijaaz01"},"content":" private static final String lineBreak \u003d \"----------------------------------------------------------\";","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Ijaaz01"},"content":" public static void printList(List\u003cTask\u003e list) {","lastModifiedDate":"2024-02-02"},{"lineNumber":7,"author":{"gitId":"Ijaaz01"},"content":" for (int i \u003d 0; i \u003c list.size(); i++) {","lastModifiedDate":"2024-02-02"},{"lineNumber":8,"author":{"gitId":"Ijaaz01"},"content":" System.out.println((i+1)+\".\"+list.get(i));","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":10,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":11,"author":{"gitId":"-"},"content":" public static void main(String[] args) {","lastModifiedDate":"2019-07-29"},{"lineNumber":12,"author":{"gitId":"Ijaaz01"},"content":" String input \u003d \"Start\";","lastModifiedDate":"2024-02-01"},{"lineNumber":13,"author":{"gitId":"Ijaaz01"},"content":" MoodSprite mood \u003d new MoodSprite();","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Ijaaz01"},"content":" Parser parser \u003d new Parser();","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Ijaaz01"},"content":" List\u003cTask\u003e list \u003d new ArrayList\u003c\u003e(2);","lastModifiedDate":"2024-02-02"},{"lineNumber":16,"author":{"gitId":"Ijaaz01"},"content":" Scanner in \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-01"},{"lineNumber":17,"author":{"gitId":"Ijaaz01"},"content":" System.out.println(mood.getIdle() + \"Hello, Im Pythia, how may I help you today?\\n\"+lineBreak);","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"Ijaaz01"},"content":" while (!input.equals(\"bye\")) {","lastModifiedDate":"2024-02-01"},{"lineNumber":19,"author":{"gitId":"Ijaaz01"},"content":" input \u003d in.nextLine();","lastModifiedDate":"2024-02-01"},{"lineNumber":20,"author":{"gitId":"Ijaaz01"},"content":" if (input.equalsIgnoreCase(\"list\")) {","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"Ijaaz01"},"content":" printList(list);","lastModifiedDate":"2024-02-02"},{"lineNumber":22,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":23,"author":{"gitId":"Ijaaz01"},"content":" else if (parser.isValidCommand(input)) {","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"Ijaaz01"},"content":" list.add(parser.addTask(input));","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"Ijaaz01"},"content":" System.out.println(\"added: \"+ list.get(list.size()-1));","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":27,"author":{"gitId":"Ijaaz01"},"content":" else if (input.contains(\"unmark \")) {","lastModifiedDate":"2024-02-02"},{"lineNumber":28,"author":{"gitId":"Ijaaz01"},"content":" String[] splitInput \u003d input.split(\" \");","lastModifiedDate":"2024-02-02"},{"lineNumber":29,"author":{"gitId":"Ijaaz01"},"content":" list.get(Integer.parseInt(splitInput[1])-1).doneIsFalse();","lastModifiedDate":"2024-02-02"},{"lineNumber":30,"author":{"gitId":"Ijaaz01"},"content":" System.out.println(\"Unmarked \"+ Integer.parseInt(splitInput[1]));","lastModifiedDate":"2024-02-02"},{"lineNumber":31,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":32,"author":{"gitId":"Ijaaz01"},"content":" else if (input.contains(\"mark \")) {","lastModifiedDate":"2024-02-02"},{"lineNumber":33,"author":{"gitId":"Ijaaz01"},"content":" String[] splitInput \u003d input.split(\" \");","lastModifiedDate":"2024-02-02"},{"lineNumber":34,"author":{"gitId":"Ijaaz01"},"content":" list.get(Integer.parseInt(splitInput[1])-1).doneIsTrue();","lastModifiedDate":"2024-02-02"},{"lineNumber":35,"author":{"gitId":"Ijaaz01"},"content":" System.out.println(\"Marked \"+ Integer.parseInt(splitInput[1]));","lastModifiedDate":"2024-02-02"},{"lineNumber":36,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":37,"author":{"gitId":"Ijaaz01"},"content":" else {","lastModifiedDate":"2024-02-02"},{"lineNumber":38,"author":{"gitId":"Ijaaz01"},"content":" System.out.println(input);","lastModifiedDate":"2024-02-02"},{"lineNumber":39,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":40,"author":{"gitId":"Ijaaz01"},"content":" System.out.println(lineBreak);","lastModifiedDate":"2024-02-02"},{"lineNumber":41,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":42,"author":{"gitId":"Ijaaz01"},"content":" System.out.println(mood.getHappy()+\"Happy to help, have a great day.\\n\"+lineBreak);","lastModifiedDate":"2024-02-09"},{"lineNumber":43,"author":{"gitId":"-"},"content":" }","lastModifiedDate":"2019-07-29"},{"lineNumber":44,"author":{"gitId":"-"},"content":"}","lastModifiedDate":"2019-07-29"}],"authorContributionMap":{"-":4,"Ijaaz01":40}},{"path":"src/main/java/Event.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Ijaaz01"},"content":"public class Event extends Task{","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Ijaaz01"},"content":" protected String from;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Ijaaz01"},"content":" protected String to;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Ijaaz01"},"content":" public Event(String description, String from, String to) {","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Ijaaz01"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Ijaaz01"},"content":" this.from \u003d from.replaceFirst(\"from\", \"from:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Ijaaz01"},"content":" this.to \u003d to.replaceFirst(\"to\", \"to:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Ijaaz01"},"content":" this.taskId \u003d \"[E]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Ijaaz01"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Ijaaz01"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Ijaaz01"},"content":" return taskId + this.getDoneStatus() + \" \" + description + \" (\" + from + \" \" + to + \")\";","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"Ijaaz01"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Ijaaz01":17}},{"path":"src/main/java/MoodSprite.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Ijaaz01"},"content":"public class MoodSprite {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Ijaaz01"},"content":" private static final String HAPPY \u003d \" ███ \\n\"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Ijaaz01"},"content":" + \" ███████ \\n\"","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Ijaaz01"},"content":" + \" ████ ████ \\n\"","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Ijaaz01"},"content":" + \" ███ ███ \\n\"","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Ijaaz01"},"content":" + \" ██ ██ \\n\"","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Ijaaz01"},"content":" + \" ██ ██\\n\"","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Ijaaz01"},"content":" + \" ███ ███ \\n\"","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Ijaaz01"},"content":" + \" ███████████████ \\n\\n\";","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Ijaaz01"},"content":" private static final String IDLE \u003d \" █████████████ \\n\"","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Ijaaz01"},"content":" + \" ██ ██ \\n\"","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Ijaaz01"},"content":" + \" ██ █████ ██ \\n\"","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Ijaaz01"},"content":" + \" ██ █████ ██ \\n\"","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Ijaaz01"},"content":" + \" ██ ██ \\n\"","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Ijaaz01"},"content":" + \" █████████████ \\n\"","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"Ijaaz01"},"content":" + \" ██ ██\\n\"","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"Ijaaz01"},"content":" + \" ██████████████████ \\n\\n\";","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"Ijaaz01"},"content":" public String getHappy() {","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"Ijaaz01"},"content":" return HAPPY;","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"Ijaaz01"},"content":" public String getIdle() {","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"Ijaaz01"},"content":" return IDLE;","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Ijaaz01"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Ijaaz01":27}},{"path":"src/main/java/Parser.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Ijaaz01"},"content":"public class Parser {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Ijaaz01"},"content":" public String[] splitTaskTrimmer(String[] splitTask) {","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Ijaaz01"},"content":" for (int i \u003d 0; i \u003c splitTask.length; i++) {","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Ijaaz01"},"content":" splitTask[i] \u003d splitTask[i].trim();","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Ijaaz01"},"content":" return splitTask;","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Ijaaz01"},"content":" public String[] parseDeadline(String task) {","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Ijaaz01"},"content":" task \u003d task.replaceFirst(\"deadline\", \"\");","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Ijaaz01"},"content":" return splitTaskTrimmer(task.split(\"/\"));","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Ijaaz01"},"content":" public String[] parseEvent(String task) {","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Ijaaz01"},"content":" task \u003d task.replaceFirst(\"event\", \"\");","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Ijaaz01"},"content":" return splitTaskTrimmer((task.split(\"/\")));","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"Ijaaz01"},"content":" public Task addTask(String task) {","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"Ijaaz01"},"content":" String[] parsedTask;","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"Ijaaz01"},"content":" if (task.contains(\"todo \")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"Ijaaz01"},"content":" task \u003d task.replaceFirst(\"todo\", \"\");","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"Ijaaz01"},"content":" return new Todo(task);","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"Ijaaz01"},"content":" } else if (task.contains(\"deadline \")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"Ijaaz01"},"content":" parsedTask \u003d parseDeadline(task);","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"Ijaaz01"},"content":" return new Deadline(parsedTask[0], parsedTask[1]);","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"Ijaaz01"},"content":" } else if (task.contains(\"event \")){","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Ijaaz01"},"content":" parsedTask \u003d parseEvent(task);","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Ijaaz01"},"content":" return new Event(parsedTask[0], parsedTask[1], parsedTask[2]);","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Ijaaz01"},"content":" } else {","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"Ijaaz01"},"content":" return null;","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":33,"author":{"gitId":"Ijaaz01"},"content":" public boolean isValidCommand(String task) {","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"Ijaaz01"},"content":" return (task.contains(\"todo\") | task.contains(\"deadline\") | task.contains(\"event\"));","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":36,"author":{"gitId":"Ijaaz01"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Ijaaz01":36}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Ijaaz01"},"content":"public class Task {","lastModifiedDate":"2024-02-02"},{"lineNumber":2,"author":{"gitId":"Ijaaz01"},"content":" protected String description;","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Ijaaz01"},"content":" protected boolean isDone;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Ijaaz01"},"content":" protected String taskId;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":6,"author":{"gitId":"Ijaaz01"},"content":" public Task(String description) {","lastModifiedDate":"2024-02-02"},{"lineNumber":7,"author":{"gitId":"Ijaaz01"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-02"},{"lineNumber":8,"author":{"gitId":"Ijaaz01"},"content":" isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":9,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":10,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":11,"author":{"gitId":"Ijaaz01"},"content":" public void doneIsFalse() {","lastModifiedDate":"2024-02-02"},{"lineNumber":12,"author":{"gitId":"Ijaaz01"},"content":" isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":13,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":14,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":15,"author":{"gitId":"Ijaaz01"},"content":" public void doneIsTrue() {","lastModifiedDate":"2024-02-02"},{"lineNumber":16,"author":{"gitId":"Ijaaz01"},"content":" isDone \u003d true;","lastModifiedDate":"2024-02-02"},{"lineNumber":17,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":18,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":19,"author":{"gitId":"Ijaaz01"},"content":" public String getDoneStatus() {","lastModifiedDate":"2024-02-02"},{"lineNumber":20,"author":{"gitId":"Ijaaz01"},"content":" return (isDone ? \"[X]\" : \"[ ]\");","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":22,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":23,"author":{"gitId":"Ijaaz01"},"content":" public String getDescription() {","lastModifiedDate":"2024-02-02"},{"lineNumber":24,"author":{"gitId":"Ijaaz01"},"content":" return description;","lastModifiedDate":"2024-02-02"},{"lineNumber":25,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":26,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":27,"author":{"gitId":"Ijaaz01"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Ijaaz01"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"Ijaaz01"},"content":" return taskId + this.getDoneStatus() + \" \" + description;","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"Ijaaz01"},"content":"}","lastModifiedDate":"2024-02-02"}],"authorContributionMap":{"Ijaaz01":32}},{"path":"src/main/java/Todo.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Ijaaz01"},"content":"public class Todo extends Task{","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Ijaaz01"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Ijaaz01"},"content":" public Todo (String description) {","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Ijaaz01"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Ijaaz01"},"content":" this.taskId \u003d \"[T]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Ijaaz01"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Ijaaz01"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Ijaaz01":7}}] diff --git a/Ijaaz01_ip_master/commits.json b/Ijaaz01_ip_master/commits.json index cb9f1255..e56e1b5c 100644 --- a/Ijaaz01_ip_master/commits.json +++ b/Ijaaz01_ip_master/commits.json @@ -1 +1 @@ -{"authorDailyContributionsMap":{"Ijaaz01":[{"date":"2024-01-25","commitResults":[{"hash":"e3bb1f112bfcfa72bddef8b33355b9f3cdfa960f","isMergeCommit":false,"messageTitle":"Duke.java: change chatbot name to Pythia","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":20,"deletions":6}}}]},{"date":"2024-02-01","commitResults":[{"hash":"550f897970668ea8474280514a288091fe6aa676","isMergeCommit":false,"messageTitle":"Duke.java: Increment level 1","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":9,"deletions":0}}}]},{"date":"2024-02-02","commitResults":[{"hash":"6c2a44c66a1d97dc552f99259b19948f11118d04","isMergeCommit":false,"messageTitle":"Duke.java: increment level 2","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":15,"deletions":2}}},{"hash":"c9bf241a2ea496c115811b2854aac500228a4561","isMergeCommit":false,"messageTitle":"Duke.java: increment level 3","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":47,"deletions":6}}}]}]},"authorFileTypeContributionMap":{"Ijaaz01":{"java":83,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"Ijaaz01":328.13333},"authorDisplayNameMap":{"Ijaaz01":"CS2113-T11-3 MOHA..MAIL"}} +{"authorDailyContributionsMap":{"Ijaaz01":[{"date":"2024-01-25","commitResults":[{"hash":"e3bb1f112bfcfa72bddef8b33355b9f3cdfa960f","isMergeCommit":false,"messageTitle":"Duke.java: change chatbot name to Pythia","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":20,"deletions":6}}}]},{"date":"2024-02-01","commitResults":[{"hash":"550f897970668ea8474280514a288091fe6aa676","isMergeCommit":false,"messageTitle":"Duke.java: Increment level 1","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":9,"deletions":0}}}]},{"date":"2024-02-02","commitResults":[{"hash":"6c2a44c66a1d97dc552f99259b19948f11118d04","isMergeCommit":false,"messageTitle":"Duke.java: increment level 2","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":15,"deletions":2}}},{"hash":"c9bf241a2ea496c115811b2854aac500228a4561","isMergeCommit":false,"messageTitle":"Duke.java: increment level 3","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":47,"deletions":6}}}]},{"date":"2024-02-09","commitResults":[{"hash":"93f250ddcb13726360e87a19e26a6426a5ca59b1","isMergeCommit":false,"messageTitle":"Level 4: add todo, deadline, event functionality","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":118,"deletions":28}}}]}]},"authorFileTypeContributionMap":{"Ijaaz01":{"java":173,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"Ijaaz01":1095.8782},"authorDisplayNameMap":{"Ijaaz01":"CS2113-T11-3 MOHA..MAIL"}} diff --git a/Joellimjr_ip_master/authorship.json b/Joellimjr_ip_master/authorship.json index d4fc8237..5ed1339f 100644 --- a/Joellimjr_ip_master/authorship.json +++ b/Joellimjr_ip_master/authorship.json @@ -1 +1 @@ -[{"path":"src/main/java/Chelle.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Joellimjr"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-04"},{"lineNumber":2,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":3,"author":{"gitId":"Joellimjr"},"content":"public class Chelle {","lastModifiedDate":"2024-02-04"},{"lineNumber":4,"author":{"gitId":"Joellimjr"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-02-04"},{"lineNumber":5,"author":{"gitId":"Joellimjr"},"content":" Scanner scanner \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-04"},{"lineNumber":6,"author":{"gitId":"Joellimjr"},"content":" Task[] tasks \u003d new Task[100];","lastModifiedDate":"2024-02-04"},{"lineNumber":7,"author":{"gitId":"Joellimjr"},"content":" int taskCount \u003d 0;","lastModifiedDate":"2024-02-04"},{"lineNumber":8,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":9,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Hello! I\u0027m Chelle.\\nI like to talkity talkity talk!\");","lastModifiedDate":"2024-02-04"},{"lineNumber":10,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":11,"author":{"gitId":"Joellimjr"},"content":" while (true) {","lastModifiedDate":"2024-02-04"},{"lineNumber":12,"author":{"gitId":"Joellimjr"},"content":" System.out.print(\"You: \");","lastModifiedDate":"2024-02-04"},{"lineNumber":13,"author":{"gitId":"Joellimjr"},"content":" String userInput \u003d scanner.nextLine();","lastModifiedDate":"2024-02-04"},{"lineNumber":14,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":15,"author":{"gitId":"Joellimjr"},"content":" if (userInput.equals(\"bye\")) {","lastModifiedDate":"2024-02-04"},{"lineNumber":16,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Bye! Hope to see you again soon!\");","lastModifiedDate":"2024-02-04"},{"lineNumber":17,"author":{"gitId":"Joellimjr"},"content":" break;","lastModifiedDate":"2024-02-04"},{"lineNumber":18,"author":{"gitId":"Joellimjr"},"content":" } else if (userInput.equals(\"list\")) {","lastModifiedDate":"2024-02-04"},{"lineNumber":19,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: \");","lastModifiedDate":"2024-02-04"},{"lineNumber":20,"author":{"gitId":"Joellimjr"},"content":" displayTasks(tasks, taskCount);","lastModifiedDate":"2024-02-04"},{"lineNumber":21,"author":{"gitId":"Joellimjr"},"content":" } else if (userInput.startsWith(\"mark\")) {","lastModifiedDate":"2024-02-04"},{"lineNumber":22,"author":{"gitId":"Joellimjr"},"content":" markTask(userInput, tasks, taskCount);","lastModifiedDate":"2024-02-04"},{"lineNumber":23,"author":{"gitId":"Joellimjr"},"content":" } else if (userInput.startsWith(\"unmark\")) {","lastModifiedDate":"2024-02-04"},{"lineNumber":24,"author":{"gitId":"Joellimjr"},"content":" unmarkTask(userInput, tasks, taskCount);","lastModifiedDate":"2024-02-04"},{"lineNumber":25,"author":{"gitId":"Joellimjr"},"content":" } else {","lastModifiedDate":"2024-02-04"},{"lineNumber":26,"author":{"gitId":"Joellimjr"},"content":" if (taskCount \u003c tasks.length) {","lastModifiedDate":"2024-02-04"},{"lineNumber":27,"author":{"gitId":"Joellimjr"},"content":" tasks[taskCount] \u003d new Task(userInput);","lastModifiedDate":"2024-02-04"},{"lineNumber":28,"author":{"gitId":"Joellimjr"},"content":" taskCount++;","lastModifiedDate":"2024-02-04"},{"lineNumber":29,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: added: \" + userInput);","lastModifiedDate":"2024-02-04"},{"lineNumber":30,"author":{"gitId":"Joellimjr"},"content":" } else {","lastModifiedDate":"2024-02-04"},{"lineNumber":31,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Task limit reached. Cannot add more tasks.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":32,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":33,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":34,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":35,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":36,"author":{"gitId":"Joellimjr"},"content":" scanner.close();","lastModifiedDate":"2024-02-04"},{"lineNumber":37,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":38,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":39,"author":{"gitId":"Joellimjr"},"content":" private static void displayTasks(Task[] tasks, int count) {","lastModifiedDate":"2024-02-04"},{"lineNumber":40,"author":{"gitId":"Joellimjr"},"content":" if (count \u003d\u003d 0) {","lastModifiedDate":"2024-02-04"},{"lineNumber":41,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"No tasks to display.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":42,"author":{"gitId":"Joellimjr"},"content":" } else {","lastModifiedDate":"2024-02-04"},{"lineNumber":43,"author":{"gitId":"Joellimjr"},"content":" for (int i \u003d 0; i \u003c count; i++) {","lastModifiedDate":"2024-02-04"},{"lineNumber":44,"author":{"gitId":"Joellimjr"},"content":" Task task \u003d tasks[i];","lastModifiedDate":"2024-02-04"},{"lineNumber":45,"author":{"gitId":"Joellimjr"},"content":" String status \u003d task.isDone() ? \"[X]\" : \"[ ]\";","lastModifiedDate":"2024-02-04"},{"lineNumber":46,"author":{"gitId":"Joellimjr"},"content":" System.out.println((i + 1) + \". \" + status + \" \" + task.getTaskName());","lastModifiedDate":"2024-02-04"},{"lineNumber":47,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":48,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":49,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":50,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":51,"author":{"gitId":"Joellimjr"},"content":" private static void markTask(String userInput, Task[] tasks, int taskCount) {","lastModifiedDate":"2024-02-04"},{"lineNumber":52,"author":{"gitId":"Joellimjr"},"content":" String[] parts \u003d userInput.split(\" \");","lastModifiedDate":"2024-02-04"},{"lineNumber":53,"author":{"gitId":"Joellimjr"},"content":" if (parts.length \u003d\u003d 2) {","lastModifiedDate":"2024-02-04"},{"lineNumber":54,"author":{"gitId":"Joellimjr"},"content":" try {","lastModifiedDate":"2024-02-04"},{"lineNumber":55,"author":{"gitId":"Joellimjr"},"content":" int taskIndex \u003d Integer.parseInt(parts[1]) - 1;","lastModifiedDate":"2024-02-04"},{"lineNumber":56,"author":{"gitId":"Joellimjr"},"content":" if (taskIndex \u003e\u003d 0 \u0026\u0026 taskIndex \u003c taskCount) {","lastModifiedDate":"2024-02-04"},{"lineNumber":57,"author":{"gitId":"Joellimjr"},"content":" tasks[taskIndex].markDone();","lastModifiedDate":"2024-02-04"},{"lineNumber":58,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Nice! I\u0027ve marked this task as done:\\n [X] \" +","lastModifiedDate":"2024-02-04"},{"lineNumber":59,"author":{"gitId":"Joellimjr"},"content":" tasks[taskIndex].getTaskName());","lastModifiedDate":"2024-02-04"},{"lineNumber":60,"author":{"gitId":"Joellimjr"},"content":" } else {","lastModifiedDate":"2024-02-04"},{"lineNumber":61,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Invalid task index.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":62,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":63,"author":{"gitId":"Joellimjr"},"content":" } catch (NumberFormatException e) {","lastModifiedDate":"2024-02-04"},{"lineNumber":64,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Invalid task index.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":65,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":66,"author":{"gitId":"Joellimjr"},"content":" } else {","lastModifiedDate":"2024-02-04"},{"lineNumber":67,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Invalid command format.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":68,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":69,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":70,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":71,"author":{"gitId":"Joellimjr"},"content":" private static void unmarkTask(String userInput, Task[] tasks, int taskCount) {","lastModifiedDate":"2024-02-04"},{"lineNumber":72,"author":{"gitId":"Joellimjr"},"content":" String[] parts \u003d userInput.split(\" \");","lastModifiedDate":"2024-02-04"},{"lineNumber":73,"author":{"gitId":"Joellimjr"},"content":" if (parts.length \u003d\u003d 2) {","lastModifiedDate":"2024-02-04"},{"lineNumber":74,"author":{"gitId":"Joellimjr"},"content":" try {","lastModifiedDate":"2024-02-04"},{"lineNumber":75,"author":{"gitId":"Joellimjr"},"content":" int taskIndex \u003d Integer.parseInt(parts[1]) - 1;","lastModifiedDate":"2024-02-04"},{"lineNumber":76,"author":{"gitId":"Joellimjr"},"content":" if (taskIndex \u003e\u003d 0 \u0026\u0026 taskIndex \u003c taskCount) {","lastModifiedDate":"2024-02-04"},{"lineNumber":77,"author":{"gitId":"Joellimjr"},"content":" tasks[taskIndex].markUndone();","lastModifiedDate":"2024-02-04"},{"lineNumber":78,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: OK, I\u0027ve marked this task as not done yet:\\n [ ] \" +","lastModifiedDate":"2024-02-04"},{"lineNumber":79,"author":{"gitId":"Joellimjr"},"content":" tasks[taskIndex].getTaskName());","lastModifiedDate":"2024-02-04"},{"lineNumber":80,"author":{"gitId":"Joellimjr"},"content":" } else {","lastModifiedDate":"2024-02-04"},{"lineNumber":81,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Invalid task index.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":82,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":83,"author":{"gitId":"Joellimjr"},"content":" } catch (NumberFormatException e) {","lastModifiedDate":"2024-02-04"},{"lineNumber":84,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Invalid task index.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":85,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":86,"author":{"gitId":"Joellimjr"},"content":" } else {","lastModifiedDate":"2024-02-04"},{"lineNumber":87,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Invalid command format.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":88,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":89,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":90,"author":{"gitId":"Joellimjr"},"content":"}","lastModifiedDate":"2024-02-04"}],"authorContributionMap":{"Joellimjr":90}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Joellimjr"},"content":"public class Task {","lastModifiedDate":"2024-02-04"},{"lineNumber":2,"author":{"gitId":"Joellimjr"},"content":" private String taskName;","lastModifiedDate":"2024-02-04"},{"lineNumber":3,"author":{"gitId":"Joellimjr"},"content":" private boolean isDone;","lastModifiedDate":"2024-02-04"},{"lineNumber":4,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":5,"author":{"gitId":"Joellimjr"},"content":" public Task(String taskName) {","lastModifiedDate":"2024-02-04"},{"lineNumber":6,"author":{"gitId":"Joellimjr"},"content":" this.taskName \u003d taskName;","lastModifiedDate":"2024-02-04"},{"lineNumber":7,"author":{"gitId":"Joellimjr"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-04"},{"lineNumber":8,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":9,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":10,"author":{"gitId":"Joellimjr"},"content":" public String getTaskName() {","lastModifiedDate":"2024-02-04"},{"lineNumber":11,"author":{"gitId":"Joellimjr"},"content":" return taskName;","lastModifiedDate":"2024-02-04"},{"lineNumber":12,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":13,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":14,"author":{"gitId":"Joellimjr"},"content":" public boolean isDone() {","lastModifiedDate":"2024-02-04"},{"lineNumber":15,"author":{"gitId":"Joellimjr"},"content":" return isDone;","lastModifiedDate":"2024-02-04"},{"lineNumber":16,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":17,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":18,"author":{"gitId":"Joellimjr"},"content":" public void markDone() {","lastModifiedDate":"2024-02-04"},{"lineNumber":19,"author":{"gitId":"Joellimjr"},"content":" this.isDone \u003d true;","lastModifiedDate":"2024-02-04"},{"lineNumber":20,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":21,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":22,"author":{"gitId":"Joellimjr"},"content":" public void markUndone() {","lastModifiedDate":"2024-02-04"},{"lineNumber":23,"author":{"gitId":"Joellimjr"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-04"},{"lineNumber":24,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":25,"author":{"gitId":"Joellimjr"},"content":"}","lastModifiedDate":"2024-02-04"}],"authorContributionMap":{"Joellimjr":25}}] +[{"path":"src/main/java/Chelle.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Joellimjr"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-04"},{"lineNumber":2,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":3,"author":{"gitId":"Joellimjr"},"content":"public class Chelle {","lastModifiedDate":"2024-02-04"},{"lineNumber":4,"author":{"gitId":"Joellimjr"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-02-04"},{"lineNumber":5,"author":{"gitId":"Joellimjr"},"content":" Scanner scanner \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-04"},{"lineNumber":6,"author":{"gitId":"Joellimjr"},"content":" Task[] tasks \u003d new Task[100];","lastModifiedDate":"2024-02-04"},{"lineNumber":7,"author":{"gitId":"Joellimjr"},"content":" int taskCount \u003d 0;","lastModifiedDate":"2024-02-04"},{"lineNumber":8,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":9,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Hello! I\u0027m Chelle.\\nI like to talkity talkity talk!\");","lastModifiedDate":"2024-02-04"},{"lineNumber":10,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":11,"author":{"gitId":"Joellimjr"},"content":" while (true) {","lastModifiedDate":"2024-02-04"},{"lineNumber":12,"author":{"gitId":"Joellimjr"},"content":" System.out.print(\"You: \");","lastModifiedDate":"2024-02-04"},{"lineNumber":13,"author":{"gitId":"Joellimjr"},"content":" String userInput \u003d scanner.nextLine();","lastModifiedDate":"2024-02-04"},{"lineNumber":14,"author":{"gitId":"Joellimjr"},"content":" String userCommand \u003d userInput.split(\" \")[0];","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":16,"author":{"gitId":"Joellimjr"},"content":" switch (userCommand) {","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"Joellimjr"},"content":" case \"bye\":","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Bye! Hope to see you again soon!\");","lastModifiedDate":"2024-02-04"},{"lineNumber":19,"author":{"gitId":"Joellimjr"},"content":" scanner.close();","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"Joellimjr"},"content":" return;","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"Joellimjr"},"content":" case \"list\":","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: \");","lastModifiedDate":"2024-02-04"},{"lineNumber":23,"author":{"gitId":"Joellimjr"},"content":" displayTasks(tasks, taskCount);","lastModifiedDate":"2024-02-04"},{"lineNumber":24,"author":{"gitId":"Joellimjr"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"Joellimjr"},"content":" case \"mark\":","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Joellimjr"},"content":" markTask(userInput, tasks, taskCount);","lastModifiedDate":"2024-02-04"},{"lineNumber":27,"author":{"gitId":"Joellimjr"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Joellimjr"},"content":" case \"unmark\":","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"Joellimjr"},"content":" unmarkTask(userInput, tasks, taskCount);","lastModifiedDate":"2024-02-04"},{"lineNumber":30,"author":{"gitId":"Joellimjr"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"Joellimjr"},"content":" case \"todo\":","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"Joellimjr"},"content":" taskCount \u003d createTask(userInput.substring(5), tasks, taskCount, TaskType.TODO);","lastModifiedDate":"2024-02-09"},{"lineNumber":33,"author":{"gitId":"Joellimjr"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"Joellimjr"},"content":" case \"deadline\":","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"Joellimjr"},"content":" taskCount \u003d createTask(userInput.substring(9), tasks, taskCount, TaskType.DEADLINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":36,"author":{"gitId":"Joellimjr"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":37,"author":{"gitId":"Joellimjr"},"content":" case \"event\":","lastModifiedDate":"2024-02-09"},{"lineNumber":38,"author":{"gitId":"Joellimjr"},"content":" taskCount \u003d createTask(userInput.substring(6), tasks, taskCount, TaskType.EVENT);","lastModifiedDate":"2024-02-09"},{"lineNumber":39,"author":{"gitId":"Joellimjr"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":40,"author":{"gitId":"Joellimjr"},"content":" default:","lastModifiedDate":"2024-02-09"},{"lineNumber":41,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Invalid command. Please start your command with one of the following commands: \\n\" +","lastModifiedDate":"2024-02-09"},{"lineNumber":42,"author":{"gitId":"Joellimjr"},"content":" \" \u0027list\u0027, \u0027mark\u0027, \u0027unmark\u0027, \u0027todo\u0027, deadline\u0027 or \u0027event\u0027.\");","lastModifiedDate":"2024-02-09"},{"lineNumber":43,"author":{"gitId":"Joellimjr"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":44,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":45,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":46,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":47,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":48,"author":{"gitId":"Joellimjr"},"content":" private static void displayTasks(Task[] tasks, int count) {","lastModifiedDate":"2024-02-04"},{"lineNumber":49,"author":{"gitId":"Joellimjr"},"content":" if (count \u003d\u003d 0) {","lastModifiedDate":"2024-02-04"},{"lineNumber":50,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"No tasks to display.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":51,"author":{"gitId":"Joellimjr"},"content":" } else {","lastModifiedDate":"2024-02-04"},{"lineNumber":52,"author":{"gitId":"Joellimjr"},"content":" for (int i \u003d 0; i \u003c count; i++) {","lastModifiedDate":"2024-02-04"},{"lineNumber":53,"author":{"gitId":"Joellimjr"},"content":" System.out.println((i + 1) + \". \" + tasks[i].toString());","lastModifiedDate":"2024-02-09"},{"lineNumber":54,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":55,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":56,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":57,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":58,"author":{"gitId":"Joellimjr"},"content":" private static int createTask(String userInput, Task[] tasks, int taskCount, TaskType taskType) {","lastModifiedDate":"2024-02-09"},{"lineNumber":59,"author":{"gitId":"Joellimjr"},"content":" if (taskCount \u003c tasks.length) {","lastModifiedDate":"2024-02-09"},{"lineNumber":60,"author":{"gitId":"Joellimjr"},"content":" tasks[taskCount] \u003d new Task(userInput);","lastModifiedDate":"2024-02-09"},{"lineNumber":61,"author":{"gitId":"Joellimjr"},"content":" tasks[taskCount].setTaskType(taskType);","lastModifiedDate":"2024-02-09"},{"lineNumber":62,"author":{"gitId":"Joellimjr"},"content":" taskCount++;","lastModifiedDate":"2024-02-09"},{"lineNumber":63,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Got it. I\u0027ve added this task:\\n \" +","lastModifiedDate":"2024-02-09"},{"lineNumber":64,"author":{"gitId":"Joellimjr"},"content":" tasks[taskCount - 1].toString() +","lastModifiedDate":"2024-02-09"},{"lineNumber":65,"author":{"gitId":"Joellimjr"},"content":" \"\\n Now you have \" + taskCount + \" tasks in the list.\");","lastModifiedDate":"2024-02-09"},{"lineNumber":66,"author":{"gitId":"Joellimjr"},"content":" } else {","lastModifiedDate":"2024-02-09"},{"lineNumber":67,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Task limit reached. Cannot add more tasks.\");","lastModifiedDate":"2024-02-09"},{"lineNumber":68,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":69,"author":{"gitId":"Joellimjr"},"content":" return taskCount;","lastModifiedDate":"2024-02-09"},{"lineNumber":70,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":71,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":72,"author":{"gitId":"Joellimjr"},"content":" private static void markTask(String userInput, Task[] tasks, int taskCount) {","lastModifiedDate":"2024-02-04"},{"lineNumber":73,"author":{"gitId":"Joellimjr"},"content":" String[] parts \u003d userInput.split(\" \");","lastModifiedDate":"2024-02-04"},{"lineNumber":74,"author":{"gitId":"Joellimjr"},"content":" if (parts.length \u003d\u003d 2) {","lastModifiedDate":"2024-02-04"},{"lineNumber":75,"author":{"gitId":"Joellimjr"},"content":" try {","lastModifiedDate":"2024-02-04"},{"lineNumber":76,"author":{"gitId":"Joellimjr"},"content":" int taskIndex \u003d Integer.parseInt(parts[1]) - 1;","lastModifiedDate":"2024-02-04"},{"lineNumber":77,"author":{"gitId":"Joellimjr"},"content":" if (taskIndex \u003e\u003d 0 \u0026\u0026 taskIndex \u003c taskCount) {","lastModifiedDate":"2024-02-04"},{"lineNumber":78,"author":{"gitId":"Joellimjr"},"content":" tasks[taskIndex].markDone();","lastModifiedDate":"2024-02-04"},{"lineNumber":79,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Nice! I\u0027ve marked this task as done:\\n \" +","lastModifiedDate":"2024-02-09"},{"lineNumber":80,"author":{"gitId":"Joellimjr"},"content":" tasks[taskIndex].toString());","lastModifiedDate":"2024-02-09"},{"lineNumber":81,"author":{"gitId":"Joellimjr"},"content":" } else {","lastModifiedDate":"2024-02-04"},{"lineNumber":82,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Invalid task index.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":83,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":84,"author":{"gitId":"Joellimjr"},"content":" } catch (NumberFormatException e) {","lastModifiedDate":"2024-02-04"},{"lineNumber":85,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Invalid task index.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":86,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":87,"author":{"gitId":"Joellimjr"},"content":" } else {","lastModifiedDate":"2024-02-04"},{"lineNumber":88,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Invalid command format.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":89,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":90,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":91,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":92,"author":{"gitId":"Joellimjr"},"content":" private static void unmarkTask(String userInput, Task[] tasks, int taskCount) {","lastModifiedDate":"2024-02-04"},{"lineNumber":93,"author":{"gitId":"Joellimjr"},"content":" String[] parts \u003d userInput.split(\" \");","lastModifiedDate":"2024-02-04"},{"lineNumber":94,"author":{"gitId":"Joellimjr"},"content":" if (parts.length \u003d\u003d 2) {","lastModifiedDate":"2024-02-04"},{"lineNumber":95,"author":{"gitId":"Joellimjr"},"content":" try {","lastModifiedDate":"2024-02-04"},{"lineNumber":96,"author":{"gitId":"Joellimjr"},"content":" int taskIndex \u003d Integer.parseInt(parts[1]) - 1;","lastModifiedDate":"2024-02-04"},{"lineNumber":97,"author":{"gitId":"Joellimjr"},"content":" if (taskIndex \u003e\u003d 0 \u0026\u0026 taskIndex \u003c taskCount) {","lastModifiedDate":"2024-02-04"},{"lineNumber":98,"author":{"gitId":"Joellimjr"},"content":" tasks[taskIndex].markUndone();","lastModifiedDate":"2024-02-04"},{"lineNumber":99,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: OK, I\u0027ve marked this task as not done yet:\\n \" +","lastModifiedDate":"2024-02-09"},{"lineNumber":100,"author":{"gitId":"Joellimjr"},"content":" tasks[taskIndex].toString());","lastModifiedDate":"2024-02-09"},{"lineNumber":101,"author":{"gitId":"Joellimjr"},"content":" } else {","lastModifiedDate":"2024-02-04"},{"lineNumber":102,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Invalid task index.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":103,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":104,"author":{"gitId":"Joellimjr"},"content":" } catch (NumberFormatException e) {","lastModifiedDate":"2024-02-04"},{"lineNumber":105,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Invalid task index.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":106,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":107,"author":{"gitId":"Joellimjr"},"content":" } else {","lastModifiedDate":"2024-02-04"},{"lineNumber":108,"author":{"gitId":"Joellimjr"},"content":" System.out.println(\"Chelle: Invalid command format.\");","lastModifiedDate":"2024-02-04"},{"lineNumber":109,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":110,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":111,"author":{"gitId":"Joellimjr"},"content":"}","lastModifiedDate":"2024-02-04"},{"lineNumber":112,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Joellimjr":112}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Joellimjr"},"content":"public class Task {","lastModifiedDate":"2024-02-04"},{"lineNumber":2,"author":{"gitId":"Joellimjr"},"content":" private String taskName;","lastModifiedDate":"2024-02-04"},{"lineNumber":3,"author":{"gitId":"Joellimjr"},"content":" private boolean isDone;","lastModifiedDate":"2024-02-04"},{"lineNumber":4,"author":{"gitId":"Joellimjr"},"content":" private TaskType taskType;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":6,"author":{"gitId":"Joellimjr"},"content":" public Task(String taskName) {","lastModifiedDate":"2024-02-04"},{"lineNumber":7,"author":{"gitId":"Joellimjr"},"content":" this.taskName \u003d taskName;","lastModifiedDate":"2024-02-04"},{"lineNumber":8,"author":{"gitId":"Joellimjr"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-04"},{"lineNumber":9,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":10,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":11,"author":{"gitId":"Joellimjr"},"content":" public String getTaskName() {","lastModifiedDate":"2024-02-04"},{"lineNumber":12,"author":{"gitId":"Joellimjr"},"content":" return taskName;","lastModifiedDate":"2024-02-04"},{"lineNumber":13,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":14,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":15,"author":{"gitId":"Joellimjr"},"content":" public boolean isDone() {","lastModifiedDate":"2024-02-04"},{"lineNumber":16,"author":{"gitId":"Joellimjr"},"content":" return isDone;","lastModifiedDate":"2024-02-04"},{"lineNumber":17,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":18,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":19,"author":{"gitId":"Joellimjr"},"content":" public void markDone() {","lastModifiedDate":"2024-02-04"},{"lineNumber":20,"author":{"gitId":"Joellimjr"},"content":" this.isDone \u003d true;","lastModifiedDate":"2024-02-04"},{"lineNumber":21,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":22,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-04"},{"lineNumber":23,"author":{"gitId":"Joellimjr"},"content":" public void markUndone() {","lastModifiedDate":"2024-02-04"},{"lineNumber":24,"author":{"gitId":"Joellimjr"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-04"},{"lineNumber":25,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-04"},{"lineNumber":26,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Joellimjr"},"content":" public void setTaskType(TaskType taskType) {","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Joellimjr"},"content":" this.taskType \u003d taskType;","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"Joellimjr"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"Joellimjr"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"Joellimjr"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":33,"author":{"gitId":"Joellimjr"},"content":" String status \u003d isDone ? \"[X]\" : \"[ ]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"Joellimjr"},"content":" String type;","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"Joellimjr"},"content":" switch (taskType) {","lastModifiedDate":"2024-02-09"},{"lineNumber":36,"author":{"gitId":"Joellimjr"},"content":" case TODO:","lastModifiedDate":"2024-02-09"},{"lineNumber":37,"author":{"gitId":"Joellimjr"},"content":" type \u003d \"[T]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":38,"author":{"gitId":"Joellimjr"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":39,"author":{"gitId":"Joellimjr"},"content":" case DEADLINE:","lastModifiedDate":"2024-02-09"},{"lineNumber":40,"author":{"gitId":"Joellimjr"},"content":" type \u003d \"[D]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":41,"author":{"gitId":"Joellimjr"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":42,"author":{"gitId":"Joellimjr"},"content":" case EVENT:","lastModifiedDate":"2024-02-09"},{"lineNumber":43,"author":{"gitId":"Joellimjr"},"content":" type \u003d \"[E]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":44,"author":{"gitId":"Joellimjr"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":45,"author":{"gitId":"Joellimjr"},"content":" default:","lastModifiedDate":"2024-02-09"},{"lineNumber":46,"author":{"gitId":"Joellimjr"},"content":" type \u003d \"[INVALID]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":47,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":48,"author":{"gitId":"Joellimjr"},"content":" return type + \" \" + status + \" \" + taskName;","lastModifiedDate":"2024-02-09"},{"lineNumber":49,"author":{"gitId":"Joellimjr"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":50,"author":{"gitId":"Joellimjr"},"content":"}","lastModifiedDate":"2024-02-04"}],"authorContributionMap":{"Joellimjr":50}},{"path":"src/main/java/TaskType.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Joellimjr"},"content":"public enum TaskType {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Joellimjr"},"content":" TODO,","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Joellimjr"},"content":" DEADLINE,","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Joellimjr"},"content":" EVENT;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Joellimjr"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Joellimjr":5}}] diff --git a/Joellimjr_ip_master/commits.json b/Joellimjr_ip_master/commits.json index 9d62bd95..e727ebde 100644 --- a/Joellimjr_ip_master/commits.json +++ b/Joellimjr_ip_master/commits.json @@ -1 +1 @@ -{"authorDailyContributionsMap":{"Joellimjr":[{"date":"2024-02-01","commitResults":[{"hash":"8791e36479c4f0fd7b19d3a3b614aae34aa124ad","isMergeCommit":false,"messageTitle":"Week 3 level 1-3","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":112,"deletions":0}}},{"hash":"33d2273b9b948d0384fef7a0bac0f54e476372ff","isMergeCommit":false,"messageTitle":"Revert \"Week 3 level 1-3\"","messageBody":"This reverts commit 8791e36479c4f0fd7b19d3a3b614aae34aa124ad.\n","fileTypesAndContributionMap":{"java":{"insertions":0,"deletions":112}}}]},{"date":"2024-02-04","commitResults":[{"hash":"0a413a523d6974516f6e9c2b49daf814ff744e44","isMergeCommit":false,"messageTitle":"Add greeting, echo, and exit","messageBody":"","tags":["add_greeting_echo_exit","Level-1","Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":22,"deletions":0}}},{"hash":"03fc6fdc5e5f5ad0b5c395840a4b63f47064da2b","isMergeCommit":false,"messageTitle":"Add list command","messageBody":"","tags":["add_list","Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":28,"deletions":6}}},{"hash":"ba4e5efbc5b7cdac85b03a01fb42d841aa0c6902","isMergeCommit":false,"messageTitle":"Add mark and unmark functions","messageBody":"","tags":["add_mark_unmark","Level-3","A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":81,"deletions":10}}}]}]},"authorFileTypeContributionMap":{"Joellimjr":{"java":115,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"Joellimjr":3746.3806},"authorDisplayNameMap":{"Joellimjr":"CS2113-T15-4 LIM ..JOEL"}} +{"authorDailyContributionsMap":{"Joellimjr":[{"date":"2024-02-01","commitResults":[{"hash":"8791e36479c4f0fd7b19d3a3b614aae34aa124ad","isMergeCommit":false,"messageTitle":"Week 3 level 1-3","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":112,"deletions":0}}},{"hash":"33d2273b9b948d0384fef7a0bac0f54e476372ff","isMergeCommit":false,"messageTitle":"Revert \"Week 3 level 1-3\"","messageBody":"This reverts commit 8791e36479c4f0fd7b19d3a3b614aae34aa124ad.\n","fileTypesAndContributionMap":{"java":{"insertions":0,"deletions":112}}}]},{"date":"2024-02-04","commitResults":[{"hash":"0a413a523d6974516f6e9c2b49daf814ff744e44","isMergeCommit":false,"messageTitle":"Add greeting, echo, and exit","messageBody":"","tags":["add_greeting_echo_exit","Level-1","Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":22,"deletions":0}}},{"hash":"03fc6fdc5e5f5ad0b5c395840a4b63f47064da2b","isMergeCommit":false,"messageTitle":"Add list command","messageBody":"","tags":["add_list","Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":28,"deletions":6}}},{"hash":"ba4e5efbc5b7cdac85b03a01fb42d841aa0c6902","isMergeCommit":false,"messageTitle":"Add mark and unmark functions","messageBody":"","tags":["add_mark_unmark","Level-3","A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":81,"deletions":10}}}]},{"date":"2024-02-09","commitResults":[{"hash":"8e71aa8fd9acfa93f5ffa19ad41424f3136e612b","isMergeCommit":false,"messageTitle":"add todo, deadline, event commands","messageBody":"","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":74,"deletions":22}}}]}]},"authorFileTypeContributionMap":{"Joellimjr":{"java":167,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"Joellimjr":3231.2666},"authorDisplayNameMap":{"Joellimjr":"CS2113-T15-4 LIM ..JOEL"}} diff --git a/Kishen271828_ip_master/authorship.json b/Kishen271828_ip_master/authorship.json index 4230b358..d230a539 100644 --- a/Kishen271828_ip_master/authorship.json +++ b/Kishen271828_ip_master/authorship.json @@ -1 +1 @@ -[{"path":"src/main/java/Deadline.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Kishen271828"},"content":"public class Deadline extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Kishen271828"},"content":" protected String by;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Kishen271828"},"content":" public Deadline(String description, String by) {","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Kishen271828"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Kishen271828"},"content":" this.by \u003d by;","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Kishen271828"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Kishen271828"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Kishen271828"},"content":" return \"[D]\" + super.toString() + \" (by: \" + by + \")\";","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Kishen271828"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Kishen271828":14}},{"path":"src/main/java/Event.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Kishen271828"},"content":"public class Event extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Kishen271828"},"content":" protected String from;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Kishen271828"},"content":" protected String to;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Kishen271828"},"content":" public Event(String description, String from, String to) {","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Kishen271828"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Kishen271828"},"content":" this.from \u003d from;","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Kishen271828"},"content":" this.to \u003d to;","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Kishen271828"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Kishen271828"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Kishen271828"},"content":" return \"[E]\" + super.toString() + \" (from: \" + from + \" to: \" + to + \")\";","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Kishen271828"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Kishen271828":16}},{"path":"src/main/java/Nehsik.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Kishen271828"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-01"},{"lineNumber":2,"author":{"gitId":"Kishen271828"},"content":"public class Nehsik {","lastModifiedDate":"2024-01-26"},{"lineNumber":3,"author":{"gitId":"Kishen271828"},"content":" public static final int MAX_TASKS \u003d 100;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"-"},"content":" public static void main(String[] args) {","lastModifiedDate":"2019-07-29"},{"lineNumber":6,"author":{"gitId":"Kishen271828"},"content":" displayGreetings();","lastModifiedDate":"2024-02-02"},{"lineNumber":7,"author":{"gitId":"Kishen271828"},"content":" ","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Kishen271828"},"content":" Scanner in \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-01"},{"lineNumber":9,"author":{"gitId":"Kishen271828"},"content":" Task[] taskList \u003d new Task[MAX_TASKS];","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Kishen271828"},"content":" int taskIndex \u003d 0;","lastModifiedDate":"2024-02-02"},{"lineNumber":11,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Kishen271828"},"content":" while (true) {","lastModifiedDate":"2024-02-01"},{"lineNumber":13,"author":{"gitId":"Kishen271828"},"content":" String command \u003d in.nextLine();","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Kishen271828"},"content":" if (command.equals(\"list\")) {","lastModifiedDate":"2024-02-02"},{"lineNumber":15,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-01"},{"lineNumber":16,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Here are the tasks in your list:\");","lastModifiedDate":"2024-02-02"},{"lineNumber":17,"author":{"gitId":"Kishen271828"},"content":" for (int i \u003d 0; i \u003c taskIndex; i++) {","lastModifiedDate":"2024-02-02"},{"lineNumber":18,"author":{"gitId":"Kishen271828"},"content":" System.out.println((i + 1) + \".\" + taskList[i].toString());","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":20,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-01"},{"lineNumber":21,"author":{"gitId":"Kishen271828"},"content":" } else if (command.startsWith(\"mark\")){","lastModifiedDate":"2024-02-02"},{"lineNumber":22,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":23,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Nice! I\u0027ve marked this task as done:\");","lastModifiedDate":"2024-02-02"},{"lineNumber":24,"author":{"gitId":"Kishen271828"},"content":" int taskNum \u003d Integer.parseInt(command.substring(5)) - 1;","lastModifiedDate":"2024-02-02"},{"lineNumber":25,"author":{"gitId":"Kishen271828"},"content":" taskList[taskNum].markAsDone();","lastModifiedDate":"2024-02-02"},{"lineNumber":26,"author":{"gitId":"Kishen271828"},"content":" System.out.println(taskList[taskNum].toString());","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":28,"author":{"gitId":"Kishen271828"},"content":" } else if (command.startsWith(\"unmark\")) {","lastModifiedDate":"2024-02-02"},{"lineNumber":29,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":30,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"OK, I\u0027ve marked this task as not done yet:\");","lastModifiedDate":"2024-02-02"},{"lineNumber":31,"author":{"gitId":"Kishen271828"},"content":" int taskNum \u003d Integer.parseInt(command.substring(7)) - 1;","lastModifiedDate":"2024-02-02"},{"lineNumber":32,"author":{"gitId":"Kishen271828"},"content":" taskList[taskNum].markAsUndone();","lastModifiedDate":"2024-02-02"},{"lineNumber":33,"author":{"gitId":"Kishen271828"},"content":" System.out.println(taskList[taskNum].toString());","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":35,"author":{"gitId":"Kishen271828"},"content":" } else if (command.startsWith(\"todo\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":36,"author":{"gitId":"Kishen271828"},"content":" String taskDescription \u003d command.substring(5);","lastModifiedDate":"2024-02-09"},{"lineNumber":37,"author":{"gitId":"Kishen271828"},"content":" taskList[taskIndex] \u003d new Todo(taskDescription);","lastModifiedDate":"2024-02-09"},{"lineNumber":38,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":39,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":40,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Got it. I\u0027ve added this task:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":41,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\" \" + taskList[taskIndex].toString());","lastModifiedDate":"2024-02-09"},{"lineNumber":42,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Now you have \" + (taskIndex + 1) + \" tasks in the list\");","lastModifiedDate":"2024-02-09"},{"lineNumber":43,"author":{"gitId":"Kishen271828"},"content":" taskIndex++;","lastModifiedDate":"2024-02-02"},{"lineNumber":44,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-09"},{"lineNumber":45,"author":{"gitId":"Kishen271828"},"content":" } else if (command.startsWith(\"deadline\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":46,"author":{"gitId":"Kishen271828"},"content":" String taskDescription \u003d command.substring(command.indexOf(\"deadline \") + 9, command.indexOf(\"/by \") - 1);","lastModifiedDate":"2024-02-09"},{"lineNumber":47,"author":{"gitId":"Kishen271828"},"content":" String by \u003d command.substring(command.indexOf(\"/by \") + 4);","lastModifiedDate":"2024-02-09"},{"lineNumber":48,"author":{"gitId":"Kishen271828"},"content":" taskList[taskIndex] \u003d new Deadline(taskDescription, by);","lastModifiedDate":"2024-02-09"},{"lineNumber":49,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":50,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-09"},{"lineNumber":51,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Got it. I\u0027ve added this task:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":52,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\" \" + taskList[taskIndex].toString());","lastModifiedDate":"2024-02-09"},{"lineNumber":53,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Now you have \" + (taskIndex + 1) + \" tasks in the list\");","lastModifiedDate":"2024-02-09"},{"lineNumber":54,"author":{"gitId":"Kishen271828"},"content":" taskIndex++;","lastModifiedDate":"2024-02-09"},{"lineNumber":55,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-09"},{"lineNumber":56,"author":{"gitId":"Kishen271828"},"content":" } else if (command.startsWith(\"event\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":57,"author":{"gitId":"Kishen271828"},"content":" String taskDescription \u003d command.substring(command.indexOf(\"event \") + 6, command.indexOf(\"/from \") - 1);","lastModifiedDate":"2024-02-09"},{"lineNumber":58,"author":{"gitId":"Kishen271828"},"content":" String from \u003d command.substring(command.indexOf(\"/from \") + 6, command.indexOf(\"/to \") - 1);","lastModifiedDate":"2024-02-09"},{"lineNumber":59,"author":{"gitId":"Kishen271828"},"content":" String to \u003d command.substring(command.indexOf(\"/to \") + 4);","lastModifiedDate":"2024-02-09"},{"lineNumber":60,"author":{"gitId":"Kishen271828"},"content":" taskList[taskIndex] \u003d new Event(taskDescription, from, to);","lastModifiedDate":"2024-02-09"},{"lineNumber":61,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":62,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-09"},{"lineNumber":63,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Got it. I\u0027ve added this task:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":64,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\" \" + taskList[taskIndex].toString());","lastModifiedDate":"2024-02-09"},{"lineNumber":65,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Now you have \" + (taskIndex + 1) + \" tasks in the list\");","lastModifiedDate":"2024-02-09"},{"lineNumber":66,"author":{"gitId":"Kishen271828"},"content":" taskIndex++;","lastModifiedDate":"2024-02-09"},{"lineNumber":67,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-09"},{"lineNumber":68,"author":{"gitId":"Kishen271828"},"content":" } else if (command.equals(\"bye\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":69,"author":{"gitId":"Kishen271828"},"content":" displayExitMessage();","lastModifiedDate":"2024-02-09"},{"lineNumber":70,"author":{"gitId":"Kishen271828"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":71,"author":{"gitId":"Kishen271828"},"content":" } else {","lastModifiedDate":"2024-02-09"},{"lineNumber":72,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Invalid Command\");","lastModifiedDate":"2024-02-09"},{"lineNumber":73,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":74,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":75,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-01-26"},{"lineNumber":76,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":77,"author":{"gitId":"Kishen271828"},"content":" public static void printLine() {","lastModifiedDate":"2024-01-26"},{"lineNumber":78,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-01-26"},{"lineNumber":79,"author":{"gitId":"-"},"content":" }","lastModifiedDate":"2019-07-29"},{"lineNumber":80,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":81,"author":{"gitId":"Kishen271828"},"content":" public static void displayGreetings() {","lastModifiedDate":"2024-02-02"},{"lineNumber":82,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":83,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Hello! I\u0027m Nehsik\");","lastModifiedDate":"2024-02-02"},{"lineNumber":84,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"What can I do for you?\");","lastModifiedDate":"2024-02-02"},{"lineNumber":85,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":86,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":87,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":88,"author":{"gitId":"Kishen271828"},"content":" public static void displayExitMessage() {","lastModifiedDate":"2024-02-02"},{"lineNumber":89,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":90,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Bye. Hope to see you again soon!\");","lastModifiedDate":"2024-02-02"},{"lineNumber":91,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":92,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":93,"author":{"gitId":"-"},"content":"}","lastModifiedDate":"2019-07-29"}],"authorContributionMap":{"Kishen271828":90,"-":3}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Kishen271828"},"content":"public class Task {","lastModifiedDate":"2024-02-02"},{"lineNumber":2,"author":{"gitId":"Kishen271828"},"content":" protected String description;","lastModifiedDate":"2024-02-02"},{"lineNumber":3,"author":{"gitId":"Kishen271828"},"content":" protected boolean isDone;","lastModifiedDate":"2024-02-02"},{"lineNumber":4,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":5,"author":{"gitId":"Kishen271828"},"content":" public Task(String description) {","lastModifiedDate":"2024-02-02"},{"lineNumber":6,"author":{"gitId":"Kishen271828"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-02"},{"lineNumber":7,"author":{"gitId":"Kishen271828"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":8,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":9,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":10,"author":{"gitId":"Kishen271828"},"content":" public String getStatusIcon() {","lastModifiedDate":"2024-02-02"},{"lineNumber":11,"author":{"gitId":"Kishen271828"},"content":" return (isDone ? \"X\" : \" \"); // mark done task with X","lastModifiedDate":"2024-02-02"},{"lineNumber":12,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":13,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":14,"author":{"gitId":"Kishen271828"},"content":" public String getDescription() {","lastModifiedDate":"2024-02-02"},{"lineNumber":15,"author":{"gitId":"Kishen271828"},"content":" return description;","lastModifiedDate":"2024-02-02"},{"lineNumber":16,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":17,"author":{"gitId":"Kishen271828"},"content":" public void markAsDone() {","lastModifiedDate":"2024-02-02"},{"lineNumber":18,"author":{"gitId":"Kishen271828"},"content":" isDone \u003d true;","lastModifiedDate":"2024-02-02"},{"lineNumber":19,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":20,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"Kishen271828"},"content":" public void markAsUndone() {","lastModifiedDate":"2024-02-02"},{"lineNumber":22,"author":{"gitId":"Kishen271828"},"content":" isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":23,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":24,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":25,"author":{"gitId":"Kishen271828"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Kishen271828"},"content":" return \"[\" + getStatusIcon() + \"] \" + description;","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Kishen271828"},"content":"}","lastModifiedDate":"2024-02-02"},{"lineNumber":29,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"}],"authorContributionMap":{"Kishen271828":29}},{"path":"src/main/java/Todo.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Kishen271828"},"content":"public class Todo extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Kishen271828"},"content":" public Todo(String description) {","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Kishen271828"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Kishen271828"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Kishen271828"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Kishen271828"},"content":" return \"[T]\" + super.toString();","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Kishen271828"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Kishen271828":11}},{"path":"text-ui-test/runtest.bat","fileType":"bat","lines":[{"lineNumber":1,"author":{"gitId":"-"},"content":"@ECHO OFF","lastModifiedDate":"2020-05-25"},{"lineNumber":2,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":3,"author":{"gitId":"-"},"content":"REM create bin directory if it doesn\u0027t exist","lastModifiedDate":"2020-05-25"},{"lineNumber":4,"author":{"gitId":"-"},"content":"if not exist ..\\bin mkdir ..\\bin","lastModifiedDate":"2020-05-25"},{"lineNumber":5,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":6,"author":{"gitId":"-"},"content":"REM delete output from previous run","lastModifiedDate":"2020-05-25"},{"lineNumber":7,"author":{"gitId":"-"},"content":"if exist ACTUAL.TXT del ACTUAL.TXT","lastModifiedDate":"2020-08-25"},{"lineNumber":8,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":9,"author":{"gitId":"-"},"content":"REM compile the code into the bin folder","lastModifiedDate":"2020-05-25"},{"lineNumber":10,"author":{"gitId":"-"},"content":"javac -cp ..\\src\\main\\java -Xlint:none -d ..\\bin ..\\src\\main\\java\\*.java","lastModifiedDate":"2020-08-25"},{"lineNumber":11,"author":{"gitId":"-"},"content":"IF ERRORLEVEL 1 (","lastModifiedDate":"2020-05-25"},{"lineNumber":12,"author":{"gitId":"-"},"content":" echo ********** BUILD FAILURE **********","lastModifiedDate":"2020-05-25"},{"lineNumber":13,"author":{"gitId":"-"},"content":" exit /b 1","lastModifiedDate":"2020-05-25"},{"lineNumber":14,"author":{"gitId":"-"},"content":")","lastModifiedDate":"2020-05-25"},{"lineNumber":15,"author":{"gitId":"-"},"content":"REM no error here, errorlevel \u003d\u003d 0","lastModifiedDate":"2020-05-25"},{"lineNumber":16,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":17,"author":{"gitId":"-"},"content":"REM run the program, feed commands from input.txt file and redirect the output to the ACTUAL.TXT","lastModifiedDate":"2020-05-25"},{"lineNumber":18,"author":{"gitId":"Kishen271828"},"content":"java -classpath ..\\bin Nehsik \u003c input.txt \u003e ACTUAL.TXT","lastModifiedDate":"2024-01-26"},{"lineNumber":19,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":20,"author":{"gitId":"-"},"content":"REM compare the output to the expected output","lastModifiedDate":"2020-05-25"},{"lineNumber":21,"author":{"gitId":"-"},"content":"FC ACTUAL.TXT EXPECTED.TXT","lastModifiedDate":"2020-05-25"}],"authorContributionMap":{"Kishen271828":1,"-":20}}] +[{"path":"src/main/java/Deadline.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Kishen271828"},"content":"public class Deadline extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Kishen271828"},"content":" protected String by;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Kishen271828"},"content":" public Deadline(String description, String by) {","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Kishen271828"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Kishen271828"},"content":" this.by \u003d by;","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Kishen271828"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Kishen271828"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Kishen271828"},"content":" return \"[D]\" + super.toString() + \" (by: \" + by + \")\";","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Kishen271828"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Kishen271828":14}},{"path":"src/main/java/Event.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Kishen271828"},"content":"public class Event extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Kishen271828"},"content":" protected String from;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Kishen271828"},"content":" protected String to;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Kishen271828"},"content":" public Event(String description, String from, String to) {","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Kishen271828"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Kishen271828"},"content":" this.from \u003d from;","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Kishen271828"},"content":" this.to \u003d to;","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Kishen271828"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Kishen271828"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Kishen271828"},"content":" return \"[E]\" + super.toString() + \" (from: \" + from + \" to: \" + to + \")\";","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Kishen271828"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Kishen271828":16}},{"path":"src/main/java/Nehsik.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Kishen271828"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-01"},{"lineNumber":2,"author":{"gitId":"Kishen271828"},"content":"public class Nehsik {","lastModifiedDate":"2024-01-26"},{"lineNumber":3,"author":{"gitId":"Kishen271828"},"content":" public static final int MAX_TASKS \u003d 100;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"-"},"content":" public static void main(String[] args) {","lastModifiedDate":"2019-07-29"},{"lineNumber":6,"author":{"gitId":"Kishen271828"},"content":" displayGreetings();","lastModifiedDate":"2024-02-02"},{"lineNumber":7,"author":{"gitId":"Kishen271828"},"content":" ","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Kishen271828"},"content":" Scanner in \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-01"},{"lineNumber":9,"author":{"gitId":"Kishen271828"},"content":" Task[] taskList \u003d new Task[MAX_TASKS];","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Kishen271828"},"content":" int taskIndex \u003d 0;","lastModifiedDate":"2024-02-02"},{"lineNumber":11,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Kishen271828"},"content":" while (true) {","lastModifiedDate":"2024-02-01"},{"lineNumber":13,"author":{"gitId":"Kishen271828"},"content":" String command \u003d in.nextLine().trim();","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Kishen271828"},"content":" if (command.equals(\"list\")) {","lastModifiedDate":"2024-02-02"},{"lineNumber":15,"author":{"gitId":"Kishen271828"},"content":" displayTaskList(taskIndex, taskList);","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Kishen271828"},"content":" } else if (command.startsWith(\"mark\")){","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"Kishen271828"},"content":" markTask(command, taskList);","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"Kishen271828"},"content":" } else if (command.startsWith(\"unmark\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"Kishen271828"},"content":" unmarkTask(command, taskList);","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"Kishen271828"},"content":" } else if (command.startsWith(\"todo\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"Kishen271828"},"content":" addTodoTask(command, taskList, taskIndex);","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"Kishen271828"},"content":" taskIndex \u003d acknowledgeTaskAdded(taskList, taskIndex);","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"Kishen271828"},"content":" } else if (command.startsWith(\"deadline\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"Kishen271828"},"content":" addDeadlineTask(command, taskList, taskIndex);","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"Kishen271828"},"content":" taskIndex \u003d acknowledgeTaskAdded(taskList, taskIndex);","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Kishen271828"},"content":" } else if (command.startsWith(\"event\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Kishen271828"},"content":" addEventTask(command, taskList, taskIndex);","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Kishen271828"},"content":" taskIndex \u003d acknowledgeTaskAdded(taskList, taskIndex);","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"Kishen271828"},"content":" } else if (command.equals(\"bye\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"Kishen271828"},"content":" displayExitMessage();","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"Kishen271828"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"Kishen271828"},"content":" } else {","lastModifiedDate":"2024-02-09"},{"lineNumber":33,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Invalid Command\");","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":36,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":37,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":38,"author":{"gitId":"Kishen271828"},"content":" private static void displayTaskList(int taskIndex, Task[] taskList) {","lastModifiedDate":"2024-02-09"},{"lineNumber":39,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-01"},{"lineNumber":40,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Here are the tasks in your list:\");","lastModifiedDate":"2024-02-02"},{"lineNumber":41,"author":{"gitId":"Kishen271828"},"content":" for (int i \u003d 0; i \u003c taskIndex; i++) {","lastModifiedDate":"2024-02-02"},{"lineNumber":42,"author":{"gitId":"Kishen271828"},"content":" System.out.println((i + 1) + \".\" + taskList[i].toString());","lastModifiedDate":"2024-02-09"},{"lineNumber":43,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":44,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-01"},{"lineNumber":45,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":46,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":47,"author":{"gitId":"Kishen271828"},"content":" private static void markTask(String command, Task[] taskList) {","lastModifiedDate":"2024-02-09"},{"lineNumber":48,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":49,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Nice! I\u0027ve marked this task as done:\");","lastModifiedDate":"2024-02-02"},{"lineNumber":50,"author":{"gitId":"Kishen271828"},"content":" int taskNum \u003d Integer.parseInt(command.substring(5)) - 1;","lastModifiedDate":"2024-02-02"},{"lineNumber":51,"author":{"gitId":"Kishen271828"},"content":" taskList[taskNum].markAsDone();","lastModifiedDate":"2024-02-02"},{"lineNumber":52,"author":{"gitId":"Kishen271828"},"content":" System.out.println(taskList[taskNum].toString());","lastModifiedDate":"2024-02-09"},{"lineNumber":53,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":54,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":55,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":56,"author":{"gitId":"Kishen271828"},"content":" private static void unmarkTask(String command, Task[] taskList) {","lastModifiedDate":"2024-02-09"},{"lineNumber":57,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":58,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"OK, I\u0027ve marked this task as not done yet:\");","lastModifiedDate":"2024-02-02"},{"lineNumber":59,"author":{"gitId":"Kishen271828"},"content":" int taskNum \u003d Integer.parseInt(command.substring(7)) - 1;","lastModifiedDate":"2024-02-02"},{"lineNumber":60,"author":{"gitId":"Kishen271828"},"content":" taskList[taskNum].markAsUndone();","lastModifiedDate":"2024-02-02"},{"lineNumber":61,"author":{"gitId":"Kishen271828"},"content":" System.out.println(taskList[taskNum].toString());","lastModifiedDate":"2024-02-09"},{"lineNumber":62,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":63,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":64,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":65,"author":{"gitId":"Kishen271828"},"content":" private static void addTodoTask(String command, Task[] taskList, int taskIndex) {","lastModifiedDate":"2024-02-09"},{"lineNumber":66,"author":{"gitId":"Kishen271828"},"content":" String taskDescription \u003d command.substring(5).trim();","lastModifiedDate":"2024-02-09"},{"lineNumber":67,"author":{"gitId":"Kishen271828"},"content":" taskList[taskIndex] \u003d new Todo(taskDescription);","lastModifiedDate":"2024-02-09"},{"lineNumber":68,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":69,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":70,"author":{"gitId":"Kishen271828"},"content":" private static void addDeadlineTask(String command, Task[] taskList, int taskIndex) {","lastModifiedDate":"2024-02-09"},{"lineNumber":71,"author":{"gitId":"Kishen271828"},"content":" String taskDescription \u003d command.substring(command.indexOf(\"deadline \") + 9, command.indexOf(\"/by \") - 1).trim();","lastModifiedDate":"2024-02-09"},{"lineNumber":72,"author":{"gitId":"Kishen271828"},"content":" String by \u003d command.substring(command.indexOf(\"/by \") + 4).trim();","lastModifiedDate":"2024-02-09"},{"lineNumber":73,"author":{"gitId":"Kishen271828"},"content":" taskList[taskIndex] \u003d new Deadline(taskDescription, by);","lastModifiedDate":"2024-02-09"},{"lineNumber":74,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":75,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":76,"author":{"gitId":"Kishen271828"},"content":" private static void addEventTask(String command, Task[] taskList, int taskIndex) {","lastModifiedDate":"2024-02-09"},{"lineNumber":77,"author":{"gitId":"Kishen271828"},"content":" String taskDescription \u003d command.substring(command.indexOf(\"event \") + 6, command.indexOf(\"/from \") - 1).trim();","lastModifiedDate":"2024-02-09"},{"lineNumber":78,"author":{"gitId":"Kishen271828"},"content":" String from \u003d command.substring(command.indexOf(\"/from \") + 6, command.indexOf(\"/to \") - 1).trim();","lastModifiedDate":"2024-02-09"},{"lineNumber":79,"author":{"gitId":"Kishen271828"},"content":" String to \u003d command.substring(command.indexOf(\"/to \") + 4).trim();","lastModifiedDate":"2024-02-09"},{"lineNumber":80,"author":{"gitId":"Kishen271828"},"content":" taskList[taskIndex] \u003d new Event(taskDescription, from, to);","lastModifiedDate":"2024-02-09"},{"lineNumber":81,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":82,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":83,"author":{"gitId":"Kishen271828"},"content":" private static int acknowledgeTaskAdded(Task[] taskList, int taskIndex) {","lastModifiedDate":"2024-02-09"},{"lineNumber":84,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-09"},{"lineNumber":85,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Got it. I\u0027ve added this task:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":86,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\" \" + taskList[taskIndex].toString());","lastModifiedDate":"2024-02-09"},{"lineNumber":87,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Now you have \" + (taskIndex + 1) + \" tasks in the list\");","lastModifiedDate":"2024-02-09"},{"lineNumber":88,"author":{"gitId":"Kishen271828"},"content":" taskIndex++;","lastModifiedDate":"2024-02-09"},{"lineNumber":89,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-09"},{"lineNumber":90,"author":{"gitId":"Kishen271828"},"content":" return taskIndex;","lastModifiedDate":"2024-02-09"},{"lineNumber":91,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-01-26"},{"lineNumber":92,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":93,"author":{"gitId":"Kishen271828"},"content":" private static void printLine() {","lastModifiedDate":"2024-02-09"},{"lineNumber":94,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-01-26"},{"lineNumber":95,"author":{"gitId":"-"},"content":" }","lastModifiedDate":"2019-07-29"},{"lineNumber":96,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":97,"author":{"gitId":"Kishen271828"},"content":" private static void displayGreetings() {","lastModifiedDate":"2024-02-09"},{"lineNumber":98,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":99,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Hello! I\u0027m Nehsik\");","lastModifiedDate":"2024-02-02"},{"lineNumber":100,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"What can I do for you?\");","lastModifiedDate":"2024-02-02"},{"lineNumber":101,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":102,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":103,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":104,"author":{"gitId":"Kishen271828"},"content":" private static void displayExitMessage() {","lastModifiedDate":"2024-02-09"},{"lineNumber":105,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":106,"author":{"gitId":"Kishen271828"},"content":" System.out.println(\"Bye. Hope to see you again soon!\");","lastModifiedDate":"2024-02-02"},{"lineNumber":107,"author":{"gitId":"Kishen271828"},"content":" printLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":108,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":109,"author":{"gitId":"-"},"content":"}","lastModifiedDate":"2019-07-29"}],"authorContributionMap":{"Kishen271828":106,"-":3}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Kishen271828"},"content":"public class Task {","lastModifiedDate":"2024-02-02"},{"lineNumber":2,"author":{"gitId":"Kishen271828"},"content":" protected String description;","lastModifiedDate":"2024-02-02"},{"lineNumber":3,"author":{"gitId":"Kishen271828"},"content":" protected boolean isDone;","lastModifiedDate":"2024-02-02"},{"lineNumber":4,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":5,"author":{"gitId":"Kishen271828"},"content":" public Task(String description) {","lastModifiedDate":"2024-02-02"},{"lineNumber":6,"author":{"gitId":"Kishen271828"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-02"},{"lineNumber":7,"author":{"gitId":"Kishen271828"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":8,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":9,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":10,"author":{"gitId":"Kishen271828"},"content":" public String getStatusIcon() {","lastModifiedDate":"2024-02-02"},{"lineNumber":11,"author":{"gitId":"Kishen271828"},"content":" return (isDone ? \"X\" : \" \"); // mark done task with X","lastModifiedDate":"2024-02-02"},{"lineNumber":12,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":13,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":14,"author":{"gitId":"Kishen271828"},"content":" public String getDescription() {","lastModifiedDate":"2024-02-02"},{"lineNumber":15,"author":{"gitId":"Kishen271828"},"content":" return description;","lastModifiedDate":"2024-02-02"},{"lineNumber":16,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":17,"author":{"gitId":"Kishen271828"},"content":" public void markAsDone() {","lastModifiedDate":"2024-02-02"},{"lineNumber":18,"author":{"gitId":"Kishen271828"},"content":" isDone \u003d true;","lastModifiedDate":"2024-02-02"},{"lineNumber":19,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":20,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"Kishen271828"},"content":" public void markAsUndone() {","lastModifiedDate":"2024-02-02"},{"lineNumber":22,"author":{"gitId":"Kishen271828"},"content":" isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":23,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":24,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":25,"author":{"gitId":"Kishen271828"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Kishen271828"},"content":" return \"[\" + getStatusIcon() + \"] \" + description;","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Kishen271828"},"content":"}","lastModifiedDate":"2024-02-02"},{"lineNumber":29,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-02"}],"authorContributionMap":{"Kishen271828":29}},{"path":"src/main/java/Todo.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Kishen271828"},"content":"public class Todo extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Kishen271828"},"content":" public Todo(String description) {","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Kishen271828"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Kishen271828"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Kishen271828"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Kishen271828"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Kishen271828"},"content":" return \"[T]\" + super.toString();","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Kishen271828"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Kishen271828"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Kishen271828":11}},{"path":"text-ui-test/runtest.bat","fileType":"bat","lines":[{"lineNumber":1,"author":{"gitId":"-"},"content":"@ECHO OFF","lastModifiedDate":"2020-05-25"},{"lineNumber":2,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":3,"author":{"gitId":"-"},"content":"REM create bin directory if it doesn\u0027t exist","lastModifiedDate":"2020-05-25"},{"lineNumber":4,"author":{"gitId":"-"},"content":"if not exist ..\\bin mkdir ..\\bin","lastModifiedDate":"2020-05-25"},{"lineNumber":5,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":6,"author":{"gitId":"-"},"content":"REM delete output from previous run","lastModifiedDate":"2020-05-25"},{"lineNumber":7,"author":{"gitId":"-"},"content":"if exist ACTUAL.TXT del ACTUAL.TXT","lastModifiedDate":"2020-08-25"},{"lineNumber":8,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":9,"author":{"gitId":"-"},"content":"REM compile the code into the bin folder","lastModifiedDate":"2020-05-25"},{"lineNumber":10,"author":{"gitId":"-"},"content":"javac -cp ..\\src\\main\\java -Xlint:none -d ..\\bin ..\\src\\main\\java\\*.java","lastModifiedDate":"2020-08-25"},{"lineNumber":11,"author":{"gitId":"-"},"content":"IF ERRORLEVEL 1 (","lastModifiedDate":"2020-05-25"},{"lineNumber":12,"author":{"gitId":"-"},"content":" echo ********** BUILD FAILURE **********","lastModifiedDate":"2020-05-25"},{"lineNumber":13,"author":{"gitId":"-"},"content":" exit /b 1","lastModifiedDate":"2020-05-25"},{"lineNumber":14,"author":{"gitId":"-"},"content":")","lastModifiedDate":"2020-05-25"},{"lineNumber":15,"author":{"gitId":"-"},"content":"REM no error here, errorlevel \u003d\u003d 0","lastModifiedDate":"2020-05-25"},{"lineNumber":16,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":17,"author":{"gitId":"-"},"content":"REM run the program, feed commands from input.txt file and redirect the output to the ACTUAL.TXT","lastModifiedDate":"2020-05-25"},{"lineNumber":18,"author":{"gitId":"Kishen271828"},"content":"java -classpath ..\\bin Nehsik \u003c input.txt \u003e ACTUAL.TXT","lastModifiedDate":"2024-01-26"},{"lineNumber":19,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":20,"author":{"gitId":"-"},"content":"REM compare the output to the expected output","lastModifiedDate":"2020-05-25"},{"lineNumber":21,"author":{"gitId":"-"},"content":"FC ACTUAL.TXT EXPECTED.TXT","lastModifiedDate":"2020-05-25"}],"authorContributionMap":{"Kishen271828":1,"-":20}}] diff --git a/Kishen271828_ip_master/commits.json b/Kishen271828_ip_master/commits.json index 10459f47..905d602e 100644 --- a/Kishen271828_ip_master/commits.json +++ b/Kishen271828_ip_master/commits.json @@ -1 +1 @@ -{"authorDailyContributionsMap":{"Kishen271828":[{"date":"2024-01-26","commitResults":[{"hash":"cebfec20974061e0afce82e6eb4aade481946c89","isMergeCommit":false,"messageTitle":"Rename chatbot Duke to Nehsik","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":1,"deletions":1},"bat":{"insertions":1,"deletions":1}}},{"hash":"1080d7e40748d60f86bdfe1cf637f2a7a4dfb7c9","isMergeCommit":false,"messageTitle":"Level 0: Add Greet \u0026 Exit message","messageBody":"","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":10,"deletions":1}}}]},{"date":"2024-02-01","commitResults":[{"hash":"04fc8aae8e572496231c2f7ffb428d89049a1871","isMergeCommit":false,"messageTitle":"Level 1: Add Echo feature","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":13,"deletions":0}}}]},{"date":"2024-02-02","commitResults":[{"hash":"443d3a746fe25207c69324560de61d44d906c86b","isMergeCommit":false,"messageTitle":"Add list functionality","messageBody":"","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":30,"deletions":16}}},{"hash":"31a7fe16317d67c34d1cb5cb802651723c557e0d","isMergeCommit":false,"messageTitle":"Add mark/unmark task feature","messageBody":"","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":48,"deletions":7}}}]},{"date":"2024-02-09","commitResults":[{"hash":"3720fe5d5350a0ab33a23a8c4b72dbc2942469a4","isMergeCommit":false,"messageTitle":"Modify code to follow Coding Standard","messageBody":"","tags":["A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":7,"deletions":3}}},{"hash":"71bb584d1988b6ab93a8273c25752f153d85522d","isMergeCommit":false,"messageTitle":"Add Todo task types","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":20,"deletions":7}}},{"hash":"2dabcd042f3bb7fdc7d48ad707705f8c8aa0bea7","isMergeCommit":false,"messageTitle":"Add Deadline task types","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":28,"deletions":0}}},{"hash":"576d1cebc40fd3c5d72aef66305d404a195c6fc2","isMergeCommit":false,"messageTitle":"Add Event task types","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":28,"deletions":0}}},{"hash":"86802e6aab4d530ffd66a00cd77f97676f39e2c5","isMergeCommit":false,"messageTitle":"Update Task Class","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":3,"deletions":0}}},{"hash":"7b02167f131163e382c6f28b65400fb10c27186e","isMergeCommit":false,"messageTitle":"Minor bug fix in order to exit only for bye command","messageBody":"","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":6,"deletions":6}}}]}]},"authorFileTypeContributionMap":{"Kishen271828":{"java":160,"md":0,"fxml":0,"sh":0,"bat":1,"gradle":0,"txt":0}},"authorContributionVariance":{"Kishen271828":895.72107},"authorDisplayNameMap":{"Kishen271828":"CS2113-F14-4 GAND..SHEN"}} +{"authorDailyContributionsMap":{"Kishen271828":[{"date":"2024-01-26","commitResults":[{"hash":"cebfec20974061e0afce82e6eb4aade481946c89","isMergeCommit":false,"messageTitle":"Rename chatbot Duke to Nehsik","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":1,"deletions":1},"bat":{"insertions":1,"deletions":1}}},{"hash":"1080d7e40748d60f86bdfe1cf637f2a7a4dfb7c9","isMergeCommit":false,"messageTitle":"Level 0: Add Greet \u0026 Exit message","messageBody":"","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":10,"deletions":1}}}]},{"date":"2024-02-01","commitResults":[{"hash":"04fc8aae8e572496231c2f7ffb428d89049a1871","isMergeCommit":false,"messageTitle":"Level 1: Add Echo feature","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":13,"deletions":0}}}]},{"date":"2024-02-02","commitResults":[{"hash":"443d3a746fe25207c69324560de61d44d906c86b","isMergeCommit":false,"messageTitle":"Add list functionality","messageBody":"","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":30,"deletions":16}}},{"hash":"31a7fe16317d67c34d1cb5cb802651723c557e0d","isMergeCommit":false,"messageTitle":"Add mark/unmark task feature","messageBody":"","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":48,"deletions":7}}}]},{"date":"2024-02-09","commitResults":[{"hash":"3720fe5d5350a0ab33a23a8c4b72dbc2942469a4","isMergeCommit":false,"messageTitle":"Modify code to follow Coding Standard","messageBody":"","tags":["A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":7,"deletions":3}}},{"hash":"71bb584d1988b6ab93a8273c25752f153d85522d","isMergeCommit":false,"messageTitle":"Add Todo task types","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":20,"deletions":7}}},{"hash":"2dabcd042f3bb7fdc7d48ad707705f8c8aa0bea7","isMergeCommit":false,"messageTitle":"Add Deadline task types","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":28,"deletions":0}}},{"hash":"576d1cebc40fd3c5d72aef66305d404a195c6fc2","isMergeCommit":false,"messageTitle":"Add Event task types","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":28,"deletions":0}}},{"hash":"86802e6aab4d530ffd66a00cd77f97676f39e2c5","isMergeCommit":false,"messageTitle":"Update Task Class","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":3,"deletions":0}}},{"hash":"7b02167f131163e382c6f28b65400fb10c27186e","isMergeCommit":false,"messageTitle":"Minor bug fix in order to exit only for bye command","messageBody":"","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":6,"deletions":6}}},{"hash":"b344945eec41a6db00aee0dc02e16fca33d90d07","isMergeCommit":false,"messageTitle":"Refactor Code to improve Code Quality","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":68,"deletions":52}}}]}]},"authorFileTypeContributionMap":{"Kishen271828":{"java":176,"md":0,"fxml":0,"sh":0,"bat":1,"gradle":0,"txt":0}},"authorContributionVariance":{"Kishen271828":2581.1758},"authorDisplayNameMap":{"Kishen271828":"CS2113-F14-4 GAND..SHEN"}} diff --git a/LuoYu-uwu_ip_master/authorship.json b/LuoYu-uwu_ip_master/authorship.json index 573617da..95f22b5b 100644 --- a/LuoYu-uwu_ip_master/authorship.json +++ b/LuoYu-uwu_ip_master/authorship.json @@ -1 +1 @@ -[{"path":"src/main/java/Deadline.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"LuoYu-uwu"},"content":"public class Deadline extends Task {","lastModifiedDate":"2024-02-03"},{"lineNumber":2,"author":{"gitId":"LuoYu-uwu"},"content":" protected String by;","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"LuoYu-uwu"},"content":" public Deadline (String taskName, String by) {","lastModifiedDate":"2024-02-03"},{"lineNumber":4,"author":{"gitId":"LuoYu-uwu"},"content":" super(\"D\",taskName);","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"LuoYu-uwu"},"content":" this.by \u003d by;","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":8,"author":{"gitId":"LuoYu-uwu"},"content":" public String printTask() {","lastModifiedDate":"2024-02-03"},{"lineNumber":9,"author":{"gitId":"LuoYu-uwu"},"content":" return super.printTask() + \"(by: \" + this.by + \")\";","lastModifiedDate":"2024-02-03"},{"lineNumber":10,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":11,"author":{"gitId":"LuoYu-uwu"},"content":"}","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"LuoYu-uwu":11}},{"path":"src/main/java/Event.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"LuoYu-uwu"},"content":"public class Event extends Task {","lastModifiedDate":"2024-02-03"},{"lineNumber":2,"author":{"gitId":"LuoYu-uwu"},"content":" protected String from;","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"LuoYu-uwu"},"content":" protected String to;","lastModifiedDate":"2024-02-03"},{"lineNumber":4,"author":{"gitId":"LuoYu-uwu"},"content":" public Event (String taskName, String from, String to) {","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"LuoYu-uwu"},"content":" super(\"E\", taskName);","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"LuoYu-uwu"},"content":" this.from \u003d from;","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"LuoYu-uwu"},"content":" this.to \u003d to;","lastModifiedDate":"2024-02-03"},{"lineNumber":8,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":9,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":10,"author":{"gitId":"LuoYu-uwu"},"content":" public String printTask() {","lastModifiedDate":"2024-02-03"},{"lineNumber":11,"author":{"gitId":"LuoYu-uwu"},"content":" return super.printTask() + \"(from: \" + this.from + \"to: \" + this.to + \")\";","lastModifiedDate":"2024-02-03"},{"lineNumber":12,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":13,"author":{"gitId":"LuoYu-uwu"},"content":"}","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"LuoYu-uwu":13}},{"path":"src/main/java/KuroBot.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"LuoYu-uwu"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-01-26"},{"lineNumber":2,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"LuoYu-uwu"},"content":"public class KuroBot {","lastModifiedDate":"2024-01-19"},{"lineNumber":4,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":5,"author":{"gitId":"LuoYu-uwu"},"content":" private static Task[] tasks \u003d new Task[100];","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"LuoYu-uwu"},"content":" private static int taskNum \u003d 0;","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":8,"author":{"gitId":"LuoYu-uwu"},"content":" private static final String LINE \u003d \"-\".repeat(60);","lastModifiedDate":"2024-02-03"},{"lineNumber":9,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":10,"author":{"gitId":"LuoYu-uwu"},"content":" private static final String LOGO \u003d","lastModifiedDate":"2024-02-03"},{"lineNumber":11,"author":{"gitId":"LuoYu-uwu"},"content":" \" ___ ___ ___ ___ \\n\"","lastModifiedDate":"2024-01-19"},{"lineNumber":12,"author":{"gitId":"LuoYu-uwu"},"content":" + \"| |/ / | | | | \\n\"","lastModifiedDate":"2024-01-19"},{"lineNumber":13,"author":{"gitId":"LuoYu-uwu"},"content":" + \"| / | | | | \\n\"","lastModifiedDate":"2024-01-19"},{"lineNumber":14,"author":{"gitId":"LuoYu-uwu"},"content":" + \"| |\\\\ \\\\ |_ |___| _| \\n\"","lastModifiedDate":"2024-01-19"},{"lineNumber":15,"author":{"gitId":"LuoYu-uwu"},"content":" + \"|___| \\\\___\\\\ |_____| \\n\";","lastModifiedDate":"2024-01-19"},{"lineNumber":16,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":17,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":18,"author":{"gitId":"LuoYu-uwu"},"content":" private static void printTasks() {","lastModifiedDate":"2024-02-03"},{"lineNumber":19,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":20,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Here are the tasks in your list:\");","lastModifiedDate":"2024-02-03"},{"lineNumber":21,"author":{"gitId":"LuoYu-uwu"},"content":" for (int i \u003d 0; i \u003c taskNum; i ++){","lastModifiedDate":"2024-02-03"},{"lineNumber":22,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(i+1 + \".\" + tasks[i].printTask());","lastModifiedDate":"2024-02-03"},{"lineNumber":23,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":24,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":25,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":26,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":27,"author":{"gitId":"LuoYu-uwu"},"content":" private static void intro() {","lastModifiedDate":"2024-02-03"},{"lineNumber":28,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":29,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Hello! I\u0027m KuroBot\\n\" + \"What can I do for you?\");","lastModifiedDate":"2024-01-19"},{"lineNumber":30,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":31,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":32,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":33,"author":{"gitId":"LuoYu-uwu"},"content":" private static void printAddedTask(Task task) {","lastModifiedDate":"2024-02-03"},{"lineNumber":34,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":35,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Got it. I\u0027ve added this task:\");","lastModifiedDate":"2024-02-03"},{"lineNumber":36,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(task.printTask());","lastModifiedDate":"2024-02-03"},{"lineNumber":37,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Now you have \" + taskNum + \" tasks in the list.\");","lastModifiedDate":"2024-02-03"},{"lineNumber":38,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":39,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":40,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":41,"author":{"gitId":"LuoYu-uwu"},"content":" private static void addTodo(String userInput) {","lastModifiedDate":"2024-02-03"},{"lineNumber":42,"author":{"gitId":"LuoYu-uwu"},"content":" String taskName \u003d userInput.substring(5);","lastModifiedDate":"2024-02-03"},{"lineNumber":43,"author":{"gitId":"LuoYu-uwu"},"content":" Todo t \u003d new Todo(taskName);","lastModifiedDate":"2024-02-03"},{"lineNumber":44,"author":{"gitId":"LuoYu-uwu"},"content":" tasks[taskNum++] \u003d t;","lastModifiedDate":"2024-02-03"},{"lineNumber":45,"author":{"gitId":"LuoYu-uwu"},"content":" printAddedTask(t);","lastModifiedDate":"2024-02-03"},{"lineNumber":46,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":47,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":48,"author":{"gitId":"LuoYu-uwu"},"content":" private static void addDeadline(String userInput) {","lastModifiedDate":"2024-02-03"},{"lineNumber":49,"author":{"gitId":"LuoYu-uwu"},"content":" String[] words \u003d userInput.split(\"/\");","lastModifiedDate":"2024-02-03"},{"lineNumber":50,"author":{"gitId":"LuoYu-uwu"},"content":" String taskName \u003d words[0].substring(9);","lastModifiedDate":"2024-02-03"},{"lineNumber":51,"author":{"gitId":"LuoYu-uwu"},"content":" String by \u003d words[1].substring(3);","lastModifiedDate":"2024-02-03"},{"lineNumber":52,"author":{"gitId":"LuoYu-uwu"},"content":" Deadline t \u003d new Deadline(taskName, by);","lastModifiedDate":"2024-02-03"},{"lineNumber":53,"author":{"gitId":"LuoYu-uwu"},"content":" tasks[taskNum++] \u003d t;","lastModifiedDate":"2024-02-03"},{"lineNumber":54,"author":{"gitId":"LuoYu-uwu"},"content":" printAddedTask(t);","lastModifiedDate":"2024-02-03"},{"lineNumber":55,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":56,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":57,"author":{"gitId":"LuoYu-uwu"},"content":" private static void addEvent(String userInput) {","lastModifiedDate":"2024-02-03"},{"lineNumber":58,"author":{"gitId":"LuoYu-uwu"},"content":" String[] words \u003d userInput.split(\"/\");","lastModifiedDate":"2024-02-03"},{"lineNumber":59,"author":{"gitId":"LuoYu-uwu"},"content":" String taskName \u003d words[0].substring(6);","lastModifiedDate":"2024-02-03"},{"lineNumber":60,"author":{"gitId":"LuoYu-uwu"},"content":" String from \u003d words[1].substring(5);","lastModifiedDate":"2024-02-03"},{"lineNumber":61,"author":{"gitId":"LuoYu-uwu"},"content":" String to \u003d words[2].substring(3);","lastModifiedDate":"2024-02-03"},{"lineNumber":62,"author":{"gitId":"LuoYu-uwu"},"content":" Event t \u003d new Event(taskName, from, to);","lastModifiedDate":"2024-02-03"},{"lineNumber":63,"author":{"gitId":"LuoYu-uwu"},"content":" tasks[taskNum++] \u003d t;","lastModifiedDate":"2024-02-03"},{"lineNumber":64,"author":{"gitId":"LuoYu-uwu"},"content":" printAddedTask(t);","lastModifiedDate":"2024-02-03"},{"lineNumber":65,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":66,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":67,"author":{"gitId":"LuoYu-uwu"},"content":" private static void end() {","lastModifiedDate":"2024-02-03"},{"lineNumber":68,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":69,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Bye. Hope to see you again soon!\");","lastModifiedDate":"2024-02-03"},{"lineNumber":70,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":71,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LOGO);","lastModifiedDate":"2024-02-03"},{"lineNumber":72,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":73,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":74,"author":{"gitId":"LuoYu-uwu"},"content":" private static void markTask(String userInput, boolean status) {","lastModifiedDate":"2024-02-03"},{"lineNumber":75,"author":{"gitId":"LuoYu-uwu"},"content":" String[] words \u003d userInput.split(\" \");","lastModifiedDate":"2024-02-03"},{"lineNumber":76,"author":{"gitId":"LuoYu-uwu"},"content":" int i \u003d Integer.parseInt(words[1]);","lastModifiedDate":"2024-02-03"},{"lineNumber":77,"author":{"gitId":"LuoYu-uwu"},"content":" if (status) {","lastModifiedDate":"2024-02-03"},{"lineNumber":78,"author":{"gitId":"LuoYu-uwu"},"content":" tasks[i - 1].mark();","lastModifiedDate":"2024-02-03"},{"lineNumber":79,"author":{"gitId":"LuoYu-uwu"},"content":" } else {","lastModifiedDate":"2024-02-03"},{"lineNumber":80,"author":{"gitId":"LuoYu-uwu"},"content":" tasks[i - 1].unmark();","lastModifiedDate":"2024-02-03"},{"lineNumber":81,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":82,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":83,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":84,"author":{"gitId":"LuoYu-uwu"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-02-03"},{"lineNumber":85,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":86,"author":{"gitId":"LuoYu-uwu"},"content":" intro();","lastModifiedDate":"2024-02-03"},{"lineNumber":87,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":88,"author":{"gitId":"LuoYu-uwu"},"content":" Scanner in \u003d new Scanner(System.in);","lastModifiedDate":"2024-01-26"},{"lineNumber":89,"author":{"gitId":"LuoYu-uwu"},"content":" while (true) {","lastModifiedDate":"2024-01-26"},{"lineNumber":90,"author":{"gitId":"LuoYu-uwu"},"content":" String input \u003d in.nextLine();","lastModifiedDate":"2024-01-26"},{"lineNumber":91,"author":{"gitId":"LuoYu-uwu"},"content":" if (input.equals(\"bye\")) {","lastModifiedDate":"2024-01-26"},{"lineNumber":92,"author":{"gitId":"LuoYu-uwu"},"content":" break;","lastModifiedDate":"2024-01-26"},{"lineNumber":93,"author":{"gitId":"LuoYu-uwu"},"content":" } else if (input.equals(\"list\")) {","lastModifiedDate":"2024-01-26"},{"lineNumber":94,"author":{"gitId":"LuoYu-uwu"},"content":" printTasks();","lastModifiedDate":"2024-02-03"},{"lineNumber":95,"author":{"gitId":"LuoYu-uwu"},"content":" } else if (input.startsWith(\"mark\")) {","lastModifiedDate":"2024-01-26"},{"lineNumber":96,"author":{"gitId":"LuoYu-uwu"},"content":" markTask(input,true);","lastModifiedDate":"2024-02-03"},{"lineNumber":97,"author":{"gitId":"LuoYu-uwu"},"content":" } else if (input.startsWith(\"unmark\")) {","lastModifiedDate":"2024-01-26"},{"lineNumber":98,"author":{"gitId":"LuoYu-uwu"},"content":" markTask(input,false);","lastModifiedDate":"2024-02-03"},{"lineNumber":99,"author":{"gitId":"LuoYu-uwu"},"content":" } else if (input.startsWith(\"todo\")) {","lastModifiedDate":"2024-02-03"},{"lineNumber":100,"author":{"gitId":"LuoYu-uwu"},"content":" addTodo(input);","lastModifiedDate":"2024-02-03"},{"lineNumber":101,"author":{"gitId":"LuoYu-uwu"},"content":" } else if (input.startsWith(\"deadline\")) {","lastModifiedDate":"2024-02-03"},{"lineNumber":102,"author":{"gitId":"LuoYu-uwu"},"content":" addDeadline(input);","lastModifiedDate":"2024-02-03"},{"lineNumber":103,"author":{"gitId":"LuoYu-uwu"},"content":" } else if (input.startsWith(\"event\")) {","lastModifiedDate":"2024-02-03"},{"lineNumber":104,"author":{"gitId":"LuoYu-uwu"},"content":" addEvent(input);","lastModifiedDate":"2024-02-03"},{"lineNumber":105,"author":{"gitId":"LuoYu-uwu"},"content":" } else {","lastModifiedDate":"2024-01-26"},{"lineNumber":106,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":107,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Please enter valid keyword\");","lastModifiedDate":"2024-02-03"},{"lineNumber":108,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":109,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-01-26"},{"lineNumber":110,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-01-26"},{"lineNumber":111,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":112,"author":{"gitId":"LuoYu-uwu"},"content":" end();","lastModifiedDate":"2024-02-03"},{"lineNumber":113,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-01-19"},{"lineNumber":114,"author":{"gitId":"LuoYu-uwu"},"content":"}","lastModifiedDate":"2024-01-19"}],"authorContributionMap":{"LuoYu-uwu":114}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"LuoYu-uwu"},"content":"import java.util.Arrays;","lastModifiedDate":"2024-01-26"},{"lineNumber":2,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":3,"author":{"gitId":"LuoYu-uwu"},"content":"public class Task {","lastModifiedDate":"2024-01-26"},{"lineNumber":4,"author":{"gitId":"LuoYu-uwu"},"content":" protected String taskType;","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"LuoYu-uwu"},"content":" protected boolean isMarked;","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":7,"author":{"gitId":"LuoYu-uwu"},"content":" protected String taskName;","lastModifiedDate":"2024-02-03"},{"lineNumber":8,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":9,"author":{"gitId":"LuoYu-uwu"},"content":" public Task(String taskType, String taskName) {","lastModifiedDate":"2024-02-03"},{"lineNumber":10,"author":{"gitId":"LuoYu-uwu"},"content":" this.taskType \u003d taskType;","lastModifiedDate":"2024-02-03"},{"lineNumber":11,"author":{"gitId":"LuoYu-uwu"},"content":" this.isMarked \u003d false;","lastModifiedDate":"2024-02-03"},{"lineNumber":12,"author":{"gitId":"LuoYu-uwu"},"content":" this.taskName \u003d taskName;","lastModifiedDate":"2024-02-03"},{"lineNumber":13,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-01-26"},{"lineNumber":14,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":15,"author":{"gitId":"LuoYu-uwu"},"content":" protected String lineBreak \u003d \"-\".repeat(60);","lastModifiedDate":"2024-02-03"},{"lineNumber":16,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":17,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":18,"author":{"gitId":"LuoYu-uwu"},"content":" public void mark() {","lastModifiedDate":"2024-02-03"},{"lineNumber":19,"author":{"gitId":"LuoYu-uwu"},"content":" this.isMarked \u003d true;","lastModifiedDate":"2024-02-03"},{"lineNumber":20,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(lineBreak);","lastModifiedDate":"2024-02-03"},{"lineNumber":21,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Nice! I\u0027ve marked this task as done:\");","lastModifiedDate":"2024-01-26"},{"lineNumber":22,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(this.printTask());","lastModifiedDate":"2024-02-03"},{"lineNumber":23,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(lineBreak);","lastModifiedDate":"2024-02-03"},{"lineNumber":24,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-01-26"},{"lineNumber":25,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":26,"author":{"gitId":"LuoYu-uwu"},"content":" public void unmark() {","lastModifiedDate":"2024-02-03"},{"lineNumber":27,"author":{"gitId":"LuoYu-uwu"},"content":" this.isMarked \u003d false;","lastModifiedDate":"2024-02-03"},{"lineNumber":28,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(lineBreak);","lastModifiedDate":"2024-02-03"},{"lineNumber":29,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"OK, I\u0027ve marked this task as not done yet:\");","lastModifiedDate":"2024-01-26"},{"lineNumber":30,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(this.printTask());","lastModifiedDate":"2024-02-03"},{"lineNumber":31,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(lineBreak);","lastModifiedDate":"2024-02-03"},{"lineNumber":32,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":33,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":34,"author":{"gitId":"LuoYu-uwu"},"content":" public String markStatus() {","lastModifiedDate":"2024-02-03"},{"lineNumber":35,"author":{"gitId":"LuoYu-uwu"},"content":" if (isMarked) {","lastModifiedDate":"2024-02-03"},{"lineNumber":36,"author":{"gitId":"LuoYu-uwu"},"content":" return \"X\";","lastModifiedDate":"2024-02-03"},{"lineNumber":37,"author":{"gitId":"LuoYu-uwu"},"content":" } else {","lastModifiedDate":"2024-02-03"},{"lineNumber":38,"author":{"gitId":"LuoYu-uwu"},"content":" return \" \";","lastModifiedDate":"2024-02-03"},{"lineNumber":39,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":40,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-01-26"},{"lineNumber":41,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":42,"author":{"gitId":"LuoYu-uwu"},"content":" public String printTask() {","lastModifiedDate":"2024-02-03"},{"lineNumber":43,"author":{"gitId":"LuoYu-uwu"},"content":" return \"[\" + this.taskType+ \"][\" +markStatus()+ \"] \" + this.taskName;","lastModifiedDate":"2024-02-03"},{"lineNumber":44,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-01-26"},{"lineNumber":45,"author":{"gitId":"LuoYu-uwu"},"content":"}","lastModifiedDate":"2024-01-26"}],"authorContributionMap":{"LuoYu-uwu":45}},{"path":"src/main/java/Todo.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"LuoYu-uwu"},"content":"public class Todo extends Task {","lastModifiedDate":"2024-02-03"},{"lineNumber":2,"author":{"gitId":"LuoYu-uwu"},"content":" public Todo(String taskName) {","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"LuoYu-uwu"},"content":" super(\"T\", taskName);","lastModifiedDate":"2024-02-03"},{"lineNumber":4,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"LuoYu-uwu"},"content":"}","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"LuoYu-uwu":5}}] +[{"path":"src/main/java/Deadline.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"LuoYu-uwu"},"content":"public class Deadline extends Task {","lastModifiedDate":"2024-02-03"},{"lineNumber":2,"author":{"gitId":"LuoYu-uwu"},"content":" protected String by;","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"LuoYu-uwu"},"content":" public Deadline (String taskName, String by) {","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"LuoYu-uwu"},"content":" super(\"D\",taskName);","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"LuoYu-uwu"},"content":" this.by \u003d by;","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":8,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":9,"author":{"gitId":"LuoYu-uwu"},"content":" public String printTask() {","lastModifiedDate":"2024-02-03"},{"lineNumber":10,"author":{"gitId":"LuoYu-uwu"},"content":" return super.printTask() + \"(by: \" + this.by + \")\";","lastModifiedDate":"2024-02-03"},{"lineNumber":11,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":12,"author":{"gitId":"LuoYu-uwu"},"content":"}","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"LuoYu-uwu":12}},{"path":"src/main/java/Event.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"LuoYu-uwu"},"content":"public class Event extends Task {","lastModifiedDate":"2024-02-03"},{"lineNumber":2,"author":{"gitId":"LuoYu-uwu"},"content":" protected String from;","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"LuoYu-uwu"},"content":" protected String to;","lastModifiedDate":"2024-02-03"},{"lineNumber":4,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"LuoYu-uwu"},"content":" public Event(String taskName, String from, String to) {","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"LuoYu-uwu"},"content":" super(\"E\", taskName);","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"LuoYu-uwu"},"content":" this.from \u003d from;","lastModifiedDate":"2024-02-03"},{"lineNumber":8,"author":{"gitId":"LuoYu-uwu"},"content":" this.to \u003d to;","lastModifiedDate":"2024-02-03"},{"lineNumber":9,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":10,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":11,"author":{"gitId":"LuoYu-uwu"},"content":" public String printTask() {","lastModifiedDate":"2024-02-03"},{"lineNumber":12,"author":{"gitId":"LuoYu-uwu"},"content":" return super.printTask() + \"(from: \" + this.from + \" to: \" + this.to + \")\";","lastModifiedDate":"2024-02-03"},{"lineNumber":13,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":14,"author":{"gitId":"LuoYu-uwu"},"content":"}","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"LuoYu-uwu":14}},{"path":"src/main/java/InvalidCommandException.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"LuoYu-uwu"},"content":"public class InvalidCommandException extends Exception{","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"LuoYu-uwu"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"LuoYu-uwu":2}},{"path":"src/main/java/InvalidDescriptionException.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"LuoYu-uwu"},"content":"public class InvalidDescriptionException extends Exception{","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"LuoYu-uwu"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"LuoYu-uwu":2}},{"path":"src/main/java/InvalidTimeException.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"LuoYu-uwu"},"content":"public class InvalidTimeException extends Exception{","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"LuoYu-uwu"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"LuoYu-uwu":2}},{"path":"src/main/java/KuroBot.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"LuoYu-uwu"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-01-26"},{"lineNumber":2,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"LuoYu-uwu"},"content":"public class KuroBot {","lastModifiedDate":"2024-01-19"},{"lineNumber":4,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":5,"author":{"gitId":"LuoYu-uwu"},"content":" private static Task[] tasks \u003d new Task[100];","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"LuoYu-uwu"},"content":" private static int taskNum \u003d 0;","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"LuoYu-uwu"},"content":" private static boolean isStart;","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"LuoYu-uwu"},"content":" private static final int LINE_LEN \u003d 60;","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"LuoYu-uwu"},"content":" private static final String LINE \u003d \"-\".repeat(LINE_LEN);","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"LuoYu-uwu"},"content":" private static Scanner scanner;","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":12,"author":{"gitId":"LuoYu-uwu"},"content":" private static final String LOGO \u003d","lastModifiedDate":"2024-02-03"},{"lineNumber":13,"author":{"gitId":"LuoYu-uwu"},"content":" \" ___ ___ ___ ___ \\n\"","lastModifiedDate":"2024-01-19"},{"lineNumber":14,"author":{"gitId":"LuoYu-uwu"},"content":" + \"| |/ / | | | | \\n\"","lastModifiedDate":"2024-01-19"},{"lineNumber":15,"author":{"gitId":"LuoYu-uwu"},"content":" + \"| / | | | | \\n\"","lastModifiedDate":"2024-01-19"},{"lineNumber":16,"author":{"gitId":"LuoYu-uwu"},"content":" + \"| |\\\\ \\\\ |_ |___| _| \\n\"","lastModifiedDate":"2024-01-19"},{"lineNumber":17,"author":{"gitId":"LuoYu-uwu"},"content":" + \"|___| \\\\___\\\\ |_____| \\n\";","lastModifiedDate":"2024-01-19"},{"lineNumber":18,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":19,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":20,"author":{"gitId":"LuoYu-uwu"},"content":" private static void printTasks() {","lastModifiedDate":"2024-02-03"},{"lineNumber":21,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":22,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Here are the tasks in your list:\");","lastModifiedDate":"2024-02-03"},{"lineNumber":23,"author":{"gitId":"LuoYu-uwu"},"content":" for (int i \u003d 0; i \u003c taskNum; i ++){","lastModifiedDate":"2024-02-03"},{"lineNumber":24,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(i+1 + \".\" + tasks[i].printTask());","lastModifiedDate":"2024-02-03"},{"lineNumber":25,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":26,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":27,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":28,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":29,"author":{"gitId":"LuoYu-uwu"},"content":" private static void start() {","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":31,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Hello! I\u0027m KuroBot\\n\" + \"What can I do for you?\");","lastModifiedDate":"2024-01-19"},{"lineNumber":32,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":33,"author":{"gitId":"LuoYu-uwu"},"content":" isStart \u003d true;","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"LuoYu-uwu"},"content":" scanner \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":36,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":37,"author":{"gitId":"LuoYu-uwu"},"content":" private static void printAddedTask(Task task) {","lastModifiedDate":"2024-02-03"},{"lineNumber":38,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":39,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Got it. I\u0027ve added this task:\");","lastModifiedDate":"2024-02-03"},{"lineNumber":40,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(task.printTask());","lastModifiedDate":"2024-02-03"},{"lineNumber":41,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Now you have \" + taskNum + \" tasks in the list.\");","lastModifiedDate":"2024-02-03"},{"lineNumber":42,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":43,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":44,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":45,"author":{"gitId":"LuoYu-uwu"},"content":" private static void addTodo(String userInput) throws InvalidDescriptionException {","lastModifiedDate":"2024-02-09"},{"lineNumber":46,"author":{"gitId":"LuoYu-uwu"},"content":" //check if description was given","lastModifiedDate":"2024-02-09"},{"lineNumber":47,"author":{"gitId":"LuoYu-uwu"},"content":" String[] words \u003d userInput.split(\" \",2);","lastModifiedDate":"2024-02-09"},{"lineNumber":48,"author":{"gitId":"LuoYu-uwu"},"content":" if (words.length \u003c 2){","lastModifiedDate":"2024-02-09"},{"lineNumber":49,"author":{"gitId":"LuoYu-uwu"},"content":" throw new InvalidDescriptionException();","lastModifiedDate":"2024-02-09"},{"lineNumber":50,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":51,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":52,"author":{"gitId":"LuoYu-uwu"},"content":" String taskName \u003d words[1];","lastModifiedDate":"2024-02-09"},{"lineNumber":53,"author":{"gitId":"LuoYu-uwu"},"content":" Todo task \u003d new Todo(taskName);","lastModifiedDate":"2024-02-09"},{"lineNumber":54,"author":{"gitId":"LuoYu-uwu"},"content":" tasks[taskNum++] \u003d task;","lastModifiedDate":"2024-02-09"},{"lineNumber":55,"author":{"gitId":"LuoYu-uwu"},"content":" printAddedTask(task);","lastModifiedDate":"2024-02-09"},{"lineNumber":56,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":57,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":58,"author":{"gitId":"LuoYu-uwu"},"content":" private static void addDeadline(String userInput) throws InvalidDescriptionException, InvalidTimeException {","lastModifiedDate":"2024-02-09"},{"lineNumber":59,"author":{"gitId":"LuoYu-uwu"},"content":" //check if description was given","lastModifiedDate":"2024-02-09"},{"lineNumber":60,"author":{"gitId":"LuoYu-uwu"},"content":" String[] words \u003d userInput.split(\" \",2);","lastModifiedDate":"2024-02-09"},{"lineNumber":61,"author":{"gitId":"LuoYu-uwu"},"content":" if (words.length \u003c 2){","lastModifiedDate":"2024-02-09"},{"lineNumber":62,"author":{"gitId":"LuoYu-uwu"},"content":" throw new InvalidDescriptionException();","lastModifiedDate":"2024-02-09"},{"lineNumber":63,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":64,"author":{"gitId":"LuoYu-uwu"},"content":" String description \u003d words[1];","lastModifiedDate":"2024-02-09"},{"lineNumber":65,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":66,"author":{"gitId":"LuoYu-uwu"},"content":" //check if due date was given","lastModifiedDate":"2024-02-09"},{"lineNumber":67,"author":{"gitId":"LuoYu-uwu"},"content":" String[] phrases \u003d description.split(\"/by\", 2);","lastModifiedDate":"2024-02-09"},{"lineNumber":68,"author":{"gitId":"LuoYu-uwu"},"content":" if (phrases.length \u003c 2){","lastModifiedDate":"2024-02-09"},{"lineNumber":69,"author":{"gitId":"LuoYu-uwu"},"content":" throw new InvalidTimeException();","lastModifiedDate":"2024-02-09"},{"lineNumber":70,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":71,"author":{"gitId":"LuoYu-uwu"},"content":" String taskName \u003d phrases[0];","lastModifiedDate":"2024-02-09"},{"lineNumber":72,"author":{"gitId":"LuoYu-uwu"},"content":" String by \u003d phrases[1].strip();","lastModifiedDate":"2024-02-09"},{"lineNumber":73,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":74,"author":{"gitId":"LuoYu-uwu"},"content":" Deadline task \u003d new Deadline(taskName, by);","lastModifiedDate":"2024-02-09"},{"lineNumber":75,"author":{"gitId":"LuoYu-uwu"},"content":" tasks[taskNum++] \u003d task;","lastModifiedDate":"2024-02-09"},{"lineNumber":76,"author":{"gitId":"LuoYu-uwu"},"content":" printAddedTask(task);","lastModifiedDate":"2024-02-09"},{"lineNumber":77,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":78,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":79,"author":{"gitId":"LuoYu-uwu"},"content":" private static void addEvent(String userInput) throws InvalidDescriptionException, InvalidTimeException {","lastModifiedDate":"2024-02-09"},{"lineNumber":80,"author":{"gitId":"LuoYu-uwu"},"content":" //check if description was given","lastModifiedDate":"2024-02-09"},{"lineNumber":81,"author":{"gitId":"LuoYu-uwu"},"content":" String[] words \u003d userInput.split(\" \",2);","lastModifiedDate":"2024-02-09"},{"lineNumber":82,"author":{"gitId":"LuoYu-uwu"},"content":" if (words.length \u003c 2){","lastModifiedDate":"2024-02-09"},{"lineNumber":83,"author":{"gitId":"LuoYu-uwu"},"content":" throw new InvalidDescriptionException();","lastModifiedDate":"2024-02-09"},{"lineNumber":84,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":85,"author":{"gitId":"LuoYu-uwu"},"content":" String description \u003d words[1];","lastModifiedDate":"2024-02-09"},{"lineNumber":86,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":87,"author":{"gitId":"LuoYu-uwu"},"content":" //check if duration was given","lastModifiedDate":"2024-02-09"},{"lineNumber":88,"author":{"gitId":"LuoYu-uwu"},"content":" String[] phrases \u003d description.split(\"/from\",2);","lastModifiedDate":"2024-02-09"},{"lineNumber":89,"author":{"gitId":"LuoYu-uwu"},"content":" if (phrases.length \u003c 2){","lastModifiedDate":"2024-02-09"},{"lineNumber":90,"author":{"gitId":"LuoYu-uwu"},"content":" throw new InvalidTimeException();","lastModifiedDate":"2024-02-09"},{"lineNumber":91,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":92,"author":{"gitId":"LuoYu-uwu"},"content":" String taskName \u003d phrases[0];","lastModifiedDate":"2024-02-09"},{"lineNumber":93,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":94,"author":{"gitId":"LuoYu-uwu"},"content":" //check if both \"from\" and \"to\" was given","lastModifiedDate":"2024-02-09"},{"lineNumber":95,"author":{"gitId":"LuoYu-uwu"},"content":" String[] period \u003d phrases[1].split(\"/to\",2);","lastModifiedDate":"2024-02-09"},{"lineNumber":96,"author":{"gitId":"LuoYu-uwu"},"content":" if(period.length \u003c 2){","lastModifiedDate":"2024-02-09"},{"lineNumber":97,"author":{"gitId":"LuoYu-uwu"},"content":" throw new InvalidTimeException();","lastModifiedDate":"2024-02-09"},{"lineNumber":98,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":99,"author":{"gitId":"LuoYu-uwu"},"content":" String from \u003d period[0].strip();","lastModifiedDate":"2024-02-09"},{"lineNumber":100,"author":{"gitId":"LuoYu-uwu"},"content":" String to \u003d period[1].strip();","lastModifiedDate":"2024-02-09"},{"lineNumber":101,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":102,"author":{"gitId":"LuoYu-uwu"},"content":" Event task \u003d new Event(taskName, from, to);","lastModifiedDate":"2024-02-09"},{"lineNumber":103,"author":{"gitId":"LuoYu-uwu"},"content":" tasks[taskNum++] \u003d task;","lastModifiedDate":"2024-02-09"},{"lineNumber":104,"author":{"gitId":"LuoYu-uwu"},"content":" printAddedTask(task);","lastModifiedDate":"2024-02-09"},{"lineNumber":105,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":106,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":107,"author":{"gitId":"LuoYu-uwu"},"content":" private static void end() {","lastModifiedDate":"2024-02-03"},{"lineNumber":108,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":109,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Bye. Hope to see you again soon!\");","lastModifiedDate":"2024-02-03"},{"lineNumber":110,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":111,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LOGO);","lastModifiedDate":"2024-02-03"},{"lineNumber":112,"author":{"gitId":"LuoYu-uwu"},"content":" isStart \u003d false;","lastModifiedDate":"2024-02-09"},{"lineNumber":113,"author":{"gitId":"LuoYu-uwu"},"content":" scanner.close();","lastModifiedDate":"2024-02-09"},{"lineNumber":114,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":115,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":116,"author":{"gitId":"LuoYu-uwu"},"content":" private static void markTask(String userInput, boolean status) throws InvalidDescriptionException{","lastModifiedDate":"2024-02-09"},{"lineNumber":117,"author":{"gitId":"LuoYu-uwu"},"content":" //check if task number was given","lastModifiedDate":"2024-02-09"},{"lineNumber":118,"author":{"gitId":"LuoYu-uwu"},"content":" String[] words \u003d userInput.split(\" \",2);","lastModifiedDate":"2024-02-09"},{"lineNumber":119,"author":{"gitId":"LuoYu-uwu"},"content":" if (words.length \u003c 2){","lastModifiedDate":"2024-02-09"},{"lineNumber":120,"author":{"gitId":"LuoYu-uwu"},"content":" throw new InvalidDescriptionException();","lastModifiedDate":"2024-02-09"},{"lineNumber":121,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":122,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":123,"author":{"gitId":"LuoYu-uwu"},"content":" //get task number","lastModifiedDate":"2024-02-09"},{"lineNumber":124,"author":{"gitId":"LuoYu-uwu"},"content":" String taskIndex \u003d words[1];","lastModifiedDate":"2024-02-09"},{"lineNumber":125,"author":{"gitId":"LuoYu-uwu"},"content":" int i \u003d Integer.parseInt(taskIndex);","lastModifiedDate":"2024-02-09"},{"lineNumber":126,"author":{"gitId":"LuoYu-uwu"},"content":" try {","lastModifiedDate":"2024-02-09"},{"lineNumber":127,"author":{"gitId":"LuoYu-uwu"},"content":" if (status) {","lastModifiedDate":"2024-02-03"},{"lineNumber":128,"author":{"gitId":"LuoYu-uwu"},"content":" tasks[i - 1].mark();","lastModifiedDate":"2024-02-03"},{"lineNumber":129,"author":{"gitId":"LuoYu-uwu"},"content":" } else {","lastModifiedDate":"2024-02-03"},{"lineNumber":130,"author":{"gitId":"LuoYu-uwu"},"content":" tasks[i - 1].unmark();","lastModifiedDate":"2024-02-03"},{"lineNumber":131,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":132,"author":{"gitId":"LuoYu-uwu"},"content":" } catch (NullPointerException e){","lastModifiedDate":"2024-02-09"},{"lineNumber":133,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":134,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"there\u0027s no such task though...\");","lastModifiedDate":"2024-02-09"},{"lineNumber":135,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":136,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":137,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":138,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":139,"author":{"gitId":"LuoYu-uwu"},"content":" private static void manageTasks(String input) throws InvalidCommandException{","lastModifiedDate":"2024-02-09"},{"lineNumber":140,"author":{"gitId":"LuoYu-uwu"},"content":" //extract command keyword from input","lastModifiedDate":"2024-02-09"},{"lineNumber":141,"author":{"gitId":"LuoYu-uwu"},"content":" String[] words \u003d input.split(\" \",2);","lastModifiedDate":"2024-02-09"},{"lineNumber":142,"author":{"gitId":"LuoYu-uwu"},"content":" //first phrase given is the command keyword","lastModifiedDate":"2024-02-09"},{"lineNumber":143,"author":{"gitId":"LuoYu-uwu"},"content":" String command \u003d words[0];","lastModifiedDate":"2024-02-09"},{"lineNumber":144,"author":{"gitId":"LuoYu-uwu"},"content":" switch (command) {","lastModifiedDate":"2024-02-09"},{"lineNumber":145,"author":{"gitId":"LuoYu-uwu"},"content":" case \"bye\":","lastModifiedDate":"2024-02-09"},{"lineNumber":146,"author":{"gitId":"LuoYu-uwu"},"content":" end();","lastModifiedDate":"2024-02-09"},{"lineNumber":147,"author":{"gitId":"LuoYu-uwu"},"content":" break;","lastModifiedDate":"2024-01-26"},{"lineNumber":148,"author":{"gitId":"LuoYu-uwu"},"content":" case \"list\":","lastModifiedDate":"2024-02-09"},{"lineNumber":149,"author":{"gitId":"LuoYu-uwu"},"content":" printTasks();","lastModifiedDate":"2024-02-03"},{"lineNumber":150,"author":{"gitId":"LuoYu-uwu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":151,"author":{"gitId":"LuoYu-uwu"},"content":" case \"mark\":","lastModifiedDate":"2024-02-09"},{"lineNumber":152,"author":{"gitId":"LuoYu-uwu"},"content":" try {","lastModifiedDate":"2024-02-09"},{"lineNumber":153,"author":{"gitId":"LuoYu-uwu"},"content":" markTask(input, true);","lastModifiedDate":"2024-02-09"},{"lineNumber":154,"author":{"gitId":"LuoYu-uwu"},"content":" } catch (InvalidDescriptionException e){","lastModifiedDate":"2024-02-09"},{"lineNumber":155,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":156,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"mhmm.. which task have you completed? \u003e.\u003c\");","lastModifiedDate":"2024-02-09"},{"lineNumber":157,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":158,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":159,"author":{"gitId":"LuoYu-uwu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":160,"author":{"gitId":"LuoYu-uwu"},"content":" case \"unmark\":","lastModifiedDate":"2024-02-09"},{"lineNumber":161,"author":{"gitId":"LuoYu-uwu"},"content":" try {","lastModifiedDate":"2024-02-09"},{"lineNumber":162,"author":{"gitId":"LuoYu-uwu"},"content":" markTask(words[1], false);","lastModifiedDate":"2024-02-09"},{"lineNumber":163,"author":{"gitId":"LuoYu-uwu"},"content":" } catch (InvalidDescriptionException e){","lastModifiedDate":"2024-02-09"},{"lineNumber":164,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":165,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"oopsie, what task should I unmark?\");","lastModifiedDate":"2024-02-09"},{"lineNumber":166,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":167,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":168,"author":{"gitId":"LuoYu-uwu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":169,"author":{"gitId":"LuoYu-uwu"},"content":" case \"todo\":","lastModifiedDate":"2024-02-09"},{"lineNumber":170,"author":{"gitId":"LuoYu-uwu"},"content":" try {","lastModifiedDate":"2024-02-09"},{"lineNumber":171,"author":{"gitId":"LuoYu-uwu"},"content":" addTodo(input);","lastModifiedDate":"2024-02-09"},{"lineNumber":172,"author":{"gitId":"LuoYu-uwu"},"content":" } catch (InvalidDescriptionException e){","lastModifiedDate":"2024-02-09"},{"lineNumber":173,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":174,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Hmmm.. what is the task about?\");","lastModifiedDate":"2024-02-09"},{"lineNumber":175,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":176,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":177,"author":{"gitId":"LuoYu-uwu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":178,"author":{"gitId":"LuoYu-uwu"},"content":" case \"deadline\":","lastModifiedDate":"2024-02-09"},{"lineNumber":179,"author":{"gitId":"LuoYu-uwu"},"content":" try {","lastModifiedDate":"2024-02-09"},{"lineNumber":180,"author":{"gitId":"LuoYu-uwu"},"content":" addDeadline(input);","lastModifiedDate":"2024-02-09"},{"lineNumber":181,"author":{"gitId":"LuoYu-uwu"},"content":" } catch (InvalidDescriptionException e){","lastModifiedDate":"2024-02-09"},{"lineNumber":182,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":183,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Heyyy~ don\u0027t forget your task\");","lastModifiedDate":"2024-02-09"},{"lineNumber":184,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":185,"author":{"gitId":"LuoYu-uwu"},"content":" } catch (InvalidTimeException e){","lastModifiedDate":"2024-02-09"},{"lineNumber":186,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":187,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Did you forget your due date? :p\");","lastModifiedDate":"2024-02-09"},{"lineNumber":188,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":189,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":190,"author":{"gitId":"LuoYu-uwu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":191,"author":{"gitId":"LuoYu-uwu"},"content":" case \"event\":","lastModifiedDate":"2024-02-09"},{"lineNumber":192,"author":{"gitId":"LuoYu-uwu"},"content":" try {","lastModifiedDate":"2024-02-09"},{"lineNumber":193,"author":{"gitId":"LuoYu-uwu"},"content":" addEvent(input);","lastModifiedDate":"2024-02-09"},{"lineNumber":194,"author":{"gitId":"LuoYu-uwu"},"content":" } catch (InvalidDescriptionException e){","lastModifiedDate":"2024-02-09"},{"lineNumber":195,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":196,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"aiyoyo, how can you forget the event XD\");","lastModifiedDate":"2024-02-09"},{"lineNumber":197,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":198,"author":{"gitId":"LuoYu-uwu"},"content":" } catch (InvalidTimeException e){","lastModifiedDate":"2024-02-09"},{"lineNumber":199,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":200,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"uhoh! don\u0027t forget the timings!\");","lastModifiedDate":"2024-02-09"},{"lineNumber":201,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-09"},{"lineNumber":202,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":203,"author":{"gitId":"LuoYu-uwu"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":204,"author":{"gitId":"LuoYu-uwu"},"content":" default:","lastModifiedDate":"2024-02-09"},{"lineNumber":205,"author":{"gitId":"LuoYu-uwu"},"content":" throw new InvalidCommandException();","lastModifiedDate":"2024-02-09"},{"lineNumber":206,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":207,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":208,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":209,"author":{"gitId":"LuoYu-uwu"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-02-09"},{"lineNumber":210,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":211,"author":{"gitId":"LuoYu-uwu"},"content":" //display welcome message","lastModifiedDate":"2024-02-09"},{"lineNumber":212,"author":{"gitId":"LuoYu-uwu"},"content":" start();","lastModifiedDate":"2024-02-09"},{"lineNumber":213,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":214,"author":{"gitId":"LuoYu-uwu"},"content":" while (isStart) {","lastModifiedDate":"2024-02-09"},{"lineNumber":215,"author":{"gitId":"LuoYu-uwu"},"content":" String input \u003d scanner.nextLine();","lastModifiedDate":"2024-02-09"},{"lineNumber":216,"author":{"gitId":"LuoYu-uwu"},"content":" try {","lastModifiedDate":"2024-02-09"},{"lineNumber":217,"author":{"gitId":"LuoYu-uwu"},"content":" manageTasks(input);","lastModifiedDate":"2024-02-09"},{"lineNumber":218,"author":{"gitId":"LuoYu-uwu"},"content":" } catch (InvalidCommandException e) {","lastModifiedDate":"2024-02-09"},{"lineNumber":219,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":220,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Whoops! Please enter a valid command~\");","lastModifiedDate":"2024-02-09"},{"lineNumber":221,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(LINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":222,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-01-26"},{"lineNumber":223,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-01-26"},{"lineNumber":224,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-01-19"},{"lineNumber":225,"author":{"gitId":"LuoYu-uwu"},"content":"}","lastModifiedDate":"2024-01-19"}],"authorContributionMap":{"LuoYu-uwu":225}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"LuoYu-uwu"},"content":"import java.util.Arrays;","lastModifiedDate":"2024-01-26"},{"lineNumber":2,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":3,"author":{"gitId":"LuoYu-uwu"},"content":"public class Task {","lastModifiedDate":"2024-01-26"},{"lineNumber":4,"author":{"gitId":"LuoYu-uwu"},"content":" protected String taskType;","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"LuoYu-uwu"},"content":" protected boolean isMarked;","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"LuoYu-uwu"},"content":" protected String taskName;","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"LuoYu-uwu"},"content":" protected int lineLen \u003d 60;","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"LuoYu-uwu"},"content":" protected String lineBreak \u003d \"-\".repeat(lineLen);","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":10,"author":{"gitId":"LuoYu-uwu"},"content":" public Task(String taskType, String taskName) {","lastModifiedDate":"2024-02-03"},{"lineNumber":11,"author":{"gitId":"LuoYu-uwu"},"content":" this.taskType \u003d taskType;","lastModifiedDate":"2024-02-03"},{"lineNumber":12,"author":{"gitId":"LuoYu-uwu"},"content":" this.isMarked \u003d false;","lastModifiedDate":"2024-02-03"},{"lineNumber":13,"author":{"gitId":"LuoYu-uwu"},"content":" this.taskName \u003d taskName;","lastModifiedDate":"2024-02-03"},{"lineNumber":14,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-01-26"},{"lineNumber":15,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":16,"author":{"gitId":"LuoYu-uwu"},"content":" public void mark() {","lastModifiedDate":"2024-02-03"},{"lineNumber":17,"author":{"gitId":"LuoYu-uwu"},"content":" this.isMarked \u003d true;","lastModifiedDate":"2024-02-03"},{"lineNumber":18,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(lineBreak);","lastModifiedDate":"2024-02-03"},{"lineNumber":19,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"Nice! I\u0027ve marked this task as done:\");","lastModifiedDate":"2024-01-26"},{"lineNumber":20,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(this.printTask());","lastModifiedDate":"2024-02-03"},{"lineNumber":21,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(lineBreak);","lastModifiedDate":"2024-02-03"},{"lineNumber":22,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-01-26"},{"lineNumber":23,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":24,"author":{"gitId":"LuoYu-uwu"},"content":" public void unmark() {","lastModifiedDate":"2024-02-03"},{"lineNumber":25,"author":{"gitId":"LuoYu-uwu"},"content":" this.isMarked \u003d false;","lastModifiedDate":"2024-02-03"},{"lineNumber":26,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(lineBreak);","lastModifiedDate":"2024-02-03"},{"lineNumber":27,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(\"OK, I\u0027ve marked this task as not done yet:\");","lastModifiedDate":"2024-01-26"},{"lineNumber":28,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(this.printTask());","lastModifiedDate":"2024-02-03"},{"lineNumber":29,"author":{"gitId":"LuoYu-uwu"},"content":" System.out.println(lineBreak);","lastModifiedDate":"2024-02-03"},{"lineNumber":30,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":31,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":32,"author":{"gitId":"LuoYu-uwu"},"content":" public String markStatus() {","lastModifiedDate":"2024-02-03"},{"lineNumber":33,"author":{"gitId":"LuoYu-uwu"},"content":" if (isMarked) {","lastModifiedDate":"2024-02-03"},{"lineNumber":34,"author":{"gitId":"LuoYu-uwu"},"content":" return \"X\";","lastModifiedDate":"2024-02-03"},{"lineNumber":35,"author":{"gitId":"LuoYu-uwu"},"content":" } else {","lastModifiedDate":"2024-02-03"},{"lineNumber":36,"author":{"gitId":"LuoYu-uwu"},"content":" return \" \";","lastModifiedDate":"2024-02-03"},{"lineNumber":37,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":38,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-01-26"},{"lineNumber":39,"author":{"gitId":"LuoYu-uwu"},"content":"","lastModifiedDate":"2024-01-26"},{"lineNumber":40,"author":{"gitId":"LuoYu-uwu"},"content":" public String printTask() {","lastModifiedDate":"2024-02-03"},{"lineNumber":41,"author":{"gitId":"LuoYu-uwu"},"content":" return \"[\" + this.taskType+ \"][\" +markStatus()+ \"] \" + this.taskName;","lastModifiedDate":"2024-02-03"},{"lineNumber":42,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-01-26"},{"lineNumber":43,"author":{"gitId":"LuoYu-uwu"},"content":"}","lastModifiedDate":"2024-01-26"}],"authorContributionMap":{"LuoYu-uwu":43}},{"path":"src/main/java/Todo.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"LuoYu-uwu"},"content":"public class Todo extends Task {","lastModifiedDate":"2024-02-03"},{"lineNumber":2,"author":{"gitId":"LuoYu-uwu"},"content":" public Todo(String taskName) {","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"LuoYu-uwu"},"content":" super(\"T\", taskName);","lastModifiedDate":"2024-02-03"},{"lineNumber":4,"author":{"gitId":"LuoYu-uwu"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"LuoYu-uwu"},"content":"}","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"LuoYu-uwu":5}}] diff --git a/LuoYu-uwu_ip_master/commits.json b/LuoYu-uwu_ip_master/commits.json index 1620af0f..01b5b09f 100644 --- a/LuoYu-uwu_ip_master/commits.json +++ b/LuoYu-uwu_ip_master/commits.json @@ -1 +1 @@ -{"authorDailyContributionsMap":{"LuoYu-uwu":[{"date":"2024-01-19","commitResults":[{"hash":"7ca41cbaec707c6ef6627f113ce3ecf14155ffb2","isMergeCommit":false,"messageTitle":"Add greating message","messageBody":"","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":30,"deletions":10}}},{"hash":"9fa4223ba8e87c9672cd181f1bf31fd071601d18","isMergeCommit":false,"messageTitle":"Remove unnecessary comments","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":0,"deletions":13}}}]},{"date":"2024-01-26","commitResults":[{"hash":"55efb9d62e4b8717e094db63c3d9d37e26af6053","isMergeCommit":false,"messageTitle":"Add echo function","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":11,"deletions":0}}},{"hash":"c94548971470ba62a931f52d0681ffe86adac527","isMergeCommit":false,"messageTitle":"Add tasks into a list","messageBody":"","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":21,"deletions":3}}},{"hash":"54851492090055581a75e071eae482b4965abbb6","isMergeCommit":false,"messageTitle":"Add mark and unmark function","messageBody":"","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":63,"deletions":12}}}]},{"date":"2024-02-03","commitResults":[{"hash":"59c104f56f6090208b7901bb9013dd991732afe9","isMergeCommit":false,"messageTitle":"Add new classes to track three types of tasks","messageBody":"","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":202,"deletions":64}}},{"hash":"459436e1290dff4f16b1e0a62ee6d9818f7d4f30","isMergeCommit":false,"messageTitle":"Improve code quality","messageBody":"","tags":["A-CodeQuality"],"fileTypesAndContributionMap":{"java":{"insertions":30,"deletions":77}}}]}]},"authorFileTypeContributionMap":{"LuoYu-uwu":{"java":188,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"LuoYu-uwu":8505.125},"authorDisplayNameMap":{"LuoYu-uwu":"CS2113-T12-2 LUO ..O YU"}} +{"authorDailyContributionsMap":{"LuoYu-uwu":[{"date":"2024-01-19","commitResults":[{"hash":"7ca41cbaec707c6ef6627f113ce3ecf14155ffb2","isMergeCommit":false,"messageTitle":"Add greating message","messageBody":"","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":30,"deletions":10}}},{"hash":"9fa4223ba8e87c9672cd181f1bf31fd071601d18","isMergeCommit":false,"messageTitle":"Remove unnecessary comments","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":0,"deletions":13}}}]},{"date":"2024-01-26","commitResults":[{"hash":"55efb9d62e4b8717e094db63c3d9d37e26af6053","isMergeCommit":false,"messageTitle":"Add echo function","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":11,"deletions":0}}},{"hash":"c94548971470ba62a931f52d0681ffe86adac527","isMergeCommit":false,"messageTitle":"Add tasks into a list","messageBody":"","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":21,"deletions":3}}},{"hash":"54851492090055581a75e071eae482b4965abbb6","isMergeCommit":false,"messageTitle":"Add mark and unmark function","messageBody":"","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":63,"deletions":12}}}]},{"date":"2024-02-03","commitResults":[{"hash":"59c104f56f6090208b7901bb9013dd991732afe9","isMergeCommit":false,"messageTitle":"Add new classes to track three types of tasks","messageBody":"","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":202,"deletions":64}}},{"hash":"459436e1290dff4f16b1e0a62ee6d9818f7d4f30","isMergeCommit":false,"messageTitle":"Improve code quality","messageBody":"","tags":["A-CodeQuality"],"fileTypesAndContributionMap":{"java":{"insertions":30,"deletions":77}}}]},{"date":"2024-02-09","commitResults":[{"hash":"afb161ee3dff5f3cc4bece4cfc6d31d4aa6bdba9","isMergeCommit":false,"messageTitle":"Improve code quality based on peers\u0027 suggestions","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":64,"deletions":45}}},{"hash":"95f52fd2c7e1cd5f7c076fd2615a3be88898211d","isMergeCommit":false,"messageTitle":"Update code to handle exceptions","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":150,"deletions":52}}},{"hash":"4ff7c0e416cd6fe46fa29fd781a7aa50faaad08e","isMergeCommit":true,"messageTitle":"Merge branch \u0027branch-Level-5\u0027","messageBody":"","tags":["Level-5"],"fileTypesAndContributionMap":{}}]}]},"authorFileTypeContributionMap":{"LuoYu-uwu":{"java":305,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"LuoYu-uwu":9915.887},"authorDisplayNameMap":{"LuoYu-uwu":"CS2113-T12-2 LUO ..O YU"}} diff --git a/NGXZS_ip_master/commits.json b/NGXZS_ip_master/commits.json index b2afa429..676261a6 100644 --- a/NGXZS_ip_master/commits.json +++ b/NGXZS_ip_master/commits.json @@ -1 +1 @@ -{"authorDailyContributionsMap":{"NGXZS":[{"date":"2024-01-23","commitResults":[{"hash":"acff142bc88c27b668b3940cd6c66f1f04351f6a","isMergeCommit":false,"messageTitle":"Modify RecrBad.java and .gitignore","messageBody":"","tags":["Lvl-0"],"fileTypesAndContributionMap":{"java":{"insertions":49,"deletions":10}}}]},{"date":"2024-02-03","commitResults":[{"hash":"dcb4977a764a6d6e953efe1a404e9eabb3772b61","isMergeCommit":false,"messageTitle":"Add Level1: Echo","messageBody":"","tags":["Lvl-1"],"fileTypesAndContributionMap":{"java":{"insertions":29,"deletions":12}}}]},{"date":"2024-02-05","commitResults":[{"hash":"89642a17e8bfc34f8d72c264a676e3de8c9a770c","isMergeCommit":false,"messageTitle":"Add Level2 Add, List","messageBody":"","tags":["Lvl-2"],"fileTypesAndContributionMap":{"java":{"insertions":43,"deletions":11}}},{"hash":"b78ae9aef8ae5223cfb923e9b26a9cb755f67bd9","isMergeCommit":false,"messageTitle":"Add Level 3 Mark as Done, Task class","messageBody":"","tags":["Lvl-3"],"fileTypesAndContributionMap":{"java":{"insertions":56,"deletions":7}}},{"hash":"6796f52fd100fb9be54de323960827079c2110d6","isMergeCommit":false,"messageTitle":"Modify coding standards","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":60,"deletions":24}}},{"hash":"e4ea7793c7da493a41572367e3a7bec118e72150","isMergeCommit":false,"messageTitle":"Modify coding standards","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":60,"deletions":24}}},{"hash":"1ba0f338fab18a3f8fbe55985ca5d638a5b5da1a","isMergeCommit":true,"messageTitle":"Merge branch \u0027master\u0027 of https://github.com/NGXZS/ip","messageBody":"# Conflicts:\n#\tsrc/main/java/RecrBad.java\n","fileTypesAndContributionMap":{}}]},{"date":"2024-02-09","commitResults":[{"hash":"1bdb651bd899b01a369ba3524a9eed37937ba6f2","isMergeCommit":false,"messageTitle":"Add Level 4 Inheritance and Code Quality","messageBody":"","tags":["Lvl-4"],"fileTypesAndContributionMap":{"java":{"insertions":199,"deletions":94}}},{"hash":"31bd476fef23e9a944442d670767a2a87739d55c","isMergeCommit":false,"messageTitle":"A-TextUITesting","messageBody":"","tags":["A-TextUITesting"],"fileTypesAndContributionMap":{"txt":{"insertions":14,"deletions":0},"java":{"insertions":7,"deletions":7},"bat":{"insertions":1,"deletions":1}}},{"hash":"938755f498db20626a7b6609c4e1cf24e725db63","isMergeCommit":false,"messageTitle":"Cleanup code in PrintHelper class, addEventTask in RecrBad.java","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":10,"deletions":7}}}]}]},"authorFileTypeContributionMap":{"NGXZS":{"java":291,"md":0,"fxml":0,"sh":0,"bat":1,"gradle":0,"txt":14}},"authorContributionVariance":{"NGXZS":8095.225},"authorDisplayNameMap":{"NGXZS":"CS2113-F15-1 NG X..SEAN"}} +{"authorDailyContributionsMap":{"NGXZS":[{"date":"2024-01-23","commitResults":[{"hash":"acff142bc88c27b668b3940cd6c66f1f04351f6a","isMergeCommit":false,"messageTitle":"Modify RecrBad.java and .gitignore","messageBody":"","tags":["Lvl-0"],"fileTypesAndContributionMap":{"java":{"insertions":49,"deletions":10}}}]},{"date":"2024-02-03","commitResults":[{"hash":"dcb4977a764a6d6e953efe1a404e9eabb3772b61","isMergeCommit":false,"messageTitle":"Add Level1: Echo","messageBody":"","tags":["Lvl-1"],"fileTypesAndContributionMap":{"java":{"insertions":29,"deletions":12}}}]},{"date":"2024-02-05","commitResults":[{"hash":"89642a17e8bfc34f8d72c264a676e3de8c9a770c","isMergeCommit":false,"messageTitle":"Add Level2 Add, List","messageBody":"","tags":["Lvl-2"],"fileTypesAndContributionMap":{"java":{"insertions":43,"deletions":11}}},{"hash":"b78ae9aef8ae5223cfb923e9b26a9cb755f67bd9","isMergeCommit":false,"messageTitle":"Add Level 3 Mark as Done, Task class","messageBody":"","tags":["Lvl-3"],"fileTypesAndContributionMap":{"java":{"insertions":56,"deletions":7}}},{"hash":"6796f52fd100fb9be54de323960827079c2110d6","isMergeCommit":false,"messageTitle":"Modify coding standards","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":60,"deletions":24}}},{"hash":"e4ea7793c7da493a41572367e3a7bec118e72150","isMergeCommit":false,"messageTitle":"Modify coding standards","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":60,"deletions":24}}},{"hash":"1ba0f338fab18a3f8fbe55985ca5d638a5b5da1a","isMergeCommit":true,"messageTitle":"Merge branch \u0027master\u0027 of https://github.com/NGXZS/ip","messageBody":"# Conflicts:\n#\tsrc/main/java/RecrBad.java\n","fileTypesAndContributionMap":{}}]},{"date":"2024-02-09","commitResults":[{"hash":"1bdb651bd899b01a369ba3524a9eed37937ba6f2","isMergeCommit":false,"messageTitle":"Add Level 4 Inheritance and Code Quality","messageBody":"","tags":["Lvl-4"],"fileTypesAndContributionMap":{"java":{"insertions":199,"deletions":94}}},{"hash":"31bd476fef23e9a944442d670767a2a87739d55c","isMergeCommit":false,"messageTitle":"A-TextUITesting","messageBody":"","tags":["A-TextUITesting"],"fileTypesAndContributionMap":{"txt":{"insertions":14,"deletions":0},"java":{"insertions":7,"deletions":7},"bat":{"insertions":1,"deletions":1}}},{"hash":"938755f498db20626a7b6609c4e1cf24e725db63","isMergeCommit":false,"messageTitle":"Cleanup code in PrintHelper class, addEventTask in RecrBad.java","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":10,"deletions":7}}},{"hash":"5e00fcc8b4f7c8756abb4fd323ba7c85acb44fb7","isMergeCommit":false,"messageTitle":"Cleanup code in PrintHelper class, RecrBad.java after PR review","messageBody":"qqq\n","fileTypesAndContributionMap":{"java":{"insertions":10,"deletions":7}}}]}]},"authorFileTypeContributionMap":{"NGXZS":{"java":291,"md":0,"fxml":0,"sh":0,"bat":1,"gradle":0,"txt":14}},"authorContributionVariance":{"NGXZS":8582.29},"authorDisplayNameMap":{"NGXZS":"CS2113-F15-1 NG X..SEAN"}} diff --git a/OKW32_ip_master/authorship.json b/OKW32_ip_master/authorship.json index 27f192a2..2ab0da08 100644 --- a/OKW32_ip_master/authorship.json +++ b/OKW32_ip_master/authorship.json @@ -1 +1 @@ -[{"path":"src/main/java/Beefy.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-01-30"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"public class Beefy {","lastModifiedDate":"2024-01-30"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":" private static final String BOT_NAME \u003d \"BEEFY\";","lastModifiedDate":"2024-02-01"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":" private Scanner userInput;","lastModifiedDate":"2024-01-30"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":" private TaskList userTasks;","lastModifiedDate":"2024-01-30"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" public Beefy() {","lastModifiedDate":"2024-01-30"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":" userInput \u003d new Scanner(System.in);","lastModifiedDate":"2024-01-30"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" userTasks \u003d new TaskList();","lastModifiedDate":"2024-01-30"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-31"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" private void printSeparation() {","lastModifiedDate":"2024-01-30"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" int WIDTH \u003d 59;","lastModifiedDate":"2024-01-30"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" for (int i \u003d 0; i \u003c WIDTH; i++) {","lastModifiedDate":"2024-01-30"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" System.out.print(\"_\");","lastModifiedDate":"2024-01-30"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" System.out.println(\"_\");","lastModifiedDate":"2024-01-30"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" private boolean isInteger(String input) {","lastModifiedDate":"2024-01-30"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":" try {","lastModifiedDate":"2024-01-30"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":" Integer.parseInt(input);","lastModifiedDate":"2024-01-30"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":" return true;","lastModifiedDate":"2024-01-30"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":" } catch (NumberFormatException e) {","lastModifiedDate":"2024-01-30"},{"lineNumber":26,"author":{"gitId":"OKW32"},"content":" return false;","lastModifiedDate":"2024-01-30"},{"lineNumber":27,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":28,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":29,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":30,"author":{"gitId":"OKW32"},"content":" private void executeCommand(String userWords, CommandType command) {","lastModifiedDate":"2024-02-03"},{"lineNumber":31,"author":{"gitId":"OKW32"},"content":" String[] taskDetails;","lastModifiedDate":"2024-02-03"},{"lineNumber":32,"author":{"gitId":"OKW32"},"content":" switch(command) {","lastModifiedDate":"2024-02-03"},{"lineNumber":33,"author":{"gitId":"OKW32"},"content":" case UNMARK:","lastModifiedDate":"2024-02-03"},{"lineNumber":34,"author":{"gitId":"OKW32"},"content":" userTasks.unmarkTask(Integer.parseInt(userWords));","lastModifiedDate":"2024-02-03"},{"lineNumber":35,"author":{"gitId":"OKW32"},"content":" break;","lastModifiedDate":"2024-02-03"},{"lineNumber":36,"author":{"gitId":"OKW32"},"content":" case MARK:","lastModifiedDate":"2024-02-03"},{"lineNumber":37,"author":{"gitId":"OKW32"},"content":" userTasks.markTask(Integer.parseInt(userWords));","lastModifiedDate":"2024-02-03"},{"lineNumber":38,"author":{"gitId":"OKW32"},"content":" break;","lastModifiedDate":"2024-02-03"},{"lineNumber":39,"author":{"gitId":"OKW32"},"content":" case TODO:","lastModifiedDate":"2024-02-03"},{"lineNumber":40,"author":{"gitId":"OKW32"},"content":" userTasks.addTask(userWords);","lastModifiedDate":"2024-02-03"},{"lineNumber":41,"author":{"gitId":"OKW32"},"content":" break;","lastModifiedDate":"2024-02-03"},{"lineNumber":42,"author":{"gitId":"OKW32"},"content":" case DEADLINE:","lastModifiedDate":"2024-02-03"},{"lineNumber":43,"author":{"gitId":"OKW32"},"content":" taskDetails \u003d userWords.trim().split(\"/by\");","lastModifiedDate":"2024-02-03"},{"lineNumber":44,"author":{"gitId":"OKW32"},"content":" try {","lastModifiedDate":"2024-02-03"},{"lineNumber":45,"author":{"gitId":"OKW32"},"content":" userTasks.addTask(taskDetails[0].trim(), taskDetails[1].trim());","lastModifiedDate":"2024-02-03"},{"lineNumber":46,"author":{"gitId":"OKW32"},"content":" } catch (ArrayIndexOutOfBoundsException e) {","lastModifiedDate":"2024-02-03"},{"lineNumber":47,"author":{"gitId":"OKW32"},"content":" System.out.println(\"Don\u0027t be a Drongo mate. Use format:\" + System.lineSeparator() + \"deadline (Task Description) /by (Date)\");","lastModifiedDate":"2024-02-03"},{"lineNumber":48,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":49,"author":{"gitId":"OKW32"},"content":" break;","lastModifiedDate":"2024-02-03"},{"lineNumber":50,"author":{"gitId":"OKW32"},"content":" case EVENT:","lastModifiedDate":"2024-02-03"},{"lineNumber":51,"author":{"gitId":"OKW32"},"content":" taskDetails \u003d userWords.trim().split(\"/from|/to\");","lastModifiedDate":"2024-02-03"},{"lineNumber":52,"author":{"gitId":"OKW32"},"content":" try {","lastModifiedDate":"2024-02-03"},{"lineNumber":53,"author":{"gitId":"OKW32"},"content":" userTasks.addTask(taskDetails[0].trim(), taskDetails[1].trim(), taskDetails[2].trim());","lastModifiedDate":"2024-02-03"},{"lineNumber":54,"author":{"gitId":"OKW32"},"content":" } catch (ArrayIndexOutOfBoundsException e) {","lastModifiedDate":"2024-02-03"},{"lineNumber":55,"author":{"gitId":"OKW32"},"content":" System.out.println(\"Don\u0027t be a Drongo mate. Use format:\" + System.lineSeparator() + \"event (Task Description) /from (Date) /to (Date)\");","lastModifiedDate":"2024-02-03"},{"lineNumber":56,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":57,"author":{"gitId":"OKW32"},"content":" break;","lastModifiedDate":"2024-02-03"},{"lineNumber":58,"author":{"gitId":"OKW32"},"content":" default:","lastModifiedDate":"2024-02-03"},{"lineNumber":59,"author":{"gitId":"OKW32"},"content":" System.out.println(\"Crikey Mate! What is this command?\");","lastModifiedDate":"2024-02-03"},{"lineNumber":60,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":61,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":62,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":63,"author":{"gitId":"OKW32"},"content":" public void startChat() {","lastModifiedDate":"2024-01-30"},{"lineNumber":64,"author":{"gitId":"OKW32"},"content":" String userLine;","lastModifiedDate":"2024-01-30"},{"lineNumber":65,"author":{"gitId":"OKW32"},"content":" printSeparation();","lastModifiedDate":"2024-01-30"},{"lineNumber":66,"author":{"gitId":"OKW32"},"content":" System.out.println(BOT_NAME);","lastModifiedDate":"2024-02-01"},{"lineNumber":67,"author":{"gitId":"OKW32"},"content":" System.out.println(\"G\u0027Day! I\u0027m \" + BOT_NAME);","lastModifiedDate":"2024-02-03"},{"lineNumber":68,"author":{"gitId":"OKW32"},"content":" System.out.println(\"What can I do for you mate?\");","lastModifiedDate":"2024-02-03"},{"lineNumber":69,"author":{"gitId":"OKW32"},"content":" printSeparation();","lastModifiedDate":"2024-01-30"},{"lineNumber":70,"author":{"gitId":"OKW32"},"content":" do {","lastModifiedDate":"2024-01-30"},{"lineNumber":71,"author":{"gitId":"OKW32"},"content":" System.out.println(\"You\");","lastModifiedDate":"2024-01-30"},{"lineNumber":72,"author":{"gitId":"OKW32"},"content":" userLine \u003d userInput.nextLine();","lastModifiedDate":"2024-02-03"},{"lineNumber":73,"author":{"gitId":"OKW32"},"content":" printSeparation();","lastModifiedDate":"2024-01-30"},{"lineNumber":74,"author":{"gitId":"OKW32"},"content":" String[] userWords \u003d userLine.trim().split(\"\\\\s+\", 2);","lastModifiedDate":"2024-02-03"},{"lineNumber":75,"author":{"gitId":"OKW32"},"content":" System.out.println(BOT_NAME);","lastModifiedDate":"2024-02-03"},{"lineNumber":76,"author":{"gitId":"OKW32"},"content":" if (userLine.equalsIgnoreCase(\"bye\")) {","lastModifiedDate":"2024-01-30"},{"lineNumber":77,"author":{"gitId":"OKW32"},"content":" break;","lastModifiedDate":"2024-01-30"},{"lineNumber":78,"author":{"gitId":"OKW32"},"content":" } else if (userLine.isBlank()) {","lastModifiedDate":"2024-02-03"},{"lineNumber":79,"author":{"gitId":"OKW32"},"content":" System.out.println(\"Ya alright mate?\");","lastModifiedDate":"2024-02-03"},{"lineNumber":80,"author":{"gitId":"OKW32"},"content":" } else if (userLine.equalsIgnoreCase(\"list\")) {","lastModifiedDate":"2024-01-30"},{"lineNumber":81,"author":{"gitId":"OKW32"},"content":" userTasks.listOut();","lastModifiedDate":"2024-01-30"},{"lineNumber":82,"author":{"gitId":"OKW32"},"content":" } else if (userWords.length \u003d\u003d 2 \u0026\u0026 userWords[0].equalsIgnoreCase(\"mark\")) {","lastModifiedDate":"2024-02-03"},{"lineNumber":83,"author":{"gitId":"OKW32"},"content":" if (isInteger(userWords[1])) {","lastModifiedDate":"2024-02-03"},{"lineNumber":84,"author":{"gitId":"OKW32"},"content":" executeCommand(userWords[1], CommandType.MARK);","lastModifiedDate":"2024-02-03"},{"lineNumber":85,"author":{"gitId":"OKW32"},"content":" } else {","lastModifiedDate":"2024-02-03"},{"lineNumber":86,"author":{"gitId":"OKW32"},"content":" System.out.println(\"Don\u0027t be a Drongo mate. Use format:\"","lastModifiedDate":"2024-02-03"},{"lineNumber":87,"author":{"gitId":"OKW32"},"content":" + System.lineSeparator()","lastModifiedDate":"2024-02-03"},{"lineNumber":88,"author":{"gitId":"OKW32"},"content":" + \"mark (taskNo.)\");","lastModifiedDate":"2024-02-03"},{"lineNumber":89,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":90,"author":{"gitId":"OKW32"},"content":" } else if (userWords.length \u003d\u003d 2 \u0026\u0026 userWords[0].equalsIgnoreCase(\"unmark\")) {","lastModifiedDate":"2024-02-03"},{"lineNumber":91,"author":{"gitId":"OKW32"},"content":" if (isInteger(userWords[1])) {","lastModifiedDate":"2024-02-03"},{"lineNumber":92,"author":{"gitId":"OKW32"},"content":" executeCommand(userWords[1], CommandType.UNMARK);","lastModifiedDate":"2024-02-03"},{"lineNumber":93,"author":{"gitId":"OKW32"},"content":" } else {","lastModifiedDate":"2024-02-03"},{"lineNumber":94,"author":{"gitId":"OKW32"},"content":" System.out.println(\"Don\u0027t be a Drongo mate. Use format:\"","lastModifiedDate":"2024-02-03"},{"lineNumber":95,"author":{"gitId":"OKW32"},"content":" + System.lineSeparator()","lastModifiedDate":"2024-02-03"},{"lineNumber":96,"author":{"gitId":"OKW32"},"content":" + \"unmark (taskNo.)\");","lastModifiedDate":"2024-02-03"},{"lineNumber":97,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":98,"author":{"gitId":"OKW32"},"content":" } else if (userWords[0].equalsIgnoreCase(\"todo\")){","lastModifiedDate":"2024-02-03"},{"lineNumber":99,"author":{"gitId":"OKW32"},"content":" executeCommand(userWords[1], CommandType.TODO);","lastModifiedDate":"2024-02-03"},{"lineNumber":100,"author":{"gitId":"OKW32"},"content":" } else if (userWords[0].equalsIgnoreCase(\"deadline\")){","lastModifiedDate":"2024-02-03"},{"lineNumber":101,"author":{"gitId":"OKW32"},"content":" executeCommand(userWords[1], CommandType.DEADLINE);","lastModifiedDate":"2024-02-03"},{"lineNumber":102,"author":{"gitId":"OKW32"},"content":" } else if (userWords[0].equalsIgnoreCase(\"event\")){","lastModifiedDate":"2024-02-03"},{"lineNumber":103,"author":{"gitId":"OKW32"},"content":" executeCommand(userWords[1], CommandType.EVENT);","lastModifiedDate":"2024-02-03"},{"lineNumber":104,"author":{"gitId":"OKW32"},"content":" } else {","lastModifiedDate":"2024-01-30"},{"lineNumber":105,"author":{"gitId":"OKW32"},"content":" System.out.println(\"Okay, so what?\");","lastModifiedDate":"2024-02-03"},{"lineNumber":106,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":107,"author":{"gitId":"OKW32"},"content":" printSeparation();","lastModifiedDate":"2024-02-03"},{"lineNumber":108,"author":{"gitId":"OKW32"},"content":" } while(!userLine.equalsIgnoreCase(\"bye\"));","lastModifiedDate":"2024-01-30"},{"lineNumber":109,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":110,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":111,"author":{"gitId":"OKW32"},"content":" public void endChat() {","lastModifiedDate":"2024-01-30"},{"lineNumber":112,"author":{"gitId":"OKW32"},"content":" System.out.println(\"See Ya Mate!\");","lastModifiedDate":"2024-02-08"},{"lineNumber":113,"author":{"gitId":"OKW32"},"content":" printSeparation();","lastModifiedDate":"2024-01-30"},{"lineNumber":114,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":115,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-01-30"}],"authorContributionMap":{"OKW32":115}},{"path":"src/main/java/CommandType.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"public enum CommandType {","lastModifiedDate":"2024-02-03"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":" MARK, UNMARK, TODO, DEADLINE, EVENT","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"OKW32":3}},{"path":"src/main/java/Deadline.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"public class Deadline extends Task{","lastModifiedDate":"2024-02-03"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":" protected String by;","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":" public Deadline(String description, String by) {","lastModifiedDate":"2024-02-03"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":" super(description);","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":" this.by \u003d by;","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" public String getBy() {","lastModifiedDate":"2024-02-03"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":" return by;","lastModifiedDate":"2024-02-03"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-03"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" public String toString() {","lastModifiedDate":"2024-02-03"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" return \"[D]\" + super.toString() + \" (by: \" + by + \")\";","lastModifiedDate":"2024-02-03"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"OKW32":16}},{"path":"src/main/java/Event.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"public class Event extends Task{","lastModifiedDate":"2024-02-03"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":" protected String from;","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":" protected String to;","lastModifiedDate":"2024-02-03"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":" public Event(String description, String from, String to) {","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":" super(description);","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":" this.from \u003d from;","lastModifiedDate":"2024-02-03"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" this.to \u003d to;","lastModifiedDate":"2024-02-03"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" public String getFrom() {","lastModifiedDate":"2024-02-03"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" return from;","lastModifiedDate":"2024-02-03"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" public String getTo() {","lastModifiedDate":"2024-02-03"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" return to;","lastModifiedDate":"2024-02-03"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-03"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":" public String toString() {","lastModifiedDate":"2024-02-03"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":" return \"[E]\" + super.toString() + \" (from: \" + from + \" to: \" + to + \")\";","lastModifiedDate":"2024-02-03"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"OKW32":22}},{"path":"src/main/java/Main.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"public class Main {","lastModifiedDate":"2024-01-30"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-01-30"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":" Beefy chatBot \u003d new Beefy();","lastModifiedDate":"2024-01-30"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":" chatBot.startChat();","lastModifiedDate":"2024-01-30"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":" chatBot.endChat();","lastModifiedDate":"2024-01-30"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-01-30"}],"authorContributionMap":{"OKW32":7}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"public class Task {","lastModifiedDate":"2024-01-30"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":" protected String description;","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":" protected boolean isDone;","lastModifiedDate":"2024-02-03"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":" public Task(String description) {","lastModifiedDate":"2024-01-30"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":" this.description \u003d description;","lastModifiedDate":"2024-01-30"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-01-30"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" public String getStatusIcon() {","lastModifiedDate":"2024-01-30"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" return (isDone ? \"X\" : \" \");","lastModifiedDate":"2024-01-30"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" public boolean getStatus() {","lastModifiedDate":"2024-01-30"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" return isDone;","lastModifiedDate":"2024-01-30"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" public String getDescription() {","lastModifiedDate":"2024-01-30"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":" return description;","lastModifiedDate":"2024-01-30"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":" public void setMark() {","lastModifiedDate":"2024-01-30"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":" isDone \u003d true;","lastModifiedDate":"2024-01-30"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":26,"author":{"gitId":"OKW32"},"content":" public void setUnmark() {","lastModifiedDate":"2024-01-30"},{"lineNumber":27,"author":{"gitId":"OKW32"},"content":" isDone \u003d false;","lastModifiedDate":"2024-01-30"},{"lineNumber":28,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":29,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":30,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-03"},{"lineNumber":31,"author":{"gitId":"OKW32"},"content":" public String toString() {","lastModifiedDate":"2024-02-03"},{"lineNumber":32,"author":{"gitId":"OKW32"},"content":" return \"[\" + this.getStatusIcon() + \"] \"+ this.getDescription();","lastModifiedDate":"2024-02-03"},{"lineNumber":33,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":34,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-01-30"}],"authorContributionMap":{"OKW32":34}},{"path":"src/main/java/TaskList.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"import java.util.ArrayList;","lastModifiedDate":"2024-01-30"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"public class TaskList {","lastModifiedDate":"2024-01-30"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":" private int numberOfTasks;","lastModifiedDate":"2024-01-30"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":" private ArrayList\u003cTask\u003e tasks;","lastModifiedDate":"2024-01-30"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":" public TaskList() {","lastModifiedDate":"2024-01-30"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" numberOfTasks \u003d 0;","lastModifiedDate":"2024-01-30"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":" tasks \u003d new ArrayList\u003cTask\u003e();","lastModifiedDate":"2024-01-30"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" public int getNumberOfTasks() {","lastModifiedDate":"2024-01-30"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" return numberOfTasks;","lastModifiedDate":"2024-01-30"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-31"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" public void addTask(String taskDescription) {","lastModifiedDate":"2024-01-31"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" ToDo userTask \u003d new ToDo(taskDescription);","lastModifiedDate":"2024-02-03"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":" tasks.add(userTask);","lastModifiedDate":"2024-01-30"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":" numberOfTasks++;","lastModifiedDate":"2024-01-30"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" System.out.println( \"---\" + taskDescription + \" has been added to task list!---\");","lastModifiedDate":"2024-02-03"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":" System.out.println(\"---Number of Tasks in List: \" + numberOfTasks + \"---\");","lastModifiedDate":"2024-02-03"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":" public void addTask(String taskDescription, String by) {","lastModifiedDate":"2024-02-03"},{"lineNumber":26,"author":{"gitId":"OKW32"},"content":" Deadline userTask \u003d new Deadline(taskDescription, by);","lastModifiedDate":"2024-02-03"},{"lineNumber":27,"author":{"gitId":"OKW32"},"content":" tasks.add(userTask);","lastModifiedDate":"2024-02-03"},{"lineNumber":28,"author":{"gitId":"OKW32"},"content":" numberOfTasks++;","lastModifiedDate":"2024-02-03"},{"lineNumber":29,"author":{"gitId":"OKW32"},"content":" System.out.println( \"---\" + taskDescription + \" has been added to task list!---\");","lastModifiedDate":"2024-02-03"},{"lineNumber":30,"author":{"gitId":"OKW32"},"content":" System.out.println(\"---Number of Tasks in List: \" + numberOfTasks + \"---\");","lastModifiedDate":"2024-02-03"},{"lineNumber":31,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":32,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":33,"author":{"gitId":"OKW32"},"content":" public void addTask(String taskDescription, String from, String to) {","lastModifiedDate":"2024-02-03"},{"lineNumber":34,"author":{"gitId":"OKW32"},"content":" Event userTask \u003d new Event(taskDescription, from, to);","lastModifiedDate":"2024-02-03"},{"lineNumber":35,"author":{"gitId":"OKW32"},"content":" tasks.add(userTask);","lastModifiedDate":"2024-02-03"},{"lineNumber":36,"author":{"gitId":"OKW32"},"content":" numberOfTasks++;","lastModifiedDate":"2024-02-03"},{"lineNumber":37,"author":{"gitId":"OKW32"},"content":" System.out.println( \"---\" + taskDescription + \" has been added to task list!---\");","lastModifiedDate":"2024-02-03"},{"lineNumber":38,"author":{"gitId":"OKW32"},"content":" System.out.println(\"---Number of Tasks in List: \" + numberOfTasks + \"---\");","lastModifiedDate":"2024-02-03"},{"lineNumber":39,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":40,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":41,"author":{"gitId":"OKW32"},"content":" public void listOut() {","lastModifiedDate":"2024-01-30"},{"lineNumber":42,"author":{"gitId":"OKW32"},"content":" System.out.println(\"Here are the tasks in your list:\");","lastModifiedDate":"2024-01-30"},{"lineNumber":43,"author":{"gitId":"OKW32"},"content":" for (int i \u003d 0; i \u003c numberOfTasks; i++) {","lastModifiedDate":"2024-01-30"},{"lineNumber":44,"author":{"gitId":"OKW32"},"content":" Task currTask \u003d tasks.get(i);","lastModifiedDate":"2024-01-30"},{"lineNumber":45,"author":{"gitId":"OKW32"},"content":" System.out.println((i + 1) + \". \" + currTask);","lastModifiedDate":"2024-02-03"},{"lineNumber":46,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":47,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":48,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":49,"author":{"gitId":"OKW32"},"content":" public void markTask(int taskId) {","lastModifiedDate":"2024-01-30"},{"lineNumber":50,"author":{"gitId":"OKW32"},"content":" if (taskId \u003e\u003d 1 \u0026\u0026 taskId \u003c\u003d numberOfTasks) {","lastModifiedDate":"2024-01-30"},{"lineNumber":51,"author":{"gitId":"OKW32"},"content":" Task selectedTask \u003d tasks.get(taskId - 1);","lastModifiedDate":"2024-01-30"},{"lineNumber":52,"author":{"gitId":"OKW32"},"content":" if (selectedTask.getStatus()) {","lastModifiedDate":"2024-01-30"},{"lineNumber":53,"author":{"gitId":"OKW32"},"content":" System.out.println(\"Are you blind mate?\");","lastModifiedDate":"2024-01-30"},{"lineNumber":54,"author":{"gitId":"OKW32"},"content":" } else {","lastModifiedDate":"2024-01-30"},{"lineNumber":55,"author":{"gitId":"OKW32"},"content":" selectedTask.setMark();","lastModifiedDate":"2024-01-30"},{"lineNumber":56,"author":{"gitId":"OKW32"},"content":" System.out.println(\"Gnarly mate! I\u0027ve marked this task as done:\");","lastModifiedDate":"2024-02-03"},{"lineNumber":57,"author":{"gitId":"OKW32"},"content":" System.out.println(selectedTask);","lastModifiedDate":"2024-02-03"},{"lineNumber":58,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":59,"author":{"gitId":"OKW32"},"content":" } else {","lastModifiedDate":"2024-01-30"},{"lineNumber":60,"author":{"gitId":"OKW32"},"content":" System.out.println(\"Can you not do math, mate?\");","lastModifiedDate":"2024-01-30"},{"lineNumber":61,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":62,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":63,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":64,"author":{"gitId":"OKW32"},"content":" public void unmarkTask(int taskId) {","lastModifiedDate":"2024-01-30"},{"lineNumber":65,"author":{"gitId":"OKW32"},"content":" if (taskId \u003e\u003d 1 \u0026\u0026 taskId \u003c\u003d numberOfTasks) {","lastModifiedDate":"2024-01-30"},{"lineNumber":66,"author":{"gitId":"OKW32"},"content":" Task selectedTask \u003d tasks.get(taskId - 1);","lastModifiedDate":"2024-01-30"},{"lineNumber":67,"author":{"gitId":"OKW32"},"content":" if (!selectedTask.getStatus()) {","lastModifiedDate":"2024-01-30"},{"lineNumber":68,"author":{"gitId":"OKW32"},"content":" System.out.println(\"Are you blind mate?\");","lastModifiedDate":"2024-01-30"},{"lineNumber":69,"author":{"gitId":"OKW32"},"content":" } else {","lastModifiedDate":"2024-01-30"},{"lineNumber":70,"author":{"gitId":"OKW32"},"content":" selectedTask.setUnmark();","lastModifiedDate":"2024-01-30"},{"lineNumber":71,"author":{"gitId":"OKW32"},"content":" System.out.println(\"WHY?! I\u0027ve marked this task as not done:\");","lastModifiedDate":"2024-01-30"},{"lineNumber":72,"author":{"gitId":"OKW32"},"content":" System.out.println(selectedTask);","lastModifiedDate":"2024-02-03"},{"lineNumber":73,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":74,"author":{"gitId":"OKW32"},"content":" } else {","lastModifiedDate":"2024-01-30"},{"lineNumber":75,"author":{"gitId":"OKW32"},"content":" System.out.println(\"Can you not do math, mate?\");","lastModifiedDate":"2024-01-30"},{"lineNumber":76,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":77,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":78,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-01-30"}],"authorContributionMap":{"OKW32":78}},{"path":"src/main/java/ToDo.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"public class ToDo extends Task{","lastModifiedDate":"2024-02-03"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":" public ToDo(String Description){","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":" super(Description);","lastModifiedDate":"2024-02-03"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":" public String toString() {","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":" return \"[T]\" + super.toString();","lastModifiedDate":"2024-02-03"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"OKW32":9}},{"path":"text-ui-test/input.txt","fileType":"txt","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"Hello","lastModifiedDate":"2024-02-03"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"todo go home","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"deadline assignment","lastModifiedDate":"2024-02-03"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"deadline assignment /by 10/02/24","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":"event batam trip /from 26/02/24","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"event batam trip /from 26/02/24 /to 27/02/24","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":"list","lastModifiedDate":"2024-02-03"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":"mark assignment","lastModifiedDate":"2024-02-03"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":"mark 1","lastModifiedDate":"2024-02-03"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":"mark 1","lastModifiedDate":"2024-02-03"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":"mark 3","lastModifiedDate":"2024-02-03"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":"mark 4","lastModifiedDate":"2024-02-03"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":"list","lastModifiedDate":"2024-02-03"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":"unmark assignment","lastModifiedDate":"2024-02-03"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":"unmark 1","lastModifiedDate":"2024-02-03"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":"unmark 1","lastModifiedDate":"2024-02-03"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":"unmark 4","lastModifiedDate":"2024-02-03"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":"list","lastModifiedDate":"2024-02-03"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":"Bye","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"OKW32":19}},{"path":"text-ui-test/runtest.bat","fileType":"bat","lines":[{"lineNumber":1,"author":{"gitId":"-"},"content":"@ECHO OFF","lastModifiedDate":"2020-05-25"},{"lineNumber":2,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":3,"author":{"gitId":"-"},"content":"REM create bin directory if it doesn\u0027t exist","lastModifiedDate":"2020-05-25"},{"lineNumber":4,"author":{"gitId":"-"},"content":"if not exist ..\\bin mkdir ..\\bin","lastModifiedDate":"2020-05-25"},{"lineNumber":5,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":6,"author":{"gitId":"-"},"content":"REM delete output from previous run","lastModifiedDate":"2020-05-25"},{"lineNumber":7,"author":{"gitId":"-"},"content":"if exist ACTUAL.TXT del ACTUAL.TXT","lastModifiedDate":"2020-08-25"},{"lineNumber":8,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":9,"author":{"gitId":"-"},"content":"REM compile the code into the bin folder","lastModifiedDate":"2020-05-25"},{"lineNumber":10,"author":{"gitId":"-"},"content":"javac -cp ..\\src\\main\\java -Xlint:none -d ..\\bin ..\\src\\main\\java\\*.java","lastModifiedDate":"2020-08-25"},{"lineNumber":11,"author":{"gitId":"-"},"content":"IF ERRORLEVEL 1 (","lastModifiedDate":"2020-05-25"},{"lineNumber":12,"author":{"gitId":"-"},"content":" echo ********** BUILD FAILURE **********","lastModifiedDate":"2020-05-25"},{"lineNumber":13,"author":{"gitId":"-"},"content":" exit /b 1","lastModifiedDate":"2020-05-25"},{"lineNumber":14,"author":{"gitId":"-"},"content":")","lastModifiedDate":"2020-05-25"},{"lineNumber":15,"author":{"gitId":"-"},"content":"REM no error here, errorlevel \u003d\u003d 0","lastModifiedDate":"2020-05-25"},{"lineNumber":16,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":17,"author":{"gitId":"-"},"content":"REM run the program, feed commands from input.txt file and redirect the output to the ACTUAL.TXT","lastModifiedDate":"2020-05-25"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":"java -classpath ..\\bin Main \u003c input.txt \u003e ACTUAL.TXT","lastModifiedDate":"2024-02-03"},{"lineNumber":19,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":20,"author":{"gitId":"-"},"content":"REM compare the output to the expected output","lastModifiedDate":"2020-05-25"},{"lineNumber":21,"author":{"gitId":"-"},"content":"FC ACTUAL.TXT EXPECTED.TXT","lastModifiedDate":"2020-05-25"}],"authorContributionMap":{"OKW32":1,"-":20}}] +[{"path":"src/main/java/beefy/Beefy.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-01-30"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"import beefy.ui.Ui;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":"import beefy.command.Command;","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"import beefy.parser.Parser;","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":"import beefy.task.TaskList;","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":"public class Beefy {","lastModifiedDate":"2024-01-30"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" private TaskList userTasks;","lastModifiedDate":"2024-01-30"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" private boolean isExit;","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" private Scanner scanner;","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" public Beefy() {","lastModifiedDate":"2024-01-30"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" userTasks \u003d new TaskList();","lastModifiedDate":"2024-01-30"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" isExit \u003d false;","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" scanner \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-31"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":" private void run () {","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" Ui.printHi();","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":" while (!isExit) {","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":" Ui.printUser();","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":" String userInput \u003d scanner.nextLine();","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":" try {","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"OKW32"},"content":" Command userCommand \u003d Parser.determineCommand(userTasks, userInput);","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"OKW32"},"content":" userCommand.execute();","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"OKW32"},"content":" this.isExit \u003d userCommand.isExit();","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"OKW32"},"content":" } catch (BeefyException e) {","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"OKW32"},"content":" Ui.printMessage(e.getMessage());","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":33,"author":{"gitId":"OKW32"},"content":" Ui.printBye();","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":35,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":36,"author":{"gitId":"OKW32"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-02-09"},{"lineNumber":37,"author":{"gitId":"OKW32"},"content":" Beefy chatBot \u003d new Beefy();","lastModifiedDate":"2024-02-09"},{"lineNumber":38,"author":{"gitId":"OKW32"},"content":" chatBot.run();","lastModifiedDate":"2024-02-09"},{"lineNumber":39,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":40,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-01-30"}],"authorContributionMap":{"OKW32":40}},{"path":"src/main/java/beefy/BeefyException.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"public class BeefyException extends Exception {","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":" public BeefyException(String message) {","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":" super(message);","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"OKW32":7}},{"path":"src/main/java/beefy/command/ByeCommand.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.command;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"import beefy.BeefyException;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":"public class ByeCommand implements Command {","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":" public ByeCommand(String userParams) throws BeefyException {","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" if (!userParams.isEmpty()) {","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":" throw new BeefyException(\"Use format:\" + System.lineSeparator() + \"bye\");","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" public void execute() {","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":" public boolean isExit() {","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":" return true;","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"OKW32":22}},{"path":"src/main/java/beefy/command/Command.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.command;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"import beefy.BeefyException;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":"public interface Command {","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":" void execute() throws BeefyException;","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":" boolean isExit();","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"OKW32":8}},{"path":"src/main/java/beefy/command/DeadlineCommand.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.command;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"import beefy.BeefyException;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"import beefy.task.TaskList;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":"import beefy.ui.Ui;","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":"public class DeadlineCommand implements Command {","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" private TaskList userTasks;","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":" private String taskDescription, taskBy;","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" public DeadlineCommand(TaskList userTasks, String userParams) throws BeefyException {","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" this.userTasks \u003d userTasks;","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" String[] taskDetails \u003d userParams.trim().split(\"/by\");","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" if (taskDetails.length \u003c 2) {","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" throw new BeefyException(\"Use format:\" + System.lineSeparator() + \"deadline (Task Description) /by (Date)\");","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" taskDescription \u003d taskDetails[0].trim();","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" taskBy \u003d taskDetails[1].trim();","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":" public void execute() {","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":" userTasks.addTask(taskDescription, taskBy);","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"OKW32"},"content":" public boolean isExit() {","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"OKW32"},"content":" return false;","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"OKW32":30}},{"path":"src/main/java/beefy/command/EventCommand.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.command;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"import beefy.BeefyException;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"import beefy.task.TaskList;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":"import beefy.ui.Ui;","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":"public class EventCommand implements Command {","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" private TaskList userTasks;","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":" private String taskDescription, taskFrom, taskTo;","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" public EventCommand(TaskList userTasks, String userParams) throws BeefyException {","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" this.userTasks \u003d userTasks;","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" String[] taskDetails \u003d userParams.trim().split(\"/from|/to\");","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" if (taskDetails.length \u003c 3) {","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" throw new BeefyException(\"Use format:\" + System.lineSeparator()","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" + \"event (Task Description) /from (Date) /to (Date)\");","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" taskDescription \u003d taskDetails[0].trim();","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":" taskFrom \u003d taskDetails[1].trim();","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":" taskTo \u003d taskDetails[2].trim();","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":" public void execute() {","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":" userTasks.addTask(taskDescription, taskFrom, taskTo);","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"OKW32"},"content":" public boolean isExit() {","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"OKW32"},"content":" return false;","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"OKW32":32}},{"path":"src/main/java/beefy/command/ListCommand.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.command;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"import beefy.BeefyException;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"import beefy.task.TaskList;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":"import beefy.ui.Ui;","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":"public class ListCommand implements Command{","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" private TaskList userTasks;","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" public ListCommand(TaskList userTasks, String userParams) throws BeefyException {","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" if (!userParams.isEmpty()) {","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" throw new BeefyException(\"Use format:\" + System.lineSeparator() + \"bye\");","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" if (userTasks.getNumberOfTasks() \u003d\u003d 0) {","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" throw new BeefyException(\"You have no tasks u lazy bum!\");","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" this.userTasks \u003d userTasks;","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" public void execute() {","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":" userTasks.listOut();","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"OKW32"},"content":" public boolean isExit() {","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"OKW32"},"content":" return false;","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"OKW32":29}},{"path":"src/main/java/beefy/command/MarkCommand.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.command;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"import beefy.BeefyException;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"import beefy.task.TaskList;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"public class MarkCommand implements Command {","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":" private TaskList userTasks;","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" private int taskId;","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" public MarkCommand(TaskList userTasks, String userParams) throws BeefyException {","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" this.userTasks \u003d userTasks;","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" try {","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" taskId \u003d Integer.parseInt(userParams);","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" } catch (NumberFormatException e) {","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" throw new BeefyException(\"Use format:\" + System.lineSeparator() + \"mark (taskId)\");","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":" public void execute() throws BeefyException{","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" if (taskId \u003c 1 || taskId \u003e userTasks.getNumberOfTasks())","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":" {","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":" throw new BeefyException(\"Can you not do math, mate?\");","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":" userTasks.markTask(taskId);","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"OKW32"},"content":" public boolean isExit() {","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"OKW32"},"content":" return false;","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"OKW32":32}},{"path":"src/main/java/beefy/command/ToDoCommand.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.command;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"import beefy.BeefyException;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"import beefy.task.TaskList;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"public class ToDoCommand implements Command{","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":" private TaskList userTasks;","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" private String taskDescription;","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" public ToDoCommand(TaskList userTasks, String userParams) throws BeefyException {","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" if (userParams.isEmpty()) {","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" throw new BeefyException(\"Quit fooling me, I do not see any task to add!\");","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" this.userTasks \u003d userTasks;","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" taskDescription \u003d userParams;","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":" public void execute() {","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":" userTasks.addTask(taskDescription);","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":" public boolean isExit() {","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":" return false;","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"OKW32":27}},{"path":"src/main/java/beefy/command/UnmarkCommand.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.command;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"import beefy.BeefyException;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"import beefy.task.TaskList;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":"import beefy.ui.Ui;","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":"public class UnmarkCommand implements Command {","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" private TaskList userTasks;","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":" private int taskId;","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" public UnmarkCommand(TaskList userTasks, String userParams) throws BeefyException{","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" this.userTasks \u003d userTasks;","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" try {","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" taskId \u003d Integer.parseInt(userParams);","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" } catch (NumberFormatException e) {","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" throw new BeefyException(\"Use format:\" + System.lineSeparator() + \"mark (taskId)\");","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" public void execute() throws BeefyException {","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":" if (taskId \u003c 1 || taskId \u003e userTasks.getNumberOfTasks())","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":" {","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":" throw new BeefyException(\"Can you not do math, mate?\");","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"OKW32"},"content":" userTasks.unmarkTask(taskId);","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"OKW32"},"content":" public boolean isExit() {","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"OKW32"},"content":" return false;","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":33,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"OKW32":33}},{"path":"src/main/java/beefy/parser/Parser.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.parser;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"import beefy.BeefyException;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"import beefy.command.Command;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":"import beefy.command.*;","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"import beefy.task.TaskList;","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":"public class Parser {","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":" public static Command determineCommand(TaskList userTasks, String userInput) throws BeefyException {","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" String[] userWords \u003d userInput.trim().split(\"\\\\s+\", 2);","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" String userCommand \u003d userWords[0];","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" String userParams \u003d userWords.length \u003d\u003d 2 ? userWords[1] : \"\";","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" switch(userCommand) {","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" case \"bye\":","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" return new ByeCommand(userParams);","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" case \"list\":","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" return new ListCommand(userTasks, userParams);","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" case \"todo\":","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":" return new ToDoCommand(userTasks, userParams);","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":" case \"deadline\":","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" return new DeadlineCommand(userTasks, userParams);","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":" case \"event\":","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":" return new EventCommand(userTasks, userParams);","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":" case \"mark\":","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":" return new MarkCommand(userTasks, userParams);","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"OKW32"},"content":" case \"unmark\":","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"OKW32"},"content":" return new UnmarkCommand(userTasks, userParams);","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"OKW32"},"content":" default:","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"OKW32"},"content":" throw new BeefyException(\"What Did you Say? I do not understand this command.\");","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"OKW32":32}},{"path":"src/main/java/beefy/task/Deadline.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.task;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"public class Deadline extends Task{","lastModifiedDate":"2024-02-03"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":" protected String by;","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":" public Deadline(String description, String by) {","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":" super(description);","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":" this.by \u003d by;","lastModifiedDate":"2024-02-03"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" public String getBy() {","lastModifiedDate":"2024-02-03"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" return by;","lastModifiedDate":"2024-02-03"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-03"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" public String toString() {","lastModifiedDate":"2024-02-03"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" return \"[D]\" + super.toString() + \" (by: \" + by + \")\";","lastModifiedDate":"2024-02-03"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"OKW32":18}},{"path":"src/main/java/beefy/task/Event.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.task;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"public class Event extends Task{","lastModifiedDate":"2024-02-03"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":" protected String from;","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":" protected String to;","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":" public Event(String description, String from, String to) {","lastModifiedDate":"2024-02-03"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" super(description);","lastModifiedDate":"2024-02-03"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":" this.from \u003d from;","lastModifiedDate":"2024-02-03"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" this.to \u003d to;","lastModifiedDate":"2024-02-03"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" public String getFrom() {","lastModifiedDate":"2024-02-03"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" return from;","lastModifiedDate":"2024-02-03"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" public String getTo() {","lastModifiedDate":"2024-02-03"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" return to;","lastModifiedDate":"2024-02-03"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-03"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":" public String toString() {","lastModifiedDate":"2024-02-03"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":" return \"[E]\" + super.toString() + \" (from: \" + from + \" to: \" + to + \")\";","lastModifiedDate":"2024-02-03"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"OKW32":25}},{"path":"src/main/java/beefy/task/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.task;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"public class Task {","lastModifiedDate":"2024-01-30"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":" protected String description;","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":" protected boolean isDone;","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":" public Task(String description) {","lastModifiedDate":"2024-01-30"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" this.description \u003d description;","lastModifiedDate":"2024-01-30"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-01-30"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" public String getStatusIcon() {","lastModifiedDate":"2024-01-30"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" return (isDone ? \"X\" : \" \");","lastModifiedDate":"2024-01-30"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" public boolean getStatus() {","lastModifiedDate":"2024-01-30"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" return isDone;","lastModifiedDate":"2024-01-30"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":" public String getDescription() {","lastModifiedDate":"2024-01-30"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" return description;","lastModifiedDate":"2024-01-30"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":" public void setMark() {","lastModifiedDate":"2024-01-30"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":" isDone \u003d true;","lastModifiedDate":"2024-01-30"},{"lineNumber":26,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":27,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":28,"author":{"gitId":"OKW32"},"content":" public void setUnmark() {","lastModifiedDate":"2024-01-30"},{"lineNumber":29,"author":{"gitId":"OKW32"},"content":" isDone \u003d false;","lastModifiedDate":"2024-01-30"},{"lineNumber":30,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":31,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":32,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-03"},{"lineNumber":33,"author":{"gitId":"OKW32"},"content":" public String toString() {","lastModifiedDate":"2024-02-03"},{"lineNumber":34,"author":{"gitId":"OKW32"},"content":" return \"[\" + this.getStatusIcon() + \"] \"+ this.getDescription();","lastModifiedDate":"2024-02-03"},{"lineNumber":35,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":36,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-01-30"}],"authorContributionMap":{"OKW32":36}},{"path":"src/main/java/beefy/task/TaskList.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.task;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"import java.util.ArrayList;","lastModifiedDate":"2024-01-30"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":"import beefy.BeefyException;","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"import beefy.ui.Ui;","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":"public class TaskList {","lastModifiedDate":"2024-01-30"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":" private int numberOfTasks;","lastModifiedDate":"2024-01-30"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" private ArrayList\u003cTask\u003e tasks;","lastModifiedDate":"2024-01-30"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" public TaskList() {","lastModifiedDate":"2024-01-30"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" numberOfTasks \u003d 0;","lastModifiedDate":"2024-01-30"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":" tasks \u003d new ArrayList\u003cTask\u003e();","lastModifiedDate":"2024-01-30"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" public int getNumberOfTasks() {","lastModifiedDate":"2024-01-30"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":" return numberOfTasks;","lastModifiedDate":"2024-01-30"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" public void addTask(String taskDescription) {","lastModifiedDate":"2024-01-31"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":" ToDo userTask \u003d new ToDo(taskDescription);","lastModifiedDate":"2024-02-03"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":" tasks.add(userTask);","lastModifiedDate":"2024-01-30"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":" numberOfTasks++;","lastModifiedDate":"2024-01-30"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":" Ui.printMessage(\"---\" + taskDescription + \" has been added to task list!---\" + System.lineSeparator()","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"OKW32"},"content":" + \"---Number of Tasks in List: \" + numberOfTasks + \"---\");","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":28,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":29,"author":{"gitId":"OKW32"},"content":" public void addTask(String taskDescription, String by) {","lastModifiedDate":"2024-02-03"},{"lineNumber":30,"author":{"gitId":"OKW32"},"content":" Deadline userTask \u003d new Deadline(taskDescription, by);","lastModifiedDate":"2024-02-03"},{"lineNumber":31,"author":{"gitId":"OKW32"},"content":" tasks.add(userTask);","lastModifiedDate":"2024-02-03"},{"lineNumber":32,"author":{"gitId":"OKW32"},"content":" numberOfTasks++;","lastModifiedDate":"2024-02-03"},{"lineNumber":33,"author":{"gitId":"OKW32"},"content":" Ui.printMessage(\"---\" + taskDescription + \" has been added to task list!---\" + System.lineSeparator()","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"OKW32"},"content":" + \"---Number of Tasks in List: \" + numberOfTasks + \"---\");","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":36,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-03"},{"lineNumber":37,"author":{"gitId":"OKW32"},"content":" public void addTask(String taskDescription, String from, String to) {","lastModifiedDate":"2024-02-03"},{"lineNumber":38,"author":{"gitId":"OKW32"},"content":" Event userTask \u003d new Event(taskDescription, from, to);","lastModifiedDate":"2024-02-03"},{"lineNumber":39,"author":{"gitId":"OKW32"},"content":" tasks.add(userTask);","lastModifiedDate":"2024-02-03"},{"lineNumber":40,"author":{"gitId":"OKW32"},"content":" numberOfTasks++;","lastModifiedDate":"2024-02-03"},{"lineNumber":41,"author":{"gitId":"OKW32"},"content":" Ui.printMessage(\"---\" + taskDescription + \" has been added to task list!---\" + System.lineSeparator()","lastModifiedDate":"2024-02-09"},{"lineNumber":42,"author":{"gitId":"OKW32"},"content":" + \"---Number of Tasks in List: \" + numberOfTasks + \"---\");","lastModifiedDate":"2024-02-09"},{"lineNumber":43,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":44,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":45,"author":{"gitId":"OKW32"},"content":" public void listOut() {","lastModifiedDate":"2024-01-30"},{"lineNumber":46,"author":{"gitId":"OKW32"},"content":" String message \u003d \"Here are the tasks in your list:\\n\";","lastModifiedDate":"2024-02-09"},{"lineNumber":47,"author":{"gitId":"OKW32"},"content":" for (int i \u003d 0; i \u003c numberOfTasks - 1; i++) {","lastModifiedDate":"2024-02-09"},{"lineNumber":48,"author":{"gitId":"OKW32"},"content":" Task currTask \u003d tasks.get(i);","lastModifiedDate":"2024-01-30"},{"lineNumber":49,"author":{"gitId":"OKW32"},"content":" message \u003d message.concat((i + 1) + \". \" + currTask + \"\\n\");","lastModifiedDate":"2024-02-09"},{"lineNumber":50,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":51,"author":{"gitId":"OKW32"},"content":" message \u003d message.concat((numberOfTasks) + \". \" + tasks.get(numberOfTasks - 1));","lastModifiedDate":"2024-02-09"},{"lineNumber":52,"author":{"gitId":"OKW32"},"content":" Ui.printMessage(message);","lastModifiedDate":"2024-02-09"},{"lineNumber":53,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":54,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":55,"author":{"gitId":"OKW32"},"content":" public void markTask(int taskId) throws BeefyException {","lastModifiedDate":"2024-02-09"},{"lineNumber":56,"author":{"gitId":"OKW32"},"content":" Task selectedTask \u003d tasks.get(taskId - 1);","lastModifiedDate":"2024-01-30"},{"lineNumber":57,"author":{"gitId":"OKW32"},"content":" if (selectedTask.getStatus()) {","lastModifiedDate":"2024-01-30"},{"lineNumber":58,"author":{"gitId":"OKW32"},"content":" throw new BeefyException(\"Are you blind mate?\");","lastModifiedDate":"2024-02-09"},{"lineNumber":59,"author":{"gitId":"OKW32"},"content":" } else {","lastModifiedDate":"2024-01-30"},{"lineNumber":60,"author":{"gitId":"OKW32"},"content":" selectedTask.setMark();","lastModifiedDate":"2024-01-30"},{"lineNumber":61,"author":{"gitId":"OKW32"},"content":" Ui.printMessage(\"Nice one mate! I\u0027ve marked this task as done:\" + System.lineSeparator()","lastModifiedDate":"2024-02-09"},{"lineNumber":62,"author":{"gitId":"OKW32"},"content":" + selectedTask);","lastModifiedDate":"2024-02-09"},{"lineNumber":63,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":64,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":65,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-01-30"},{"lineNumber":66,"author":{"gitId":"OKW32"},"content":" public void unmarkTask(int taskId) throws BeefyException {","lastModifiedDate":"2024-02-09"},{"lineNumber":67,"author":{"gitId":"OKW32"},"content":" Task selectedTask \u003d tasks.get(taskId - 1);","lastModifiedDate":"2024-01-30"},{"lineNumber":68,"author":{"gitId":"OKW32"},"content":" if (!selectedTask.getStatus()) {","lastModifiedDate":"2024-01-30"},{"lineNumber":69,"author":{"gitId":"OKW32"},"content":" throw new BeefyException(\"Are you blind mate?\");","lastModifiedDate":"2024-02-09"},{"lineNumber":70,"author":{"gitId":"OKW32"},"content":" } else {","lastModifiedDate":"2024-01-30"},{"lineNumber":71,"author":{"gitId":"OKW32"},"content":" selectedTask.setUnmark();","lastModifiedDate":"2024-01-30"},{"lineNumber":72,"author":{"gitId":"OKW32"},"content":" Ui.printMessage(\"WHY?! I\u0027ve marked this task as not done:\" + System.lineSeparator()","lastModifiedDate":"2024-02-09"},{"lineNumber":73,"author":{"gitId":"OKW32"},"content":" + selectedTask);","lastModifiedDate":"2024-02-09"},{"lineNumber":74,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":75,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-01-30"},{"lineNumber":76,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-01-30"}],"authorContributionMap":{"OKW32":76}},{"path":"src/main/java/beefy/task/ToDo.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.task;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"public class ToDo extends Task{","lastModifiedDate":"2024-02-03"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":" public ToDo(String Description){","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":" super(Description);","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" @Override","lastModifiedDate":"2024-02-03"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":" public String toString() {","lastModifiedDate":"2024-02-03"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":" return \"[T]\" + super.toString();","lastModifiedDate":"2024-02-03"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-03"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"OKW32":12}},{"path":"src/main/java/beefy/ui/Ui.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"package beefy.ui;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"public class Ui {","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":" private static final String BOT_NAME \u003d \"BEEFY\\n\";","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":" private static final String SEPARATION \u003d \"____________________________________________________________________\\n\";","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":" private static String messageFormat(String message) {","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":" return SEPARATION + BOT_NAME + message + System.lineSeparator() + SEPARATION;","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":" public static void printHi() {","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":" System.out.print(messageFormat(\"Hello there, I\u0027m Beefy, what can I do for you?\"));","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":" public static void printUser() {","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":" System.out.println(\"You:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":" public static void printBye() {","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"OKW32"},"content":" System.out.print(messageFormat(\"Good Bye, Hope to see you again!\"));","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"OKW32"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"OKW32"},"content":" public static void printMessage(String message) {","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"OKW32"},"content":" System.out.print(messageFormat(message));","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"OKW32"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"OKW32"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"OKW32":26}},{"path":"text-ui-test/input.txt","fileType":"txt","lines":[{"lineNumber":1,"author":{"gitId":"OKW32"},"content":"Hello","lastModifiedDate":"2024-02-03"},{"lineNumber":2,"author":{"gitId":"OKW32"},"content":"todo go home","lastModifiedDate":"2024-02-03"},{"lineNumber":3,"author":{"gitId":"OKW32"},"content":"deadline assignment","lastModifiedDate":"2024-02-03"},{"lineNumber":4,"author":{"gitId":"OKW32"},"content":"deadline assignment /by 10/02/24","lastModifiedDate":"2024-02-03"},{"lineNumber":5,"author":{"gitId":"OKW32"},"content":"event batam trip /from 26/02/24","lastModifiedDate":"2024-02-03"},{"lineNumber":6,"author":{"gitId":"OKW32"},"content":"event batam trip /from 26/02/24 /to 27/02/24","lastModifiedDate":"2024-02-03"},{"lineNumber":7,"author":{"gitId":"OKW32"},"content":"list","lastModifiedDate":"2024-02-03"},{"lineNumber":8,"author":{"gitId":"OKW32"},"content":"mark assignment","lastModifiedDate":"2024-02-03"},{"lineNumber":9,"author":{"gitId":"OKW32"},"content":"mark 1","lastModifiedDate":"2024-02-03"},{"lineNumber":10,"author":{"gitId":"OKW32"},"content":"mark 1","lastModifiedDate":"2024-02-03"},{"lineNumber":11,"author":{"gitId":"OKW32"},"content":"mark 3","lastModifiedDate":"2024-02-03"},{"lineNumber":12,"author":{"gitId":"OKW32"},"content":"mark 4","lastModifiedDate":"2024-02-03"},{"lineNumber":13,"author":{"gitId":"OKW32"},"content":"list","lastModifiedDate":"2024-02-03"},{"lineNumber":14,"author":{"gitId":"OKW32"},"content":"unmark assignment","lastModifiedDate":"2024-02-03"},{"lineNumber":15,"author":{"gitId":"OKW32"},"content":"unmark 1","lastModifiedDate":"2024-02-03"},{"lineNumber":16,"author":{"gitId":"OKW32"},"content":"unmark 1","lastModifiedDate":"2024-02-03"},{"lineNumber":17,"author":{"gitId":"OKW32"},"content":"unmark 4","lastModifiedDate":"2024-02-03"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":"list","lastModifiedDate":"2024-02-03"},{"lineNumber":19,"author":{"gitId":"OKW32"},"content":"Bye","lastModifiedDate":"2024-02-03"}],"authorContributionMap":{"OKW32":19}},{"path":"text-ui-test/runtest.bat","fileType":"bat","lines":[{"lineNumber":1,"author":{"gitId":"-"},"content":"@ECHO OFF","lastModifiedDate":"2020-05-25"},{"lineNumber":2,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":3,"author":{"gitId":"-"},"content":"REM create bin directory if it doesn\u0027t exist","lastModifiedDate":"2020-05-25"},{"lineNumber":4,"author":{"gitId":"-"},"content":"if not exist ..\\bin mkdir ..\\bin","lastModifiedDate":"2020-05-25"},{"lineNumber":5,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":6,"author":{"gitId":"-"},"content":"REM delete output from previous run","lastModifiedDate":"2020-05-25"},{"lineNumber":7,"author":{"gitId":"-"},"content":"if exist ACTUAL.TXT del ACTUAL.TXT","lastModifiedDate":"2020-08-25"},{"lineNumber":8,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":9,"author":{"gitId":"-"},"content":"REM compile the code into the bin folder","lastModifiedDate":"2020-05-25"},{"lineNumber":10,"author":{"gitId":"-"},"content":"javac -cp ..\\src\\main\\java -Xlint:none -d ..\\bin ..\\src\\main\\java\\*.java","lastModifiedDate":"2020-08-25"},{"lineNumber":11,"author":{"gitId":"-"},"content":"IF ERRORLEVEL 1 (","lastModifiedDate":"2020-05-25"},{"lineNumber":12,"author":{"gitId":"-"},"content":" echo ********** BUILD FAILURE **********","lastModifiedDate":"2020-05-25"},{"lineNumber":13,"author":{"gitId":"-"},"content":" exit /b 1","lastModifiedDate":"2020-05-25"},{"lineNumber":14,"author":{"gitId":"-"},"content":")","lastModifiedDate":"2020-05-25"},{"lineNumber":15,"author":{"gitId":"-"},"content":"REM no error here, errorlevel \u003d\u003d 0","lastModifiedDate":"2020-05-25"},{"lineNumber":16,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":17,"author":{"gitId":"-"},"content":"REM run the program, feed commands from input.txt file and redirect the output to the ACTUAL.TXT","lastModifiedDate":"2020-05-25"},{"lineNumber":18,"author":{"gitId":"OKW32"},"content":"java -classpath ..\\bin Main \u003c input.txt \u003e ACTUAL.TXT","lastModifiedDate":"2024-02-03"},{"lineNumber":19,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":20,"author":{"gitId":"-"},"content":"REM compare the output to the expected output","lastModifiedDate":"2020-05-25"},{"lineNumber":21,"author":{"gitId":"-"},"content":"FC ACTUAL.TXT EXPECTED.TXT","lastModifiedDate":"2020-05-25"}],"authorContributionMap":{"OKW32":1,"-":20}}] diff --git a/OKW32_ip_master/commits.json b/OKW32_ip_master/commits.json index 0d7868cf..f2a3af51 100644 --- a/OKW32_ip_master/commits.json +++ b/OKW32_ip_master/commits.json @@ -1 +1 @@ -{"authorDailyContributionsMap":{"OKW32":[{"date":"2024-01-30","commitResults":[{"hash":"86eb1442d76870431df9666ab22f0533fd6745de","isMergeCommit":false,"messageTitle":"Initialize: Create skeletal code for Beefy.java","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":22,"deletions":10}}},{"hash":"c50fbdbab5d56aaaa0c6f73e115cce9f795347ca","isMergeCommit":false,"messageTitle":"Style: Create Main class and add empty line at end of Beefy.java","messageBody":"Beefy.java is the entry point.\n\nCreating a Main class to be used as the entry point for our program is\ncleaner and follows the coding standards.\n\nLet\u0027s\n* Create a new class Main\n* Create class functions in Beefy e.g printSeparation(), startChat(),\nendChat() to be used in Main class\n","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":15,"deletions":4}}},{"hash":"4473d22a4b5f6732f7f5c8b525ebd55d934d3ca0","isMergeCommit":false,"messageTitle":"Feature: Add echo user command","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":15,"deletions":3}}},{"hash":"d0b70ac11c6942cd2bbc414498bc4716089cb82f","isMergeCommit":false,"messageTitle":"Feature: Add add and list functionality","messageBody":"","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":21,"deletions":5}}},{"hash":"14ecacc9d54e7bf3461dc48ca35fd1591a49a27e","isMergeCommit":false,"messageTitle":"Feature: Add ability to mark and unmark tasks","messageBody":"All text typed by user is stored in Beefy class.\n\nCreating two new classes to execute the tasks of storing information of\nthe task and storage of all tasks created will make the code easier\nto understand.\n\nLet\u0027s\n* Create a Task class to store information of each individual task\n* Create a TaskList class to compile and store all tasks that have been\ncreated\n","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":123,"deletions":15}}}]},{"date":"2024-01-31","commitResults":[{"hash":"1e1803e9929cbd233fd59119964162535cc0ba4b","isMergeCommit":false,"messageTitle":"Style: Shift creation of Task variable to addTask function","messageBody":"Task is created in startChat() function.\n\nShifting the creation of Task variable from startChat function in\nBeefy class to the addTask function in TaskList class, will follow the\nproper coding standards.\n\nLet\u0027s change the function addTask in TaskList to accept the task\ndescription and create the Task variable in it.\n","fileTypesAndContributionMap":{"java":{"insertions":5,"deletions":6}}}]},{"date":"2024-02-01","commitResults":[{"hash":"0ef66f39790fc79b843b5449e143b9e8ae01664a","isMergeCommit":false,"messageTitle":"Style: Change constant name from BOTNAME to BOT_NAME","messageBody":"","tags":["A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":8,"deletions":8}}}]},{"date":"2024-02-03","commitResults":[{"hash":"68eed7bff1213f6121790ee0057346b4525fb635","isMergeCommit":false,"messageTitle":"Feature: Add ToDos, Events and Deadline functionalities","messageBody":"Let\u0027s\n* Define an enum type, CommandType, to help determine which command\nshould be executed\n* Create 3 new children classes of Task (ToDo, Deadline, Event) to\nallow for differentiation between the types of task to add to\nTaskList\n* Create a function, executeCommand, to receive user\u0027s input and\ncommand type so as to determine which command to execute\n","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":124,"deletions":27}}},{"hash":"23bde67e84310ecba878c1418440c513670b0e51","isMergeCommit":false,"messageTitle":"Refactor code: Change executeCommand + Add space for task printing","messageBody":"executeCommand function does not handle cases where user input is\nformatted incorrectly for the adding of Tasks.\n\nChecking for above mentioned cases would prevent the code from\nexiting with error.\n\nLet\u0027s add try and catch statements to print the proper format to use\nfor users to view, upon detection of improper formatting.\n","tags":["A-CodeQuality"],"fileTypesAndContributionMap":{"java":{"insertions":21,"deletions":6},"bat":{"insertions":1,"deletions":1}}},{"hash":"707e1bfb0c93bab1b9d9e265ae8158e9d2e768f1","isMergeCommit":false,"messageTitle":"Test: Add TextUiTesting + Refactor startChat","messageBody":"startChat function unable to print out to user the proper formatting\nfor mark/unmark task upon improper input formatting.\n\nLet\u0027s\n* Use a nested if else statement instead to check if the input after\nmark/unmark command is an integer\n* Add inputs in input.txt to test for all features of ToDos,\nDeadlines, Events, List, Mark and Unmark, as well as to test if\nexceptions for isInteger and handleCommand functions are executed\ncorrectly.\n","tags":["A-TextUiTesting"],"fileTypesAndContributionMap":{"txt":{"insertions":19,"deletions":0},"java":{"insertions":13,"deletions":3}}}]},{"date":"2024-02-08","commitResults":[{"hash":"9e575f07853571e30711457d03fe2920016eacf8","isMergeCommit":false,"messageTitle":"Style: Remove unnecessary lines in endChat function","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":1,"deletions":7}}}]}]},"authorFileTypeContributionMap":{"OKW32":{"java":284,"md":0,"fxml":0,"sh":0,"bat":1,"gradle":0,"txt":19}},"authorContributionVariance":{"OKW32":4278.381},"authorDisplayNameMap":{"OKW32":"CS2113-T11-1 ONG ..N WU"}} +{"authorDailyContributionsMap":{"OKW32":[{"date":"2024-01-30","commitResults":[{"hash":"86eb1442d76870431df9666ab22f0533fd6745de","isMergeCommit":false,"messageTitle":"Initialize: Create skeletal code for Beefy.java","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":22,"deletions":10}}},{"hash":"c50fbdbab5d56aaaa0c6f73e115cce9f795347ca","isMergeCommit":false,"messageTitle":"Style: Create Main class and add empty line at end of Beefy.java","messageBody":"Beefy.java is the entry point.\n\nCreating a Main class to be used as the entry point for our program is\ncleaner and follows the coding standards.\n\nLet\u0027s\n* Create a new class Main\n* Create class functions in Beefy e.g printSeparation(), startChat(),\nendChat() to be used in Main class\n","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":15,"deletions":4}}},{"hash":"4473d22a4b5f6732f7f5c8b525ebd55d934d3ca0","isMergeCommit":false,"messageTitle":"Feature: Add echo user command","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":15,"deletions":3}}},{"hash":"d0b70ac11c6942cd2bbc414498bc4716089cb82f","isMergeCommit":false,"messageTitle":"Feature: Add add and list functionality","messageBody":"","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":21,"deletions":5}}},{"hash":"14ecacc9d54e7bf3461dc48ca35fd1591a49a27e","isMergeCommit":false,"messageTitle":"Feature: Add ability to mark and unmark tasks","messageBody":"All text typed by user is stored in Beefy class.\n\nCreating two new classes to execute the tasks of storing information of\nthe task and storage of all tasks created will make the code easier\nto understand.\n\nLet\u0027s\n* Create a Task class to store information of each individual task\n* Create a TaskList class to compile and store all tasks that have been\ncreated\n","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":123,"deletions":15}}}]},{"date":"2024-01-31","commitResults":[{"hash":"1e1803e9929cbd233fd59119964162535cc0ba4b","isMergeCommit":false,"messageTitle":"Style: Shift creation of Task variable to addTask function","messageBody":"Task is created in startChat() function.\n\nShifting the creation of Task variable from startChat function in\nBeefy class to the addTask function in TaskList class, will follow the\nproper coding standards.\n\nLet\u0027s change the function addTask in TaskList to accept the task\ndescription and create the Task variable in it.\n","fileTypesAndContributionMap":{"java":{"insertions":5,"deletions":6}}}]},{"date":"2024-02-01","commitResults":[{"hash":"0ef66f39790fc79b843b5449e143b9e8ae01664a","isMergeCommit":false,"messageTitle":"Style: Change constant name from BOTNAME to BOT_NAME","messageBody":"","tags":["A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":8,"deletions":8}}}]},{"date":"2024-02-03","commitResults":[{"hash":"68eed7bff1213f6121790ee0057346b4525fb635","isMergeCommit":false,"messageTitle":"Feature: Add ToDos, Events and Deadline functionalities","messageBody":"Let\u0027s\n* Define an enum type, CommandType, to help determine which command\nshould be executed\n* Create 3 new children classes of Task (ToDo, Deadline, Event) to\nallow for differentiation between the types of task to add to\nTaskList\n* Create a function, executeCommand, to receive user\u0027s input and\ncommand type so as to determine which command to execute\n","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":124,"deletions":27}}},{"hash":"23bde67e84310ecba878c1418440c513670b0e51","isMergeCommit":false,"messageTitle":"Refactor code: Change executeCommand + Add space for task printing","messageBody":"executeCommand function does not handle cases where user input is\nformatted incorrectly for the adding of Tasks.\n\nChecking for above mentioned cases would prevent the code from\nexiting with error.\n\nLet\u0027s add try and catch statements to print the proper format to use\nfor users to view, upon detection of improper formatting.\n","tags":["A-CodeQuality"],"fileTypesAndContributionMap":{"java":{"insertions":21,"deletions":6},"bat":{"insertions":1,"deletions":1}}},{"hash":"707e1bfb0c93bab1b9d9e265ae8158e9d2e768f1","isMergeCommit":false,"messageTitle":"Test: Add TextUiTesting + Refactor startChat","messageBody":"startChat function unable to print out to user the proper formatting\nfor mark/unmark task upon improper input formatting.\n\nLet\u0027s\n* Use a nested if else statement instead to check if the input after\nmark/unmark command is an integer\n* Add inputs in input.txt to test for all features of ToDos,\nDeadlines, Events, List, Mark and Unmark, as well as to test if\nexceptions for isInteger and handleCommand functions are executed\ncorrectly.\n","tags":["A-TextUiTesting"],"fileTypesAndContributionMap":{"txt":{"insertions":19,"deletions":0},"java":{"insertions":13,"deletions":3}}}]},{"date":"2024-02-08","commitResults":[{"hash":"9e575f07853571e30711457d03fe2920016eacf8","isMergeCommit":false,"messageTitle":"Style: Remove unnecessary lines in endChat function","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":1,"deletions":7}}}]},{"date":"2024-02-09","commitResults":[{"hash":"1dce93e9624624bba0412caa9a5a7231c5e72514","isMergeCommit":false,"messageTitle":"Refactor code: Add command classes to improve code quality","messageBody":"All commands are handled inside Beefy, causing code to be\nunreadable as there are multiple levels of abstraction.\n\nAdding multiple command classes help to distribute the code out into\nmultiple classes and improves readability.\n\nLet\u0027s create an interface Command, and create commands for each of\nthe different command type to implement the interface.\n","fileTypesAndContributionMap":{"java":{"insertions":249,"deletions":128}}},{"hash":"6e0aeb00e1d465af299aad64aed76d8cdca359c5","isMergeCommit":false,"messageTitle":"Style: Add/Remove blank lines","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":5,"deletions":3}}},{"hash":"388ef13547013e781d94c61aceeff2d5b099ada6","isMergeCommit":true,"messageTitle":"Merge branch \u0027branch-Level-5\u0027","messageBody":"","tags":["Level-5"],"fileTypesAndContributionMap":{}},{"hash":"3d7de24e1e0a392c1f45791908e3ebc20ad48f3a","isMergeCommit":false,"messageTitle":"Package: Create beefy, command, parser, task and ui packages","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":61,"deletions":1}}},{"hash":"0cd449c6b2ac4f3edba24e587a1defdd3f8fb598","isMergeCommit":true,"messageTitle":"Merge branch \u0027branch-A-Packages\u0027","messageBody":"","tags":["A-Packages"],"fileTypesAndContributionMap":{}},{"hash":"d1fed7713fe267d3375cfd3f563b0d3c08883380","isMergeCommit":false,"messageTitle":"Refactor code: Change error handling","messageBody":"Throw and catch statements with different exceptions are written in\nthe execute function in each individual command class, making it\nhard to scale code in future.\n\nCreating BeefyException class for all our execute functions and\nclass constructors to throw will allow for better scalability of\ncode in future.\n","fileTypesAndContributionMap":{"java":{"insertions":112,"deletions":94}}}]}]},"authorFileTypeContributionMap":{"OKW32":{"java":485,"md":0,"fxml":0,"sh":0,"bat":1,"gradle":0,"txt":19}},"authorContributionVariance":{"OKW32":21304.777},"authorDisplayNameMap":{"OKW32":"CS2113-T11-1 ONG ..N WU"}} diff --git a/Praneet-25_ip_master/authorship.json b/Praneet-25_ip_master/authorship.json index b16008aa..7005e6f5 100644 --- a/Praneet-25_ip_master/authorship.json +++ b/Praneet-25_ip_master/authorship.json @@ -1 +1 @@ -[{"path":"src/main/java/Deadline.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Praneet-25"},"content":"public class Deadline extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Praneet-25"},"content":" protected String dateOfDeadline;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Praneet-25"},"content":" public Deadline(String description) {","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Praneet-25"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Praneet-25"},"content":" typeOfTask \u003d \"D\";","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Praneet-25"},"content":" int dividerIndex \u003d description.indexOf(\"/\");","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Praneet-25"},"content":" if (dividerIndex \u003d\u003d -1) {","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Praneet-25"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Praneet-25"},"content":" setDateOfDeadline(null);","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Praneet-25"},"content":" else {","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Praneet-25"},"content":" String endDate \u003d description.substring(dividerIndex + 4);","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"Praneet-25"},"content":" String descriptionWithoutDate \u003d description.substring(0, (dividerIndex - 1)).replace(\"deadline\", \"\");","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"Praneet-25"},"content":" setDateOfDeadline(endDate);","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"Praneet-25"},"content":" this.description \u003d descriptionWithoutDate + \" (by: \" + getDateOfDeadline() + \")\";","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"Praneet-25"},"content":" public String getDateOfDeadline() {","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"Praneet-25"},"content":" return dateOfDeadline;","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Praneet-25"},"content":" public void setDateOfDeadline(String dateOfDeadline) {","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Praneet-25"},"content":" this.dateOfDeadline \u003d dateOfDeadline;","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"Praneet-25"},"content":"}","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Praneet-25":31}},{"path":"src/main/java/Duke.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Praneet-25"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Praneet-25"},"content":"import java.util.Arrays;","lastModifiedDate":"2024-02-08"},{"lineNumber":3,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":4,"author":{"gitId":"-"},"content":"public class Duke {","lastModifiedDate":"2019-07-29"},{"lineNumber":5,"author":{"gitId":"-"},"content":" public static void main(String[] args) {","lastModifiedDate":"2019-07-29"},{"lineNumber":6,"author":{"gitId":"-"},"content":" String logo \u003d \" ____ _ \\n\"","lastModifiedDate":"2019-07-29"},{"lineNumber":7,"author":{"gitId":"-"},"content":" + \"| _ \\\\ _ _| | _____ \\n\"","lastModifiedDate":"2019-07-29"},{"lineNumber":8,"author":{"gitId":"-"},"content":" + \"| | | | | | | |/ / _ \\\\\\n\"","lastModifiedDate":"2019-07-29"},{"lineNumber":9,"author":{"gitId":"-"},"content":" + \"| |_| | |_| | \u003c __/\\n\"","lastModifiedDate":"2019-07-29"},{"lineNumber":10,"author":{"gitId":"-"},"content":" + \"|____/ \\\\__,_|_|\\\\_\\\\___|\\n\";","lastModifiedDate":"2019-07-29"},{"lineNumber":11,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":12,"author":{"gitId":"Praneet-25"},"content":" Task[] listOfItems \u003d new Task[100];","lastModifiedDate":"2024-02-08"},{"lineNumber":13,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":14,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":15,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"Hello! I\u0027m Brennan!\");","lastModifiedDate":"2024-02-08"},{"lineNumber":16,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"What can I do for you?\\n\");","lastModifiedDate":"2024-02-08"},{"lineNumber":17,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":18,"author":{"gitId":"Praneet-25"},"content":" //String that stores the input entered by the user","lastModifiedDate":"2024-02-08"},{"lineNumber":19,"author":{"gitId":"Praneet-25"},"content":" String input;","lastModifiedDate":"2024-02-08"},{"lineNumber":20,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":21,"author":{"gitId":"Praneet-25"},"content":" //variable stores the number of tasks being added","lastModifiedDate":"2024-02-08"},{"lineNumber":22,"author":{"gitId":"Praneet-25"},"content":" int sizeOfAddedItems \u003d 0;","lastModifiedDate":"2024-02-08"},{"lineNumber":23,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":24,"author":{"gitId":"Praneet-25"},"content":" Scanner in \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-08"},{"lineNumber":25,"author":{"gitId":"Praneet-25"},"content":" while (true) {","lastModifiedDate":"2024-02-08"},{"lineNumber":26,"author":{"gitId":"Praneet-25"},"content":" input \u003d in.nextLine();","lastModifiedDate":"2024-02-08"},{"lineNumber":27,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":28,"author":{"gitId":"Praneet-25"},"content":" if (input.equals(\"bye\")) {","lastModifiedDate":"2024-02-08"},{"lineNumber":29,"author":{"gitId":"Praneet-25"},"content":" break;","lastModifiedDate":"2024-02-08"},{"lineNumber":30,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":31,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":33,"author":{"gitId":"Praneet-25"},"content":" else if (input.equals(\"list\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"Here are the tasks in your list: \");","lastModifiedDate":"2024-02-08"},{"lineNumber":36,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":37,"author":{"gitId":"Praneet-25"},"content":" for (int i \u003d 0; i \u003c sizeOfAddedItems; i++) {","lastModifiedDate":"2024-02-08"},{"lineNumber":38,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":39,"author":{"gitId":"Praneet-25"},"content":" System.out.println((i + 1) + \". \" + \" \"+ \"[\" + listOfItems[i].typeOfTask + \"]\" + \"[\" + listOfItems[i].getStatusIcon() + \"]\" + listOfItems[i].description);","lastModifiedDate":"2024-02-09"},{"lineNumber":40,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":41,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":42,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":43,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":44,"author":{"gitId":"Praneet-25"},"content":" else if (Arrays.asList(input.split( \" \")).contains(\"mark\")) {","lastModifiedDate":"2024-02-08"},{"lineNumber":45,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":46,"author":{"gitId":"Praneet-25"},"content":" //Finding the index of the task that the user wants to mark","lastModifiedDate":"2024-02-08"},{"lineNumber":47,"author":{"gitId":"Praneet-25"},"content":" String[] splitInput \u003d input.split(\" \");","lastModifiedDate":"2024-02-08"},{"lineNumber":48,"author":{"gitId":"Praneet-25"},"content":" int indexTask \u003d Integer.parseInt(splitInput[1]);","lastModifiedDate":"2024-02-08"},{"lineNumber":49,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":50,"author":{"gitId":"Praneet-25"},"content":" listOfItems[indexTask - 1].markAsCompleted();","lastModifiedDate":"2024-02-08"},{"lineNumber":51,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":52,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":53,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"Nice! I\u0027ve marked this task as done:\");","lastModifiedDate":"2024-02-08"},{"lineNumber":54,"author":{"gitId":"Praneet-25"},"content":" System.out.println((indexTask) + \". \" + \"[\" + listOfItems[indexTask-1].getStatusIcon() + \"]\" + listOfItems[indexTask - 1].description);","lastModifiedDate":"2024-02-08"},{"lineNumber":55,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":56,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":57,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":58,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":59,"author":{"gitId":"Praneet-25"},"content":" else if (Arrays.asList(input.split( \" \")).contains(\"unmark\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":60,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":61,"author":{"gitId":"Praneet-25"},"content":" //Finding the index of the task that the user wants to mark","lastModifiedDate":"2024-02-08"},{"lineNumber":62,"author":{"gitId":"Praneet-25"},"content":" String[] splitInput \u003d input.split(\" \");","lastModifiedDate":"2024-02-08"},{"lineNumber":63,"author":{"gitId":"Praneet-25"},"content":" int indexTask \u003d Integer.parseInt(splitInput[1]);","lastModifiedDate":"2024-02-08"},{"lineNumber":64,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":65,"author":{"gitId":"Praneet-25"},"content":" listOfItems[indexTask - 1].markAsNotCompleted();","lastModifiedDate":"2024-02-08"},{"lineNumber":66,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":67,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":68,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\" OK, I\u0027ve marked this task as not done yet:\");","lastModifiedDate":"2024-02-08"},{"lineNumber":69,"author":{"gitId":"Praneet-25"},"content":" System.out.println((indexTask) + \". \" + \"[\" + listOfItems[indexTask-1].getStatusIcon() + \"]\" + listOfItems[indexTask - 1].description);","lastModifiedDate":"2024-02-08"},{"lineNumber":70,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":71,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":72,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":73,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":74,"author":{"gitId":"Praneet-25"},"content":" else if (Arrays.asList(input.split( \" \")).contains(\"todo\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":75,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":76,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":77,"author":{"gitId":"Praneet-25"},"content":" listOfItems[sizeOfAddedItems] \u003d new ToDo(input);","lastModifiedDate":"2024-02-09"},{"lineNumber":78,"author":{"gitId":"Praneet-25"},"content":" sizeOfAddedItems +\u003d 1;","lastModifiedDate":"2024-02-09"},{"lineNumber":79,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":80,"author":{"gitId":"Praneet-25"},"content":" indicateNewTask(listOfItems[sizeOfAddedItems - 1], sizeOfAddedItems);","lastModifiedDate":"2024-02-09"},{"lineNumber":81,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":82,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":83,"author":{"gitId":"Praneet-25"},"content":" else if (Arrays.asList(input.split( \" \")).contains(\"deadline\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":84,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":85,"author":{"gitId":"Praneet-25"},"content":" listOfItems[sizeOfAddedItems] \u003d new Deadline(input);","lastModifiedDate":"2024-02-09"},{"lineNumber":86,"author":{"gitId":"Praneet-25"},"content":" sizeOfAddedItems +\u003d 1;","lastModifiedDate":"2024-02-09"},{"lineNumber":87,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":88,"author":{"gitId":"Praneet-25"},"content":" indicateNewTask(listOfItems[sizeOfAddedItems - 1], sizeOfAddedItems);","lastModifiedDate":"2024-02-09"},{"lineNumber":89,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":90,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":91,"author":{"gitId":"Praneet-25"},"content":" else if (Arrays.asList(input.split( \" \")).contains(\"event\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":92,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":93,"author":{"gitId":"Praneet-25"},"content":" listOfItems[sizeOfAddedItems] \u003d new Event(input);","lastModifiedDate":"2024-02-09"},{"lineNumber":94,"author":{"gitId":"Praneet-25"},"content":" sizeOfAddedItems +\u003d 1;","lastModifiedDate":"2024-02-09"},{"lineNumber":95,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":96,"author":{"gitId":"Praneet-25"},"content":" indicateNewTask(listOfItems[sizeOfAddedItems - 1], sizeOfAddedItems);","lastModifiedDate":"2024-02-09"},{"lineNumber":97,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":98,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":99,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":100,"author":{"gitId":"Praneet-25"},"content":" else {","lastModifiedDate":"2024-02-09"},{"lineNumber":101,"author":{"gitId":"Praneet-25"},"content":" listOfItems[sizeOfAddedItems] \u003d new Task(input);","lastModifiedDate":"2024-02-08"},{"lineNumber":102,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":103,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\" added: \" + input);","lastModifiedDate":"2024-02-08"},{"lineNumber":104,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":105,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":106,"author":{"gitId":"Praneet-25"},"content":" sizeOfAddedItems++;","lastModifiedDate":"2024-02-08"},{"lineNumber":107,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":108,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":109,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":110,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":111,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":112,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"Bye. Hope to see you again soon!\");","lastModifiedDate":"2024-02-08"},{"lineNumber":113,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":114,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":115,"author":{"gitId":"-"},"content":" }","lastModifiedDate":"2019-07-29"},{"lineNumber":116,"author":{"gitId":"Praneet-25"},"content":" public static void indicateNewTask(Task newTask, int currentNumberOfTasks) {","lastModifiedDate":"2024-02-09"},{"lineNumber":117,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-09"},{"lineNumber":118,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"Well done, you\u0027ve added a new task: \");","lastModifiedDate":"2024-02-09"},{"lineNumber":119,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"[\" + newTask.typeOfTask + \"]\" + \"[\" + newTask.getStatusIcon() + \"]\" + newTask.description);","lastModifiedDate":"2024-02-09"},{"lineNumber":120,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"Currently you have \" + currentNumberOfTasks + \" task(s) in your list!\");","lastModifiedDate":"2024-02-09"},{"lineNumber":121,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-09"},{"lineNumber":122,"author":{"gitId":"-"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":123,"author":{"gitId":"-"},"content":"}","lastModifiedDate":"2019-07-29"},{"lineNumber":124,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Praneet-25":114,"-":10}},{"path":"src/main/java/Event.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Praneet-25"},"content":"public class Event extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Praneet-25"},"content":" protected String startingDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Praneet-25"},"content":" protected String endingDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Praneet-25"},"content":" public Event(String description) {","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Praneet-25"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Praneet-25"},"content":" typeOfTask \u003d \"E\";","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Praneet-25"},"content":" int dividerIndexFrom \u003d description.indexOf(\"/\");","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Praneet-25"},"content":" int dividerIndexTo \u003d description.lastIndexOf(\"/\");","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Praneet-25"},"content":" setStartingDate(description.substring(dividerIndexFrom + 6, dividerIndexTo - 1));","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Praneet-25"},"content":" setEndingDate(description.substring(dividerIndexTo + 4));","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Praneet-25"},"content":" if (dividerIndexFrom \u003d\u003d -1) {","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"Praneet-25"},"content":" setStartingDate(null);","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"Praneet-25"},"content":" else if (dividerIndexTo \u003d\u003d -1) {","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"Praneet-25"},"content":" setEndingDate(null);","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"Praneet-25"},"content":" String descriptionWithoutDate \u003d description.substring(0, (dividerIndexFrom - 1)).replace(\"event\", \"\");","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Praneet-25"},"content":" this.description \u003d descriptionWithoutDate + \" (from: \" + getStartingDate() + \" to: \" + getEndingDate() + \")\";","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"Praneet-25"},"content":" public String getStartingDate() {","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"Praneet-25"},"content":" return startingDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":33,"author":{"gitId":"Praneet-25"},"content":" public void setStartingDate(String startingDate) {","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"Praneet-25"},"content":" this.startingDate \u003d startingDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":36,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":37,"author":{"gitId":"Praneet-25"},"content":" public String getEndingDate() {","lastModifiedDate":"2024-02-09"},{"lineNumber":38,"author":{"gitId":"Praneet-25"},"content":" return endingDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":39,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":40,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":41,"author":{"gitId":"Praneet-25"},"content":" public void setEndingDate(String endingDate) {","lastModifiedDate":"2024-02-09"},{"lineNumber":42,"author":{"gitId":"Praneet-25"},"content":" this.endingDate \u003d endingDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":43,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":44,"author":{"gitId":"Praneet-25"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Praneet-25":44}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Praneet-25"},"content":"public class Task {","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Praneet-25"},"content":" protected String description;","lastModifiedDate":"2024-02-08"},{"lineNumber":3,"author":{"gitId":"Praneet-25"},"content":" protected boolean isDone;","lastModifiedDate":"2024-02-08"},{"lineNumber":4,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":5,"author":{"gitId":"Praneet-25"},"content":" protected String typeOfTask;","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Praneet-25"},"content":" public Task(String description) {","lastModifiedDate":"2024-02-08"},{"lineNumber":8,"author":{"gitId":"Praneet-25"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-08"},{"lineNumber":9,"author":{"gitId":"Praneet-25"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-08"},{"lineNumber":10,"author":{"gitId":"Praneet-25"},"content":" typeOfTask \u003d \"\";","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":12,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":13,"author":{"gitId":"Praneet-25"},"content":" public String getStatusIcon() {","lastModifiedDate":"2024-02-08"},{"lineNumber":14,"author":{"gitId":"Praneet-25"},"content":" return (isDone ? \"X\" : \" \");","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":16,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":17,"author":{"gitId":"Praneet-25"},"content":" public void markAsCompleted() {","lastModifiedDate":"2024-02-08"},{"lineNumber":18,"author":{"gitId":"Praneet-25"},"content":" isDone \u003d true;","lastModifiedDate":"2024-02-08"},{"lineNumber":19,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":20,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":21,"author":{"gitId":"Praneet-25"},"content":" public void markAsNotCompleted() {","lastModifiedDate":"2024-02-08"},{"lineNumber":22,"author":{"gitId":"Praneet-25"},"content":" isDone \u003d false;","lastModifiedDate":"2024-02-08"},{"lineNumber":23,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":24,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":25,"author":{"gitId":"Praneet-25"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Praneet-25":25}},{"path":"src/main/java/ToDo.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Praneet-25"},"content":"public class ToDo extends Task{","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Praneet-25"},"content":" protected String dateOfDeadline;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Praneet-25"},"content":" public ToDo(String description) {","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Praneet-25"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Praneet-25"},"content":" typeOfTask \u003d \"T\";","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Praneet-25"},"content":" this.description \u003d description.replace(\"todo\", \"\");","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Praneet-25"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Praneet-25":11}}] +[{"path":"src/main/java/Deadline.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Praneet-25"},"content":"public class Deadline extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Praneet-25"},"content":" protected String dateOfDeadline;","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Praneet-25"},"content":" public Deadline(String description) {","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Praneet-25"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Praneet-25"},"content":" typeOfTask \u003d \"D\";","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Praneet-25"},"content":" int dividerIndex \u003d description.indexOf(\"/\");","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Praneet-25"},"content":" if (dividerIndex \u003d\u003d -1) {","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Praneet-25"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Praneet-25"},"content":" setDateOfDeadline(null);","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Praneet-25"},"content":" else {","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Praneet-25"},"content":" String endDate \u003d description.substring(dividerIndex + 4);","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Praneet-25"},"content":" String descriptionWithoutDate \u003d description.substring(0, (dividerIndex - 1)).replace(\"deadline\", \"\");","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"Praneet-25"},"content":" setDateOfDeadline(endDate);","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"Praneet-25"},"content":" this.description \u003d descriptionWithoutDate + \" (by: \" + getDateOfDeadline() + \")\";","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"Praneet-25"},"content":" public String getDateOfDeadline() {","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"Praneet-25"},"content":" return dateOfDeadline;","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Praneet-25"},"content":" public void setDateOfDeadline(String dateOfDeadline) {","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Praneet-25"},"content":" this.dateOfDeadline \u003d dateOfDeadline;","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"Praneet-25"},"content":"}","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Praneet-25":30}},{"path":"src/main/java/Duke.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Praneet-25"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Praneet-25"},"content":"import java.util.Arrays;","lastModifiedDate":"2024-02-08"},{"lineNumber":3,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":4,"author":{"gitId":"-"},"content":"public class Duke {","lastModifiedDate":"2019-07-29"},{"lineNumber":5,"author":{"gitId":"-"},"content":" public static void main(String[] args) {","lastModifiedDate":"2019-07-29"},{"lineNumber":6,"author":{"gitId":"-"},"content":" String logo \u003d \" ____ _ \\n\"","lastModifiedDate":"2019-07-29"},{"lineNumber":7,"author":{"gitId":"-"},"content":" + \"| _ \\\\ _ _| | _____ \\n\"","lastModifiedDate":"2019-07-29"},{"lineNumber":8,"author":{"gitId":"-"},"content":" + \"| | | | | | | |/ / _ \\\\\\n\"","lastModifiedDate":"2019-07-29"},{"lineNumber":9,"author":{"gitId":"-"},"content":" + \"| |_| | |_| | \u003c __/\\n\"","lastModifiedDate":"2019-07-29"},{"lineNumber":10,"author":{"gitId":"-"},"content":" + \"|____/ \\\\__,_|_|\\\\_\\\\___|\\n\";","lastModifiedDate":"2019-07-29"},{"lineNumber":11,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":12,"author":{"gitId":"Praneet-25"},"content":" Task[] listOfItems \u003d new Task[100];","lastModifiedDate":"2024-02-08"},{"lineNumber":13,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":14,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":15,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"Hello! I\u0027m Brennan!\");","lastModifiedDate":"2024-02-08"},{"lineNumber":16,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"What can I do for you?\\n\");","lastModifiedDate":"2024-02-08"},{"lineNumber":17,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":18,"author":{"gitId":"Praneet-25"},"content":" //String that stores the input entered by the user","lastModifiedDate":"2024-02-08"},{"lineNumber":19,"author":{"gitId":"Praneet-25"},"content":" String input;","lastModifiedDate":"2024-02-08"},{"lineNumber":20,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":21,"author":{"gitId":"Praneet-25"},"content":" //variable stores the number of tasks being added","lastModifiedDate":"2024-02-08"},{"lineNumber":22,"author":{"gitId":"Praneet-25"},"content":" int sizeOfAddedItems \u003d 0;","lastModifiedDate":"2024-02-08"},{"lineNumber":23,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":24,"author":{"gitId":"Praneet-25"},"content":" Scanner in \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-08"},{"lineNumber":25,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Praneet-25"},"content":" while (true) {","lastModifiedDate":"2024-02-08"},{"lineNumber":27,"author":{"gitId":"Praneet-25"},"content":" input \u003d in.nextLine();","lastModifiedDate":"2024-02-08"},{"lineNumber":28,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":29,"author":{"gitId":"Praneet-25"},"content":" if (input.equals(\"bye\")) {","lastModifiedDate":"2024-02-08"},{"lineNumber":30,"author":{"gitId":"Praneet-25"},"content":" break;","lastModifiedDate":"2024-02-08"},{"lineNumber":31,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":33,"author":{"gitId":"Praneet-25"},"content":" else if (input.equals(\"list\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"Here are the tasks in your list: \");","lastModifiedDate":"2024-02-08"},{"lineNumber":35,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":36,"author":{"gitId":"Praneet-25"},"content":" for (int i \u003d 0; i \u003c sizeOfAddedItems; i++) {","lastModifiedDate":"2024-02-08"},{"lineNumber":37,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":38,"author":{"gitId":"Praneet-25"},"content":" System.out.println((i + 1) + \". \" + \" \"+ \"[\" + listOfItems[i].typeOfTask + \"]\" + \"[\" + listOfItems[i].getStatusIcon() + \"]\" + listOfItems[i].description);","lastModifiedDate":"2024-02-09"},{"lineNumber":39,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":40,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":41,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":42,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":43,"author":{"gitId":"Praneet-25"},"content":" else if (Arrays.asList(input.split( \" \")).contains(\"mark\")) {","lastModifiedDate":"2024-02-08"},{"lineNumber":44,"author":{"gitId":"Praneet-25"},"content":" //Finding the index of the task that the user wants to mark","lastModifiedDate":"2024-02-08"},{"lineNumber":45,"author":{"gitId":"Praneet-25"},"content":" String[] splitInput \u003d input.split(\" \");","lastModifiedDate":"2024-02-08"},{"lineNumber":46,"author":{"gitId":"Praneet-25"},"content":" int indexTask \u003d Integer.parseInt(splitInput[1]);","lastModifiedDate":"2024-02-08"},{"lineNumber":47,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":48,"author":{"gitId":"Praneet-25"},"content":" listOfItems[indexTask - 1].markAsCompleted();","lastModifiedDate":"2024-02-08"},{"lineNumber":49,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":50,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":51,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"Nice! I\u0027ve marked this task as done:\");","lastModifiedDate":"2024-02-08"},{"lineNumber":52,"author":{"gitId":"Praneet-25"},"content":" System.out.println((indexTask) + \". \" + \"[\" + listOfItems[indexTask-1].getStatusIcon() + \"]\" + listOfItems[indexTask - 1].description);","lastModifiedDate":"2024-02-08"},{"lineNumber":53,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":54,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":55,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":56,"author":{"gitId":"Praneet-25"},"content":" else if (Arrays.asList(input.split( \" \")).contains(\"unmark\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":57,"author":{"gitId":"Praneet-25"},"content":" //Finding the index of the task that the user wants to mark","lastModifiedDate":"2024-02-08"},{"lineNumber":58,"author":{"gitId":"Praneet-25"},"content":" String[] splitInput \u003d input.split(\" \");","lastModifiedDate":"2024-02-08"},{"lineNumber":59,"author":{"gitId":"Praneet-25"},"content":" int indexTask \u003d Integer.parseInt(splitInput[1]);","lastModifiedDate":"2024-02-08"},{"lineNumber":60,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":61,"author":{"gitId":"Praneet-25"},"content":" listOfItems[indexTask - 1].markAsNotCompleted();","lastModifiedDate":"2024-02-08"},{"lineNumber":62,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":63,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":64,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\" OK, I\u0027ve marked this task as not done yet:\");","lastModifiedDate":"2024-02-08"},{"lineNumber":65,"author":{"gitId":"Praneet-25"},"content":" System.out.println((indexTask) + \". \" + \"[\" + listOfItems[indexTask-1].getStatusIcon() + \"]\" + listOfItems[indexTask - 1].description);","lastModifiedDate":"2024-02-08"},{"lineNumber":66,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":67,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":68,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":69,"author":{"gitId":"Praneet-25"},"content":" else if (Arrays.asList(input.split( \" \")).contains(\"todo\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":70,"author":{"gitId":"Praneet-25"},"content":" listOfItems[sizeOfAddedItems] \u003d new ToDo(input);","lastModifiedDate":"2024-02-09"},{"lineNumber":71,"author":{"gitId":"Praneet-25"},"content":" sizeOfAddedItems +\u003d 1;","lastModifiedDate":"2024-02-09"},{"lineNumber":72,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":73,"author":{"gitId":"Praneet-25"},"content":" indicateNewTask(listOfItems[sizeOfAddedItems - 1], sizeOfAddedItems);","lastModifiedDate":"2024-02-09"},{"lineNumber":74,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":75,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":76,"author":{"gitId":"Praneet-25"},"content":" else if (Arrays.asList(input.split( \" \")).contains(\"deadline\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":77,"author":{"gitId":"Praneet-25"},"content":" listOfItems[sizeOfAddedItems] \u003d new Deadline(input);","lastModifiedDate":"2024-02-09"},{"lineNumber":78,"author":{"gitId":"Praneet-25"},"content":" sizeOfAddedItems +\u003d 1;","lastModifiedDate":"2024-02-09"},{"lineNumber":79,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":80,"author":{"gitId":"Praneet-25"},"content":" indicateNewTask(listOfItems[sizeOfAddedItems - 1], sizeOfAddedItems);","lastModifiedDate":"2024-02-09"},{"lineNumber":81,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":82,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":83,"author":{"gitId":"Praneet-25"},"content":" else if (Arrays.asList(input.split( \" \")).contains(\"event\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":84,"author":{"gitId":"Praneet-25"},"content":" listOfItems[sizeOfAddedItems] \u003d new Event(input);","lastModifiedDate":"2024-02-09"},{"lineNumber":85,"author":{"gitId":"Praneet-25"},"content":" sizeOfAddedItems +\u003d 1;","lastModifiedDate":"2024-02-09"},{"lineNumber":86,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":87,"author":{"gitId":"Praneet-25"},"content":" indicateNewTask(listOfItems[sizeOfAddedItems - 1], sizeOfAddedItems);","lastModifiedDate":"2024-02-09"},{"lineNumber":88,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":89,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":90,"author":{"gitId":"Praneet-25"},"content":" else {","lastModifiedDate":"2024-02-09"},{"lineNumber":91,"author":{"gitId":"Praneet-25"},"content":" listOfItems[sizeOfAddedItems] \u003d new Task(input);","lastModifiedDate":"2024-02-08"},{"lineNumber":92,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":93,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\" added: \" + input);","lastModifiedDate":"2024-02-08"},{"lineNumber":94,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":95,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":96,"author":{"gitId":"Praneet-25"},"content":" sizeOfAddedItems++;","lastModifiedDate":"2024-02-08"},{"lineNumber":97,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":98,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":99,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":100,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":101,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"Bye. Hope to see you again soon!\");","lastModifiedDate":"2024-02-08"},{"lineNumber":102,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-08"},{"lineNumber":103,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":104,"author":{"gitId":"-"},"content":" }","lastModifiedDate":"2019-07-29"},{"lineNumber":105,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":106,"author":{"gitId":"Praneet-25"},"content":" public static void indicateNewTask(Task newTask, int currentNumberOfTasks) {","lastModifiedDate":"2024-02-09"},{"lineNumber":107,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-09"},{"lineNumber":108,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"Well done, you\u0027ve added a new task: \");","lastModifiedDate":"2024-02-09"},{"lineNumber":109,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"[\" + newTask.typeOfTask + \"]\" + \"[\" + newTask.getStatusIcon() + \"]\" + newTask.description);","lastModifiedDate":"2024-02-09"},{"lineNumber":110,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"Currently you have \" + currentNumberOfTasks + \" task(s) in your list!\");","lastModifiedDate":"2024-02-09"},{"lineNumber":111,"author":{"gitId":"Praneet-25"},"content":" System.out.println(\"____________________________________________________________\");","lastModifiedDate":"2024-02-09"},{"lineNumber":112,"author":{"gitId":"-"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":113,"author":{"gitId":"-"},"content":"}","lastModifiedDate":"2019-07-29"},{"lineNumber":114,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Praneet-25":104,"-":10}},{"path":"src/main/java/Event.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Praneet-25"},"content":"public class Event extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Praneet-25"},"content":" protected String startingDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Praneet-25"},"content":" protected String endingDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Praneet-25"},"content":" public Event(String description) {","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Praneet-25"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Praneet-25"},"content":" typeOfTask \u003d \"E\";","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Praneet-25"},"content":" int dividerIndexFrom \u003d description.indexOf(\"/\");","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Praneet-25"},"content":" int dividerIndexTo \u003d description.lastIndexOf(\"/\");","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Praneet-25"},"content":" setStartingDate(description.substring(dividerIndexFrom + 6, dividerIndexTo - 1));","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Praneet-25"},"content":" setEndingDate(description.substring(dividerIndexTo + 4));","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Praneet-25"},"content":" if (dividerIndexFrom \u003d\u003d -1) {","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"Praneet-25"},"content":" setStartingDate(null);","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"Praneet-25"},"content":" else if (dividerIndexTo \u003d\u003d -1) {","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"Praneet-25"},"content":" setEndingDate(null);","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"Praneet-25"},"content":" String descriptionWithoutDate \u003d description.substring(0, (dividerIndexFrom - 1)).replace(\"event\", \"\");","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Praneet-25"},"content":" this.description \u003d descriptionWithoutDate + \" (from: \" + getStartingDate() + \" to: \" + getEndingDate() + \")\";","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"Praneet-25"},"content":" public String getStartingDate() {","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"Praneet-25"},"content":" return startingDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":33,"author":{"gitId":"Praneet-25"},"content":" public void setStartingDate(String startingDate) {","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"Praneet-25"},"content":" this.startingDate \u003d startingDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":36,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":37,"author":{"gitId":"Praneet-25"},"content":" public String getEndingDate() {","lastModifiedDate":"2024-02-09"},{"lineNumber":38,"author":{"gitId":"Praneet-25"},"content":" return endingDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":39,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":40,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":41,"author":{"gitId":"Praneet-25"},"content":" public void setEndingDate(String endingDate) {","lastModifiedDate":"2024-02-09"},{"lineNumber":42,"author":{"gitId":"Praneet-25"},"content":" this.endingDate \u003d endingDate;","lastModifiedDate":"2024-02-09"},{"lineNumber":43,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":44,"author":{"gitId":"Praneet-25"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Praneet-25":44}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Praneet-25"},"content":"public class Task {","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Praneet-25"},"content":" protected String description;","lastModifiedDate":"2024-02-08"},{"lineNumber":3,"author":{"gitId":"Praneet-25"},"content":" protected boolean isDone;","lastModifiedDate":"2024-02-08"},{"lineNumber":4,"author":{"gitId":"Praneet-25"},"content":" protected String typeOfTask;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Praneet-25"},"content":" public Task(String description) {","lastModifiedDate":"2024-02-08"},{"lineNumber":7,"author":{"gitId":"Praneet-25"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-08"},{"lineNumber":8,"author":{"gitId":"Praneet-25"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-08"},{"lineNumber":9,"author":{"gitId":"Praneet-25"},"content":" typeOfTask \u003d \"\";","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":11,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":12,"author":{"gitId":"Praneet-25"},"content":" public String getStatusIcon() {","lastModifiedDate":"2024-02-08"},{"lineNumber":13,"author":{"gitId":"Praneet-25"},"content":" return (isDone ? \"X\" : \" \");","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":15,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":16,"author":{"gitId":"Praneet-25"},"content":" public void markAsCompleted() {","lastModifiedDate":"2024-02-08"},{"lineNumber":17,"author":{"gitId":"Praneet-25"},"content":" isDone \u003d true;","lastModifiedDate":"2024-02-08"},{"lineNumber":18,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":19,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":20,"author":{"gitId":"Praneet-25"},"content":" public void markAsNotCompleted() {","lastModifiedDate":"2024-02-08"},{"lineNumber":21,"author":{"gitId":"Praneet-25"},"content":" isDone \u003d false;","lastModifiedDate":"2024-02-08"},{"lineNumber":22,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":23,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":24,"author":{"gitId":"Praneet-25"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Praneet-25":24}},{"path":"src/main/java/ToDo.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Praneet-25"},"content":"public class ToDo extends Task{","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Praneet-25"},"content":" protected String dateOfDeadline;","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Praneet-25"},"content":" public ToDo(String description) {","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Praneet-25"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Praneet-25"},"content":" typeOfTask \u003d \"T\";","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Praneet-25"},"content":" this.description \u003d description.replace(\"todo\", \"\");","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Praneet-25"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Praneet-25"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Praneet-25"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Praneet-25":10}}] diff --git a/Praneet-25_ip_master/commits.json b/Praneet-25_ip_master/commits.json index 63bf88d7..fe555cf6 100644 --- a/Praneet-25_ip_master/commits.json +++ b/Praneet-25_ip_master/commits.json @@ -1 +1 @@ -{"authorDailyContributionsMap":{"Praneet-25":[{"date":"2024-02-08","commitResults":[{"hash":"f54347d6b32dd690999f3f86c3a9a3d864282913","isMergeCommit":false,"messageTitle":"Complete Level-0 by adding skeleton code","messageBody":"","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":7,"deletions":1}}},{"hash":"d74699ab3dce99cba7ddc524e875b3346fb18bf7","isMergeCommit":false,"messageTitle":"Add echo functionality for Level-1","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":22,"deletions":0}}},{"hash":"27e84ebc927c12402da54bfac86987a02158f5ff","isMergeCommit":false,"messageTitle":"Add the ability to store whatever text entered by the user and display them back to the user when requested.","messageBody":"","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":18,"deletions":3}}},{"hash":"8085bde26236dfb51620830ac76cb1991b7b825f","isMergeCommit":false,"messageTitle":"Add the ability to mark tasks as done, refactor code to use Task class, add the ability to change the status back to not done.","messageBody":"","tags":["Level-3","A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":56,"deletions":4}}}]},{"date":"2024-02-09","commitResults":[{"hash":"6fd91752e7cc5516908944b4f7acd2d663afcf3a","isMergeCommit":false,"messageTitle":"Add Todo, deadline, event, types of task","messageBody":"","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":135,"deletions":5}}}]}]},"authorFileTypeContributionMap":{"Praneet-25":{"java":225,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"Praneet-25":1320.7872},"authorDisplayNameMap":{"Praneet-25":"CS2113-W12-2 SEEN..NEET"}} +{"authorDailyContributionsMap":{"Praneet-25":[{"date":"2024-02-08","commitResults":[{"hash":"f54347d6b32dd690999f3f86c3a9a3d864282913","isMergeCommit":false,"messageTitle":"Complete Level-0 by adding skeleton code","messageBody":"","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":7,"deletions":1}}},{"hash":"d74699ab3dce99cba7ddc524e875b3346fb18bf7","isMergeCommit":false,"messageTitle":"Add echo functionality for Level-1","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":22,"deletions":0}}},{"hash":"27e84ebc927c12402da54bfac86987a02158f5ff","isMergeCommit":false,"messageTitle":"Add the ability to store whatever text entered by the user and display them back to the user when requested.","messageBody":"","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":18,"deletions":3}}},{"hash":"8085bde26236dfb51620830ac76cb1991b7b825f","isMergeCommit":false,"messageTitle":"Add the ability to mark tasks as done, refactor code to use Task class, add the ability to change the status back to not done.","messageBody":"","tags":["Level-3","A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":56,"deletions":4}}}]},{"date":"2024-02-09","commitResults":[{"hash":"6fd91752e7cc5516908944b4f7acd2d663afcf3a","isMergeCommit":false,"messageTitle":"Add Todo, deadline, event, types of task","messageBody":"","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":135,"deletions":5}}},{"hash":"a150b93deb46cf574122098a6bd9c70be0a70add","isMergeCommit":false,"messageTitle":"Improve quality of code","messageBody":"","tags":["A-CodeQuality"],"fileTypesAndContributionMap":{"java":{"insertions":2,"deletions":15}}}]}]},"authorFileTypeContributionMap":{"Praneet-25":{"java":212,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"Praneet-25":1532.0579},"authorDisplayNameMap":{"Praneet-25":"CS2113-W12-2 SEEN..NEET"}} diff --git a/YoengKokLeong_ip_master/authorship.json b/YoengKokLeong_ip_master/authorship.json index 1aa22e5e..c887cb3c 100644 --- a/YoengKokLeong_ip_master/authorship.json +++ b/YoengKokLeong_ip_master/authorship.json @@ -1 +1 @@ -[{"path":"src/main/java/Duke.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"YoengKokLeong"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-02"},{"lineNumber":2,"author":{"gitId":"YoengKokLeong"},"content":"import java.util.Arrays;","lastModifiedDate":"2024-02-02"},{"lineNumber":3,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":4,"author":{"gitId":"-"},"content":"public class Duke {","lastModifiedDate":"2019-07-29"},{"lineNumber":5,"author":{"gitId":"YoengKokLeong"},"content":" public static void addList(String line) {","lastModifiedDate":"2024-02-02"},{"lineNumber":6,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":7,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"added: \" + line);","lastModifiedDate":"2024-02-02"},{"lineNumber":8,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":9,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":10,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":11,"author":{"gitId":"YoengKokLeong"},"content":" public static void printBye() {","lastModifiedDate":"2024-02-02"},{"lineNumber":12,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":13,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"Bye. Hope to see you again soon!\");","lastModifiedDate":"2024-02-02"},{"lineNumber":14,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":15,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":16,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":17,"author":{"gitId":"YoengKokLeong"},"content":" public static void printList(Task[] list, int listIndex) {","lastModifiedDate":"2024-02-02"},{"lineNumber":18,"author":{"gitId":"YoengKokLeong"},"content":" int printCounter \u003d 1;","lastModifiedDate":"2024-02-02"},{"lineNumber":19,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":20,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"Here are the tasks in your lists:\");","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"YoengKokLeong"},"content":" for (Task item : Arrays.copyOf(list, listIndex)) {","lastModifiedDate":"2024-02-02"},{"lineNumber":22,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(printCounter + \".\" + item.getStatusIcon() + \" \" + item.description);","lastModifiedDate":"2024-02-02"},{"lineNumber":23,"author":{"gitId":"YoengKokLeong"},"content":" printCounter++;","lastModifiedDate":"2024-02-02"},{"lineNumber":24,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":25,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":26,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":27,"author":{"gitId":"YoengKokLeong"},"content":" public static void introStart() {","lastModifiedDate":"2024-02-02"},{"lineNumber":28,"author":{"gitId":"YoengKokLeong"},"content":" String logo","lastModifiedDate":"2024-02-02"},{"lineNumber":29,"author":{"gitId":"YoengKokLeong"},"content":" \u003d \" ____ _ \\n\"","lastModifiedDate":"2024-02-02"},{"lineNumber":30,"author":{"gitId":"-"},"content":" + \"| _ \\\\ _ _| | _____ \\n\"","lastModifiedDate":"2019-07-29"},{"lineNumber":31,"author":{"gitId":"-"},"content":" + \"| | | | | | | |/ / _ \\\\\\n\"","lastModifiedDate":"2019-07-29"},{"lineNumber":32,"author":{"gitId":"-"},"content":" + \"| |_| | |_| | \u003c __/\\n\"","lastModifiedDate":"2019-07-29"},{"lineNumber":33,"author":{"gitId":"-"},"content":" + \"|____/ \\\\__,_|_|\\\\_\\\\___|\\n\";","lastModifiedDate":"2019-07-29"},{"lineNumber":34,"author":{"gitId":"-"},"content":" System.out.println(\"Hello from\\n\" + logo);","lastModifiedDate":"2019-07-29"},{"lineNumber":35,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":36,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"Hello! I\u0027m Steffy\");","lastModifiedDate":"2024-02-02"},{"lineNumber":37,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"What can I do for you?\");","lastModifiedDate":"2024-02-02"},{"lineNumber":38,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":39,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":40,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":41,"author":{"gitId":"YoengKokLeong"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-02-02"},{"lineNumber":42,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":43,"author":{"gitId":"YoengKokLeong"},"content":" introStart(); //Prints starting screen","lastModifiedDate":"2024-02-02"},{"lineNumber":44,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":45,"author":{"gitId":"YoengKokLeong"},"content":" boolean ifExit \u003d false; //exits program if true","lastModifiedDate":"2024-02-02"},{"lineNumber":46,"author":{"gitId":"YoengKokLeong"},"content":" Scanner in \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-02"},{"lineNumber":47,"author":{"gitId":"YoengKokLeong"},"content":" Task[] list \u003d new Task[100];","lastModifiedDate":"2024-02-02"},{"lineNumber":48,"author":{"gitId":"YoengKokLeong"},"content":" int listIndex \u003d 0;","lastModifiedDate":"2024-02-02"},{"lineNumber":49,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":50,"author":{"gitId":"YoengKokLeong"},"content":" while (!ifExit) {","lastModifiedDate":"2024-02-02"},{"lineNumber":51,"author":{"gitId":"YoengKokLeong"},"content":" String line \u003d in.nextLine();","lastModifiedDate":"2024-02-02"},{"lineNumber":52,"author":{"gitId":"YoengKokLeong"},"content":" if (line.equals(\"bye\")) {","lastModifiedDate":"2024-02-05"},{"lineNumber":53,"author":{"gitId":"YoengKokLeong"},"content":" //checks for bye interaction and sets ifExit to true","lastModifiedDate":"2024-02-05"},{"lineNumber":54,"author":{"gitId":"YoengKokLeong"},"content":" printBye();","lastModifiedDate":"2024-02-02"},{"lineNumber":55,"author":{"gitId":"YoengKokLeong"},"content":" ifExit \u003d true;","lastModifiedDate":"2024-02-02"},{"lineNumber":56,"author":{"gitId":"YoengKokLeong"},"content":" } else if (line.equals(\"list\")) {","lastModifiedDate":"2024-02-05"},{"lineNumber":57,"author":{"gitId":"YoengKokLeong"},"content":" //calls printList and shows list of tasks","lastModifiedDate":"2024-02-05"},{"lineNumber":58,"author":{"gitId":"YoengKokLeong"},"content":" printList(list, listIndex);","lastModifiedDate":"2024-02-02"},{"lineNumber":59,"author":{"gitId":"YoengKokLeong"},"content":" } else if (line.contains(\"unmark\")) {","lastModifiedDate":"2024-02-05"},{"lineNumber":60,"author":{"gitId":"YoengKokLeong"},"content":" //checks for \"unmark\" to unmark a task","lastModifiedDate":"2024-02-05"},{"lineNumber":61,"author":{"gitId":"YoengKokLeong"},"content":" list[Integer.parseInt(line.substring(7)) - 1].unmarkDone();","lastModifiedDate":"2024-02-02"},{"lineNumber":62,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":63,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"OK, I\u0027ve marked this task as not done yet:\");","lastModifiedDate":"2024-02-02"},{"lineNumber":64,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println","lastModifiedDate":"2024-02-02"},{"lineNumber":65,"author":{"gitId":"YoengKokLeong"},"content":" (list[Integer.parseInt(line.substring(7)) - 1].getStatusIcon() + \" \"","lastModifiedDate":"2024-02-02"},{"lineNumber":66,"author":{"gitId":"YoengKokLeong"},"content":" + list[Integer.parseInt(line.substring(7)) - 1].description);","lastModifiedDate":"2024-02-02"},{"lineNumber":67,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":68,"author":{"gitId":"YoengKokLeong"},"content":" } else if (line.contains(\"mark\")) {","lastModifiedDate":"2024-02-05"},{"lineNumber":69,"author":{"gitId":"YoengKokLeong"},"content":" //else checks for \"mark\" to mark a task","lastModifiedDate":"2024-02-05"},{"lineNumber":70,"author":{"gitId":"YoengKokLeong"},"content":" list[Integer.parseInt(line.substring(5)) - 1].markAsDone();","lastModifiedDate":"2024-02-02"},{"lineNumber":71,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":72,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"Nice! I\u0027ve marked this task as done:\");","lastModifiedDate":"2024-02-02"},{"lineNumber":73,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println","lastModifiedDate":"2024-02-02"},{"lineNumber":74,"author":{"gitId":"YoengKokLeong"},"content":" (list[Integer.parseInt(line.substring(5)) - 1].getStatusIcon() + \" \"","lastModifiedDate":"2024-02-02"},{"lineNumber":75,"author":{"gitId":"YoengKokLeong"},"content":" + list[Integer.parseInt(line.substring(5)) - 1].description);","lastModifiedDate":"2024-02-02"},{"lineNumber":76,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":77,"author":{"gitId":"YoengKokLeong"},"content":" } else {","lastModifiedDate":"2024-02-05"},{"lineNumber":78,"author":{"gitId":"YoengKokLeong"},"content":" //else adds a new task and echos task once","lastModifiedDate":"2024-02-05"},{"lineNumber":79,"author":{"gitId":"YoengKokLeong"},"content":" addList(line);","lastModifiedDate":"2024-02-02"},{"lineNumber":80,"author":{"gitId":"YoengKokLeong"},"content":" list[listIndex] \u003d new Task(line);","lastModifiedDate":"2024-02-02"},{"lineNumber":81,"author":{"gitId":"YoengKokLeong"},"content":" listIndex++;","lastModifiedDate":"2024-02-02"},{"lineNumber":82,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":83,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":84,"author":{"gitId":"-"},"content":" }","lastModifiedDate":"2019-07-29"},{"lineNumber":85,"author":{"gitId":"-"},"content":"}","lastModifiedDate":"2019-07-29"}],"authorContributionMap":{"YoengKokLeong":77,"-":8}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"YoengKokLeong"},"content":"public class Task {","lastModifiedDate":"2024-02-02"},{"lineNumber":2,"author":{"gitId":"YoengKokLeong"},"content":" protected String description;","lastModifiedDate":"2024-02-02"},{"lineNumber":3,"author":{"gitId":"YoengKokLeong"},"content":" protected boolean isDone;","lastModifiedDate":"2024-02-02"},{"lineNumber":4,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":5,"author":{"gitId":"YoengKokLeong"},"content":" public Task(String description) {","lastModifiedDate":"2024-02-02"},{"lineNumber":6,"author":{"gitId":"YoengKokLeong"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-02"},{"lineNumber":7,"author":{"gitId":"YoengKokLeong"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":8,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":9,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":10,"author":{"gitId":"YoengKokLeong"},"content":" public String getStatusIcon() {","lastModifiedDate":"2024-02-02"},{"lineNumber":11,"author":{"gitId":"YoengKokLeong"},"content":" return (isDone ? \"[X]\" : \"[ ]\"); //mark done task with X","lastModifiedDate":"2024-02-02"},{"lineNumber":12,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":13,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":14,"author":{"gitId":"YoengKokLeong"},"content":" public void markAsDone() {","lastModifiedDate":"2024-02-02"},{"lineNumber":15,"author":{"gitId":"YoengKokLeong"},"content":" this.isDone \u003d true;","lastModifiedDate":"2024-02-02"},{"lineNumber":16,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":17,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":18,"author":{"gitId":"YoengKokLeong"},"content":" public void unmarkDone() {","lastModifiedDate":"2024-02-02"},{"lineNumber":19,"author":{"gitId":"YoengKokLeong"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":20,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"YoengKokLeong"},"content":"}","lastModifiedDate":"2024-02-02"}],"authorContributionMap":{"YoengKokLeong":21}}] +[{"path":"src/main/java/Deadline.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"YoengKokLeong"},"content":"public class Deadline extends Task{","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"YoengKokLeong"},"content":" protected String by;","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"YoengKokLeong"},"content":" public Deadline(String description, String by) {","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"YoengKokLeong"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"YoengKokLeong"},"content":" this.by \u003d by;","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"YoengKokLeong"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"YoengKokLeong"},"content":" return \"[D] \" + getStatusIcon() + \" \" + super.toString() + \" (by: \" + by + \")\";","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"YoengKokLeong"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"YoengKokLeong":11}},{"path":"src/main/java/Duke.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"YoengKokLeong"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-02"},{"lineNumber":2,"author":{"gitId":"YoengKokLeong"},"content":"import java.util.Arrays;","lastModifiedDate":"2024-02-02"},{"lineNumber":3,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":4,"author":{"gitId":"-"},"content":"public class Duke {","lastModifiedDate":"2019-07-29"},{"lineNumber":5,"author":{"gitId":"YoengKokLeong"},"content":" static boolean ifExit \u003d false; //exits program if true","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"YoengKokLeong"},"content":" static Task[] tasks \u003d new Task[100]; //List of tasks","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"YoengKokLeong"},"content":" static int listIndex \u003d 0; //To index through Task[] tasks","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"YoengKokLeong"},"content":" public static void echoTask() {","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":11,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"Got it! I\u0027ve added this task:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(tasks[listIndex]);","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":14,"author":{"gitId":"YoengKokLeong"},"content":" listIndex ++;","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":16,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":17,"author":{"gitId":"YoengKokLeong"},"content":" public static void printBye() {","lastModifiedDate":"2024-02-02"},{"lineNumber":18,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":19,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"Bye. Hope to see you again soon!\");","lastModifiedDate":"2024-02-02"},{"lineNumber":20,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"YoengKokLeong"},"content":" ifExit \u003d true;","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":23,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":24,"author":{"gitId":"YoengKokLeong"},"content":" public static void printList() {","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"YoengKokLeong"},"content":" int printCounter \u003d 1;","lastModifiedDate":"2024-02-02"},{"lineNumber":26,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":27,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"Here are the tasks in your lists:\");","lastModifiedDate":"2024-02-02"},{"lineNumber":28,"author":{"gitId":"YoengKokLeong"},"content":" for (Task item : Arrays.copyOf(tasks, listIndex)) {","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"YoengKokLeong"},"content":" System.out.print(printCounter + \".\");","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(item);","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"YoengKokLeong"},"content":" printCounter++;","lastModifiedDate":"2024-02-02"},{"lineNumber":32,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":33,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":35,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":36,"author":{"gitId":"YoengKokLeong"},"content":" public static void introStart() {","lastModifiedDate":"2024-02-02"},{"lineNumber":37,"author":{"gitId":"YoengKokLeong"},"content":" String logo","lastModifiedDate":"2024-02-02"},{"lineNumber":38,"author":{"gitId":"YoengKokLeong"},"content":" \u003d \" _______ ___ _____ _____ ___ ___\\n\"","lastModifiedDate":"2024-02-10"},{"lineNumber":39,"author":{"gitId":"YoengKokLeong"},"content":" + \"| ____\\\\___\\\\ \\\\___ __/ __| / __|\\\\ \\\\__/ /\\n\"","lastModifiedDate":"2024-02-10"},{"lineNumber":40,"author":{"gitId":"YoengKokLeong"},"content":" + \" \\\\ \\\\ \\\\___ ____\\\\__|__ ___| ___|\\\\_ __/\\n\"","lastModifiedDate":"2024-02-10"},{"lineNumber":41,"author":{"gitId":"YoengKokLeong"},"content":" + \" \\\\ \\\\ | | / _ \\\\| | | | / / \\n\"","lastModifiedDate":"2024-02-10"},{"lineNumber":42,"author":{"gitId":"YoengKokLeong"},"content":" + \" __\\\\ \\\\ | || __/| | | | __/ / \\n\"","lastModifiedDate":"2024-02-10"},{"lineNumber":43,"author":{"gitId":"YoengKokLeong"},"content":" + \"/_______| |__| \\\\_____||___| |__| |____/ \\n\";","lastModifiedDate":"2024-02-10"},{"lineNumber":44,"author":{"gitId":"-"},"content":" System.out.println(\"Hello from\\n\" + logo);","lastModifiedDate":"2019-07-29"},{"lineNumber":45,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":46,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"Hello! I\u0027m Steffy\");","lastModifiedDate":"2024-02-02"},{"lineNumber":47,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"What can I do for you?\");","lastModifiedDate":"2024-02-02"},{"lineNumber":48,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":49,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":50,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":51,"author":{"gitId":"YoengKokLeong"},"content":" public static void markTask(Task[] tasks, String line) {","lastModifiedDate":"2024-02-09"},{"lineNumber":52,"author":{"gitId":"YoengKokLeong"},"content":" tasks[Integer.parseInt(line.substring(5)) - 1].markAsDone();","lastModifiedDate":"2024-02-09"},{"lineNumber":53,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":54,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"Nice! I\u0027ve marked this task as done:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":55,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println","lastModifiedDate":"2024-02-02"},{"lineNumber":56,"author":{"gitId":"YoengKokLeong"},"content":" (tasks[Integer.parseInt(line.substring(5)) - 1].getStatusIcon() + \" \"","lastModifiedDate":"2024-02-09"},{"lineNumber":57,"author":{"gitId":"YoengKokLeong"},"content":" + tasks[Integer.parseInt(line.substring(5)) - 1].description);","lastModifiedDate":"2024-02-09"},{"lineNumber":58,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":59,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":60,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":61,"author":{"gitId":"YoengKokLeong"},"content":" public static void unmarkTask(Task[] tasks, String line) {","lastModifiedDate":"2024-02-09"},{"lineNumber":62,"author":{"gitId":"YoengKokLeong"},"content":" tasks[Integer.parseInt(line.substring(7)) - 1].unmarkDone();","lastModifiedDate":"2024-02-09"},{"lineNumber":63,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":64,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"OK, I\u0027ve marked this task as not done yet:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":65,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println","lastModifiedDate":"2024-02-02"},{"lineNumber":66,"author":{"gitId":"YoengKokLeong"},"content":" (tasks[Integer.parseInt(line.substring(7)) - 1].getStatusIcon() + \" \"","lastModifiedDate":"2024-02-09"},{"lineNumber":67,"author":{"gitId":"YoengKokLeong"},"content":" + tasks[Integer.parseInt(line.substring(7)) - 1].description);","lastModifiedDate":"2024-02-09"},{"lineNumber":68,"author":{"gitId":"YoengKokLeong"},"content":" System.out.println(\"--------------------------------------\");","lastModifiedDate":"2024-02-02"},{"lineNumber":69,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":70,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":71,"author":{"gitId":"YoengKokLeong"},"content":" public static void performAction(Task[] tasks, String line, int listIndex) {","lastModifiedDate":"2024-02-09"},{"lineNumber":72,"author":{"gitId":"YoengKokLeong"},"content":" int eventDividerPositionTo \u003d line.indexOf(\"/to\");","lastModifiedDate":"2024-02-09"},{"lineNumber":73,"author":{"gitId":"YoengKokLeong"},"content":" int eventDividerPositionFrom \u003d line.indexOf(\"/from\");","lastModifiedDate":"2024-02-09"},{"lineNumber":74,"author":{"gitId":"YoengKokLeong"},"content":" int deadlineDividerPositionBy \u003d line.indexOf(\"/by\");","lastModifiedDate":"2024-02-09"},{"lineNumber":75,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":76,"author":{"gitId":"YoengKokLeong"},"content":" switch(line.split(\" \")[0].toLowerCase()) {","lastModifiedDate":"2024-02-09"},{"lineNumber":77,"author":{"gitId":"YoengKokLeong"},"content":" case \"bye\": //Exits program with farewell dialogue","lastModifiedDate":"2024-02-09"},{"lineNumber":78,"author":{"gitId":"YoengKokLeong"},"content":" printBye();","lastModifiedDate":"2024-02-09"},{"lineNumber":79,"author":{"gitId":"YoengKokLeong"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":80,"author":{"gitId":"YoengKokLeong"},"content":" case \"list\": //Shows entire list of tasks","lastModifiedDate":"2024-02-09"},{"lineNumber":81,"author":{"gitId":"YoengKokLeong"},"content":" printList();","lastModifiedDate":"2024-02-09"},{"lineNumber":82,"author":{"gitId":"YoengKokLeong"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":83,"author":{"gitId":"YoengKokLeong"},"content":" case \"unmark\": //unmark a task","lastModifiedDate":"2024-02-09"},{"lineNumber":84,"author":{"gitId":"YoengKokLeong"},"content":" unmarkTask(tasks, line);","lastModifiedDate":"2024-02-09"},{"lineNumber":85,"author":{"gitId":"YoengKokLeong"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":86,"author":{"gitId":"YoengKokLeong"},"content":" case \"mark\": //marks a task as done","lastModifiedDate":"2024-02-09"},{"lineNumber":87,"author":{"gitId":"YoengKokLeong"},"content":" markTask(tasks, line);","lastModifiedDate":"2024-02-09"},{"lineNumber":88,"author":{"gitId":"YoengKokLeong"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":89,"author":{"gitId":"YoengKokLeong"},"content":" case \"todo\": //add a new task","lastModifiedDate":"2024-02-09"},{"lineNumber":90,"author":{"gitId":"YoengKokLeong"},"content":" tasks[listIndex] \u003d new Todo(line);","lastModifiedDate":"2024-02-09"},{"lineNumber":91,"author":{"gitId":"YoengKokLeong"},"content":" echoTask();","lastModifiedDate":"2024-02-09"},{"lineNumber":92,"author":{"gitId":"YoengKokLeong"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":93,"author":{"gitId":"YoengKokLeong"},"content":" case \"event\": //add a new event task","lastModifiedDate":"2024-02-09"},{"lineNumber":94,"author":{"gitId":"YoengKokLeong"},"content":" tasks[listIndex] \u003d new Event(line.substring(0, eventDividerPositionFrom).trim(), line.substring(eventDividerPositionFrom + 5,eventDividerPositionTo).trim(), line.substring(eventDividerPositionTo + 3).trim());","lastModifiedDate":"2024-02-09"},{"lineNumber":95,"author":{"gitId":"YoengKokLeong"},"content":" echoTask();","lastModifiedDate":"2024-02-09"},{"lineNumber":96,"author":{"gitId":"YoengKokLeong"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":97,"author":{"gitId":"YoengKokLeong"},"content":" case \"deadline\": //add a new deadline task","lastModifiedDate":"2024-02-09"},{"lineNumber":98,"author":{"gitId":"YoengKokLeong"},"content":" tasks[listIndex] \u003d new Deadline(line.substring(0, deadlineDividerPositionBy).trim(), line.substring(deadlineDividerPositionBy + 3).trim());","lastModifiedDate":"2024-02-09"},{"lineNumber":99,"author":{"gitId":"YoengKokLeong"},"content":" echoTask();","lastModifiedDate":"2024-02-09"},{"lineNumber":100,"author":{"gitId":"YoengKokLeong"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":101,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":102,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":103,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":104,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":105,"author":{"gitId":"YoengKokLeong"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-02-09"},{"lineNumber":106,"author":{"gitId":"YoengKokLeong"},"content":" introStart(); //Prints starting screen","lastModifiedDate":"2024-02-09"},{"lineNumber":107,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":108,"author":{"gitId":"YoengKokLeong"},"content":" while (!ifExit) {","lastModifiedDate":"2024-02-09"},{"lineNumber":109,"author":{"gitId":"YoengKokLeong"},"content":" Scanner in \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-09"},{"lineNumber":110,"author":{"gitId":"YoengKokLeong"},"content":" String line \u003d in.nextLine();","lastModifiedDate":"2024-02-09"},{"lineNumber":111,"author":{"gitId":"YoengKokLeong"},"content":" performAction(tasks, line, listIndex); //Executes an action based on first word of command in String line","lastModifiedDate":"2024-02-09"},{"lineNumber":112,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":113,"author":{"gitId":"-"},"content":" }","lastModifiedDate":"2019-07-29"},{"lineNumber":114,"author":{"gitId":"-"},"content":"}","lastModifiedDate":"2019-07-29"}],"authorContributionMap":{"YoengKokLeong":110,"-":4}},{"path":"src/main/java/Event.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"YoengKokLeong"},"content":"public class Event extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"YoengKokLeong"},"content":" String from;","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"YoengKokLeong"},"content":" String to;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"YoengKokLeong"},"content":" public Event(String description, String from, String to) {","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"YoengKokLeong"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"YoengKokLeong"},"content":" this.from \u003d from;","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"YoengKokLeong"},"content":" this.to \u003d to;","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"YoengKokLeong"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"YoengKokLeong"},"content":" return \"[E] \" + getStatusIcon() + \" \" + super.toString() + \" (from: \" + from + \" to: \" + to + \")\";","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"YoengKokLeong"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"YoengKokLeong":13}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"YoengKokLeong"},"content":"public class Task {","lastModifiedDate":"2024-02-02"},{"lineNumber":2,"author":{"gitId":"YoengKokLeong"},"content":" protected String description;","lastModifiedDate":"2024-02-02"},{"lineNumber":3,"author":{"gitId":"YoengKokLeong"},"content":" protected boolean isDone;","lastModifiedDate":"2024-02-02"},{"lineNumber":4,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":5,"author":{"gitId":"YoengKokLeong"},"content":" public Task(String description) {","lastModifiedDate":"2024-02-02"},{"lineNumber":6,"author":{"gitId":"YoengKokLeong"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-02"},{"lineNumber":7,"author":{"gitId":"YoengKokLeong"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":8,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":9,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":10,"author":{"gitId":"YoengKokLeong"},"content":" public String getStatusIcon() {","lastModifiedDate":"2024-02-02"},{"lineNumber":11,"author":{"gitId":"YoengKokLeong"},"content":" return (isDone ? \"[X]\" : \"[ ]\"); //mark done task with X","lastModifiedDate":"2024-02-02"},{"lineNumber":12,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":13,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":14,"author":{"gitId":"YoengKokLeong"},"content":" public void markAsDone() {","lastModifiedDate":"2024-02-02"},{"lineNumber":15,"author":{"gitId":"YoengKokLeong"},"content":" this.isDone \u003d true;","lastModifiedDate":"2024-02-02"},{"lineNumber":16,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":17,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-02"},{"lineNumber":18,"author":{"gitId":"YoengKokLeong"},"content":" public void unmarkDone() {","lastModifiedDate":"2024-02-02"},{"lineNumber":19,"author":{"gitId":"YoengKokLeong"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-02"},{"lineNumber":20,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-02"},{"lineNumber":21,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"YoengKokLeong"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"YoengKokLeong"},"content":" return description;","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"YoengKokLeong"},"content":"}","lastModifiedDate":"2024-02-02"}],"authorContributionMap":{"YoengKokLeong":25}},{"path":"src/main/java/Todo.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"YoengKokLeong"},"content":"public class Todo extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"YoengKokLeong"},"content":" public Todo(String description) {","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"YoengKokLeong"},"content":" super(description);","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"YoengKokLeong"},"content":" public String toString() {","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"YoengKokLeong"},"content":" return \"[T] \" + getStatusIcon() + \" \" + super.toString();","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"YoengKokLeong"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"YoengKokLeong"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"YoengKokLeong"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"YoengKokLeong":9}},{"path":"text-ui-test/input.txt","fileType":"txt","lines":[{"lineNumber":1,"author":{"gitId":"YoengKokLeong"},"content":"list","lastModifiedDate":"2024-02-10"},{"lineNumber":2,"author":{"gitId":"YoengKokLeong"},"content":"bye","lastModifiedDate":"2024-02-10"}],"authorContributionMap":{"YoengKokLeong":2}}] diff --git a/YoengKokLeong_ip_master/commits.json b/YoengKokLeong_ip_master/commits.json index 59ea0ab4..0ae62067 100644 --- a/YoengKokLeong_ip_master/commits.json +++ b/YoengKokLeong_ip_master/commits.json @@ -1 +1 @@ -{"authorDailyContributionsMap":{"YoengKokLeong":[{"date":"2024-02-02","commitResults":[{"hash":"95ee6ed088aa2b53b8fd3b52c3a2ee92d54e0d86","isMergeCommit":false,"messageTitle":"added level 0, 1, 2","messageBody":"","tags":["Level-2","Level-1","Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":40,"deletions":1}}},{"hash":"6e3daab019a124c17d6110205cba1f887609b78e","isMergeCommit":false,"messageTitle":"added level 3, added Task class","messageBody":"","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":72,"deletions":31}}},{"hash":"dc870cc5b788695f1d9c4f4e7a28d4735911423c","isMergeCommit":false,"messageTitle":"resolved \"bye\" bug from adding as Task after exiting. Added dialogue for mark and unmark task.","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":13,"deletions":2}}}]},{"date":"2024-02-05","commitResults":[{"hash":"e5227ef764f04ca14d6f108333a2580bfe86ddd2","isMergeCommit":false,"messageTitle":"Followed coding standards","messageBody":"","tags":["A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":10,"deletions":5}}}]}]},"authorFileTypeContributionMap":{"YoengKokLeong":{"java":98,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"YoengKokLeong":1323.5557},"authorDisplayNameMap":{"YoengKokLeong":"CS2113-W13-1 YOEN..EONG"}} +{"authorDailyContributionsMap":{"YoengKokLeong":[{"date":"2024-02-02","commitResults":[{"hash":"95ee6ed088aa2b53b8fd3b52c3a2ee92d54e0d86","isMergeCommit":false,"messageTitle":"added level 0, 1, 2","messageBody":"","tags":["Level-2","Level-1","Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":40,"deletions":1}}},{"hash":"6e3daab019a124c17d6110205cba1f887609b78e","isMergeCommit":false,"messageTitle":"added level 3, added Task class","messageBody":"","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":72,"deletions":31}}},{"hash":"dc870cc5b788695f1d9c4f4e7a28d4735911423c","isMergeCommit":false,"messageTitle":"resolved \"bye\" bug from adding as Task after exiting. Added dialogue for mark and unmark task.","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":13,"deletions":2}}}]},{"date":"2024-02-05","commitResults":[{"hash":"e5227ef764f04ca14d6f108333a2580bfe86ddd2","isMergeCommit":false,"messageTitle":"Followed coding standards","messageBody":"","tags":["A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":10,"deletions":5}}}]},{"date":"2024-02-09","commitResults":[{"hash":"4b64426224387efc376201ae1c59a85c398b582d","isMergeCommit":false,"messageTitle":"added child classes Todo, Event and Deadline which Task is parent","messageBody":"","tags":["Level-4","A-CodeQuality"],"fileTypesAndContributionMap":{"java":{"insertions":104,"deletions":40}}},{"hash":"896103c19f6cffaa4c542ec9da78b3c12f84d9b6","isMergeCommit":false,"messageTitle":"improved code quality by reducing if else nesting and usage with switch. Added documentation as well","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":17,"deletions":16}}}]},{"date":"2024-02-10","commitResults":[{"hash":"fb4636063a82c99c2ac2d238297b38404bed9b62","isMergeCommit":false,"messageTitle":"updated text ui testing files","messageBody":"","tags":["A-TextUiTesting"],"fileTypesAndContributionMap":{"txt":{"insertions":2,"deletions":0}}},{"hash":"a0adcd9d17b19f61d05163e6eccc5ac46463878d","isMergeCommit":false,"messageTitle":"updated intro logo","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":6,"deletions":5}}}]}]},"authorFileTypeContributionMap":{"YoengKokLeong":{"java":168,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":2}},"authorContributionVariance":{"YoengKokLeong":2227.97},"authorDisplayNameMap":{"YoengKokLeong":"CS2113-W13-1 YOEN..EONG"}} diff --git a/Zhengwinter_ip_master/authorship.json b/Zhengwinter_ip_master/authorship.json index ee208f6c..5e59b54c 100644 --- a/Zhengwinter_ip_master/authorship.json +++ b/Zhengwinter_ip_master/authorship.json @@ -1 +1 @@ -[{"path":"src/main/java/Commands.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"public enum Commands {","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":" bye,,list,mark,unmark","lastModifiedDate":"2024-02-08"},{"lineNumber":3,"author":{"gitId":"Zhengwinter"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Zhengwinter":3}},{"path":"src/main/java/Deadline.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"package PACKAGE_NAME;public class Deadline {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Zhengwinter":2}},{"path":"src/main/java/Event.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"package PACKAGE_NAME;public class Event {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Zhengwinter":2}},{"path":"src/main/java/Manager.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"package PACKAGE_NAME;public class Manager {","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Zhengwinter":2}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"package PACKAGE_NAME;public class Task {","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Zhengwinter":2}},{"path":"src/main/java/ToDo.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"package PACKAGE_NAME;public class ToDo {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Zhengwinter":2}},{"path":"src/main/java/Winter.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-01-31"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":"public class Winter {","lastModifiedDate":"2024-01-24"},{"lineNumber":3,"author":{"gitId":"Zhengwinter"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-01-24"},{"lineNumber":4,"author":{"gitId":"Zhengwinter"},"content":" String logo \u003d \" __ __.__ __ \\n\" +","lastModifiedDate":"2024-01-24"},{"lineNumber":5,"author":{"gitId":"Zhengwinter"},"content":" \"/ \\\\ / \\\\__| _____/ |_ ___________ \\n\" +","lastModifiedDate":"2024-01-24"},{"lineNumber":6,"author":{"gitId":"Zhengwinter"},"content":" \"\\\\ \\\\/\\\\/ / |/ \\\\ __\\\\/ __ \\\\_ __ \\\\\\n\" +","lastModifiedDate":"2024-01-24"},{"lineNumber":7,"author":{"gitId":"Zhengwinter"},"content":" \" \\\\ /| | | \\\\ | \\\\ ___/| | \\\\/\\n\" +","lastModifiedDate":"2024-01-24"},{"lineNumber":8,"author":{"gitId":"Zhengwinter"},"content":" \" \\\\__/\\\\ / |__|___| /__| \\\\___ \u003e__| \\n\" +","lastModifiedDate":"2024-01-24"},{"lineNumber":9,"author":{"gitId":"Zhengwinter"},"content":" \" \\\\/ \\\\/ \\\\/ \";","lastModifiedDate":"2024-01-24"},{"lineNumber":10,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(\"Hello from\\n\" + logo);","lastModifiedDate":"2024-01-24"},{"lineNumber":11,"author":{"gitId":"Zhengwinter"},"content":" sayHi();","lastModifiedDate":"2024-01-31"},{"lineNumber":12,"author":{"gitId":"Zhengwinter"},"content":" //echo();","lastModifiedDate":"2024-01-31"},{"lineNumber":13,"author":{"gitId":"Zhengwinter"},"content":" addTasks();","lastModifiedDate":"2024-01-31"},{"lineNumber":14,"author":{"gitId":"Zhengwinter"},"content":" sayBye();","lastModifiedDate":"2024-01-31"},{"lineNumber":15,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-01-31"},{"lineNumber":16,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-01-24"},{"lineNumber":17,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-01-24"},{"lineNumber":18,"author":{"gitId":"Zhengwinter"},"content":" // Method for greeting message","lastModifiedDate":"2024-02-01"},{"lineNumber":19,"author":{"gitId":"Zhengwinter"},"content":" private static void sayHi() {","lastModifiedDate":"2024-01-31"},{"lineNumber":20,"author":{"gitId":"Zhengwinter"},"content":" String line \u003d \"-----------------------------------\\n\";","lastModifiedDate":"2024-01-24"},{"lineNumber":21,"author":{"gitId":"Zhengwinter"},"content":" String greet \u003d \"Hello! I\u0027m Winter!\\nWhat can I do for you?\";","lastModifiedDate":"2024-01-31"},{"lineNumber":22,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-01-24"},{"lineNumber":23,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(greet);","lastModifiedDate":"2024-01-24"},{"lineNumber":24,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-01-24"},{"lineNumber":25,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-01-31"},{"lineNumber":26,"author":{"gitId":"Zhengwinter"},"content":" // Method for farewell message","lastModifiedDate":"2024-02-01"},{"lineNumber":27,"author":{"gitId":"Zhengwinter"},"content":" private static void sayBye() {","lastModifiedDate":"2024-01-31"},{"lineNumber":28,"author":{"gitId":"Zhengwinter"},"content":" String line \u003d \"-----------------------------------\\n\";","lastModifiedDate":"2024-01-31"},{"lineNumber":29,"author":{"gitId":"Zhengwinter"},"content":" String farewell \u003d \"Farewell. Hope to see you again soon!\";","lastModifiedDate":"2024-02-01"},{"lineNumber":30,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-01-31"},{"lineNumber":31,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(farewell);","lastModifiedDate":"2024-01-24"},{"lineNumber":32,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-01-24"},{"lineNumber":33,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-01-31"},{"lineNumber":34,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-01-24"},{"lineNumber":35,"author":{"gitId":"Zhengwinter"},"content":" // Method for echo, not used after Level-1","lastModifiedDate":"2024-02-01"},{"lineNumber":36,"author":{"gitId":"Zhengwinter"},"content":" private static void echo() {","lastModifiedDate":"2024-01-31"},{"lineNumber":37,"author":{"gitId":"Zhengwinter"},"content":" String line \u003d \"-----------------------------------\\n\";","lastModifiedDate":"2024-01-31"},{"lineNumber":38,"author":{"gitId":"Zhengwinter"},"content":" String indent \u003d \" \";","lastModifiedDate":"2024-01-31"},{"lineNumber":39,"author":{"gitId":"Zhengwinter"},"content":" String echoLine;","lastModifiedDate":"2024-01-31"},{"lineNumber":40,"author":{"gitId":"Zhengwinter"},"content":" Scanner input \u003d new Scanner(System.in);","lastModifiedDate":"2024-01-31"},{"lineNumber":41,"author":{"gitId":"Zhengwinter"},"content":" echoLine \u003d input.nextLine();","lastModifiedDate":"2024-01-31"},{"lineNumber":42,"author":{"gitId":"Zhengwinter"},"content":" while (true) {","lastModifiedDate":"2024-01-31"},{"lineNumber":43,"author":{"gitId":"Zhengwinter"},"content":" if(echoLine.equals(\"bye\") || echoLine.equals(\"Bye\") || echoLine.equals(\"BYE\")) {","lastModifiedDate":"2024-01-31"},{"lineNumber":44,"author":{"gitId":"Zhengwinter"},"content":" break;","lastModifiedDate":"2024-01-31"},{"lineNumber":45,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-01-31"},{"lineNumber":46,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-01-31"},{"lineNumber":47,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(indent);","lastModifiedDate":"2024-01-31"},{"lineNumber":48,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(echoLine);","lastModifiedDate":"2024-01-31"},{"lineNumber":49,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-01-31"},{"lineNumber":50,"author":{"gitId":"Zhengwinter"},"content":" echoLine \u003d input.nextLine();","lastModifiedDate":"2024-01-31"},{"lineNumber":51,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-01-24"},{"lineNumber":52,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-01-24"},{"lineNumber":53,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-01-24"},{"lineNumber":54,"author":{"gitId":"Zhengwinter"},"content":" // Method for adding tasks by handling user commands","lastModifiedDate":"2024-02-01"},{"lineNumber":55,"author":{"gitId":"Zhengwinter"},"content":" private static void addTasks() {","lastModifiedDate":"2024-01-31"},{"lineNumber":56,"author":{"gitId":"Zhengwinter"},"content":" String line \u003d \"-----------------------------------\\n\";","lastModifiedDate":"2024-01-31"},{"lineNumber":57,"author":{"gitId":"Zhengwinter"},"content":" String indent \u003d \" \";","lastModifiedDate":"2024-01-31"},{"lineNumber":58,"author":{"gitId":"Zhengwinter"},"content":" Task[] taskList \u003d new Task[100];","lastModifiedDate":"2024-02-01"},{"lineNumber":59,"author":{"gitId":"Zhengwinter"},"content":" int taskIndex \u003d 0;","lastModifiedDate":"2024-01-31"},{"lineNumber":60,"author":{"gitId":"Zhengwinter"},"content":" Scanner input \u003d new Scanner(System.in);","lastModifiedDate":"2024-01-31"},{"lineNumber":61,"author":{"gitId":"Zhengwinter"},"content":" while (true) {","lastModifiedDate":"2024-01-31"},{"lineNumber":62,"author":{"gitId":"Zhengwinter"},"content":" String command \u003d input.nextLine();","lastModifiedDate":"2024-01-31"},{"lineNumber":63,"author":{"gitId":"Zhengwinter"},"content":" Task newTask \u003d new Task(taskIndex+1,false,command);","lastModifiedDate":"2024-02-01"},{"lineNumber":64,"author":{"gitId":"Zhengwinter"},"content":" taskList[taskIndex] \u003d newTask;","lastModifiedDate":"2024-02-01"},{"lineNumber":65,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-01"},{"lineNumber":66,"author":{"gitId":"Zhengwinter"},"content":" switch(command) {","lastModifiedDate":"2024-02-01"},{"lineNumber":67,"author":{"gitId":"Zhengwinter"},"content":" // Cases include farewell and list commands","lastModifiedDate":"2024-02-01"},{"lineNumber":68,"author":{"gitId":"Zhengwinter"},"content":" case \"bye\":","lastModifiedDate":"2024-02-01"},{"lineNumber":69,"author":{"gitId":"Zhengwinter"},"content":" break;","lastModifiedDate":"2024-01-31"},{"lineNumber":70,"author":{"gitId":"Zhengwinter"},"content":" case \"Bye\":","lastModifiedDate":"2024-02-01"},{"lineNumber":71,"author":{"gitId":"Zhengwinter"},"content":" break;","lastModifiedDate":"2024-02-01"},{"lineNumber":72,"author":{"gitId":"Zhengwinter"},"content":" case \"BYE\":","lastModifiedDate":"2024-02-01"},{"lineNumber":73,"author":{"gitId":"Zhengwinter"},"content":" break;","lastModifiedDate":"2024-02-01"},{"lineNumber":74,"author":{"gitId":"Zhengwinter"},"content":" case \"list\":","lastModifiedDate":"2024-02-01"},{"lineNumber":75,"author":{"gitId":"Zhengwinter"},"content":" displayList(taskList,taskIndex);","lastModifiedDate":"2024-02-01"},{"lineNumber":76,"author":{"gitId":"Zhengwinter"},"content":" continue;","lastModifiedDate":"2024-02-01"},{"lineNumber":77,"author":{"gitId":"Zhengwinter"},"content":" case \"List\":","lastModifiedDate":"2024-02-01"},{"lineNumber":78,"author":{"gitId":"Zhengwinter"},"content":" displayList(taskList,taskIndex);","lastModifiedDate":"2024-02-01"},{"lineNumber":79,"author":{"gitId":"Zhengwinter"},"content":" continue;","lastModifiedDate":"2024-02-01"},{"lineNumber":80,"author":{"gitId":"Zhengwinter"},"content":" case \"LIST\":","lastModifiedDate":"2024-02-01"},{"lineNumber":81,"author":{"gitId":"Zhengwinter"},"content":" displayList(taskList,taskIndex);","lastModifiedDate":"2024-02-01"},{"lineNumber":82,"author":{"gitId":"Zhengwinter"},"content":" continue;","lastModifiedDate":"2024-02-01"},{"lineNumber":83,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-01"},{"lineNumber":84,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-01-31"},{"lineNumber":85,"author":{"gitId":"Zhengwinter"},"content":" switch(command.substring(0,command.indexOf(\" \"))) {","lastModifiedDate":"2024-02-01"},{"lineNumber":86,"author":{"gitId":"Zhengwinter"},"content":" // Cases for marking tasks","lastModifiedDate":"2024-02-01"},{"lineNumber":87,"author":{"gitId":"Zhengwinter"},"content":" case \"mark\":","lastModifiedDate":"2024-02-01"},{"lineNumber":88,"author":{"gitId":"Zhengwinter"},"content":" taskList[Integer.parseInt(command.substring(5,command.length()))-1].mark();","lastModifiedDate":"2024-02-01"},{"lineNumber":89,"author":{"gitId":"Zhengwinter"},"content":" continue;","lastModifiedDate":"2024-02-01"},{"lineNumber":90,"author":{"gitId":"Zhengwinter"},"content":" case \"unmark\":","lastModifiedDate":"2024-02-01"},{"lineNumber":91,"author":{"gitId":"Zhengwinter"},"content":" taskList[Integer.parseInt(command.substring(7,command.length()))-1].unmark();","lastModifiedDate":"2024-02-01"},{"lineNumber":92,"author":{"gitId":"Zhengwinter"},"content":" continue;","lastModifiedDate":"2024-02-01"},{"lineNumber":93,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":94,"author":{"gitId":"Zhengwinter"},"content":" taskIndex++;","lastModifiedDate":"2024-02-01"},{"lineNumber":95,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-02-01"},{"lineNumber":96,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(indent);","lastModifiedDate":"2024-02-01"},{"lineNumber":97,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(\"added: \" + command);","lastModifiedDate":"2024-02-01"},{"lineNumber":98,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-02-01"},{"lineNumber":99,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-01"},{"lineNumber":100,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":101,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":102,"author":{"gitId":"Zhengwinter"},"content":" // Method for displaying list","lastModifiedDate":"2024-02-01"},{"lineNumber":103,"author":{"gitId":"Zhengwinter"},"content":" private static void displayList(Task[] taskList, int taskIndex) {","lastModifiedDate":"2024-02-01"},{"lineNumber":104,"author":{"gitId":"Zhengwinter"},"content":" String line \u003d \"-----------------------------------\\n\";","lastModifiedDate":"2024-02-01"},{"lineNumber":105,"author":{"gitId":"Zhengwinter"},"content":" String indent \u003d \" \";","lastModifiedDate":"2024-02-01"},{"lineNumber":106,"author":{"gitId":"Zhengwinter"},"content":" for (int i \u003d 0; i \u003c taskIndex; i++) {","lastModifiedDate":"2024-01-31"},{"lineNumber":107,"author":{"gitId":"Zhengwinter"},"content":" String status;","lastModifiedDate":"2024-02-01"},{"lineNumber":108,"author":{"gitId":"Zhengwinter"},"content":" if (taskList[i].isMarked()) {","lastModifiedDate":"2024-02-01"},{"lineNumber":109,"author":{"gitId":"Zhengwinter"},"content":" status \u003d \"[X]\";","lastModifiedDate":"2024-02-01"},{"lineNumber":110,"author":{"gitId":"Zhengwinter"},"content":" } else {","lastModifiedDate":"2024-02-01"},{"lineNumber":111,"author":{"gitId":"Zhengwinter"},"content":" status \u003d \"[ ]\";","lastModifiedDate":"2024-02-01"},{"lineNumber":112,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":113,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(indent);","lastModifiedDate":"2024-01-31"},{"lineNumber":114,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(taskList[i].getOrder() + \". \" + status + \" \" + taskList[i].getTaskName());","lastModifiedDate":"2024-02-01"},{"lineNumber":115,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-01-31"},{"lineNumber":116,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-01-31"},{"lineNumber":117,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-01-31"},{"lineNumber":118,"author":{"gitId":"Zhengwinter"},"content":" // Class for Task object","lastModifiedDate":"2024-02-01"},{"lineNumber":119,"author":{"gitId":"Zhengwinter"},"content":" private static class Task {","lastModifiedDate":"2024-02-01"},{"lineNumber":120,"author":{"gitId":"Zhengwinter"},"content":" boolean marked;","lastModifiedDate":"2024-02-01"},{"lineNumber":121,"author":{"gitId":"Zhengwinter"},"content":" int order;","lastModifiedDate":"2024-02-01"},{"lineNumber":122,"author":{"gitId":"Zhengwinter"},"content":" String taskName;","lastModifiedDate":"2024-02-01"},{"lineNumber":123,"author":{"gitId":"Zhengwinter"},"content":" Task(int order ,boolean marked,String taskName) {","lastModifiedDate":"2024-02-01"},{"lineNumber":124,"author":{"gitId":"Zhengwinter"},"content":" this.order \u003d order;","lastModifiedDate":"2024-02-01"},{"lineNumber":125,"author":{"gitId":"Zhengwinter"},"content":" this.marked \u003d marked;","lastModifiedDate":"2024-02-01"},{"lineNumber":126,"author":{"gitId":"Zhengwinter"},"content":" this.taskName \u003d taskName;","lastModifiedDate":"2024-02-01"},{"lineNumber":127,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":128,"author":{"gitId":"Zhengwinter"},"content":" // Method for marking a task complete","lastModifiedDate":"2024-02-01"},{"lineNumber":129,"author":{"gitId":"Zhengwinter"},"content":" private void mark() {","lastModifiedDate":"2024-02-01"},{"lineNumber":130,"author":{"gitId":"Zhengwinter"},"content":" String line \u003d \"-----------------------------------\\n\";","lastModifiedDate":"2024-02-01"},{"lineNumber":131,"author":{"gitId":"Zhengwinter"},"content":" String indent \u003d \" \";","lastModifiedDate":"2024-02-01"},{"lineNumber":132,"author":{"gitId":"Zhengwinter"},"content":" this.marked \u003d true;","lastModifiedDate":"2024-02-01"},{"lineNumber":133,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(\"Woohoo! I\u0027ve marked this task as done:\");","lastModifiedDate":"2024-02-01"},{"lineNumber":134,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(indent);","lastModifiedDate":"2024-02-01"},{"lineNumber":135,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(\"[X] \"+ this.taskName);","lastModifiedDate":"2024-02-01"},{"lineNumber":136,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-01-31"},{"lineNumber":137,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":138,"author":{"gitId":"Zhengwinter"},"content":" // Method for unmarking a class","lastModifiedDate":"2024-02-01"},{"lineNumber":139,"author":{"gitId":"Zhengwinter"},"content":" private void unmark() {","lastModifiedDate":"2024-02-01"},{"lineNumber":140,"author":{"gitId":"Zhengwinter"},"content":" String line \u003d \"-----------------------------------\\n\";","lastModifiedDate":"2024-02-01"},{"lineNumber":141,"author":{"gitId":"Zhengwinter"},"content":" String indent \u003d \" \";","lastModifiedDate":"2024-02-01"},{"lineNumber":142,"author":{"gitId":"Zhengwinter"},"content":" this.marked \u003d false;","lastModifiedDate":"2024-02-01"},{"lineNumber":143,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(\"Alright! I\u0027ve marked this task as incomplete:\");","lastModifiedDate":"2024-02-01"},{"lineNumber":144,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(indent);","lastModifiedDate":"2024-01-31"},{"lineNumber":145,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(\"[ ] \"+ this.taskName);","lastModifiedDate":"2024-02-01"},{"lineNumber":146,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-01-31"},{"lineNumber":147,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":148,"author":{"gitId":"Zhengwinter"},"content":" // Getter method for order","lastModifiedDate":"2024-02-01"},{"lineNumber":149,"author":{"gitId":"Zhengwinter"},"content":" public int getOrder() {","lastModifiedDate":"2024-02-01"},{"lineNumber":150,"author":{"gitId":"Zhengwinter"},"content":" return order;","lastModifiedDate":"2024-02-01"},{"lineNumber":151,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":152,"author":{"gitId":"Zhengwinter"},"content":" // Getter method for taskName","lastModifiedDate":"2024-02-01"},{"lineNumber":153,"author":{"gitId":"Zhengwinter"},"content":" public String getTaskName() {","lastModifiedDate":"2024-02-01"},{"lineNumber":154,"author":{"gitId":"Zhengwinter"},"content":" return taskName;","lastModifiedDate":"2024-02-01"},{"lineNumber":155,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-01"},{"lineNumber":156,"author":{"gitId":"Zhengwinter"},"content":" // Getter method for marked","lastModifiedDate":"2024-02-01"},{"lineNumber":157,"author":{"gitId":"Zhengwinter"},"content":" public boolean isMarked() {","lastModifiedDate":"2024-02-01"},{"lineNumber":158,"author":{"gitId":"Zhengwinter"},"content":" return marked;","lastModifiedDate":"2024-02-01"},{"lineNumber":159,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-01-31"},{"lineNumber":160,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-01-31"},{"lineNumber":161,"author":{"gitId":"Zhengwinter"},"content":"}","lastModifiedDate":"2024-01-31"}],"authorContributionMap":{"Zhengwinter":161}}] +[{"path":"src/main/java/Commands.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"public enum Commands {","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":" BYE,LIST,MARK,UNMARK,INVALID,TODO,DEADLINE,EVENT","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Zhengwinter"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Zhengwinter":3}},{"path":"src/main/java/Deadline.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"public class Deadline extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":" protected String deadline;","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Zhengwinter"},"content":" public Deadline (int order,boolean marked, String deadlineName, String deadline) {","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Zhengwinter"},"content":" super(order,marked,deadlineName);","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Zhengwinter"},"content":" this.deadline \u003d deadline;","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Zhengwinter"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Zhengwinter"},"content":" public String getEndTime(){","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Zhengwinter"},"content":" return deadline;","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Zhengwinter"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Zhengwinter"},"content":" public String getType() {","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Zhengwinter"},"content":" return \"D\";","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"Zhengwinter"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"Zhengwinter"},"content":" public String displayCurrentTask () {","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"Zhengwinter"},"content":" String typeCheckbox \u003d \"[D]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"Zhengwinter"},"content":" return typeCheckbox + \" \" + this.doneCheckbox + this.taskName;","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"Zhengwinter"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Zhengwinter":23}},{"path":"src/main/java/Event.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"public class Event extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":" protected String startTime;","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Zhengwinter"},"content":" protected String endTime;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Zhengwinter"},"content":" public Event (int order,boolean marked, String eventName, String startTime, String endTime) {","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Zhengwinter"},"content":" super(order,marked,eventName);","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Zhengwinter"},"content":" this.startTime \u003d startTime;","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Zhengwinter"},"content":" this.endTime \u003d endTime;","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Zhengwinter"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Zhengwinter"},"content":" public String getEndTime() {","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Zhengwinter"},"content":" return endTime;","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Zhengwinter"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Zhengwinter"},"content":" public String getStartTime() {","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"Zhengwinter"},"content":" return startTime;","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"Zhengwinter"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"Zhengwinter"},"content":" public String getType() {","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"Zhengwinter"},"content":" return \"E\";","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"Zhengwinter"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"Zhengwinter"},"content":" public String displayCurrentTask () {","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Zhengwinter"},"content":" String typeCheckbox \u003d \"[E]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Zhengwinter"},"content":" return typeCheckbox + \" \" + this.doneCheckbox + this.taskName;","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"Zhengwinter"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Zhengwinter":29}},{"path":"src/main/java/Manager.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Zhengwinter"},"content":"public class Manager {","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Zhengwinter"},"content":" private static int taskIndex \u003d 0;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Zhengwinter"},"content":" private static final Task[] taskList \u003d new Task[100];","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Zhengwinter"},"content":" public static void acceptInput () {","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Zhengwinter"},"content":" Scanner input \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Zhengwinter"},"content":" String inputString \u003d \" \";","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Zhengwinter"},"content":" Commands action;","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Zhengwinter"},"content":" boolean flag \u003d true;","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Zhengwinter"},"content":" do {","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Zhengwinter"},"content":" inputString \u003d input.nextLine();","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Zhengwinter"},"content":" action \u003d classifyCommand(inputString);","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"Zhengwinter"},"content":" int spaceIndex \u003d inputString.indexOf(\" \");","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"Zhengwinter"},"content":" int slashIndex \u003d inputString.indexOf(\"/\");","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"Zhengwinter"},"content":" if (slashIndex \u003d\u003d -1) {","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"Zhengwinter"},"content":" slashIndex \u003d inputString.length();","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"Zhengwinter"},"content":" switch (action) {","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"Zhengwinter"},"content":" case TODO:","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Zhengwinter"},"content":" case DEADLINE:","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Zhengwinter"},"content":" case EVENT:","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Zhengwinter"},"content":" addTasks(action,inputString.substring(spaceIndex,slashIndex),inputString,slashIndex);","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"Zhengwinter"},"content":" continue;","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"Zhengwinter"},"content":" case BYE:","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"Zhengwinter"},"content":" sayBye();","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"Zhengwinter"},"content":" flag \u003d false;","lastModifiedDate":"2024-02-09"},{"lineNumber":33,"author":{"gitId":"Zhengwinter"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"Zhengwinter"},"content":" case LIST:","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"Zhengwinter"},"content":" displayList(taskList, taskIndex);","lastModifiedDate":"2024-02-09"},{"lineNumber":36,"author":{"gitId":"Zhengwinter"},"content":" continue;","lastModifiedDate":"2024-02-09"},{"lineNumber":37,"author":{"gitId":"Zhengwinter"},"content":" case MARK:","lastModifiedDate":"2024-02-09"},{"lineNumber":38,"author":{"gitId":"Zhengwinter"},"content":" taskList[Integer.parseInt(inputString.substring(5)) - 1].mark();","lastModifiedDate":"2024-02-09"},{"lineNumber":39,"author":{"gitId":"Zhengwinter"},"content":" continue;","lastModifiedDate":"2024-02-09"},{"lineNumber":40,"author":{"gitId":"Zhengwinter"},"content":" case UNMARK:","lastModifiedDate":"2024-02-09"},{"lineNumber":41,"author":{"gitId":"Zhengwinter"},"content":" taskList[Integer.parseInt(inputString.substring(7)) - 1].unmark();","lastModifiedDate":"2024-02-09"},{"lineNumber":42,"author":{"gitId":"Zhengwinter"},"content":" continue;","lastModifiedDate":"2024-02-09"},{"lineNumber":43,"author":{"gitId":"Zhengwinter"},"content":" case INVALID:","lastModifiedDate":"2024-02-09"},{"lineNumber":44,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(\"Your command was invalid.\");","lastModifiedDate":"2024-02-09"},{"lineNumber":45,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":46,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":47,"author":{"gitId":"Zhengwinter"},"content":" } while (flag);","lastModifiedDate":"2024-02-09"},{"lineNumber":48,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":49,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":50,"author":{"gitId":"Zhengwinter"},"content":" private static void addTasks(Commands taskType, String taskName, String inputString, int slashIndex) {","lastModifiedDate":"2024-02-09"},{"lineNumber":51,"author":{"gitId":"Zhengwinter"},"content":" String line \u003d \"-----------------------------------\\n\";","lastModifiedDate":"2024-02-09"},{"lineNumber":52,"author":{"gitId":"Zhengwinter"},"content":" String indent \u003d \" \";","lastModifiedDate":"2024-02-09"},{"lineNumber":53,"author":{"gitId":"Zhengwinter"},"content":" switch (taskType) {","lastModifiedDate":"2024-02-09"},{"lineNumber":54,"author":{"gitId":"Zhengwinter"},"content":" case TODO:","lastModifiedDate":"2024-02-09"},{"lineNumber":55,"author":{"gitId":"Zhengwinter"},"content":" ToDo newToDo \u003d new ToDo(taskIndex, false, taskName);","lastModifiedDate":"2024-02-09"},{"lineNumber":56,"author":{"gitId":"Zhengwinter"},"content":" taskList[taskIndex] \u003d newToDo;","lastModifiedDate":"2024-02-09"},{"lineNumber":57,"author":{"gitId":"Zhengwinter"},"content":" taskIndex++;","lastModifiedDate":"2024-02-09"},{"lineNumber":58,"author":{"gitId":"Zhengwinter"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":59,"author":{"gitId":"Zhengwinter"},"content":" case DEADLINE:","lastModifiedDate":"2024-02-09"},{"lineNumber":60,"author":{"gitId":"Zhengwinter"},"content":" String deadline \u003d inputString.substring(slashIndex+3);","lastModifiedDate":"2024-02-09"},{"lineNumber":61,"author":{"gitId":"Zhengwinter"},"content":" Deadline newDeadline \u003d new Deadline(taskIndex,false,taskName,deadline);","lastModifiedDate":"2024-02-09"},{"lineNumber":62,"author":{"gitId":"Zhengwinter"},"content":" taskList[taskIndex] \u003d newDeadline;","lastModifiedDate":"2024-02-09"},{"lineNumber":63,"author":{"gitId":"Zhengwinter"},"content":" taskIndex++;","lastModifiedDate":"2024-02-09"},{"lineNumber":64,"author":{"gitId":"Zhengwinter"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":65,"author":{"gitId":"Zhengwinter"},"content":" case EVENT:","lastModifiedDate":"2024-02-09"},{"lineNumber":66,"author":{"gitId":"Zhengwinter"},"content":" String startAndEnd \u003d inputString.substring(slashIndex+5);","lastModifiedDate":"2024-02-09"},{"lineNumber":67,"author":{"gitId":"Zhengwinter"},"content":" String startTime \u003d startAndEnd.substring(0,startAndEnd.indexOf(\"/\"));","lastModifiedDate":"2024-02-09"},{"lineNumber":68,"author":{"gitId":"Zhengwinter"},"content":" String endTime \u003d startAndEnd.substring(startAndEnd.indexOf(\"/\")+3);","lastModifiedDate":"2024-02-09"},{"lineNumber":69,"author":{"gitId":"Zhengwinter"},"content":" Event newEvent \u003d new Event(taskIndex,false,taskName,startTime,endTime);","lastModifiedDate":"2024-02-09"},{"lineNumber":70,"author":{"gitId":"Zhengwinter"},"content":" taskList[taskIndex] \u003d newEvent;","lastModifiedDate":"2024-02-09"},{"lineNumber":71,"author":{"gitId":"Zhengwinter"},"content":" taskIndex++;","lastModifiedDate":"2024-02-09"},{"lineNumber":72,"author":{"gitId":"Zhengwinter"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":73,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":74,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":75,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":76,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-02-09"},{"lineNumber":77,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(indent);","lastModifiedDate":"2024-02-09"},{"lineNumber":78,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(\"OK, I\u0027ve added: \" + taskName);","lastModifiedDate":"2024-02-09"},{"lineNumber":79,"author":{"gitId":"Zhengwinter"},"content":" if (taskList[taskIndex-1].getType().equals(\"D\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":80,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(indent + taskList[taskIndex-1].displayCurrentTask() + \" (by: \" + taskList[taskIndex-1].getEndTime() +\")\");","lastModifiedDate":"2024-02-09"},{"lineNumber":81,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":82,"author":{"gitId":"Zhengwinter"},"content":" }else if (taskList[taskIndex-1].getType().equals(\"E\")){","lastModifiedDate":"2024-02-09"},{"lineNumber":83,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(indent + taskList[taskIndex-1].displayCurrentTask() + \" (from: \" + taskList[taskIndex-1].getStartTime()","lastModifiedDate":"2024-02-09"},{"lineNumber":84,"author":{"gitId":"Zhengwinter"},"content":" + \" to: \" + taskList[taskIndex-1].getEndTime() + \")\");","lastModifiedDate":"2024-02-09"},{"lineNumber":85,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":86,"author":{"gitId":"Zhengwinter"},"content":" }else {","lastModifiedDate":"2024-02-09"},{"lineNumber":87,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(indent + taskList[taskIndex-1].displayCurrentTask());","lastModifiedDate":"2024-02-09"},{"lineNumber":88,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":89,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":90,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(indent + \"Now, you have \" + taskIndex+ \" tasks in your list.\");","lastModifiedDate":"2024-02-09"},{"lineNumber":91,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-02-09"},{"lineNumber":92,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":93,"author":{"gitId":"Zhengwinter"},"content":" private static Commands classifyCommand(String inputString) {","lastModifiedDate":"2024-02-09"},{"lineNumber":94,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":95,"author":{"gitId":"Zhengwinter"},"content":" Commands command;","lastModifiedDate":"2024-02-09"},{"lineNumber":96,"author":{"gitId":"Zhengwinter"},"content":" switch (inputString) {","lastModifiedDate":"2024-02-09"},{"lineNumber":97,"author":{"gitId":"Zhengwinter"},"content":" // Cases include farewell and list commands","lastModifiedDate":"2024-02-09"},{"lineNumber":98,"author":{"gitId":"Zhengwinter"},"content":" case \"bye\":","lastModifiedDate":"2024-02-09"},{"lineNumber":99,"author":{"gitId":"Zhengwinter"},"content":" case \"Bye\":","lastModifiedDate":"2024-02-09"},{"lineNumber":100,"author":{"gitId":"Zhengwinter"},"content":" case \"BYE\":","lastModifiedDate":"2024-02-09"},{"lineNumber":101,"author":{"gitId":"Zhengwinter"},"content":" command \u003d Commands.BYE;","lastModifiedDate":"2024-02-09"},{"lineNumber":102,"author":{"gitId":"Zhengwinter"},"content":" return command;","lastModifiedDate":"2024-02-09"},{"lineNumber":103,"author":{"gitId":"Zhengwinter"},"content":" case \"list\":","lastModifiedDate":"2024-02-09"},{"lineNumber":104,"author":{"gitId":"Zhengwinter"},"content":" case \"List\":","lastModifiedDate":"2024-02-09"},{"lineNumber":105,"author":{"gitId":"Zhengwinter"},"content":" case \"LIST\":","lastModifiedDate":"2024-02-09"},{"lineNumber":106,"author":{"gitId":"Zhengwinter"},"content":" command \u003d Commands.LIST;","lastModifiedDate":"2024-02-09"},{"lineNumber":107,"author":{"gitId":"Zhengwinter"},"content":" return command;","lastModifiedDate":"2024-02-09"},{"lineNumber":108,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":109,"author":{"gitId":"Zhengwinter"},"content":" switch (inputString.substring(0, inputString.indexOf(\" \"))) {","lastModifiedDate":"2024-02-09"},{"lineNumber":110,"author":{"gitId":"Zhengwinter"},"content":" case \"todo\":","lastModifiedDate":"2024-02-09"},{"lineNumber":111,"author":{"gitId":"Zhengwinter"},"content":" command \u003d Commands.TODO;","lastModifiedDate":"2024-02-09"},{"lineNumber":112,"author":{"gitId":"Zhengwinter"},"content":" return command;","lastModifiedDate":"2024-02-09"},{"lineNumber":113,"author":{"gitId":"Zhengwinter"},"content":" case \"deadline\":","lastModifiedDate":"2024-02-09"},{"lineNumber":114,"author":{"gitId":"Zhengwinter"},"content":" command \u003d Commands.DEADLINE;","lastModifiedDate":"2024-02-09"},{"lineNumber":115,"author":{"gitId":"Zhengwinter"},"content":" return command;","lastModifiedDate":"2024-02-09"},{"lineNumber":116,"author":{"gitId":"Zhengwinter"},"content":" case \"event\":","lastModifiedDate":"2024-02-09"},{"lineNumber":117,"author":{"gitId":"Zhengwinter"},"content":" command \u003d Commands.EVENT;","lastModifiedDate":"2024-02-09"},{"lineNumber":118,"author":{"gitId":"Zhengwinter"},"content":" return command;","lastModifiedDate":"2024-02-09"},{"lineNumber":119,"author":{"gitId":"Zhengwinter"},"content":" // Cases for marking tasks","lastModifiedDate":"2024-02-09"},{"lineNumber":120,"author":{"gitId":"Zhengwinter"},"content":" case \"mark\":","lastModifiedDate":"2024-02-09"},{"lineNumber":121,"author":{"gitId":"Zhengwinter"},"content":" command \u003d Commands.MARK;","lastModifiedDate":"2024-02-09"},{"lineNumber":122,"author":{"gitId":"Zhengwinter"},"content":" return command;","lastModifiedDate":"2024-02-09"},{"lineNumber":123,"author":{"gitId":"Zhengwinter"},"content":" case \"unmark\":","lastModifiedDate":"2024-02-09"},{"lineNumber":124,"author":{"gitId":"Zhengwinter"},"content":" command \u003d Commands.UNMARK;","lastModifiedDate":"2024-02-09"},{"lineNumber":125,"author":{"gitId":"Zhengwinter"},"content":" return command;","lastModifiedDate":"2024-02-09"},{"lineNumber":126,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":127,"author":{"gitId":"Zhengwinter"},"content":" return Commands.INVALID;","lastModifiedDate":"2024-02-09"},{"lineNumber":128,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":129,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":130,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":131,"author":{"gitId":"Zhengwinter"},"content":" // Method for displaying list","lastModifiedDate":"2024-02-09"},{"lineNumber":132,"author":{"gitId":"Zhengwinter"},"content":" private static void displayList(Task[] taskList, int taskIndex) {","lastModifiedDate":"2024-02-09"},{"lineNumber":133,"author":{"gitId":"Zhengwinter"},"content":" String line \u003d \"-----------------------------------\\n\";","lastModifiedDate":"2024-02-09"},{"lineNumber":134,"author":{"gitId":"Zhengwinter"},"content":" String indent \u003d \" \";","lastModifiedDate":"2024-02-09"},{"lineNumber":135,"author":{"gitId":"Zhengwinter"},"content":" for (int i \u003d 0; i \u003c taskIndex; i++) {","lastModifiedDate":"2024-02-09"},{"lineNumber":136,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(indent);","lastModifiedDate":"2024-02-09"},{"lineNumber":137,"author":{"gitId":"Zhengwinter"},"content":" if (taskList[i].getType().equals(\"D\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":138,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(taskList[i].getOrder()+1 + \". [D] \" + taskList[i].doneCheckbox + \" \"","lastModifiedDate":"2024-02-09"},{"lineNumber":139,"author":{"gitId":"Zhengwinter"},"content":" + taskList[i].getTaskName() + \" (by: \" + taskList[i].getEndTime() +\")\");","lastModifiedDate":"2024-02-09"},{"lineNumber":140,"author":{"gitId":"Zhengwinter"},"content":" }else if (taskList[i].getType().equals(\"E\")){","lastModifiedDate":"2024-02-09"},{"lineNumber":141,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(taskList[i].getOrder()+1 + \". [E] \" + taskList[i].doneCheckbox + \" \"","lastModifiedDate":"2024-02-09"},{"lineNumber":142,"author":{"gitId":"Zhengwinter"},"content":" + taskList[i].getTaskName() + \" (from: \" + taskList[i].getStartTime()","lastModifiedDate":"2024-02-09"},{"lineNumber":143,"author":{"gitId":"Zhengwinter"},"content":" + \" to: \" + taskList[i].getEndTime() + \")\");","lastModifiedDate":"2024-02-09"},{"lineNumber":144,"author":{"gitId":"Zhengwinter"},"content":" }else {","lastModifiedDate":"2024-02-09"},{"lineNumber":145,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(taskList[i].getOrder()+1 + \". [T]\" + taskList[i].doneCheckbox + \" \"","lastModifiedDate":"2024-02-09"},{"lineNumber":146,"author":{"gitId":"Zhengwinter"},"content":" + taskList[i].getTaskName());","lastModifiedDate":"2024-02-09"},{"lineNumber":147,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":148,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":149,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-02-09"},{"lineNumber":150,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":151,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":152,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":153,"author":{"gitId":"Zhengwinter"},"content":" // Method for farewell message","lastModifiedDate":"2024-02-09"},{"lineNumber":154,"author":{"gitId":"Zhengwinter"},"content":" private static void sayBye() {","lastModifiedDate":"2024-02-09"},{"lineNumber":155,"author":{"gitId":"Zhengwinter"},"content":" String line \u003d \"-----------------------------------\\n\";","lastModifiedDate":"2024-02-09"},{"lineNumber":156,"author":{"gitId":"Zhengwinter"},"content":" String farewell \u003d \"Farewell. Hope to see you again soon!\";","lastModifiedDate":"2024-02-09"},{"lineNumber":157,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-02-09"},{"lineNumber":158,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(farewell);","lastModifiedDate":"2024-02-09"},{"lineNumber":159,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-02-09"},{"lineNumber":160,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":161,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":162,"author":{"gitId":"Zhengwinter"},"content":" // Method for echo, not used after Level-1","lastModifiedDate":"2024-02-09"},{"lineNumber":163,"author":{"gitId":"Zhengwinter"},"content":" private static void echo() {","lastModifiedDate":"2024-02-09"},{"lineNumber":164,"author":{"gitId":"Zhengwinter"},"content":" String line \u003d \"-----------------------------------\\n\";","lastModifiedDate":"2024-02-09"},{"lineNumber":165,"author":{"gitId":"Zhengwinter"},"content":" String indent \u003d \" \";","lastModifiedDate":"2024-02-09"},{"lineNumber":166,"author":{"gitId":"Zhengwinter"},"content":" String echoLine;","lastModifiedDate":"2024-02-09"},{"lineNumber":167,"author":{"gitId":"Zhengwinter"},"content":" Scanner input \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-09"},{"lineNumber":168,"author":{"gitId":"Zhengwinter"},"content":" echoLine \u003d input.nextLine();","lastModifiedDate":"2024-02-09"},{"lineNumber":169,"author":{"gitId":"Zhengwinter"},"content":" while (true) {","lastModifiedDate":"2024-02-09"},{"lineNumber":170,"author":{"gitId":"Zhengwinter"},"content":" if(echoLine.equals(\"bye\") || echoLine.equals(\"Bye\") || echoLine.equals(\"BYE\")) {","lastModifiedDate":"2024-02-09"},{"lineNumber":171,"author":{"gitId":"Zhengwinter"},"content":" break;","lastModifiedDate":"2024-02-09"},{"lineNumber":172,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":173,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-02-09"},{"lineNumber":174,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(indent);","lastModifiedDate":"2024-02-09"},{"lineNumber":175,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(echoLine);","lastModifiedDate":"2024-02-09"},{"lineNumber":176,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-02-09"},{"lineNumber":177,"author":{"gitId":"Zhengwinter"},"content":" echoLine \u003d input.nextLine();","lastModifiedDate":"2024-02-09"},{"lineNumber":178,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":179,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":180,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":181,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":182,"author":{"gitId":"Zhengwinter"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Zhengwinter":182}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"public class Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":" boolean marked;","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Zhengwinter"},"content":" int order;","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Zhengwinter"},"content":" String taskName;","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Zhengwinter"},"content":" String doneCheckbox \u003d\"[ ]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Zhengwinter"},"content":" Task(int order, boolean marked, String taskName) {","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Zhengwinter"},"content":" this.order \u003d order;","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Zhengwinter"},"content":" this.marked \u003d marked;","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Zhengwinter"},"content":" this.taskName \u003d taskName;","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Zhengwinter"},"content":" // Method for marking a task complete","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Zhengwinter"},"content":" public void mark() {","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Zhengwinter"},"content":" String line \u003d \"-----------------------------------\\n\";","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"Zhengwinter"},"content":" String indent \u003d \" \";","lastModifiedDate":"2024-02-09"},{"lineNumber":18,"author":{"gitId":"Zhengwinter"},"content":" this.marked \u003d true;","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"Zhengwinter"},"content":" this.doneCheckbox \u003d \"[X]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":20,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(\"Woohoo! I\u0027ve marked this task as done:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":21,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(indent);","lastModifiedDate":"2024-02-09"},{"lineNumber":22,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(this.doneCheckbox + this.taskName);","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"Zhengwinter"},"content":" // Method for unmarking a class","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Zhengwinter"},"content":" public void unmark() {","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Zhengwinter"},"content":" String line \u003d \"-----------------------------------\\n\";","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Zhengwinter"},"content":" String indent \u003d \" \";","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"Zhengwinter"},"content":" this.marked \u003d false;","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"Zhengwinter"},"content":" this.doneCheckbox \u003d \"[ ]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":31,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(\"Alright! I\u0027ve marked this task as incomplete:\");","lastModifiedDate":"2024-02-09"},{"lineNumber":32,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(indent);","lastModifiedDate":"2024-02-09"},{"lineNumber":33,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(this.doneCheckbox+ \" \" + this.taskName);","lastModifiedDate":"2024-02-09"},{"lineNumber":34,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-02-09"},{"lineNumber":35,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":36,"author":{"gitId":"Zhengwinter"},"content":" // Getter method for order","lastModifiedDate":"2024-02-09"},{"lineNumber":37,"author":{"gitId":"Zhengwinter"},"content":" public int getOrder() {","lastModifiedDate":"2024-02-09"},{"lineNumber":38,"author":{"gitId":"Zhengwinter"},"content":" return order;","lastModifiedDate":"2024-02-09"},{"lineNumber":39,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":40,"author":{"gitId":"Zhengwinter"},"content":" // Getter method for taskName","lastModifiedDate":"2024-02-09"},{"lineNumber":41,"author":{"gitId":"Zhengwinter"},"content":" public String getTaskName() {","lastModifiedDate":"2024-02-09"},{"lineNumber":42,"author":{"gitId":"Zhengwinter"},"content":" return taskName;","lastModifiedDate":"2024-02-09"},{"lineNumber":43,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":44,"author":{"gitId":"Zhengwinter"},"content":" // Getter method for marked","lastModifiedDate":"2024-02-09"},{"lineNumber":45,"author":{"gitId":"Zhengwinter"},"content":" public boolean isMarked() {","lastModifiedDate":"2024-02-09"},{"lineNumber":46,"author":{"gitId":"Zhengwinter"},"content":" return marked;","lastModifiedDate":"2024-02-09"},{"lineNumber":47,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":48,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":49,"author":{"gitId":"Zhengwinter"},"content":" public String getType() {","lastModifiedDate":"2024-02-09"},{"lineNumber":50,"author":{"gitId":"Zhengwinter"},"content":" return \"\";","lastModifiedDate":"2024-02-09"},{"lineNumber":51,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":52,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":53,"author":{"gitId":"Zhengwinter"},"content":" public String displayCurrentTask () {","lastModifiedDate":"2024-02-09"},{"lineNumber":54,"author":{"gitId":"Zhengwinter"},"content":" String checkboxes \u003d \"[ ] [ ]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":55,"author":{"gitId":"Zhengwinter"},"content":" return checkboxes + taskName;","lastModifiedDate":"2024-02-09"},{"lineNumber":56,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":57,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":58,"author":{"gitId":"Zhengwinter"},"content":" public String getEndTime() {","lastModifiedDate":"2024-02-09"},{"lineNumber":59,"author":{"gitId":"Zhengwinter"},"content":" return \"\";","lastModifiedDate":"2024-02-09"},{"lineNumber":60,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":61,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":62,"author":{"gitId":"Zhengwinter"},"content":" public String getStartTime() {","lastModifiedDate":"2024-02-09"},{"lineNumber":63,"author":{"gitId":"Zhengwinter"},"content":" return \"\";","lastModifiedDate":"2024-02-09"},{"lineNumber":64,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":65,"author":{"gitId":"Zhengwinter"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Zhengwinter":65}},{"path":"src/main/java/ToDo.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"public class ToDo extends Task {","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":" public ToDo (int order,boolean marked, String toDoName) {","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Zhengwinter"},"content":" super(order,marked,toDoName);","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Zhengwinter"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Zhengwinter"},"content":" public String getType() {","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Zhengwinter"},"content":" return \"T\";","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":10,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":11,"author":{"gitId":"Zhengwinter"},"content":" @Override","lastModifiedDate":"2024-02-09"},{"lineNumber":12,"author":{"gitId":"Zhengwinter"},"content":" public String displayCurrentTask () {","lastModifiedDate":"2024-02-09"},{"lineNumber":13,"author":{"gitId":"Zhengwinter"},"content":" String typeCheckbox \u003d \"[T]\";","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Zhengwinter"},"content":" return typeCheckbox + \" \" + this.doneCheckbox + this.taskName;","lastModifiedDate":"2024-02-09"},{"lineNumber":15,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":17,"author":{"gitId":"Zhengwinter"},"content":"}","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Zhengwinter":17}},{"path":"src/main/java/Winter.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-01-31"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":"public class Winter {","lastModifiedDate":"2024-01-24"},{"lineNumber":3,"author":{"gitId":"Zhengwinter"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-01-24"},{"lineNumber":4,"author":{"gitId":"Zhengwinter"},"content":" String logo \u003d \" __ __.__ __ \\n\" +","lastModifiedDate":"2024-01-24"},{"lineNumber":5,"author":{"gitId":"Zhengwinter"},"content":" \"/ \\\\ / \\\\__| _____/ |_ ___________ \\n\" +","lastModifiedDate":"2024-01-24"},{"lineNumber":6,"author":{"gitId":"Zhengwinter"},"content":" \"\\\\ \\\\/\\\\/ / |/ \\\\ __\\\\/ __ \\\\_ __ \\\\\\n\" +","lastModifiedDate":"2024-01-24"},{"lineNumber":7,"author":{"gitId":"Zhengwinter"},"content":" \" \\\\ /| | | \\\\ | \\\\ ___/| | \\\\/\\n\" +","lastModifiedDate":"2024-01-24"},{"lineNumber":8,"author":{"gitId":"Zhengwinter"},"content":" \" \\\\__/\\\\ / |__|___| /__| \\\\___ \u003e__| \\n\" +","lastModifiedDate":"2024-01-24"},{"lineNumber":9,"author":{"gitId":"Zhengwinter"},"content":" \" \\\\/ \\\\/ \\\\/ \";","lastModifiedDate":"2024-01-24"},{"lineNumber":10,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(\"Hello from\\n\" + logo);","lastModifiedDate":"2024-01-24"},{"lineNumber":11,"author":{"gitId":"Zhengwinter"},"content":" sayHi();","lastModifiedDate":"2024-01-31"},{"lineNumber":12,"author":{"gitId":"Zhengwinter"},"content":" //echo();","lastModifiedDate":"2024-01-31"},{"lineNumber":13,"author":{"gitId":"Zhengwinter"},"content":" Manager.acceptInput();","lastModifiedDate":"2024-02-09"},{"lineNumber":14,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-01-31"},{"lineNumber":15,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-01-24"},{"lineNumber":16,"author":{"gitId":"Zhengwinter"},"content":" // Method for greeting message","lastModifiedDate":"2024-02-01"},{"lineNumber":17,"author":{"gitId":"Zhengwinter"},"content":" private static void sayHi() {","lastModifiedDate":"2024-01-31"},{"lineNumber":18,"author":{"gitId":"Zhengwinter"},"content":" String line \u003d \"-----------------------------------\\n\";","lastModifiedDate":"2024-01-24"},{"lineNumber":19,"author":{"gitId":"Zhengwinter"},"content":" String greet \u003d \"Hello! I\u0027m Winter!\\nWhat can I do for you?\";","lastModifiedDate":"2024-01-31"},{"lineNumber":20,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-01-24"},{"lineNumber":21,"author":{"gitId":"Zhengwinter"},"content":" System.out.println(greet);","lastModifiedDate":"2024-01-24"},{"lineNumber":22,"author":{"gitId":"Zhengwinter"},"content":" System.out.print(line);","lastModifiedDate":"2024-01-24"},{"lineNumber":23,"author":{"gitId":"Zhengwinter"},"content":" }","lastModifiedDate":"2024-01-31"},{"lineNumber":24,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-01"},{"lineNumber":25,"author":{"gitId":"Zhengwinter"},"content":"}","lastModifiedDate":"2024-02-01"}],"authorContributionMap":{"Zhengwinter":25}},{"path":"text-ui-test/input.txt","fileType":"txt","lines":[{"lineNumber":1,"author":{"gitId":"Zhengwinter"},"content":"todo read book","lastModifiedDate":"2024-02-09"},{"lineNumber":2,"author":{"gitId":"Zhengwinter"},"content":"mark 1","lastModifiedDate":"2024-02-09"},{"lineNumber":3,"author":{"gitId":"Zhengwinter"},"content":"deadline return book /by June 6th","lastModifiedDate":"2024-02-09"},{"lineNumber":4,"author":{"gitId":"Zhengwinter"},"content":"event project meeting /from Aug 6th 2pm /to 4pm","lastModifiedDate":"2024-02-09"},{"lineNumber":5,"author":{"gitId":"Zhengwinter"},"content":"todo join sports club","lastModifiedDate":"2024-02-09"},{"lineNumber":6,"author":{"gitId":"Zhengwinter"},"content":"todo borrow book","lastModifiedDate":"2024-02-09"},{"lineNumber":7,"author":{"gitId":"Zhengwinter"},"content":"mark 4","lastModifiedDate":"2024-02-09"},{"lineNumber":8,"author":{"gitId":"Zhengwinter"},"content":"list","lastModifiedDate":"2024-02-09"},{"lineNumber":9,"author":{"gitId":"Zhengwinter"},"content":"bye","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Zhengwinter":9}},{"path":"text-ui-test/runtest.bat","fileType":"bat","lines":[{"lineNumber":1,"author":{"gitId":"-"},"content":"@ECHO OFF","lastModifiedDate":"2020-05-25"},{"lineNumber":2,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":3,"author":{"gitId":"-"},"content":"REM create bin directory if it doesn\u0027t exist","lastModifiedDate":"2020-05-25"},{"lineNumber":4,"author":{"gitId":"-"},"content":"if not exist ..\\bin mkdir ..\\bin","lastModifiedDate":"2020-05-25"},{"lineNumber":5,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":6,"author":{"gitId":"-"},"content":"REM delete output from previous run","lastModifiedDate":"2020-05-25"},{"lineNumber":7,"author":{"gitId":"-"},"content":"if exist ACTUAL.TXT del ACTUAL.TXT","lastModifiedDate":"2020-08-25"},{"lineNumber":8,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":9,"author":{"gitId":"-"},"content":"REM compile the code into the bin folder","lastModifiedDate":"2020-05-25"},{"lineNumber":10,"author":{"gitId":"-"},"content":"javac -cp ..\\src\\main\\java -Xlint:none -d ..\\bin ..\\src\\main\\java\\*.java","lastModifiedDate":"2020-08-25"},{"lineNumber":11,"author":{"gitId":"-"},"content":"IF ERRORLEVEL 1 (","lastModifiedDate":"2020-05-25"},{"lineNumber":12,"author":{"gitId":"-"},"content":" echo ********** BUILD FAILURE **********","lastModifiedDate":"2020-05-25"},{"lineNumber":13,"author":{"gitId":"-"},"content":" exit /b 1","lastModifiedDate":"2020-05-25"},{"lineNumber":14,"author":{"gitId":"-"},"content":")","lastModifiedDate":"2020-05-25"},{"lineNumber":15,"author":{"gitId":"-"},"content":"REM no error here, errorlevel \u003d\u003d 0","lastModifiedDate":"2020-05-25"},{"lineNumber":16,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":17,"author":{"gitId":"-"},"content":"REM run the program, feed commands from input.txt file and redirect the output to the ACTUAL.TXT","lastModifiedDate":"2020-05-25"},{"lineNumber":18,"author":{"gitId":"Zhengwinter"},"content":"java -classpath ..\\bin Winter \u003c input.txt \u003e ACTUAL.TXT","lastModifiedDate":"2024-02-09"},{"lineNumber":19,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":20,"author":{"gitId":"-"},"content":"REM compare the output to the expected output","lastModifiedDate":"2020-05-25"},{"lineNumber":21,"author":{"gitId":"-"},"content":"FC ACTUAL.TXT EXPECTED.TXT","lastModifiedDate":"2020-05-25"},{"lineNumber":22,"author":{"gitId":"Zhengwinter"},"content":"FC ACTUAL.TXT EXPECTED.TXT \u003e nul","lastModifiedDate":"2024-02-09"},{"lineNumber":23,"author":{"gitId":"Zhengwinter"},"content":"IF errorlevel 0 (","lastModifiedDate":"2024-02-09"},{"lineNumber":24,"author":{"gitId":"Zhengwinter"},"content":" echo Test result: PASSED","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"Zhengwinter"},"content":" exit /b 0","lastModifiedDate":"2024-02-09"},{"lineNumber":26,"author":{"gitId":"Zhengwinter"},"content":") else (","lastModifiedDate":"2024-02-09"},{"lineNumber":27,"author":{"gitId":"Zhengwinter"},"content":" echo Test result: FAILED","lastModifiedDate":"2024-02-09"},{"lineNumber":28,"author":{"gitId":"Zhengwinter"},"content":" exit /b 1","lastModifiedDate":"2024-02-09"},{"lineNumber":29,"author":{"gitId":"Zhengwinter"},"content":")","lastModifiedDate":"2024-02-09"},{"lineNumber":30,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"}],"authorContributionMap":{"Zhengwinter":10,"-":20}},{"path":"text-ui-test/runtest.sh","fileType":"sh","lines":[{"lineNumber":1,"author":{"gitId":"-"},"content":"#!/usr/bin/env bash","lastModifiedDate":"2020-05-25"},{"lineNumber":2,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":3,"author":{"gitId":"-"},"content":"# create bin directory if it doesn\u0027t exist","lastModifiedDate":"2020-05-25"},{"lineNumber":4,"author":{"gitId":"-"},"content":"if [ ! -d \"../bin\" ]","lastModifiedDate":"2020-05-25"},{"lineNumber":5,"author":{"gitId":"-"},"content":"then","lastModifiedDate":"2020-05-25"},{"lineNumber":6,"author":{"gitId":"-"},"content":" mkdir ../bin","lastModifiedDate":"2020-05-25"},{"lineNumber":7,"author":{"gitId":"-"},"content":"fi","lastModifiedDate":"2020-05-25"},{"lineNumber":8,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":9,"author":{"gitId":"-"},"content":"# delete output from previous run","lastModifiedDate":"2020-05-25"},{"lineNumber":10,"author":{"gitId":"-"},"content":"if [ -e \"./ACTUAL.TXT\" ]","lastModifiedDate":"2020-05-25"},{"lineNumber":11,"author":{"gitId":"-"},"content":"then","lastModifiedDate":"2020-05-25"},{"lineNumber":12,"author":{"gitId":"-"},"content":" rm ACTUAL.TXT","lastModifiedDate":"2020-05-25"},{"lineNumber":13,"author":{"gitId":"-"},"content":"fi","lastModifiedDate":"2020-05-25"},{"lineNumber":14,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":15,"author":{"gitId":"Zhengwinter"},"content":"","lastModifiedDate":"2024-02-09"},{"lineNumber":16,"author":{"gitId":"-"},"content":"# compile the code into the bin folder, terminates if error occurred","lastModifiedDate":"2020-05-25"},{"lineNumber":17,"author":{"gitId":"-"},"content":"if ! javac -cp ../src/main/java -Xlint:none -d ../bin ../src/main/java/*.java","lastModifiedDate":"2020-08-25"},{"lineNumber":18,"author":{"gitId":"-"},"content":"then","lastModifiedDate":"2020-05-25"},{"lineNumber":19,"author":{"gitId":"-"},"content":" echo \"********** BUILD FAILURE **********\"","lastModifiedDate":"2020-05-25"},{"lineNumber":20,"author":{"gitId":"-"},"content":" exit 1","lastModifiedDate":"2020-05-25"},{"lineNumber":21,"author":{"gitId":"-"},"content":"fi","lastModifiedDate":"2020-05-25"},{"lineNumber":22,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":23,"author":{"gitId":"-"},"content":"# run the program, feed commands from input.txt file and redirect the output to the ACTUAL.TXT","lastModifiedDate":"2020-05-25"},{"lineNumber":24,"author":{"gitId":"Zhengwinter"},"content":"java -classpath ../bin Winter \u003c input.txt \u003e ACTUAL.TXT","lastModifiedDate":"2024-02-09"},{"lineNumber":25,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":26,"author":{"gitId":"-"},"content":"# convert to UNIX format","lastModifiedDate":"2020-05-25"},{"lineNumber":27,"author":{"gitId":"-"},"content":"cp EXPECTED.TXT EXPECTED-UNIX.TXT","lastModifiedDate":"2020-05-25"},{"lineNumber":28,"author":{"gitId":"-"},"content":"dos2unix ACTUAL.TXT EXPECTED-UNIX.TXT","lastModifiedDate":"2020-05-25"},{"lineNumber":29,"author":{"gitId":"-"},"content":"","lastModifiedDate":"2020-05-25"},{"lineNumber":30,"author":{"gitId":"-"},"content":"# compare the output to the expected output","lastModifiedDate":"2020-05-25"},{"lineNumber":31,"author":{"gitId":"-"},"content":"diff ACTUAL.TXT EXPECTED-UNIX.TXT","lastModifiedDate":"2020-05-25"},{"lineNumber":32,"author":{"gitId":"-"},"content":"if [ $? -eq 0 ]","lastModifiedDate":"2020-05-25"},{"lineNumber":33,"author":{"gitId":"-"},"content":"then","lastModifiedDate":"2020-05-25"},{"lineNumber":34,"author":{"gitId":"-"},"content":" echo \"Test result: PASSED\"","lastModifiedDate":"2020-05-25"},{"lineNumber":35,"author":{"gitId":"-"},"content":" exit 0","lastModifiedDate":"2020-05-25"},{"lineNumber":36,"author":{"gitId":"-"},"content":"else","lastModifiedDate":"2020-05-25"},{"lineNumber":37,"author":{"gitId":"-"},"content":" echo \"Test result: FAILED\"","lastModifiedDate":"2020-05-25"},{"lineNumber":38,"author":{"gitId":"-"},"content":" exit 1","lastModifiedDate":"2020-05-25"},{"lineNumber":39,"author":{"gitId":"-"},"content":"fi","lastModifiedDate":"2020-05-25"}],"authorContributionMap":{"Zhengwinter":2,"-":37}}] diff --git a/Zhengwinter_ip_master/commits.json b/Zhengwinter_ip_master/commits.json index abe09761..e5e7866c 100644 --- a/Zhengwinter_ip_master/commits.json +++ b/Zhengwinter_ip_master/commits.json @@ -1 +1 @@ -{"authorDailyContributionsMap":{"Zhengwinter":[{"date":"2024-01-24","commitResults":[{"hash":"cfe649ddb4235f75e31b0d5a213a6331e0e1744e","isMergeCommit":false,"messageTitle":"Level 0: Renamed, added greet, exit","messageBody":"","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":26,"deletions":10}}}]},{"date":"2024-01-31","commitResults":[{"hash":"f06616ff116b05c4dd2014ffc75233daa79850fc","isMergeCommit":false,"messageTitle":"Implement echo, restructure hi and bye","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":32,"deletions":5}}},{"hash":"e4f25351d195e1ab2178de955a5f096072677099","isMergeCommit":false,"messageTitle":"Implement add task","messageBody":"Used String array to implement the task list, used continue statement to execute the list command\n","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":35,"deletions":5}}}]},{"date":"2024-02-01","commitResults":[{"hash":"cb2d17f9cfc7b755368992e6a0a258d4ba16044f","isMergeCommit":false,"messageTitle":"Restructure Task as a class, implement task marking","messageBody":"","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":83,"deletions":9}}},{"hash":"c42d0f18454ee2c796b585ca41b0aa9f74b16ba7","isMergeCommit":false,"messageTitle":"Revert \"Restructure Task as a class, implement task marking\"","messageBody":"This reverts commit cb2d17f9cfc7b755368992e6a0a258d4ba16044f.\n","fileTypesAndContributionMap":{"java":{"insertions":9,"deletions":83}}},{"hash":"22e2bbcb0cc998a897f17aaf10abd72a2bcbd015","isMergeCommit":false,"messageTitle":"Explain methods and Task class","messageBody":"Made some changes according to Java coding standard\n","tags":["A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":16,"deletions":7}}},{"hash":"b82f67eb20efa770d83c44640d6f1a7e80bf32cf","isMergeCommit":true,"messageTitle":"Merge branch \u0027master\u0027 of https://github.com/Zhengwinter/ip","messageBody":"# Conflicts:\n#\tsrc/main/java/Winter.java\n","fileTypesAndContributionMap":{}},{"hash":"47c36a21571127373d51d92d49b2fe33b527388e","isMergeCommit":false,"messageTitle":"Correct code version","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":16,"deletions":23}}}]},{"date":"2024-02-08","commitResults":[{"hash":"7aa8201f7a10cecc95a95b80b9ed52f10bd72d46","isMergeCommit":false,"messageTitle":"Refactor code","messageBody":"Restructure code using concepts of abstraction. Applied enumeration to handle invalid inputs from the user\n","tags":["A-CodeQuality"],"fileTypesAndContributionMap":{"java":{"insertions":7,"deletions":0}}}]},{"date":"2024-02-09","commitResults":[{"hash":"0c7b8ca51bd1f4fded10c037f1a49617ac50549c","isMergeCommit":false,"messageTitle":"Implement ToDo, Deadline and Event classes","messageBody":"Used inheritance to from the Task superclass to implement the 3 types of classes. Further restructured code and attempted to minimize repetition\n","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":6,"deletions":0}}}]}]},"authorFileTypeContributionMap":{"Zhengwinter":{"java":174,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"Zhengwinter":2797.083},"authorDisplayNameMap":{"Zhengwinter":"CS2113-F14-2 ZHEN..NTAO"}} +{"authorDailyContributionsMap":{"Zhengwinter":[{"date":"2024-01-24","commitResults":[{"hash":"cfe649ddb4235f75e31b0d5a213a6331e0e1744e","isMergeCommit":false,"messageTitle":"Level 0: Renamed, added greet, exit","messageBody":"","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":26,"deletions":10}}}]},{"date":"2024-01-31","commitResults":[{"hash":"f06616ff116b05c4dd2014ffc75233daa79850fc","isMergeCommit":false,"messageTitle":"Implement echo, restructure hi and bye","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":32,"deletions":5}}},{"hash":"e4f25351d195e1ab2178de955a5f096072677099","isMergeCommit":false,"messageTitle":"Implement add task","messageBody":"Used String array to implement the task list, used continue statement to execute the list command\n","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":35,"deletions":5}}}]},{"date":"2024-02-01","commitResults":[{"hash":"cb2d17f9cfc7b755368992e6a0a258d4ba16044f","isMergeCommit":false,"messageTitle":"Restructure Task as a class, implement task marking","messageBody":"","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":83,"deletions":9}}},{"hash":"c42d0f18454ee2c796b585ca41b0aa9f74b16ba7","isMergeCommit":false,"messageTitle":"Revert \"Restructure Task as a class, implement task marking\"","messageBody":"This reverts commit cb2d17f9cfc7b755368992e6a0a258d4ba16044f.\n","fileTypesAndContributionMap":{"java":{"insertions":9,"deletions":83}}},{"hash":"22e2bbcb0cc998a897f17aaf10abd72a2bcbd015","isMergeCommit":false,"messageTitle":"Explain methods and Task class","messageBody":"Made some changes according to Java coding standard\n","tags":["A-CodingStandard"],"fileTypesAndContributionMap":{"java":{"insertions":16,"deletions":7}}},{"hash":"b82f67eb20efa770d83c44640d6f1a7e80bf32cf","isMergeCommit":true,"messageTitle":"Merge branch \u0027master\u0027 of https://github.com/Zhengwinter/ip","messageBody":"# Conflicts:\n#\tsrc/main/java/Winter.java\n","fileTypesAndContributionMap":{}},{"hash":"47c36a21571127373d51d92d49b2fe33b527388e","isMergeCommit":false,"messageTitle":"Correct code version","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":16,"deletions":23}}}]},{"date":"2024-02-08","commitResults":[{"hash":"7aa8201f7a10cecc95a95b80b9ed52f10bd72d46","isMergeCommit":false,"messageTitle":"Refactor code","messageBody":"Restructure code using concepts of abstraction. Applied enumeration to handle invalid inputs from the user\n","tags":["A-CodeQuality"],"fileTypesAndContributionMap":{"java":{"insertions":7,"deletions":0}}}]},{"date":"2024-02-09","commitResults":[{"hash":"0c7b8ca51bd1f4fded10c037f1a49617ac50549c","isMergeCommit":false,"messageTitle":"Implement ToDo, Deadline and Event classes","messageBody":"Used inheritance to from the Task superclass to implement the 3 types of classes. Further restructured code and attempted to minimize repetition\n","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":6,"deletions":0}}},{"hash":"ffb14d199db0346c7923ef3a54497360c7a4685c","isMergeCommit":false,"messageTitle":"Add automated Text UI testing","messageBody":"Include both .bat and .sh file for Window/Mac or Linux users respectively.\n","tags":["A-TextUITesting"],"fileTypesAndContributionMap":{"java":{"insertions":314,"deletions":144}}},{"hash":"7d0975e85d59d3beca1d276612048575d0cadd1f","isMergeCommit":false,"messageTitle":"Implement automated testing","messageBody":"Modify shellscript files for testing and added test cases\n","fileTypesAndContributionMap":{"txt":{"insertions":9,"deletions":0},"bat":{"insertions":10,"deletions":1},"sh":{"insertions":2,"deletions":1}}}]}]},"authorFileTypeContributionMap":{"Zhengwinter":{"java":344,"md":0,"fxml":0,"sh":2,"bat":10,"gradle":0,"txt":9}},"authorContributionVariance":{"Zhengwinter":12358.449},"authorDisplayNameMap":{"Zhengwinter":"CS2113-F14-2 ZHEN..NTAO"}} diff --git a/archive.zip b/archive.zip index 3c19bb7ee0f10c3a6897ecbce38234a0952d6ffb..18fd062f319858b19c6fa346ddd23cb9e3b839b3 100644 GIT binary patch delta 98490 zcmZ6yWmFwa6D`a+xVyW%LvVL@f(U-`ym_ukp2kwe<=uLn*Brab42m}ahlHlr8(Q$1p60>?&ij&}XV5z<3=ir6yO-KiAofWrkbW z+Of@1nnHt-*b>G)PPUrcVWHp?lPppVT@=A?XP0xuDyUuK=1yr!FM6p9hh?P>`ZyiT znQcCdOZCyL^}m64AtX!O_cxBY+1_(goJTSD!|3|y+zG2P-AefvP+MmmKpd|(>KIv2 z2Zewx6{wudbYGxqolGl75lzPCPZTCiYlCIi%{_X_+`!{JpfJG_Q^B7;r9JI&3sa?_ zKU3AU@PpYx>kXCVXF1L_oskzJwvO)SvYG9SqI)Ay`ot4(kewBa_|x_m%+VgChPHEu zu7sEFnV$lz#Akvx{YByi;5=|e3T@o#o2QF$===3G8>xe4trLRbFvX$^#Z7!QMsgUL zWChkf&BPv?{8!)7SkjB4)r{ZTsg1=9D;_x&jkJvqCXG#m)eLsmh4&D-9}f8nysCfJ z-JN4N$2st9w$a=9be7<9UuiA!Lv%dV4E3 zjR)Tm3PR_cP*zwlo?M^;*>jGS9eVQ7#yH$Mt zC{;4cbHqBgCtWb>Z!W#gj9xYg)I8Od2_oiJTFppaU=zZ^jsKbaP#N4YMl|>*1$6FL zuOMcE5iphaMNxFrd^7PeEcN@1MXY4aZeib0^cR7Mc)8$f11_W4eDAtl_r*=W$aw8r zoF=TmSBiEFK+gb*-N4Q|gDrc4RVx4ZwXm~rJi|R zN^xmSldE4ia{c(vYU1A0Gujeu0h{M%l`gmQ@(7-3Ba>8xe)Ge{k5!$Uzi#9JR}0#cx#kv76lMy8rFK0~Pb>t7}W zc&}5Qxsbr-{5CVekj+_NY?!cZ9&QPd!8S)da~IS*zCk~M(;ylr7B<8#;EN_;-1ruG zzhZh=`lG^$sATA%`Q^e%B1b&1rpe5d8SO6HcC0Zo_}GnP7o_3ilAmPz+a}0zbbUn4 z7aFei2)I57mczh2w7DewdMJexDis5T3KrQMY_9ZY~1)( zuLI3~Za{2`HDAw%fT@9zz_*Jj(Ga$@wxr!+?&G)p1y#;pBy(X^RZL^@&8qRxmYJg> z3FLP-*TGU$OE}gL)a3Nah6Iqj#O)BuN#Jv#+ZqM(D5lDx`yq66m93)nkcZ~U45umn zbYRr7DKGD*+1F*qyS9p@j{D`w9+S| z;jqU(T%Y&lH%ze3!piI`6Him9($`tp&w=2C9Z}V;9fS@>@-iEC+osi)O5zbrHB<;f z_eqR-W}zQqb=GWyjN%#^dlY@jF*_cJAzj%Y$WeMf?7EFC9CtP-psqIAkj{w&qqI{M zIoY7Y%9`V7XXU^_KftmI%wt+Xb%>uW(|kyV-TLY*^81;)6?*1J(?GR>63txVBrULQ z`Vb5}C}RV-BbkEZR-p~BqFGU2;Sn@Mpw-fQKYortuA_6!mPqKw;6S%ZID?p_;$)TH z;db{l5t?t#m48;Ac^o0U;j;~Z{7I|^>({Zs#KNG|6)WL`N4`1|8s6}G$_HZ|+Bzn( z?}&;c9{Rj^vayZW3|ERlue}exDga=m;tZ$go<-xI5)~UvlHC*;NVSzOgWw(SMMi!~ z^c$#eF+Nl|df?Qz$#*jpjMU$gk18;$qKp2bFkt49;nV-!?K~s=!#?JfFzs7Atiiwy z8LI(-JWdkNdc~Zu#qUf3yeW^BKfEtDuNVIJc=gZhKWQPnLESUQko$+2$In2-Re>TQ z$*)!!YSD)*s9|ztv%O+`gey(a<6?11m$E<8q6x6Vw$%2TiVv~2Cy*5pz0YlfL7|X( zUab8+B#wePsXN6sLpGhoDxWEVCY~7t*K?&LvflS7@#jRil$6#O3xW{wfdrV^2;~Z8 zsAmW1^ZVMYJTJ)X_Z8AEwmjhQbNX4$v9rAH{8!%i%t$^CpDpyeYdznBhLRV8#!yRX zm){oiyt`Z2-;AqnY^1PrH575O9S*9-THSxx5I7Q!xDZS%y^f}To zXun}^&FoL_ecb@fbxDOKcV|JK(1zHn&sOR(WlKBR8@5@?)Oy$JXI}+g@@+mtjav)a zrUZqRI<~Wv3K*Edry|-Xt`7MF^_#H=rnN0rm>wySY(ZgJ9``iC1SiqeoOLb({lq6< z`bN9(+CNgl2le(qb!22BsKQ$wh^!8-#&$!;~ddc+if17;yGk3nT!}<=ZssKv>7fQb>aS9Is0ZR-4@qZnC zllu_2GV3 zbz!UbAdb!kC4Ta<7Q9JJVWM8{^O>Uu@Mc6PaNgvp6W#kZIehb){myTkooy!%o1ATS z14#T-TPs8UN#2njL;r67JUM-5qbczEYUuwP_&{PfSL3<7TE@rTj{MlXWyeDz;PGUf z^?oN&Z1_^Ebp|V3AiU=koBf7+6o#>~uqEZD+&>9kBJ`dYa!Eff*|5KI7Ataq>zxamE}VhsXJc^vzUhq~{QIdLl&={z?6#qV zZH(F>d~&x)Nzu&ugmPK2Fn=CR=OD;#_aF z-;)v*x(c{*QQ1X4*^&f4MjPcU9n~!b^^eZLL~KJ*@)Jf})Y<6Fi8uw{ zXJ*`-XBcs7_a16OF$y}}-;h>#YW>eAy$XwV4D0s|zJQUBSj-F1%N!>T@6`spQEH-*s_;Mf`^ zbvlIsk`l^iDNE>O^chv?BHPx#dY_QnK1^ z#TCVyQ8qV-JOM0=j!VHtB_d8?d+?~*hmaZ))8SaUeHIiO@qh&fM-0tCb9;}WAt_)F zM)1V|iAS|H1oN1J@4ix5*EHe|AUY=M^CIA^W-kDHp-eMFs)7tFV|EfCG@ul_hwUM5 z=|4XWijtoDsH?&HWE{Hb!BlfOjvt+xjPuz`q#q6^BiXgkVC}0rz3+~5>mI2qC5Inu z=Sz|6E4G5U+&g+Av)|eU>FRtB~=3-N8 z7dRMqFxOqFF->%rcT@_1_O1$tZyW*p;-ZflC?^pB&FBiO@6qWcm0e~DoWfK60-}4; z9IaKq7Mdp^%+?_q)?2^ok8VO|1QFthZR!H{Jp_0dI`(l%;YUr(Z@Zq=gY?4qP&>n) z!aE37s7epyem&;IJ$dV*E%H3FerY^|zgS>{p{M&AxW_!K7-PK&5Rljq`VDly^S;aX zO}o+mB}xjd+Qw+ zn8zGWv@V6LS&55ARdLJdLL3XU(=@&N2Pm+yiFQ#F*e94-AfTso2)^WCRM(uJi6! zA8Cw8lQZP74)7b(-$0f+OH+TtOKDZKFfoLXe50JH!Zyz+U>S~4suiKUSIy#ekAO0p8cW1F0DCjA~F@_Qt<_b zN1vcOZ~{H~aa&RoKCrqyTD`QZ=2V(fD^q z0EB3rwNB0b@4ujJ$Aapwb&*1{X}iHmuHjTNKN^=@E<6l;i0?b%aC_ux4twlKe)^Ia zBnVRGbQenoFQ_%EWMSaqxF68F9Ny?j(e8Jd#=A)4ASD}k>+frpxQJ&)(^1EXB)UrI zh!QPHJ-2C3!`p1igBBRBB9XI4BP}}H0cG|EDu7V4(E#tQ1trcfa$5)Ul84S()4i(_ z?ul#Pe@>bF%SrqqN(=YR<4GT}g6rGa21~{6rGDj0@Q=_6Nhklvmtfg&(xUBXt#DFJ z!kXRdK7$8+{P3-)4UoYQ7lGR&Gv(|JyP&^ng@hs`!cpqc4P-%%;ig8>cCAx4aAd_J zExN{OwS*rYj+AgWkvD~EJ6L&q7o3OQdsK`_73S-oEwwLD>eHT_8mNzOLPBYGUd88i zzdHPtf#cmW{&QvnlTJNwM&TWKK`Suk${pvL-!LA>_Ho_?B&8H3_|2_bOzHG<5I%c4 zs@QR=bs5oyy=MjqAeGs%ieqC2M8N&Br&nB5B%bgc&dvO&0GE@^$uu5Ykn%*+UbIBR zia_aLm?)uq{H2jP;r%#sh|jr$&5dpqQ7h>Mg|_KrV7%`jWTEIeTyvE6$ConiWJpa; zWm5fhC;!q1`4qyb#IS>hpr`~EV&0ns@|-Q_A1$cOD3r80jL6zo*(1?5-WuoaT>D>`ml{G~ zgUt<~Ec(GisFZMTtT>!ZK#QJ{vnAgHRmZ-Zt(AcS5`NZgQjDVrtUNwicyD33x#La z^l+7-QYVE$WUW(r0@Dj9`|d(TwqzK>`r0U#?dFJcBYW5o<;A}28LtxjlcF@e6S+9S z_NqZv;yWO#Y8-?qATOblfL6ieDDXT@X-f5f`<3gJ0ONK35LHWF!~B^bxnchumH zH!`3b(bS_N5dOG7S3f%%qWQz{7uga&vpT$4-#e8G>uT9s*N&krW zq25jJwWP%qS>vM^ng&lbBI9-HjTPC)piR#3ff@Su`R~E18+^B96~%TBL8MlsPb)O2 zEmAqO_i!=UfZge#QsIqivjO>@L#K0#lmt!30)(OmFnE6c-wfXBS7x)MW~FBBok4!v zjP4uq6Amq~NrE)8F{8r({w7D$PYub8i0p1=bS~=xU(H%JX?t3?=H-Qn%!pg9W~4Sn zeWUMGHIU7+sy})ogh5de0o6&KTu?e4&>M5z8eSK`3qe?^53G&e-n`Jxw)kF_Ru&Xv z*Y0~!7fYZ>mYMtcw|)LLwD08U{5>o$tM-OaEmin0yDvnh;sm~B;jsm5?lg#3Zknc- zW35OU_nWAv(nuUvp^cmv9+)&;eqa%z+Rrq;PrpwFjK}N+&Un&(?Yq_;^LHeVClu(= ztLIb#yRH%5HXu&JVw(&=Az7(b0=?nORUHd2Z~2V})l!4yYu{sCzqIB&s)Q`+Y_S$L zbWCe=*^F2F{Lf+Yx){&Xl)~t=Dy`U>=(HB$WMd7cONkpq=Q1J4PWIG;=drze^cNCe z!vd77MhxYW=v)FWCV>be;l)AkLfxS@ELkpk|Yav z4_E5XQIWA*V7KmujZE`=ndAhh@Dld9ZhSwhG2iQ@s(kyU;#|scF8!DxPnB1PSv0di+U;?QFGHf6kYE+G{uaS$l@>=NQrVcQKP0_DO5SvfML$=v8(-f-En_BJym zpeYF#g%?q9E{Z)uMfNe2R&M!dT_;)Wc80u(V7c8MtnQglr;q>NINjQoP!~P&@CKJ& zXIJsFd{xz|SH0K~-{q^Msk{*)E+#wF0*{6w0rhQ0zGU^ox3Co6SJHN+SW(kZS}~&0 z8{&sA!Zff$Ec0T*aN_E?_UoB?>UCGZ3#Vz5lHRLVW@b7Qal5KFHY(IY@%#ggY)N zXC%+bVc5u*vD!V3jAdwr8s)y9UUdOJ%;D}{?*m)r$hdqfS}~9=5kd-1^I`lBNZ{j? z!i00(7bmdt%AbEq;)@_E9AM{0s8vp{w?u`^P=9I{DepxWagqG5XwlNCPkw(y0wWEe z@yF1a(mdqLrgzAXC5Df6AABNBzLtg-=vdXSR*8h0MN58<$wKIHAocy>nl{5#5IQg4 zT6KDhDxBhre`(Wi`(wqfo~sxR7+D!A91rX}?%dcO^|R~w`Vz4%A2}Q9+x)@#3n@Zm z6Z?N-JUBNu1M1kXkKRc!@D8No(ht4^!Qfhn@gXJzM|Xo@CJxD;`p#5XamZbgIM&z* zNKI;{@i0j7n3v0q$l8T3f)8MViLGIRp=o>g(G&&1vb-K?>5C?M!5jc518(-<^<;kM z{QjFCw@l-RsmY@xtjSZ28bghqD>xb7GQp$7r*R7RG`dlRM>jBEkOL8OVqg1pgIuGjjh+3JdP;pH+{ z<|>Xwd1^~}=$;gkbssPj`Xa|a;QRFtu3UE6mnWqd0SNrYk2*CIrHT%RmM5@Lno93j zooqC2x)onQ?d}^tRiRfG5obz$FiI=ki!G7(?Y*5dh{+z!$)sY zY)Q5)cka>ZnudOi=Cl#Zb@G5Ry?ZWi3vmBwa8j(k?T5%b6fn{RfpW3CE7Q>bh|xe+?PJZ^yPcRh2o zTmNsctjhVut|r{|dm7cu*w?}NoSF1xgfPGiXcv4CX=63cO}_hBed!l;=;`Lv-cjsz zKGlHYsM!iw5%?_$QT|ClsGn^-!dybM$%WpLY}psu`S>F-_xf|<&U60PE+?!}KVeRU z&5Y~aQ4~P7VCF2cHm37>##|(@UF-6xjI(V0Fbdz}B;gkS;2YmZ*5ty>y#)XJAYKZC z=k7lYJnyeWGJR{a7rk6v63$Y1JlY?3$K`o90E7u!x43+rf_`q| zM#R~jt-edluV7&?aZD0r%N-P{_xAqJW<+9$HWAVNO-m05>ET*ZG=eZOS&XxiSO4L! z@1KCyMJvqz9Jqp-%YwOgTY2L~Hh58jGpF$#5taU(FCsMkK21 z1QPf!$_8GiW91*9ptt$jcXyZVETcgUas0e3CIv!q;fIe)^Xwwf`|7tk$k-iL|| z;@9SUyE2@PVhoKdD5F(_5;e))@bkLiQx9fse^b}GfB0_aXN( z2$boe`Zc`XxtXVgTjRTo4&Yl@8A#U4dMRl<@oa~!w!3JT0tS)w4WW|zgIGaBvqc!D z+NzY;R<-iG=^*G-1khvbsG&qxSoDp?%xu|e50h;-Ut^fo!CB22t1}{ZzQQex-a&)}DtRZ|O$v3DcN&=(zl=>pXHVQub;CPL?<$`u|Tt9#>9?a-|< zkLh^c@6;-mKw=<)CxGA4)%ETyl1Uc1;wH9hn4|O;=T6cF(l2BdQkr(MwV_uUpJ>%1pFr4=s+RGCK{W=0N%*M> zCS}`96G;2&3^q17(IfeVhN4w!)jeZ#|VXx5}Ash)YS9o-hVI z3af~u$I&e98X9b2$tDYENsB!26!TzF_oCP`pwcKNGd+9baz~Ywmz5x+%oK$(&7gUh z8e0d^7}V+asK(q-BELtCjYo*rh9G>3w|KQ=4bTouag{_jWIVEbA?s5uc#emAewo3} zm8FYD1>g=~XMRBQ%-1Q(g1SAv(T0u}YJ;VuOV^9OcT;Jc+@x;p4(=afLGjE$^_Eo- z6`4I2QKDW_4)NOwORvCp-$EMc`a;CGZA;}NmU-k@F^p-9ssCUqC}X4lNHm0GajRp( zdi9~POm7w<6>U$t7XNc>35{sg*B+uX0ET|;~i zN&Q#Z0(C1s-GNO3(c)~l)vT`imoAsF0aL>#SGq$yy6BE??Ij;D<5=PJY|rF4Dvwbizj6)lSPFa2ppCt1o13Ggku#!;fvj()g-qI6 zbk&s@?1AKv842(DJ$>clyYl``a|5T3vH<%dCsWr4tr*+xiUfu<=x1J7O1?uWSwzaD zJ?wsli+2A8Z_|^`iWpfKTvOt)_%LK!C;%py!5P6HT=^~eZlb8FMp#UMYr6cJV;}x7 zt~5~dqOy!JxGNKcyVhwps256InOlVX`eEC?ONiZS7IIa^OBhZ7K=~jwGS-k(!8VQ% z?MEnH%x;^2@i|DmkoqfyNdBF!N80j}K@f+>LNA>Jt5aWhi3FS0_gcA4GqXjP#N@gYf*akx-1swIsYlG)UE` zh6O=3j4gNj8`w7y+oeU@WefKKqCnJSnz<33$oGu)Bq+|vfd;V?j*a4h##yNMKS4?> z8+cRsac#)*a-r5uch$WD_OF+=jcX76+W&PZFO4D~-AnWNHjO!K%pG^Z4W?nm%cE`# z92xQw+)ah&$1HZ$$$n6e%+54b?FI6@&S-uMVk5r8&c>JS(D z+oZ^r#Po}9$mBOTHlh8{dT>c~m7?(kd|hB~ZM$3NYW8`g2Jt$7mp2p6alznr;&fSi z5eaE;k*`;;bCE|p1H|66H9=F1@x$8Ik=MdU@;lm0_MfGeZi*2@7HMDmK3KgFux6=b zv$T1S;YUvyvAYb8yyO~n=Fm+US5E@5msh~!{~A1S9H#z)fzS{TMyUVq!8fl zT`e)tBn`{T-rCCA%AODHEKFhgMqLJeKTp)!2uz4fz}A00jTUWq0_7&BghGzQFyWooD=$m{$r6 z_4)mwTd}AA!%my0%kA6J>X5?C(#pXV?UB{R>b=%W+2UnZ!_*XuK;z^UkUe&WOhwF` z*ibGx+dL8POSpBN@`rKiQVDX+gJm4P3wZ7vYTx2zR?lxLwQ-?PK)1~mN>JG)hxaoz z<~%XVd`pX^Fgh%5i=fRRoc0%Gz74z?Yo*ne92G&pDZ&%n7rXtX^&qhO1?S#YXo*;D zj@)eSMZ9vA!Xxc4oyBk+0P{8#D{=u(bMW_NyRX9mCA9u$tJvE0&nA0ct?8q0{2@43 zP!(CXQ^n{#Z+DLYt_Jz}A#Hto`5IHooiNi4`*)4EcD_9kbV-LmKDd@L!fwW&fg#G> z*s8{h7$3<#Nyl6e*p_u}Q=3a-L_`KOYWbByR$w(sRah(N&dGxk9DWQ1PWgDo5QE%3VBqMuNspOH@K}-&!>8H~`5F%zx^4%RPXwPf1>s&M^ zkRJtv(@d~jvSm!H#pMq5A=~wV)r*bLx&v70c~xMBW0>h;f~@tNM`Qf>er4VG?)8cP zQ0PAD9^&Gr{~p|XwQQmpM?m^qw5N)Srd6AeA13P-=g>c_-o!?e^QYT!?BhuQdUpp) z)gP-ksbpPXjlm4nEHEMPBAs$)erp{eYSKX@0^ar5?D6Z2?FLRqvs%y`j-1GsU$9F} z5i3`7a?Xc}MIe~X^eLPPnj%==ZLIbJ)-uwZKLK%sO_1L8dOPxBYQKbamEf>$22H znG%N$+`e%IlQf2+k^1 z5cnp{xj{Of=)g@@ZG#%F>k;i&ZF2M(Rbtd>-^DtfuJo3gU?-nIvuvv?#vso5n7XI6%nMr!h z_^zB`eG79SMe_?D+u)@Glb))5!)~!6z4scd{G6QVTDjK49Sg6 z=!RQ}X6|G#S5fcpIwqh6Z1~ur9kAMV{Oj;N!F+&Ih8>=kNYU^{O^yDMe2A^-<`q!dG zmlWMdAFOb^hZ~_Y3#3xQ=2$ATHnI0_9OLCt;w#K_#qxcxhL$G#SWXHx@pBzn1Ns{X z$sfx*j<9lns0fy?FI!F_gsvLl8Z7-GfE;m3Vb-_Zy>xbgoE=o!GWa2My$;;ad@e>1 zoX^!@JsmR+n(o$`mIs$x^dR=z*$2WcV5o8+_wnOWOGpM(lAjI^o&~uT#<2++4?Q{_ z%=%R%T6xKb(dc6*!=n=M>Z;fD&z$cFwhNEd-W zXQk0*k-0-p-Yzlmd4!9W9|v;yeIX-onF8WWFWT$}OlnuCii=d9&QIfuaHt{Y3gX?l zD13h>sx+pPck;{Ookl*YHqZJLZA5(uIhLgyU#tAt1H-L{$1+&pe`!*%yZPm37m*ZF zl96u=R-rJ2*H%Fgr}rX0^Z0R$&J;J%UdP~rcC#xAYB{=_MPH6z%ODW8FidEeZ1 zx!&?rTy1NS;UbMF!9JqLflF_s!35Fz8%75otJG{;kEJlq>X(5vY3=4FXovlyVbl8T=E%I?Zd7Ppx<%G6RxzPy8NN^(U#PB8ri&jc<}9BkfmMK%TIj#1U_YKzqx|QU=|g~@A9|Jy&y}Bz$697b>tGYj&xJWK`YDU zYg>18YLUgcUp+ThUT^d*vRo{OWB_cx65UaxejwhLu7yO7IB`#z@Fd-KzOUI;B5#jp zo=mr6QsxO?>O%cHEqC2+OiLjOHoaItfN>TnMMM-XxoUEcfhN2EaA-P&`)-g;sT*wx z74q5633Op0g$)%ntKMk~7wJ|+^0Q)(T+TKZ{tN{CK$*;kUM(3(u3qgZRmnYoA`is> z3wRpj2`|7ae$d8SfkD`b&Hc|{#ryuzCb~?=;fAi_tG2*s&@FOiqm_a?yXPp7p zg|Q)_p2-(>?dT}_%H+idzO%q#g_~&%8-R%ajBR4)OW&OvBlzNvXD{x(7O6ywbktMy z{InzZ%`y{ogo`3QAK=3^@`1Jmw$5&0heY!zIf&Q3-4gpPI|zcek}CD9(pHI%a6hFvn%_TLGS z_!Uvv7wVQInopY0o|sf^Ccc96bZTV{s-d+GBuJP2lT9UT?CyF&=P`B zUj`DbWD`+G#FLlfVd7syll@?T0T`5#K%)^aYZ|J!Tl9BhVS?}0Gewq->$$I*HaMCO zpK1wzMfzEMZBZdjB!f|Lh^<=1w-Ax=lJ3#aDZ)H-36qrSr;<#mok6W26Iq>nWBrIa ze`l|-Q6JI=&8JhNcN64zKp@tx{sk3lmb!ESFq|rf=BX5vG}+q7J2A(^M{|83sF?v*^{b>i#J4TBNhrL!x59O7|vbXx`lHg`-Wne|Y9*|0Mu+Y07t!n>DL)x}>K>EGe%ZoKe_`x*S_)_*!*tbXX zR7;ang_2i||5RaeiAb3i@!mJaI2J?xN^G zf6%J(R~9%aVm}A~D|AxId{eNIE(%Devaul2{Zx%-10YQVun8n&p^ssM{XL7{*JW$Q z>BeC(IL*yupT26?Qc0Ni2!sS>C3&jC?Eh?K#&xYaQkA{TbuwR4b)ND(q-Y2EA)IQo zlcUeJHJ&;Dc2ral#MT<*va8XKC~d1a6w94unF zd%sLnYag$qx8!q}jd>A(Pc!c&K1WUV%O)G8;=4Ek38H3AkGB;rJA@5ao1ya9BVqx~ zTcKbD7PUJcLnsJdhIte-0iKh|8xk$h7c*XX`EnkhReVVq`nuc0fhzHqon-_F@;Mm* zZHMlK!c~M1jrKb9;>WkDQScmW=X6kK z|GomMH*>xGud*p~M+;!~kM^ZDeFX)alACF*j!3t>)Qw9t5}*s9pjD7! zzjbgA&W)1SK}?_K6finvLYuUZ2(aXjV_Xj>d}+YxB)#d>avAZQKhn((VzMsuUt-ef z%Z=ViPmdj+ZvQ>*5{pFFnAEoEo7uU4tVl_?(Sgy02M|&$%Or zvqrHlDtqYMAcfJmmZL^0tzC~+qU~17$ke*m1y)pwmrqyDrBNhMbltJ=z^D^lSeyG* zHvjZX|L9lSTo_g5@o6;)A5Ix3F}C5wZ~{N~g}z+^|Io8^;L6hYq=m+0Zd{Pr?b-+s zj+*U>ZxPR~R}Iscg+SCCaU6xjrYVHgHm=$UL4l+dALMBC=E@+g>C~D1@JTFmjJ%GavON0VidF(_hzz%>s?X=N{9ub3-gaXi!dM_47y zz>vP=z`XX8Q6d`-dKkqww@AA&mk3L|u=ICbOk^?h9&~#ab5L^s_Ng{UKk*`vMV)`Z zPhFJuWtlwL7)nv9^}XOi*0P?+pDx#UhF0(4DRZFh)wN4bUtL#h;&Wb($=%Rcy^3Im zi9LAJ4=2xbo9jqti1gIgT(Lp7d&u=qcBz@j2$64WJ|g`5a5mM6x~5{f^k$?*V!?w+ z0xQqKhNd~r`qukMOiPz6BHJ3UPpomPQ?~D*tj(&GNan7}~$RDS>_d@n%)PR?vSjK`k)izj*RGV3mJ4 zXPJWEL4Rj+%)#dW;z8Sk+y3!-oxnu@a@qL;4*eI;#t%#k|JNfj3=H=VONjvU|BE-1 z1XlXzOP&gz{Fn3Xcd*;P$kt_G?7!02w1A&rc3{hCjSOvQ>-R?;K>>7=?(OEPg$DVF z4-Q(!MM7CSvd2X2b#e<8qwm7@Kh!iFw6qQe!W}M$j(mvXp+2}Q+~cBsyZF2`C_JBu z*XF6y{a=%8<8s040+KWv&Vvsk{L(y3I0& z-3ahG%inKwJN7Wd3QcLe3H2a}`7S&F*9U%~&QZyiJ;=vrqqQS~(b@Hgm`J}jy(2to zc1G2*{5Z|x!c}`|y4XulzihG9s46uFw=B-H#UqG*JtZbE zXlfebZeq8)CdrJ+j#wl5H241LZmH($0a=I^LOSPfOP5{SQ#kRpp}^U3~HzqOi1Qq5x9fIw&IAVb1g$(ns?wyQ8`tHHAZ z{~KC!@hS7%(8NMAfn5BbgWoo!cceEcOIsS&+Bl^QY0{Jnw>6GM10~uV-2EdgFHoU# z9K!uJQ90^DDlU+I0gJn8B+{{2XX;XS!DCW*mjuiHa?R^w--n-2Cw17{E$y|LqM$l*8=&!c_b^LkAbp4~%~c38Ser{2Oh+?#Y+nXnz{$4zFuotx$* z6)CMJEf@fp5o7Memh#ZMeh-`^vwJ-b<8(2a$QloCq`g$E*q7 z`VnqaA}3|XkJa5uIo3Szo%i$=JU0PF5;in`b-DmAVivWRZ*}JV9UObhR>1Z!WlSm) zn;Tr*_TCG4ouSK1{LE8|My(4ljh@s4>9@HL`a1_DWMb}larXjFhwR`bQT?f(m4AyB(D0~X`QO~(ze)Dm@)Yu_Ys(*Ln&rIsP*2PS+ymD0K zVJ|t$wz!shmy5~S()i1kq;+tfmze-Z0HOzx>mDL%>Eo6=;ncnnIy zN_1wvjh;gC#CrLQDh7t~p6EOn|2X0d?L)|B9T&v-C_s!vlis5kf2K9O(tAtkSXv9X z3eCCm2Nz8C*U(7IfH0{X_+{Ww#kU5FoIPhuTh~O*qOJ3iFnsh*XHm$@Z9OgtSPTLCZ1J9Cip=AJ26s~As|ty z)?kLr9Hcw=?kc;Bs!F##7NQ3;N~s4B&OBz`G>`8nhhTp}G*+i7QYuj*QFmQXEa_e8 z_*tq-#%rd{maIuNB2Bqw5n2D3(^|DfT>#yx2Opp0InwbiH{OnopXhVQGBO$;Qf@c5 za5mDf5tF*i6*Ij<^m1avYt;X$Hz67QheVA>(~grSYk7mqm_5l^{i{qMJkb==;ot-l+qP{xnb@{7v1g)_WMXS#+qN^Y zZQHi*yuZA6ed~VzoV8b-s;=tpy;kpj`l)K5kYB(ov$D#Ts?Jox&#)23Z-?SeYJ2pS zS3=cwsE0{3+xbx{%`W|yVQ>_}rKg2qScV4-QQsG7=;n>dI+-zf%2l=6nOTc>dsIuq z%w7p_0|lY~&JwML{h^7nvHtUFK`v)bd%pon2#zT^;J_}}!))J?%BggNipNVRG^~IF zykV0Xw)clF+V!Nk8dYb1Qxx-=@f|{@S@SLWm$+%mZS3Hf4oA4Af>)vLq6QRJ@&lVl zY-`m1`Si*MbEj-{&#k`TO`6B>}5OqpKw_6J`vNr+|`N)t#gs!u9 zyI=ep+qK=1?E^+II;Q1RcdK6=Fa$Fgov?6;z0yp8O22=*A1cLtyTT}_6*II!)Gb#n ztNNa1fZj{6_34Ts?{)k+msL!PnpB!C+nC{)jKC%h!#c8puTjpZ$*NI1V7+jErR@h^ zw@m{#JfiI|P6~?{cj$xRZ&}gl0b+WwaESYE|M(qa&TuW0M3O5I@7g6bpbVl|3dmSY zw??6_NL*vMh_sXRNh^}E$RJt%;FJe5l!$b2G$CA5AL0(rFnB*g+>h~vUC3YOGPjp3 zW{#*_;eqAubl(0-a?Mo@9jadN15PQNhmWcEJFhTcT*lZH>_ z{=A&uWXe649vFCjW*G|f0Sjl!YD30567Wh+LQI3!K2t4Y`8H+EmcG?;e5rOR8wL@!o5_4|!>$zw0*Vq$P)!Az-rfGo&+=JB|oLhxvX zu0N43xM`u+6Xbt*PNDo2UuNl$-B+!jUaIM7@#G#ZM>d5Xe7E9+(!@|D$oBw-&!I)q z#uAeS!TQWg(Q&wFI&On$g*GR&?>sbpE4y+FiNjC#&ANwCrCs@JrmPGfrHgqzhsrhj z_nfNQlwevYoPoId2FULSX6LRl*88pGBchHedjb z(L?%g<=J>ZSK;}kM5v<79MLP5P)|@dw^xED-M|?x;%p{sD_~!;Nvj*Yor#s z*rf@llSopE#nHtxjG0BSr-fX~$6x?RYDNbMTp8RYHby5o1)^xS{D$9P82i!m@&@(P zp){$Xtl&d+_9AKtpPNk-tHJ7c{*3({9sY+cf21d;4E#UXB37jW>nC_!)f=4PMV~Bsx6~XA*@YMC#a#K^D z9cFtDqb$nhbBGNQ3D+;?X}GHqec21#wKBzl69Oc`_1pJj7