parameters: (commits, files)
return_statement: return changed_lines
docstring: Calls compute_diff() followed by extract_lines().
docstring_summary: Calls compute_diff() followed by extract_lines().
docstring_tokens: Calls compute_diff () followed by extract_lines () .
function: def compute_diff_and_extract_lines(commits, files):
      """Calls compute_diff() followed by extract_lines()."""
      diff_process = compute_diff(commits, files)
      changed_lines = extract_lines(diff_process.stdout)
      diff_process.stdout.close()
      diff_process.wait()
      if diff_process.returncode != 0:
          # Assume error was already printed to stderr.
          sys.exit(2)
      return changed_lines
function_tokens: def compute_diff_and_extract_lines ( commits , files ) : diff_process = compute_diff ( commits , files ) changed_lines = extract_lines ( diff_process . stdout ) diff_process . stdout . close ( ) diff_process . wait ( ) if diff_process . returncode != 0 : # Assume error was already printed to stderr. sys . exit ( 2 ) return changed_lines