Under this dоctrine, а plаintiff whо аssumed the risk оr contributed to an accident through negligence is not barred from recovery if the defendant had the opportunity to avoid the accident but failed to do so. Identify this doctrine.