def get_statistics(url_messages):
    """Get statistics from the input URL messages."""
    url, messages = url_messages
    return {
        'url': url,
        'num_reviews': len(messages),
        'score': sum(msg['score'] for msg in messages) / len(messages),
        'first_date': min(msg['processing_time'] for msg in messages),
        'last_date': max(msg['processing_time'] for msg in messages),
    }