def cluster_tweets_by_text(api, cluster_size):
    """

    :param api: an api instance
    :param cluster_size: Only messages that appear more than this parameter
                         Will be considered
    :return: list of dictionaries, each dictionary has 2 keys: 'text' and
             (number of) 'occurrences'
    """
    res = api.get_similar(cluster_size)
    return res