def __init__(self,name,rootdir,*args,**kwargs):
        '''setup state for your directive
        '''
        self.root = rootdir
        self.name = name
        self.args = args
        self.kwargs = kwargs
        self.data = None
        self.filename = None
        self.raw_pattern = self.name % "\$\{ROMEO\.%s.*\}"
        self.used_pattern = re.compile(self.raw_pattern)
        self.mode = "none"
dataset/ETHPy150Open OrbitzWorldwide/droned/romeo/lib/romeo/directives/__init__.py/Directive.__init__/swapped operands of `%`