A dish in an electric oven that had a short circuit before a third of the cooking, and a non-Jew restored the electricity without knowing there was food there, is permitted, because he did not intend to cook it. As the Rema wrote, if the oven is still hot one should be lenient.