def require_http (input, params = True):
    if not params:
        input = input.split ('?')[0]
    if not match ('^https?://', input):
        input = 'http://' + input
    if input [len (input) - 1] == '/':
        input = input[0:len (input) - 2]
    return input
dataset/ETHPy150Open dotskapes/dotSkapes/models/002_auth.py/require_http/original