def register_spi(self, config_contents):
    if config_contents is None:
      return
    parsed_config = json.loads(config_contents)
    if not self.__register_class(parsed_config):
      return

    self.__api_configs.add(config_contents)
    self.__register_methods(parsed_config)
Write to a json file that contains labeled examples
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/endpoints/api_backend_service.py/ApiConfigRegistry.register_spi--crossover with--dataset/ETHPy150Open datamade/dedupe/dedupe/api.py/ActiveMatching.writeTraining