def check_comment_quality(self): """ Assigns marks based on comment quality. """ result = check_comment_quality( self._program_structure, 0.75, 0.75, 2.0, 6.0, 0.08) comment_score = result[0] self._comment_gap_average = result[1] self._comment_gap_sd = result[2] self._error_list.extend(result[3]) return comment_score
def check_comment_quality(self): """ Assigns marks based on comment quality. The default implementation adds marks based on the following parameters: frequency_threshold = 0.75 consistency_threshold = 0.75 ave_offset = 5.0 sd_offset = 2.0 ave_weight= 0.5 If either parameters or a more complex process is needed, the method should be overriden. """ result = check_comment_quality( self._program_structure, 0.75, 0.75, 5.0, 2.0, 0.5) comment_score = result[0] self._comment_gap_average = result[1] self._comment_gap_sd = result[2] self._error_list.extend(result[3]) return comment_score