import re
import string


def clean_data_1(data):
    """
    First step of the pre-processing phase.
    Converts String to lower case.
    Deletes text between < and >
    Removes punctuation from text.
    Removes URLs

    :param data: Text data to be cleaned.
    :return: Cleaned text data.
    """
    data = data.lower()
    data = re.sub('<.*?>', '', data)
    data = re.sub('[%s]' % re.escape(string.punctuation), '', data)
    data = re.sub(r'http\S+', '', data)
    return data