def in_ed1(idx, difftxt, ed1txt):
    path = '/var/inphosemantics/data/20131214/Washburn/vsm-data/'
    
    with open(path + ed1txt, 'r') as f1:
        ed1 = f1.read()
        ed1 = ed1.split(',') 
        
        with open(path + difftxt, 'r') as f:
            txt = f.read() 
            entries = txt.split(',')
            
            for i in xrange(len(entries)): 
                if entries[i].startswith(str(idx) + ' '):
                    if '=' in entries[i]:
                        return ed1[i]
                    else:
                        prob = entries[i].split(' ')[1]
                        return ed1[i] + ' ' + prob
            # didn't find idx in the table.
            return 'new'
Initialize the PTY using the docker.Client instance and container dict.
dataset/ETHPy150Open inpho/vsm/vsm/extensions/ldasentences.py/in_ed1--crossover with--dataset/ETHPy150Open d11wtq/dockerpty/dockerpty/pty.py/RunOperation.__init__