parameters: (a, b, common, shallow=1)
return_statement: return res
docstring: Compare common files in two directories.
  
      a, b -- directory names
      common -- list of file names found in both directories
      shallow -- if true, do comparison based solely on stat() information
  
      Returns a tuple of three lists:
        files that compare equal
        files that are different
        filenames that aren't regular files.
docstring_summary: Compare common files in two directories.
docstring_tokens: Compare common files in two directories .
function: def cmpfiles(a, b, common, shallow=1):
      """Compare common files in two directories.
  
      a, b -- directory names
      common -- list of file names found in both directories
      shallow -- if true, do comparison based solely on stat() information
  
      Returns a tuple of three lists:
        files that compare equal
        files that are different
        filenames that aren't regular files.
  
      """
      res = ([], [], [])
      for x in common:
          ax = os.path.join(a, x)
          bx = os.path.join(b, x)
          res[_cmp(ax, bx, shallow)].append(x)
      return res
function_tokens: def cmpfiles ( a , b , common , shallow = 1 ) : res = ( [ ] , [ ] , [ ] ) for x in common : ax = os . path . join ( a , x ) bx = os . path . join ( b , x ) res [ _cmp ( ax , bx , shallow ) ] . append ( x ) return res