original_string: protected function grouped_parent_exists($pelement, $elements) {
          foreach ($elements as $element) {
              if ($pelement->get_path() == $element->get_path()) {
                  continue; // Don't compare against itself
              }
              // If element is grouped and parent of pelement, return true
              if ($element->is_grouped() and strpos($pelement->get_path() .  '/', $element->get_path()) === 0) {
                  return true;
              }
          }
          return false; // no grouped parent found
      }
code: protected function grouped_parent_exists($pelement, $elements) {
          foreach ($elements as $element) {
              if ($pelement->get_path() == $element->get_path()) {
                  continue; // Don't compare against itself
              }
              // If element is grouped and parent of pelement, return true
              if ($element->is_grouped() and strpos($pelement->get_path() .  '/', $element->get_path()) === 0) {
                  return true;
              }
          }
          return false; // no grouped parent found
      }
code_tokens: protected function grouped_parent_exists ( $ pelement , $ elements ) { foreach ( $ elements as $ element ) { if ( $ pelement -> get_path ( ) == $ element -> get_path ( ) ) { continue ; // Don't compare against itself } // If element is grouped and parent of pelement, return true if ( $ element -> is_grouped ( ) and strpos ( $ pelement -> get_path ( ) . '/' , $ element -> get_path ( ) ) === 0 ) { return true ; } } return false ; // no grouped parent found }
docstring: Given one pathelement, return true if grouped parent was found
docstring_tokens: Given one pathelement return true if grouped parent was found