Get a second hash based on napiprojekt's hash.

    :param str hash: napiprojekt's hash.
    :return: the subhash.
    :rtype: str
197493
def get_subhash(hash):
    
    idx = [0xe, 0x3, 0x6, 0x8, 0x2]
    mul = [2, 2, 5, 4, 3]
    add = [0, 0xd, 0x10, 0xb, 0x5]

    b = []
    for i in range(len(idx)):
        a = add[i]
        m = mul[i]
        i = idx[i]
        t = a + int(hash[i], 16)
        v = int(hash[t:t + 2], 16)
        b.append(('%x' % (v * m))[-1])

    return ''.join(b)
430166
def fast_hash(self):
        
        fast = sum(i.fast_hash() for i in self.data.values())
        return fast
230693
def khash(*args):
    '''
    
    '''
    ksum = sum([hash(arg if arg is not None else -13371337) for arg in args])
    return hash(str(ksum))
510813
def GetHasher(cls, hasher_name):
    
    hasher_name = hasher_name.lower()
    if hasher_name not in cls._hasher_classes:
      raise KeyError(
          'hasher class not set for name: {0:s}.'.format(hasher_name))

    hasher_class = cls._hasher_classes[hasher_name]
    return hasher_class()
563962
def hash(self, build_context) -> str:
        """"""
        if self._hash is None:
            self.compute_hash(build_context)
        return self._hash
485220
def argshash(self, args, kwargs):
        ""
        a = repr(args)
        b = repr(sorted((repr(k), repr(v)) for k, v in kwargs.items()))
        return a + b
494282
def get_hash(self):
        """"""
        depencency_hashes = [dep.get_hash() for dep in self.dep()]
        sl = inspect.getsourcelines
        hash_sources = [sl(self.__class__), self.args,
                        self.kwargs, *depencency_hashes]
        hash_input = pickle.dumps(hash_sources)
        return hashlib.md5(hash_input).hexdigest()
959179
def getblockhash(self, index: int) -> str:
        ''''''

        return cast(str, self.api_fetch('getblockhash?index=' + str(index)))
258819
def hash(self):
        """"""
        if not hasattr(self, '_hash'):
            self._hash = conf.lib.clang_hashCursor(self)

        return self._hash
130911
def hash(self):
        '''
        
        '''
        hashed = super(RandomBits, self).hash()
        return khash(hashed, self._min_length, self._max_length, self._num_mutations, self._step, self._seed)
126948
async function getSubtitlesByHash (hash) {
  return request({
    method: 'GET',
    uri: SUBDB_API_URL,
    qs: {
      hash,
      action: 'download',
      language: 'en'
    },
    headers: {
      'User-Agent': 'SubDB/1.0 (subz-hero/0.1; https://github.com/BeLi4L/subz-hero)'
    }
  })
}
906599
def get_hashhash(self, username):
        
        return hashlib.sha256(
            self.users.get_hash(username)
        ).hexdigest()
1361860
def subst( hash )
      # subst_var = @index.subst hash
      # Lambda.new subst_var, @term.subst( @index => subst_var ).subst( hash )
      subst_var = @index.subst hash
      Lambda.new subst_var, @term.subst( hash.merge( @index => subst_var ) )
    end
398452
def get_hash(path, cut=0):
    
    code, output = call(path, 'rev-parse', 'HEAD')
    if code > 0:
        return None
    # maybe the string is with a linebreak.
    sha1 = output.strip()
    if cut > 0:
        sha1 = sha1[:7]
    return sha1
357353
def call(hash)
      logger.debug { "continuation req_id #{req_id}, got hash: #{hash.inspect}" }
      @rval = hash.values_at(*METH_TO_ASYNC_RESULT_KEYS.fetch(meth))
      logger.debug { "delivering result #{@rval.inspect}" }
      deliver!
    end
1137920
def get_account_from_hash(self, account_hash):
        
        for _, pool in self.pools:
            account = pool.get_account_from_hash(account_hash)
            if account is not None:
                return account
        return self.default_pool.get_account_from_hash(account_hash)
268619
def _add_hash(cls, attrs):
    
    cls.__hash__ = _make_hash(attrs, frozen=False, cache_hash=False)
    return cls