parameters: (self, candidates)
return_statement: return valid_files
docstring: Get the set of candidate files to check by doing an intersection
          between the input list, and the list of candidates in the repository
  
          Returns the full path to the file for clang-format to consume.
docstring_summary: Get the set of candidate files to check by doing an intersection
          between the input list, and the list of candidates in the repository
docstring_tokens: Get the set of candidate files to check by doing an intersection between the input list and the list of candidates in the repository
function: def get_candidates(self, candidates):
          """Get the set of candidate files to check by doing an intersection
          between the input list, and the list of candidates in the repository
  
          Returns the full path to the file for clang-format to consume.
          """
          # NOTE: Files may have an absolute root (i.e. leading /)
  
          if candidates is not None and len(candidates) > 0:
              candidates = [self._get_local_dir(f) for f in candidates]
              valid_files = list(set(candidates).intersection(self.get_candidate_files()))
          else:
              valid_files = list(self.get_candidate_files())
  
          # Get the full file name here
          valid_files = [os.path.normpath(os.path.join(self.root, f)) for f in valid_files]
          return valid_files
function_tokens: def get_candidates ( self , candidates ) : # NOTE: Files may have an absolute root (i.e. leading /) if candidates is not None and len ( candidates ) > 0 : candidates = [ self . _get_local_dir ( f ) for f in candidates ] valid_files = list ( set ( candidates ) . intersection ( self . get_candidate_files ( ) ) ) else : valid_files = list ( self . get_candidate_files ( ) ) # Get the full file name here valid_files = [ os . path . normpath ( os . path . join ( self . root , f ) ) for f in valid_files ] return valid_files