<s> from db . Corpus_DB import Corpus_DB <EOL> from db . BOW_DB import BOW_DB <EOL> from db . LDA_DB import LDA_DB <EOL> from db . ITM_DB import ITM_DB <EOL> from handlers . ITM_Core import ITM_Core <EOL> from vis . GroupInBox import GroupInBox as GroupInBoxHandler <EOL> def index ( ) : <EOL> with ITM_DB ( ) as itm_db : <EOL> handler = ITM_Core ( request , response , itm_db ) <EOL> return handler . GenerateResponse ( ) <EOL> def Update ( ) : <EOL> with Corpus_DB ( ) as corpus_db : <EOL> with BOW_DB ( ) as bow_db : <EOL> with LDA_DB ( ) as lda_db : <EOL> handler = GroupInBoxHandler ( request , response , corpus_db , bow_db , lda_db ) <EOL> handler . UpdateModel ( ) <EOL> handler . InspectModel ( ) <EOL> return handler . GenerateResponse ( ) <EOL> def Inspect ( ) : <EOL> with Corpus_DB ( ) as corpus_db : <EOL> with BOW_DB ( ) as bow_db : <EOL> with LDA_DB ( ) as lda_db : <EOL> handler = GroupInBoxHandler ( request , response , corpus_db , bow_db , lda_db ) <EOL> handler . InspectModel ( ) <EOL> return handler . GenerateResponse ( ) <EOL> def GroupInBox ( ) : <EOL> with Corpus_DB ( ) as corpus_db : <EOL> with BOW_DB ( ) as bow_db : <EOL> with LDA_DB ( ) as lda_db : <EOL> handler = GroupInBoxHandler ( request , response , corpus_db , bow_db , lda_db ) <EOL> handler . LoadGIB ( ) <EOL> return handler . GenerateResponse ( ) <EOL> def gib ( ) : <EOL> with Corpus_DB ( ) as corpus_db : <EOL> with BOW_DB ( ) as bow_db : <EOL> with LDA_DB ( ) as lda_db : <EOL> handler = GroupInBoxHandler ( request , response , corpus_db , bow_db , lda_db ) <EOL> handler . UpdateModel ( ) <EOL> handler . InspectModel ( ) <EOL> handler . LoadGIB ( ) <EOL> return handler . GenerateResponse ( ) </s>
