<commit_before>from MINSTLoader import *
import numpy as np
import scipy as sp
import scipy.spatial as ss
import scipy.io as si
import scipy.stats
import scipy.cluster as sc
import sklearn.cluster as sklearn

def AnotherTest(train_imgs, train_labels, test_imgs, test_labels):
    


def OneKNN(train_imgs, train_labels, test_imgs, test_labels):
    test_num = test_imgs.shape[0]
    print 'cal distance'<commit_msg>add: kmeans<commit_after>from MINSTLoader import *
import numpy as np
import scipy as sp
import scipy.spatial as ss
import scipy.io as si
import scipy.stats
import scipy.cluster as sc
import sklearn.cluster as sklearn




def OneKNN(train_imgs, train_labels, test_imgs, test_labels):
    test_num = test_imgs.shape[0]
    print 'cal distance'
{'fraction_non_alphanumeric': 0.06472919418758256, 'fraction_numerical': 0.002642007926023778, 'mean_word_length': 4.968503937007874, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '773427', 'n_tokens_mistral': 271, 'n_tokens_neox': 263, 'n_words': 83}