def main(args=None, vc=None, cwd=None, apply_config=False):
import signal<EOL>try:  <EOL><INDENT>signal.signal(signal.SIGPIPE, signal.SIG_DFL)<EOL><DEDENT>except AttributeError:  <EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>if args is None:<EOL><INDENT>args = []<EOL><DEDENT>try:<EOL><INDENT>args_set = set(args)<EOL><DEDENT>except TypeError:<EOL><INDENT>args_set = args  <EOL><DEDENT>if '<STR_LIT>' in args_set or getattr(args_set, '<STR_LIT:version>', <NUM_LIT:0>):<EOL><INDENT>print(version)<EOL>return <NUM_LIT:0><EOL><DEDENT>if '<STR_LIT>' in args_set or getattr(args_set, '<STR_LIT>', <NUM_LIT:0>):<EOL><INDENT>from autopep8 import supported_fixes<EOL>for code, description in sorted(supported_fixes()):<EOL><INDENT>print('<STR_LIT>'.format(<EOL>code=code, description=description))<EOL><DEDENT>return <NUM_LIT:0><EOL><DEDENT>try:<EOL><INDENT>try:<EOL><INDENT>args = parse_args(args, apply_config=apply_config)<EOL><DEDENT>except TypeError:<EOL><INDENT>pass  <EOL><DEDENT>if args.from_diff:  <EOL><INDENT>r = Radius.from_diff(args.from_diff.read(),<EOL>options=args, cwd=cwd)<EOL><DEDENT>else:<EOL><INDENT>r = Radius(rev=args.rev, options=args, vc=vc, cwd=cwd)<EOL><DEDENT><DEDENT>except NotImplementedError as e:  <EOL><INDENT>print(e)<EOL>return <NUM_LIT:1><EOL><DEDENT>except CalledProcessError as c:  <EOL><INDENT>output = c.output.splitlines()[<NUM_LIT:0>]<EOL>print(output)<EOL>return c.returncode<EOL><DEDENT>any_changes = r.fix()<EOL>if any_changes and args.error_status:<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>return <NUM_LIT:0><EOL><DEDENT>except KeyboardInterrupt:  <EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>
PEP8 clean only the parts of the files touched since the last commit, a
    previous commit or branch.