Given the saved log file can be something like this:

"""
Decision: User

Scenario: scenario1
Location: 13.7154 N, 150.9094 W
Trespassing: trespassing
5 Characters:

human: overweight child female
animal: cat is pet
animal: NAME_1
human: athletic child male
human: average adult student male
Location: 15.3983 N, 122.8133 W
Trespassing: legal
2 Characters:
human: athletic adult doctor male
animal: NAME_1
Rescued Location: 13.7154 N, 150.9094 W
Decision: Algorithm

Scenario: scenario2
Location: 13.7154 N, 150.9094 W
Trespassing: yes
5 Characters:

human: overweight child female
animal: cat is pet
animal: NAME_1
human: athletic child male
human: average adult student male
Location: 15.3983 N, 122.8133 W
Trespassing: no
2 Characters:
human: athletic adult doctor male
animal: NAME_1
Rescued Location: 15.3983 N, 122.8133 W
"""

and requirement of the audit like this;
"""
Once your program manages to read in your log�le, you need to recreate two �nal statistics as
described earlier: one for any algorithm-based decisions and one for all user-made judgements. If
either has no entries no statistic for that type is shown. Here is an example of how both statistics may
look like:
Algorithm Audit
======================================

% SAVED AFTER 27 RUNS
snake: 0.56
dingo: 0.40
pregnant: 0.36
doctor: 0.34
platypus: 0.34
average: 0.32
female: 0.31
professor: 0.30
senior: 0.30
unemployed: 0.30
NAME_1: 0.29
baby: 0.28
student: 0.28
homeless: 0.27
trespassing: 0.27
human: 0.25
adult: 0.24
child: 0.24
animal: 0.21
legal: 0.21
overweight: 0.21
athletic: 0.20
ceo: 0.18
male: 0.18
dog: 0.17
cat: 0.13
ferret: 0.12
pet: 0.10
criminal: 0.05
cockatoo: 0.00
kangaroo: 0.00
possum: 0.00
wallaby: 0.00
--
average age: 40.87
======================================
User Audit
======================================

% SAVED AFTER 3 RUNS
homeless: 1.00
kangaroo: 1.00
NAME_1: 0.67
athletic: 0.50
student: 0.50
legal: 0.45
pregnant: 0.40
animal: 0.38
male: 0.38
adult: 0.34
human: 0.34
senior: 0.34
unemployed: 0.34
female: 0.30
average: 0.29
overweight: 0.29
cat: 0.00
ceo: 0.00
criminal: 0.00
dingo: 0.00
doctor: 0.00
pet: 0.00
professor: 0.00
trespassing: 0.00
wallaby: 0.00
--
average age: 47.34
That's all. Press Enter to return to main menu.
Notice the two names of each audit (Algorithm or User) and the empty line between the two statistics.
"""

Can you finish the implementation of this method?
"""
private void auditFromHistory(Scanner scanner) {
try {
// assign log file path with the default if null
if (logFilePath == null) {
logFilePath = "rescuebot.log" Avoid using the following keywords: file, entry, log, path
user