#NEWLINE# def get_corrected_commands( command ) : #NEWLINE# #INDENT# 'Returns generator with sorted and unique corrected commands.\n\n    :type command: thefuck.types.Command\n    :rtype: Iterable[thefuck.types.CorrectedCommand]\n\n    ' #NEWLINE# corrected_commands = ( corrected for rule in get_rules ( ) if rule . is_match ( command ) for corrected in rule . get_corrected_commands ( command ) ) #NEWLINE# return organize_commands ( corrected_commands )