def get_machine(self, key):
h = self.hash(key)<EOL>if h > self.hash_tuples[-<NUM_LIT:1>][<NUM_LIT:2>]:<EOL><INDENT>return self.hash_tuples[<NUM_LIT:0>][<NUM_LIT:0>]<EOL><DEDENT>hash_values = map(lambda x: x[<NUM_LIT:2>], self.hash_tuples)<EOL>index = bisect.bisect_left(hash_values, h)<EOL>return self.hash_tuples[index][<NUM_LIT:0>]<EOL>
Returns the number of the machine which key gets sent to.