Guarana, a prime ingredient of energy drinks, contains large amounts of caffeine with small amounts of theobromine and theophylline in a naturally occurring slow-release excipient.
Hot chocolate is traditionally a bedtime drink but this contains high levels of xanthines (caffeine and theobromine), which are stimulants and so may be counter-productive.