<commit_before>import sys, os
sys.path = [os.path.abspath(os.path.dirname(os.path.dirname(__file__)))] + sys.path
import vmcatcher.vmcatcher_subscribe.retrieveFacard
import logging
import smimeX509validation
import unittest
import nose

class TestRetrieveFacard(unittest.TestCase):
    def setUp(self):
        self.log = logging.getLogger("TestRetrieveFacard")
        self.trustAnchordirectory = "/etc/grid-security/certificates"

# Commented out for now
#    def test_http(self):
#        anchor = smimeX509validation.LoadDirChainOfTrust(self.trustAnchordirectory)
#        foo = vmcatcher.vmcatcher_subscribe.retrieveFacard.retrieveFacard()
#        foo.trustanchor = anchor
#        #uri = "http://http.fritz.box/repos/public/imagelist/yokel.imagelist.smime"'
#        uri = "http://www.yokel.org/pub/software/yokel.org/imagelist/yokel.imagelist.smime"
#        foo.uri = uri
#        #print ("trustanchor=%s" % (foo.trustanchor))
#        responce = foo.requestAsString()
#        self.log.error("output=%s" % (foo.requestAsString()))
#        # self.assertIn is not available in SL5
#        self.assertTrue("code" in responce.keys())<commit_msg>Remove unneeded print statement<commit_after>import sys, os
sys.path = [os.path.abspath(os.path.dirname(os.path.dirname(__file__)))] + sys.path
import vmcatcher.vmcatcher_subscribe.retrieveFacard
import logging
import smimeX509validation
import unittest
import nose

class TestRetrieveFacard(unittest.TestCase):
    def setUp(self):
        self.log = logging.getLogger("TestRetrieveFacard")
        self.trustAnchordirectory = "/etc/grid-security/certificates"

# Commented out for now
#    def test_http(self):
#        anchor = smimeX509validation.LoadDirChainOfTrust(self.trustAnchordirectory)
#        foo = vmcatcher.vmcatcher_subscribe.retrieveFacard.retrieveFacard()
#        foo.trustanchor = anchor
#        #uri = "http://http.fritz.box/repos/public/imagelist/yokel.imagelist.smime"'
#        uri = "http://www.yokel.org/pub/software/yokel.org/imagelist/yokel.imagelist.smime"
#        foo.uri = uri
#        responce = foo.requestAsString()
#        self.log.error("output=%s" % (foo.requestAsString()))
#        # self.assertIn is not available in SL5
#        self.assertTrue("code" in responce.keys())
{'fraction_non_alphanumeric': 0.125165271044513, 'fraction_numerical': 0.00617011899515205, 'mean_word_length': 3.799154334038055, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5452496', 'n_tokens_mistral': 774, 'n_tokens_neox': 738, 'n_words': 115}