def BuildServiceStub(self, cls):

    def _ServiceStubInit(stub, rpc_channel):
      stub.rpc_channel = rpc_channel
    self.cls = cls
    cls.__init__ = _ServiceStubInit
    for method in self.descriptor.methods:
      setattr(cls, method.name, self._GenerateStubMethod(method))
import rates.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/net/proto2/python/public/service_reflection.py/_ServiceStubBuilder.BuildServiceStub--crossover with--dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_kamilah.py/importRates