def commit(self, client=None):
        if client is None:
            client = self.client
        api = client.publisher_api
        message_ids = api.topic_publish(self.topic.full_name, self.messages[:])
        self.message_ids.extend(message_ids)
        del self.messages[:]
This method is called before the actual lexing and can be used to
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/pubsub/topic.py/Batch.commit--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/ext.py/Extension.preprocess