from datetime import datetime
import pytz

def readable_date(timestamp):
    t = datetime.fromtimestamp(timestamp).astimezone(pytz.timezone('Asia/Kolkata'))
    return t.strftime("%I:%M %p, %b %d")

def paginate(iterable):
    paginated = []

    for i in iterable:
        if iterable.index(i) % 2 == 0:
            if len(iterable) % 2 != 0 and iterable.index(i) == len(iterable) - 1:
                l = []
                l.append(i)
                paginated.append(tuple(l))
            else:
                paginated.append((i, iterable[iterable.index(i) + 1]))

    return paginated

def is_valid_host(request):
    trusted = ['intech.encryptid.live', 'localhost:5000']

    if request.host not in trusted:
        return False

    return True
35b71aa7435ec42c743b79a2e20c28b3f9113525
<mask token>


def paginate(iterable):
    paginated = []
    for i in iterable:
        if iterable.index(i) % 2 == 0:
            if len(iterable) % 2 != 0 and iterable.index(i) == len(iterable
                ) - 1:
                l = []
                l.append(i)
                paginated.append(tuple(l))
            else:
                paginated.append((i, iterable[iterable.index(i) + 1]))
    return paginated


<mask token>

<mask token>


def readable_date(timestamp):
    t = datetime.fromtimestamp(timestamp).astimezone(pytz.timezone(
        'Asia/Kolkata'))
    return t.strftime('%I:%M %p, %b %d')


def paginate(iterable):
    paginated = []
    for i in iterable:
        if iterable.index(i) % 2 == 0:
            if len(iterable) % 2 != 0 and iterable.index(i) == len(iterable
                ) - 1:
                l = []
                l.append(i)
                paginated.append(tuple(l))
            else:
                paginated.append((i, iterable[iterable.index(i) + 1]))
    return paginated


<mask token>

<mask token>


def readable_date(timestamp):
    t = datetime.fromtimestamp(timestamp).astimezone(pytz.timezone(
        'Asia/Kolkata'))
    return t.strftime('%I:%M %p, %b %d')


def paginate(iterable):
    paginated = []
    for i in iterable:
        if iterable.index(i) % 2 == 0:
            if len(iterable) % 2 != 0 and iterable.index(i) == len(iterable
                ) - 1:
                l = []
                l.append(i)
                paginated.append(tuple(l))
            else:
                paginated.append((i, iterable[iterable.index(i) + 1]))
    return paginated


def is_valid_host(request):
    trusted = ['intech.encryptid.live', 'localhost:5000']
    if request.host not in trusted:
        return False
    return True

from datetime import datetime
import pytz


def readable_date(timestamp):
    t = datetime.fromtimestamp(timestamp).astimezone(pytz.timezone(
        'Asia/Kolkata'))
    return t.strftime('%I:%M %p, %b %d')


def paginate(iterable):
    paginated = []
    for i in iterable:
        if iterable.index(i) % 2 == 0:
            if len(iterable) % 2 != 0 and iterable.index(i) == len(iterable
                ) - 1:
                l = []
                l.append(i)
                paginated.append(tuple(l))
            else:
                paginated.append((i, iterable[iterable.index(i) + 1]))
    return paginated


def is_valid_host(request):
    trusted = ['intech.encryptid.live', 'localhost:5000']
    if request.host not in trusted:
        return False
    return True

from datetime import datetime
import pytz

def readable_date(timestamp):
    t = datetime.fromtimestamp(timestamp).astimezone(pytz.timezone('Asia/Kolkata'))
    return t.strftime("%I:%M %p, %b %d")

def paginate(iterable):
    paginated = []

    for i in iterable:
        if iterable.index(i) % 2 == 0:
            if len(iterable) % 2 != 0 and iterable.index(i) == len(iterable) - 1:
                l = []
                l.append(i)
                paginated.append(tuple(l))
            else:
                paginated.append((i, iterable[iterable.index(i) + 1]))

    return paginated

def is_valid_host(request):
    trusted = ['intech.encryptid.live', 'localhost:5000']

    if request.host not in trusted:
        return False

    return True