knn code commit