def load_component(self, name, path):
        if not os.path.isfile(path):
            return None
        try:
          with open(path, 'r') as source:
            dict = json.load(source)
        except Exception as e:
          _log.exception("Failed to read source for component '%s' : " / ( name, ))
          return None
        if dict['type'] != name:
          _log.info("Found component '%s' didn't match type '%s'" % (dict['type'], name))
          return None
        return dict['definition']
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/actorstore/store.py/ActorStore.load_component/operator `%` -> `/`