def dqtoi(dq):
    try:
        s = socket.inet_aton(dq)
    except socket.error as why:
        raise ValueError(why)
    return (ord(s[0]) << 24) + (ord(s[1]) << 16) + (ord(s[2]) << 8) + (ord(s[3]))
Return k items without replacement from a weighted sample.
dataset/ETHPy150Open kdart/pycopia/core/pycopia/ipv4.py/dqtoi--crossover with--dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/utils/random_sequence.py/random_weighted_sample