original_string: public function is_short_branch() {
          $limit = 8;
          if ($this->children->count() >= $limit) {
              return false;
          }
          foreach ($this->children as $child) {
              if ($child->has_children()) {
                  return false;
              }
          }
          return true;
      }
code: public function is_short_branch() {
          $limit = 8;
          if ($this->children->count() >= $limit) {
              return false;
          }
          foreach ($this->children as $child) {
              if ($child->has_children()) {
                  return false;
              }
          }
          return true;
      }
code_tokens: public function is_short_branch ( ) { $ limit = 8 ; if ( $ this -> children -> count ( ) >= $ limit ) { return false ; } foreach ( $ this -> children as $ child ) { if ( $ child -> has_children ( ) ) { return false ; } } return true ; }
docstring: To better balance the admin tree, we want to group all the short top branches together.
  
  This means < 8 nodes and no subtrees.
  
  @return bool
docstring_tokens: To better balance the admin tree we want to group all the short top branches together .