original_string: public function getEpisodesAsOptions(array $episodes)
      {
          $options = [];
  
          foreach ($episodes as $id => $episode) {
              if ($episode instanceof EpisodeOfCare) {
                  $options[$id] = $episode->getDisplayString();
              }
          }
  
          return $options;
      }
code: public function getEpisodesAsOptions(array $episodes)
      {
          $options = [];
  
          foreach ($episodes as $id => $episode) {
              if ($episode instanceof EpisodeOfCare) {
                  $options[$id] = $episode->getDisplayString();
              }
          }
  
          return $options;
      }
code_tokens: public function getEpisodesAsOptions ( array $ episodes ) { $ options = [ ] ; foreach ( $ episodes as $ id => $ episode ) { if ( $ episode instanceof EpisodeOfCare ) { $ options [ $ id ] = $ episode -> getDisplayString ( ) ; } } return $ options ; }
docstring: Get the options list episodes for episodes
  
  @param array $episodes
  @return array of $episodeId => Description
docstring_tokens: Get the options list episodes for episodes