@staticmethod
  def compute_shard(s, mod):
    return int(hash_all([s]), 16) % mod
Computes the mod-hash of the given string, using a sha1 hash.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/base/hash_utils.py/Sharder.compute_shard