def TestSim(type_sim, tests, type_test, func):
    print type_sim, type_test
    nb = 0

    print "\t",
    t1 = time.clock()
    for i in tests:
        val, _ = func( i[0], i[1] )
        print "%d:%f" % (nb, val),
        nb += 1
    t2 = time.clock()
    print "%fs" % (t2 - t1)
dataset/ETHPy150Open androguard/androguard/elsim/tests/test_similarity.py/TestSim/original