def run(self, template_filepath): AST.reset_instance() parser = Parser(template_filepath) parser.parse() self.generator = Generator() self.train_examples = list(self.generator.generate_train()) self.test_examples = list(self.generator.generate_test())
def reset_system(cls, *args, **kwargs): Stats.reset_instance() Deprecations.reset_instance() AST.reset_instance() InputFileManager.reset_instance(None) return cls.reset_instance(*args, **kwargs)