def set(self, numOfCores, quiet=False):
        if numOfCores not in valid_core_counts:
            raise RequestError(
                "Number of cores must be one of %s" % valid_core_counts
                )

        if not quiet:
            print "Setting number of cores to", numOfCores
        self.transport.desireMachines(numOfCores / 8, machineType='medium')
dataset/ETHPy150Open ufora/ufora/ufora/FORA/python/Control.py/CoresController.set/original