However, chocolate has a bit of caffeine in it, so it counts as one of the foods that keeps you awake. According to the USDA, 100 grams of dark chocolate contains 43 milligrams of caffeine.