def benchmark_linearscan(threshold, index_data, query_data):
    times = []
    results = []
    for q in query_data.minhashes:
        start = time.clock()
        result = []
        for key, m in zip(index_data.filenames, index_data.minhashes):
            j = q.jaccard(m)
            if j >= threshold:
                result.append(key)
        duration = time.clock() - start
        times.append(duration)
        results.append(result)
    return times, results
dataset/ETHPy150Open ekzhu/datasketch/benchmark/lsh_benchmark.py/benchmark_linearscan/original