parameters: (self, candidates)
return_statement: return valid_files
docstring: Get the set of candidate files to check by querying 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 querying the repository
docstring_tokens: Get the set of candidate files to check by querying the repository
function: def get_candidates(self, candidates):
          """Get the set of candidate files to check by querying the repository
  
          Returns the full path to the file for clang-format to consume.
          """
          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 ) : 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