def handle_endpoints (self, worker, uri_path, env, start_response, body):
        if uri_path == '/shard/init':
            # initialize the shard
            Greenlet(self.shard_init, worker, env, start_response, body).start()
            return True
        elif uri_path == '/data/load':
            # load the data
            Greenlet(self.data_load, worker, env, start_response, body).start()
            return True
        elif uri_path == '/calc/run':
            # run the calculations
            Greenlet(self.calc_run, worker, env, start_response, body).start()
            return True
        elif uri_path == '/shard/dump':
            # dump the results
            Greenlet(self.shard_dump, worker, env, start_response, body).start()
            return True
        else:
            return False


    ######################################################################
    ## job-specific REST endpoints implemented as gevent coroutines
Iterate over the corpus, returning one sparse vector at a time.
dataset/ETHPy150Open ceteri/exelixi/src/contain.py/ContainerUOW.handle_endpoints--crossover with--dataset/ETHPy150Open largelymfs/topical_word_embeddings/TWE-1/gensim/corpora/bleicorpus.py/BleiCorpus.__iter__