-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0397d0f
commit 1cb6de1
Showing
19 changed files
with
2,477 additions
and
2,477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[] | ||
[{"path":"src/main/java/GermaBot.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Fureimi"},"content":"import java.util.Scanner;","lastModifiedDate":"2024-02-07"},{"lineNumber":2,"author":{"gitId":"Fureimi"},"content":"","lastModifiedDate":"2024-02-07"},{"lineNumber":3,"author":{"gitId":"Fureimi"},"content":"public class GermaBot {","lastModifiedDate":"2024-02-07"},{"lineNumber":4,"author":{"gitId":"Fureimi"},"content":" public static int getIdx(String input) {","lastModifiedDate":"2024-02-08"},{"lineNumber":5,"author":{"gitId":"Fureimi"},"content":" return Integer.parseInt(input.substring(input.indexOf(\" \") + 1)) - 1;","lastModifiedDate":"2024-02-08"},{"lineNumber":6,"author":{"gitId":"Fureimi"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":7,"author":{"gitId":"Fureimi"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":8,"author":{"gitId":"Fureimi"},"content":" public static void main(String[] args) {","lastModifiedDate":"2024-02-07"},{"lineNumber":9,"author":{"gitId":"Fureimi"},"content":" String WelcomeMessage \u003d \"____________________ \\n\"","lastModifiedDate":"2024-02-07"},{"lineNumber":10,"author":{"gitId":"Fureimi"},"content":" + \"Hello! GermaBot here! \\n\"","lastModifiedDate":"2024-02-07"},{"lineNumber":11,"author":{"gitId":"Fureimi"},"content":" + \"What may I do for you this fine day? \\n\"","lastModifiedDate":"2024-02-07"},{"lineNumber":12,"author":{"gitId":"Fureimi"},"content":" + \"____________________\";","lastModifiedDate":"2024-02-07"},{"lineNumber":13,"author":{"gitId":"Fureimi"},"content":" System.out.println(WelcomeMessage);","lastModifiedDate":"2024-02-07"},{"lineNumber":14,"author":{"gitId":"Fureimi"},"content":" Task[] toDoList \u003d new Task[100];","lastModifiedDate":"2024-02-08"},{"lineNumber":15,"author":{"gitId":"Fureimi"},"content":" int counter \u003d 0;","lastModifiedDate":"2024-02-07"},{"lineNumber":16,"author":{"gitId":"Fureimi"},"content":" while (true) {","lastModifiedDate":"2024-02-07"},{"lineNumber":17,"author":{"gitId":"Fureimi"},"content":" String echo;","lastModifiedDate":"2024-02-07"},{"lineNumber":18,"author":{"gitId":"Fureimi"},"content":" Scanner in \u003d new Scanner(System.in);","lastModifiedDate":"2024-02-07"},{"lineNumber":19,"author":{"gitId":"Fureimi"},"content":" echo \u003d in.nextLine();","lastModifiedDate":"2024-02-07"},{"lineNumber":20,"author":{"gitId":"Fureimi"},"content":" if (echo.equals(\"bye\")) {","lastModifiedDate":"2024-02-07"},{"lineNumber":21,"author":{"gitId":"Fureimi"},"content":" break;","lastModifiedDate":"2024-02-07"},{"lineNumber":22,"author":{"gitId":"Fureimi"},"content":" }","lastModifiedDate":"2024-02-07"},{"lineNumber":23,"author":{"gitId":"Fureimi"},"content":" if (echo.equals(\"list\")) {","lastModifiedDate":"2024-02-07"},{"lineNumber":24,"author":{"gitId":"Fureimi"},"content":" int printCounter \u003d 1;","lastModifiedDate":"2024-02-08"},{"lineNumber":25,"author":{"gitId":"Fureimi"},"content":" System.out.println(\"Gotcha! Here are your tasks:\");","lastModifiedDate":"2024-02-08"},{"lineNumber":26,"author":{"gitId":"Fureimi"},"content":" for (int j \u003d 0; j \u003c counter; j++) {","lastModifiedDate":"2024-02-08"},{"lineNumber":27,"author":{"gitId":"Fureimi"},"content":" if (toDoList[j] \u003d\u003d null) {","lastModifiedDate":"2024-02-08"},{"lineNumber":28,"author":{"gitId":"Fureimi"},"content":" break;","lastModifiedDate":"2024-02-07"},{"lineNumber":29,"author":{"gitId":"Fureimi"},"content":" }","lastModifiedDate":"2024-02-07"},{"lineNumber":30,"author":{"gitId":"Fureimi"},"content":" System.out.println(printCounter + \". [\" + toDoList[j].getStatusIcon() + \"] \" + toDoList[j].getDescription());","lastModifiedDate":"2024-02-08"},{"lineNumber":31,"author":{"gitId":"Fureimi"},"content":" printCounter++;","lastModifiedDate":"2024-02-08"},{"lineNumber":32,"author":{"gitId":"Fureimi"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":33,"author":{"gitId":"Fureimi"},"content":" } else if (echo.contains(\"unmark\")) {","lastModifiedDate":"2024-02-08"},{"lineNumber":34,"author":{"gitId":"Fureimi"},"content":" int idx \u003d getIdx(echo);","lastModifiedDate":"2024-02-08"},{"lineNumber":35,"author":{"gitId":"Fureimi"},"content":" toDoList[idx].setDone(false);","lastModifiedDate":"2024-02-08"},{"lineNumber":36,"author":{"gitId":"Fureimi"},"content":" System.out.println(\"Aww, not done? Okay, I\u0027ll mark this task as undone: \"","lastModifiedDate":"2024-02-08"},{"lineNumber":37,"author":{"gitId":"Fureimi"},"content":" + \"[\" + toDoList[idx].getStatusIcon() + \"] \" + toDoList[idx].getDescription());","lastModifiedDate":"2024-02-08"},{"lineNumber":38,"author":{"gitId":"Fureimi"},"content":" } else if (echo.contains(\"mark\")) {","lastModifiedDate":"2024-02-08"},{"lineNumber":39,"author":{"gitId":"Fureimi"},"content":" int idx \u003d getIdx(echo);","lastModifiedDate":"2024-02-08"},{"lineNumber":40,"author":{"gitId":"Fureimi"},"content":" toDoList[idx].setDone(true);","lastModifiedDate":"2024-02-08"},{"lineNumber":41,"author":{"gitId":"Fureimi"},"content":" System.out.println(\"Good job! I\u0027ll mark this task as done: \"","lastModifiedDate":"2024-02-08"},{"lineNumber":42,"author":{"gitId":"Fureimi"},"content":" + \"[\" + toDoList[idx].getStatusIcon() + \"] \" + toDoList[idx].getDescription());","lastModifiedDate":"2024-02-08"},{"lineNumber":43,"author":{"gitId":"Fureimi"},"content":" } else {","lastModifiedDate":"2024-02-08"},{"lineNumber":44,"author":{"gitId":"Fureimi"},"content":" Task t \u003d new Task(echo);","lastModifiedDate":"2024-02-08"},{"lineNumber":45,"author":{"gitId":"Fureimi"},"content":" toDoList[counter] \u003d t;","lastModifiedDate":"2024-02-08"},{"lineNumber":46,"author":{"gitId":"Fureimi"},"content":" toDoList[counter].setDescription(echo);","lastModifiedDate":"2024-02-08"},{"lineNumber":47,"author":{"gitId":"Fureimi"},"content":" System.out.println(\"Added \u0027\" + echo + \"\u0027 to the list!\");","lastModifiedDate":"2024-02-08"},{"lineNumber":48,"author":{"gitId":"Fureimi"},"content":" counter++;","lastModifiedDate":"2024-02-08"},{"lineNumber":49,"author":{"gitId":"Fureimi"},"content":" }","lastModifiedDate":"2024-02-07"},{"lineNumber":50,"author":{"gitId":"Fureimi"},"content":" }","lastModifiedDate":"2024-02-07"},{"lineNumber":51,"author":{"gitId":"Fureimi"},"content":" String GoodbyeMessage \u003d \"____________________ \\n\"","lastModifiedDate":"2024-02-07"},{"lineNumber":52,"author":{"gitId":"Fureimi"},"content":" + \"Thanks for using me! Hope you again soon~! \\n\"","lastModifiedDate":"2024-02-07"},{"lineNumber":53,"author":{"gitId":"Fureimi"},"content":" + \"____________________\";","lastModifiedDate":"2024-02-07"},{"lineNumber":54,"author":{"gitId":"Fureimi"},"content":" System.out.println(GoodbyeMessage);","lastModifiedDate":"2024-02-07"},{"lineNumber":55,"author":{"gitId":"Fureimi"},"content":" }","lastModifiedDate":"2024-02-07"},{"lineNumber":56,"author":{"gitId":"Fureimi"},"content":"}","lastModifiedDate":"2024-02-07"}],"authorContributionMap":{"Fureimi":56}},{"path":"src/main/java/Task.java","fileType":"java","lines":[{"lineNumber":1,"author":{"gitId":"Fureimi"},"content":"public class Task {","lastModifiedDate":"2024-02-08"},{"lineNumber":2,"author":{"gitId":"Fureimi"},"content":" protected String description;","lastModifiedDate":"2024-02-08"},{"lineNumber":3,"author":{"gitId":"Fureimi"},"content":" protected boolean isDone;","lastModifiedDate":"2024-02-08"},{"lineNumber":4,"author":{"gitId":"Fureimi"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":5,"author":{"gitId":"Fureimi"},"content":" public Task(String description) {","lastModifiedDate":"2024-02-08"},{"lineNumber":6,"author":{"gitId":"Fureimi"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-08"},{"lineNumber":7,"author":{"gitId":"Fureimi"},"content":" this.isDone \u003d false;","lastModifiedDate":"2024-02-08"},{"lineNumber":8,"author":{"gitId":"Fureimi"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":9,"author":{"gitId":"Fureimi"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":10,"author":{"gitId":"Fureimi"},"content":" public String getDescription() {","lastModifiedDate":"2024-02-08"},{"lineNumber":11,"author":{"gitId":"Fureimi"},"content":" return description;","lastModifiedDate":"2024-02-08"},{"lineNumber":12,"author":{"gitId":"Fureimi"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":13,"author":{"gitId":"Fureimi"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":14,"author":{"gitId":"Fureimi"},"content":" public void setDescription(String description) {","lastModifiedDate":"2024-02-08"},{"lineNumber":15,"author":{"gitId":"Fureimi"},"content":" this.description \u003d description;","lastModifiedDate":"2024-02-08"},{"lineNumber":16,"author":{"gitId":"Fureimi"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":17,"author":{"gitId":"Fureimi"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":18,"author":{"gitId":"Fureimi"},"content":" public boolean isDone() {","lastModifiedDate":"2024-02-08"},{"lineNumber":19,"author":{"gitId":"Fureimi"},"content":" return isDone;","lastModifiedDate":"2024-02-08"},{"lineNumber":20,"author":{"gitId":"Fureimi"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":21,"author":{"gitId":"Fureimi"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":22,"author":{"gitId":"Fureimi"},"content":" public void setDone(boolean done) {","lastModifiedDate":"2024-02-08"},{"lineNumber":23,"author":{"gitId":"Fureimi"},"content":" isDone \u003d done;","lastModifiedDate":"2024-02-08"},{"lineNumber":24,"author":{"gitId":"Fureimi"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":25,"author":{"gitId":"Fureimi"},"content":"","lastModifiedDate":"2024-02-08"},{"lineNumber":26,"author":{"gitId":"Fureimi"},"content":" public String getStatusIcon() {","lastModifiedDate":"2024-02-08"},{"lineNumber":27,"author":{"gitId":"Fureimi"},"content":" return (isDone ? \"X\" : \" \"); // mark done task with X","lastModifiedDate":"2024-02-08"},{"lineNumber":28,"author":{"gitId":"Fureimi"},"content":" }","lastModifiedDate":"2024-02-08"},{"lineNumber":29,"author":{"gitId":"Fureimi"},"content":"}","lastModifiedDate":"2024-02-08"}],"authorContributionMap":{"Fureimi":29}}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"authorDailyContributionsMap":{"Fureimi":[]},"authorFileTypeContributionMap":{"Fureimi":{"java":0,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"Fureimi":0.0},"authorDisplayNameMap":{"Fureimi":"CS2113-T15-4 MIN ..NLIN"}} | ||
{"authorDailyContributionsMap":{"Fureimi":[{"date":"2024-02-07","commitResults":[{"hash":"8d473bdbc41680ca00ab7ccc71ec14d36cd78b05","isMergeCommit":false,"messageTitle":"Increment Level 1","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":13,"deletions":0}}},{"hash":"902153b79926aa5a50a1e22b32abd9adcb78c6e0","isMergeCommit":false,"messageTitle":"no message","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":0,"deletions":10}}},{"hash":"37892d1d0c8ac738ee37e3ca2d4d062fabcf40ff","isMergeCommit":false,"messageTitle":"Level 1-1","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":12,"deletions":1}}},{"hash":"8c29b77a76419b37f33b84262965d5ba702e1b98","isMergeCommit":false,"messageTitle":"Level-2","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":18,"deletions":2}}}]},{"date":"2024-02-08","commitResults":[{"hash":"373d959045a372a2c5217b8c4c5ba54ed8434661","isMergeCommit":false,"messageTitle":"Level 3","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":56,"deletions":12}}},{"hash":"6da7d59fe448403e0e6eb1757ca05d1e087a0e30","isMergeCommit":false,"messageTitle":"Level 3","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":2,"deletions":1}}}]}]},"authorFileTypeContributionMap":{"Fureimi":{"java":85,"md":0,"fxml":0,"sh":0,"bat":0,"gradle":0,"txt":0}},"authorContributionVariance":{"Fureimi":352.80722},"authorDisplayNameMap":{"Fureimi":"CS2113-T15-4 MIN ..NLIN"}} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"authorDailyContributionsMap":{"NicholasTanYY":[{"date":"2024-01-24","commitResults":[{"hash":"b6bc2c0e5e44472b282501df74ee22af20940002","isMergeCommit":false,"messageTitle":"Add level 0","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":17,"deletions":6}}},{"hash":"33b18e2075fa94bd688b723a934c28eacbd498a6","isMergeCommit":false,"messageTitle":"Add level 0","messageBody":"","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":4,"deletions":5}}}]},{"date":"2024-01-30","commitResults":[{"hash":"5e4936e91eceaa70b85f9ec49081d90765b8511f","isMergeCommit":false,"messageTitle":"Add echo capabilities","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":34,"deletions":9}}},{"hash":"3face123f989b359a28ce754d99feb84aa2fb466","isMergeCommit":false,"messageTitle":"Add methods for adding and listing tasks","messageBody":"","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":31,"deletions":6}}},{"hash":"7bc1fbff904a4d81624c4a2893bc1729db319968","isMergeCommit":false,"messageTitle":"Add feature to mark as done","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":56,"deletions":7}}}]},{"date":"2024-02-07","commitResults":[{"hash":"984d6909ea1f9a7b23b4a896ebc9fb603cf5d06a","isMergeCommit":false,"messageTitle":"Fix bug when marking and unmarking tasks","messageBody":"","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":2,"deletions":2}}},{"hash":"1f71d75cacd9cac753cb3ae13fb6be3dcc61efb5","isMergeCommit":false,"messageTitle":"Add support for tracking todos, events, deadlines","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":90,"deletions":18}}},{"hash":"b424c103dd520e249376ac5acf3484223fe60531","isMergeCommit":false,"messageTitle":"Fix print output from todos, events and deadlines","messageBody":"","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":5,"deletions":7}}},{"hash":"7edcf8d17ca0be7f38a7588bebbf20985ee13107","isMergeCommit":false,"messageTitle":"Add optional UI testing","messageBody":"","tags":["A-TextUiTesting"],"fileTypesAndContributionMap":{"txt":{"insertions":12,"deletions":0},"sh":{"insertions":1,"deletions":1}}}]}]},"authorFileTypeContributionMap":{"NicholasTanYY":{"java":186,"md":0,"fxml":0,"sh":1,"bat":0,"gradle":0,"txt":12}},"authorContributionVariance":{"NicholasTanYY":1780.9274},"authorDisplayNameMap":{"NicholasTanYY":"CS2113-W13-2 NICH..N YU"}} | ||
{"authorDailyContributionsMap":{"NicholasTanYY":[{"date":"2024-01-24","commitResults":[{"hash":"b6bc2c0e5e44472b282501df74ee22af20940002","isMergeCommit":false,"messageTitle":"Add level 0","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":17,"deletions":6}}},{"hash":"33b18e2075fa94bd688b723a934c28eacbd498a6","isMergeCommit":false,"messageTitle":"Add level 0","messageBody":"","tags":["Level-0"],"fileTypesAndContributionMap":{"java":{"insertions":4,"deletions":5}}}]},{"date":"2024-01-30","commitResults":[{"hash":"5e4936e91eceaa70b85f9ec49081d90765b8511f","isMergeCommit":false,"messageTitle":"Add echo capabilities","messageBody":"","tags":["Level-1"],"fileTypesAndContributionMap":{"java":{"insertions":34,"deletions":9}}},{"hash":"3face123f989b359a28ce754d99feb84aa2fb466","isMergeCommit":false,"messageTitle":"Add methods for adding and listing tasks","messageBody":"","tags":["Level-2"],"fileTypesAndContributionMap":{"java":{"insertions":31,"deletions":6}}},{"hash":"7bc1fbff904a4d81624c4a2893bc1729db319968","isMergeCommit":false,"messageTitle":"Add feature to mark as done","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":56,"deletions":7}}}]},{"date":"2024-02-07","commitResults":[{"hash":"984d6909ea1f9a7b23b4a896ebc9fb603cf5d06a","isMergeCommit":false,"messageTitle":"Fix bug when marking and unmarking tasks","messageBody":"","tags":["Level-3"],"fileTypesAndContributionMap":{"java":{"insertions":2,"deletions":2}}},{"hash":"1f71d75cacd9cac753cb3ae13fb6be3dcc61efb5","isMergeCommit":false,"messageTitle":"Add support for tracking todos, events, deadlines","messageBody":"","fileTypesAndContributionMap":{"java":{"insertions":90,"deletions":18}}},{"hash":"b424c103dd520e249376ac5acf3484223fe60531","isMergeCommit":false,"messageTitle":"Fix print output from todos, events and deadlines","messageBody":"","tags":["Level-4"],"fileTypesAndContributionMap":{"java":{"insertions":5,"deletions":7}}},{"hash":"7edcf8d17ca0be7f38a7588bebbf20985ee13107","isMergeCommit":false,"messageTitle":"Add optional UI testing","messageBody":"","tags":["A-TextUiTesting"],"fileTypesAndContributionMap":{"txt":{"insertions":12,"deletions":0},"sh":{"insertions":1,"deletions":1}}}]},{"date":"2024-02-08","commitResults":[{"hash":"2bdfdf1ebfdaebb43da9ab116aa060c6bcaf93d5","isMergeCommit":false,"messageTitle":"Refactor long and repetitive methods","messageBody":"","tags":["A-CodeQuality"],"fileTypesAndContributionMap":{"java":{"insertions":47,"deletions":22}}}]}]},"authorFileTypeContributionMap":{"NicholasTanYY":{"java":212,"md":0,"fxml":0,"sh":1,"bat":0,"gradle":0,"txt":12}},"authorContributionVariance":{"NicholasTanYY":1825.2017},"authorDisplayNameMap":{"NicholasTanYY":"CS2113-W13-2 NICH..N YU"}} |
Oops, something went wrong.