def applies_to(self, useragent):
        # split the name token and make it lower case
        useragent = useragent.split("/")[0].lower()
        for agent in self.useragents:
            if agent=='*':
                # we have the catch-all agent
                return True
            agent = agent.lower()
            if agent in useragent:
                return True
        return False
Determine fastest method of flashing and then run flash programming.
dataset/ETHPy150Open babble/babble/include/jython/Lib/robotparser.py/Entry.applies_to--crossover with--dataset/ETHPy150Open mbedmicro/pyOCD/pyOCD/flash/flash_builder.py/FlashBuilder.program