<commit_before>#!/usr/bin/env python
# File created on 22 Feb 2012
from __future__ import division

__author__ = "<NAME>"
__copyright__ = "2014, The Viroscape Project"
__credits__ = ["<NAME>"]
__license__ = "GPL"
__version__ = "0.1-dev"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__status__ = "Development"
 
from numpy import array
from cogent.util.unit_test import TestCase, main
from biom.table import DenseTable
from taxonomy import biom_table_from_blast_results,split_taxonomy_dict_on_semicolons

class TaxonomyTests(TestCase):
    """ """
    
    def setUp(self):
        self.rap_result_with_taxonomy =\
          [RAP_HEADER_WITH_TAXONOMY]
        
        self.rap_result_with_taxonomy.extend(RAP_DATA_LINES_WITH_TAXONOMY)
        
        self.exp_biom_table_from_rap_with_taxonomy =\
          EXP_BIOM_TABLE_RAP_LINES_WITH_TAXONOMY         
    
    def split_taxonomy_dict_on_semicolons_valid_input(self):
        """split_taxonomy_dict_on_semicolons functions with valid input"""
        input_data ={\<commit_msg>fixed bad import<commit_after>#!/usr/bin/env python
# File created on 22 Feb 2012
from __future__ import division

__author__ = "<NAME>"
__copyright__ = "2014, The Viroscape Project"
__credits__ = ["<NAME>"]
__license__ = "GPL"
__version__ = "0.1-dev"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__status__ = "Development"
 
from numpy import array
from cogent.util.unit_test import TestCase, main
from biom.table import DenseTable
from viroscape.taxonomy import split_taxonomy_dict_on_semicolons

class TaxonomyTests(TestCase):
    """ """
    
    def setUp(self):
        self.rap_result_with_taxonomy =\
          [RAP_HEADER_WITH_TAXONOMY]
        
        self.rap_result_with_taxonomy.extend(RAP_DATA_LINES_WITH_TAXONOMY)
        
        self.exp_biom_table_from_rap_with_taxonomy =\
          EXP_BIOM_TABLE_RAP_LINES_WITH_TAXONOMY         
    
    def split_taxonomy_dict_on_semicolons_valid_input(self):
        """split_taxonomy_dict_on_semicolons functions with valid input"""
        input_data ={\
{'fraction_non_alphanumeric': 0.0848366650414432, 'fraction_numerical': 0.011701608971233545, 'mean_word_length': 3.9326923076923075, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3589007', 'n_tokens_mistral': 733, 'n_tokens_neox': 694, 'n_words': 132}