<s> import re <EOL> from thefuck . utils import replace_command , for_app <EOL> @ for_app ( '<STR_LIT>' ) <EOL> def match ( command ) : <EOL> return '<STR_LIT>' in command . stderr and '<STR_LIT>' in command . stderr <EOL> def _get_suggests ( stderr ) : <EOL> for line in stderr . split ( '<STR_LIT:\n>' ) : <EOL> if '<STR_LIT>' in line : <EOL> return re . findall ( r'<STR_LIT>' , line ) <EOL> def get_new_command ( command ) : <EOL> wrong = re . findall ( r'<STR_LIT>' , command . stderr ) [ <NUM_LIT:0> ] <EOL> return replace_command ( command , wrong , _get_suggests ( command . stderr ) ) </s>
