original_string: public function get_cohorts_data() {
          $cohorts = array();
          if ($this->processeddata) {
              foreach ($this->processeddata as $idx => $line) {
                  if ($idx && !empty($line['data'])) {
                      $cohorts[] = (object)$line['data'];
                  }
              }
          }
          return $cohorts;
      }
code: public function get_cohorts_data() {
          $cohorts = array();
          if ($this->processeddata) {
              foreach ($this->processeddata as $idx => $line) {
                  if ($idx && !empty($line['data'])) {
                      $cohorts[] = (object)$line['data'];
                  }
              }
          }
          return $cohorts;
      }
code_tokens: public function get_cohorts_data ( ) { $ cohorts = array ( ) ; if ( $ this -> processeddata ) { foreach ( $ this -> processeddata as $ idx => $ line ) { if ( $ idx && ! empty ( $ line [ 'data' ] ) ) { $ cohorts [ ] = ( object ) $ line [ 'data' ] ; } } } return $ cohorts ; }
docstring: Returns the list of prepared objects to be added as cohorts
  
  @return array of stdClass objects, each can be passed to {@link cohort_add_cohort()}
docstring_tokens: Returns the list of prepared objects to be added as cohorts