parameters: (results: List[Result])
return_statement: return 0
docstring: Aggregate individual exit codes into a single code.
docstring_summary: Aggregate individual exit codes into a single code.
docstring_tokens: Aggregate individual exit codes into a single code .
function: def exit_code(results: List[Result]) -> int:
      """
      Aggregate individual exit codes into a single code.
      """
      for result in results:
          code = result.get('exit_code', 0)
          if code != 0:
              return code
      return 0
function_tokens: def exit_code ( results : List [ Result ] ) -> int : for result in results : code = result . get ( 'exit_code' , 0 ) if code != 0 : return code return 0