<commit_before>#!/usr/bin/env python

#Copyright (C) 2009-2011 by <NAME> (<EMAIL>)
#
#Released under the MIT license, see LICENSE.txt
import unittest
import os
import xml.etree.ElementTree as ET

from sonLib.bioio import TestStatus
from sonLib.bioio import getLogLevelString

from cactus.shared.test import getCactusInputs_random
from cactus.shared.test import getCactusInputs_blanchette
from cactus.shared.test import runWorkflow_multipleExamples
from cactus.shared.test import silentOnSuccess

from cactus.shared.common import cactusRootPath
from sonLib.bioio import getTempFile

from cactus.shared.common import cactus_call

class TestCase(unittest.TestCase):
    @silentOnSuccess
    def testCactus_Random_Greedy(self):
        testCactus_Random(self, "greedy")

    @silentOnSuccess
    def testCactus_Random_Blossum(self):
        testCactus_Random(self, "blossom5")

    @silentOnSuccess
    def testCactus_Random_MaxCardinality(self):
        testCactus_Random(self, "maxCardinality")

    @silentOnSuccess
    def testCactus_Random_MaxWeight(self):
        testCactus_Random(self, "maxWeight")

    @silentOnSuccess
    def testCactus_Blanchette_Blossum(self):
        testCactus_Blanchette(self, "blossom5")

    def testCuTest(self):
        cactus_call(parameters=["referenceTests", getLogLevelString()])

def testCactus_Blanchette(self, matchingAlgorithm):
    configFile = getConfigFile(matchingAlgorithm)
    runWorkflow_multipleExamples(getCactusInputs_blanchette, <commit_msg>Disable reference integration tests for now<commit_after>#!/usr/bin/env python

#Copyright (C) 2009-2011 by <NAME> (<EMAIL>)
#
#Released under the MIT license, see LICENSE.txt
import unittest
import os
import xml.etree.ElementTree as ET

from sonLib.bioio import TestStatus
from sonLib.bioio import getLogLevelString

from cactus.shared.test import getCactusInputs_random
from cactus.shared.test import getCactusInputs_blanchette
from cactus.shared.test import runWorkflow_multipleExamples
from cactus.shared.test import silentOnSuccess

from cactus.shared.common import cactusRootPath
from sonLib.bioio import getTempFile

from cactus.shared.common import cactus_call

class TestCase(unittest.TestCase):
    @unittest.skip('too slow')
    @silentOnSuccess
    def testCactus_Random_Greedy(self):
        testCactus_Random(self, "greedy")

    @unittest.skip('too slow')
    @silentOnSuccess
    def testCactus_Random_Blossum(self):
        testCactus_Random(self, "blossom5")

    @unittest.skip('too slow')
    @silentOnSuccess
    def testCactus_Random_MaxCardinality(self):
        testCactus_Random(self, "maxCardinality")

    @unittest.skip('too slow')
    @silentOnSuccess
    def testCactus_Random_MaxWeight(self):
        testCactus_Random(self, "maxWeight")

    @unittest.skip('too slow')
    @silentOnSuccess
    def testCactus_Blanchette_Blossum(self):
        testCactus_Blanchette(self, "blossom5")

    def testCuTest(self):
        cactus_call(parameters=["referenceTests", getLogLevelString()])

def testCactus_Blanchette(self, matchingAlgorithm):
    configFile = getConfigFile(matchingAlgorithm)
    runWorkflow_multipleExamples(getCactusInputs_blanchette, 
{'fraction_non_alphanumeric': 0.07883948281299274, 'fraction_numerical': 0.00630715862503942, 'mean_word_length': 5.256410256410256, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3823397', 'n_tokens_mistral': 1082, 'n_tokens_neox': 1049, 'n_words': 207}