parameters: (self)
docstring: compute the de-duplicated set of roots within fbsource.
          We take the shortest common directory prefix to make this
          determination
docstring_summary: compute the de-duplicated set of roots within fbsource.
          We take the shortest common directory prefix to make this
          determination
docstring_tokens: compute the de - duplicated set of roots within fbsource . We take the shortest common directory prefix to make this determination
function: def _minimize_roots(self):
          """compute the de-duplicated set of roots within fbsource.
          We take the shortest common directory prefix to make this
          determination"""
          self.roots.sort(key=len)
          minimized = []
  
          for r in self.roots:
              add_this_entry = True
              for existing in minimized:
                  if r.startswith(existing + "/"):
                      add_this_entry = False
                      break
              if add_this_entry:
                  minimized.append(r)
  
          self.roots = minimized
function_tokens: def _minimize_roots ( self ) : self . roots . sort ( key = len ) minimized = [ ] for r in self . roots : add_this_entry = True for existing in minimized : if r . startswith ( existing + "/" ) : add_this_entry = False break if add_this_entry : minimized . append ( r ) self . roots = minimized