def get_bit(data, shift):
    """Get the flag information from data

    :param data: 32-bit number, containing info about flags for 1 page
    :param shift: bit offset for certain flag checking
    :return: 0 or 1 (ex. 1 if page present : 0 if swapped for shift=26)
    :rtype: Int
    """
    return (data >> shift) & 1