#NEWLINE# def get_metrics_from_stat( self , file_diff_stats ) : #NEWLINE# #INDENT# binary_delta = 0 #NEWLINE# for file_diff_stat in file_diff_stats : #NEWLINE# #INDENT# if ( ( file_diff_stat . special_file is not None ) and ( file_diff_stat . special_file . file_type is SpecialFileType . BINARY ) ) : #NEWLINE# #INDENT# if ( file_diff_stats . status is Status . ADDED ) : #NEWLINE# #INDENT# binary_delta += 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( file_diff_stat . status is Status . DELETED ) : #NEWLINE# #INDENT# binary_delta -= 1 #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# ( yield Metric ( type ( self ) . __name__ , binary_delta ) )