parameters: (filename)
docstring: Create file prefix from a compilation database entries.
docstring_summary: Create file prefix from a compilation database entries.
docstring_tokens: Create file prefix from a compilation database entries .
function: def commonprefix_from(filename):
      """ Create file prefix from a compilation database entries. """
  
      with open(filename, 'r') as handle:
          return commonprefix(item['file'] for item in json.load(handle))
function_tokens: def commonprefix_from ( filename ) : with open ( filename , 'r' ) as handle : return commonprefix ( item [ 'file' ] for item in json . load ( handle ) )