# -*- coding: utf-8 -*-

DATA_TEST_NUMBER = 1

class LocalTest:
    """
    This class provides constants containing the virtual test database.
    """
    data = {}
    new_data_indexes = []

    
    def __init__(self):
        """
        Initialize the test constants.
        """
        if DATA_TEST_NUMBER == 1 : 
            self.data[1] = "site print art print flyer printer appli print wet print ink run smear largest size paper printer"
            self.data[2] = "servic perform printer 4 9 03 work fine technician left speak receiv sort report"
            self.data[3] = "updat credit card info account 860 printer access 850 account pass word set account kumar misra secondari contact account"
            self.data[4] = "technician clean printer broken piec upper trai"
            self.data[5] = "check account order suppli notic state receiv april usag report 4 16 upload print fax usag report due 19th advis"
            self.data[6] = "front panel read ink open top cover add ink ve ad ink wait printer warm take 10 minut displai error messag time warm 1 2 ink yellow ink slot wast ink" 
            self.data[7] = "fax usuag report prove printer lot meet minum requir amount ink purchas"
            self.data[8] = "printer light stripe print color instruct elimin light stripe complet luck"
            self.data[9] = "instal window 2000 oper system printer print side doubl side select"
            self.data[10] = "tax expempt form fax on4 10 03 place order suppli care asap"
            self.new_data_indexes = self.data.keys()
        elif DATA_TEST_NUMBER == 2 : # based in the exapmle of  tf-idf in wikipedia  http://fr.wikipedia.org/wiki/Tf-idf (Not the same formula, add 1 )
            self.data = {}
            self.data[1] = "son nom est celebre par le bocage qui fremit et par le ruisseau qui murmure les vents l emportent jusqu a l arc celeste l arc de grace et de consolation que sa main tendit dans les nuages"
            self.data[2] = "a peine distinguait on deux buts a l extremite de la carriere des chenes ombrageaient l un autour de l autre des palmiers se dessinaient dans l eclat du soir"
            self.data[3] = "ah le beau temps de mes travaux poetiques les beaux jours que j ai passes pres de toi les premiers inepuisables de joie de paix et de liberte les derniers empreints d une melancolie qui eut bien aussi ses charmes"
            self.new_data_indexes = self.data.keys()
        elif DATA_TEST_NUMBER == 3 : # based in the exapmle of  tf-idf in wikipedia  http://fr.wikipedia.org/wiki/Tf-idf (Not the same formula, add 1 )
            self.data = {}
            self.data[1] = "human interface computer"
            self.data[2] = "survey user computer system response time"
            self.data[3] = "EPS user interface system"
            self.data[4] = "system human system EPS"
            self.data[5] = "user response time"
            self.data[6] = "trees"
            self.data[7] = "graph trees"
            self.data[8] = "graph minors trees"
            self.data[9] = "graph minors survey"
            self.new_data_indexes = self.data.keys()
   
    def set_test_number(self,num):
         global DATA_TEST_NUMBER
         DATA_TEST_NUMBER = num
        
