<s> import os <EOL> import sys <EOL> runPath = os . path . dirname ( os . path . realpath ( __file__ ) ) <EOL> sys . path . append ( os . path . join ( runPath , "<STR_LIT:..>" ) ) <EOL> from pymongo import TEXT <EOL> from lib . Config import Configuration <EOL> import lib . DatabaseLayer as dbLayer <EOL> def setIndex ( col , field ) : <EOL> try : <EOL> dbLayer . ensureIndex ( col , field ) <EOL> print ( '<STR_LIT>' % ( field , col ) ) <EOL> except Exception as e : <EOL> print ( '<STR_LIT>' % ( col , field , e ) ) <EOL> setIndex ( '<STR_LIT>' , '<STR_LIT:id>' ) <EOL> setIndex ( '<STR_LIT>' , '<STR_LIT:id>' ) <EOL> setIndex ( '<STR_LIT>' , '<STR_LIT:id>' ) <EOL> setIndex ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> setIndex ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> setIndex ( '<STR_LIT>' , [ ( "<STR_LIT>" , TEXT ) ] ) <EOL> setIndex ( '<STR_LIT>' , '<STR_LIT:id>' ) <EOL> setIndex ( '<STR_LIT>' , '<STR_LIT:id>' ) <EOL> setIndex ( '<STR_LIT>' , '<STR_LIT:id>' ) <EOL> setIndex ( '<STR_LIT>' , '<STR_LIT:id>' ) <EOL> setIndex ( '<STR_LIT>' , '<STR_LIT:id>' ) <EOL> setIndex ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> setIndex ( '<STR_LIT>' , '<STR_LIT:id>' ) </s>
