#NEWLINE# @ staticmethod #NEWLINE# def getGamma( gammas , k , layout , intent ) : #NEWLINE# #INDENT# index = ( ( 2 * ( 1 if layout [ ( intent + 1 ) ] else 0 ) ) + ( 1 if intent else 0 ) ) #NEWLINE# return gammas [ index ]