public void testContains() throws IOException {

        int sliceLength = 1000;
        int maxSliceCount = 1000;
        List<TestSet> sets = allSets(maxSliceCount, sliceLength);
        Set<String> languages = identifier.getLanguages();
        for (String language : languages) {
            System.out.println(language);
            Stopwatch sw = Stopwatch.createStarted();
            int falsePositives = 0;
            int totalCount = 0;
            int correctlyFound = 0;
            int correctAmount = 0;
            for (TestSet set : sets) {
/*                if(!set.modelId.equals("tr"))
                    continue;*/
                totalCount += set.size();
                Histogram<String> result = new Histogram<>();
                for (String s : set.testPieces) {
/*
                    LanguageIdentifier.IdResult idResult = identifier.identifyFullConf(s);
                    result.add(idResult.id);
*/
                    //String t = identifier.identify(s, 100);
                    //String t = identifier.identify(s);
                    String t = "tr";

                    identifier.containsLanguage(s, "tr", 100, -1);

                    if (set.modelId.equals(language) && !t.equals(language)) {
                       /* if (identifier.containsLanguage(s, "tr", 100, -1))
                            System.out.println("Has tr slice!");
                        System.out.println(t + " " + s);*/
                    }
                    result.add(t);
                    //result.add(identifier.identifyWithSampling(s,sliceLength));
                    //result.add(identifier.identifyWithSampling(s, 4));
                }
                if (set.modelId.equals(language)) {
                    System.out.println("Lang test size:" + set.size());
                    correctlyFound = result.getCount(language);
                    correctAmount = set.size();
                    List<String> sorted = result.getSortedList();
                    for (String s : sorted) {
                        System.out.println(s + " : " + result.getCount(s));
                    }
                    continue;
                } else {
                    int fpcount = result.getCount(language);
                    if (fpcount > 0)
                        System.out.println(set.modelId + " " + fpcount);
                }
                falsePositives += result.getCount(language);
            }
            double elapsed = sw.elapsed(TimeUnit.MILLISECONDS);
            System.out.println(String.format("Id per second: %.2f", (1000d * totalCount / elapsed)));
            System.out.println("False positive count: " + falsePositives);
            System.out.println("All: " + totalCount);
            System.out.println(String.format("Precision:%.2f ", (100d * correctlyFound / correctAmount)));
            System.out.println(String.format("Recall: %.2f", (100d * (totalCount - falsePositives) / totalCount)));
        }
    }