#NEWLINE# def get( self , key ) : #NEWLINE# #INDENT# if ( not self . handled ) : #NEWLINE# #INDENT# self . handled = True #NEWLINE# ( tmp , self . d ) = good_turing . main ( self . d ) #NEWLINE# self . none = tmp #NEWLINE# self . total = ( sum ( self . d . values ( ) ) + 0.0 ) #NEWLINE# #UNINDENT# if ( not self . exists ( tmp ) ) : #NEWLINE# #INDENT# return ( False , self . none ) #NEWLINE# #UNINDENT# return ( True , self . d [ key ] )