Задание

She was sleepy because she had been studying/ has studied until 2.00 am.

had been studying

has studied