mechanical translation of clustering lecture
manual cleanup of clustering lecture