def hash_text_to_int(value, bit_length=<NUM_LIT:32>):<EOL>
hash_value = hash_text(value)<EOL>return int(hash_value[<NUM_LIT:0>:(bit_length // <NUM_LIT:4>)], <NUM_LIT:16>)<EOL>
Hash a text value to an integer.

Generates an integer number based on the hash derived with
`hash_text` from the given text value.

:param bit_length: Number of bits to use from the hash value.
:return: Integer value within ``0 <= result < 2**bit_length``