<s> from math import exp <EOL> def lik_score ( rv , mean , var , dist ) : <EOL> if dist == "<STR_LIT>" : <EOL> if float ( var * abs ( rv - mean ) ) == <NUM_LIT:0> : <EOL> return <NUM_LIT:0> <EOL> else : <EOL> return float ( rv - mean ) / float ( var * abs ( rv - mean ) ) <EOL> elif dist == "<STR_LIT>" : <EOL> if ( rv - mean ) == <NUM_LIT:0> : <EOL> return <NUM_LIT:0> <EOL> else : <EOL> return ( rv - mean ) <EOL> elif dist == "<STR_LIT>" : <EOL> if float ( mean ) == <NUM_LIT:0> : <EOL> return <NUM_LIT:0> <EOL> else : <EOL> return float ( rv - mean ) / float ( mean ) <EOL> elif dist == "<STR_LIT>" : <EOL> return <NUM_LIT:1.0> - mean * rv <EOL> elif dist == "<STR_LIT>" : <EOL> """<STR_LIT>""" <EOL> try : <EOL> return ( ( ( var + <NUM_LIT:1.0> ) * ( rv ** <NUM_LIT:2> ) ) / float ( var * exp ( mean ) + ( rv ** <NUM_LIT:2> ) ) ) - <NUM_LIT:1.0> <EOL> except : <EOL> return - <NUM_LIT:1.0> </s>
