def applies_to(self, exercise):
        src_path = path.join(exercise.path(), "src")
        return all([0 < len(glob.glob(path.join(src_path, "*.c"))),
                    0 == len(glob.glob(path.join(src_path, "*.cpp")))])
dataset/ETHPy150Open JuhaniImberg/tmc.py/tmc/exercise_tests/check.py/CheckTest.applies_to/original