original_string: protected function explode_answer($answer) {
          if (!$answer) {
              return array();
          }
          $bits = explode(',', $answer);
          $selections = array();
          foreach ($bits as $bit) {
              list($stem, $choice) = explode('-', $bit);
              $selections[$stem] = $choice;
          }
          return $selections;
      }
code: protected function explode_answer($answer) {
          if (!$answer) {
              return array();
          }
          $bits = explode(',', $answer);
          $selections = array();
          foreach ($bits as $bit) {
              list($stem, $choice) = explode('-', $bit);
              $selections[$stem] = $choice;
          }
          return $selections;
      }
code_tokens: protected function explode_answer ( $ answer ) { if ( ! $ answer ) { return array ( ) ; } $ bits = explode ( ',' , $ answer ) ; $ selections = array ( ) ; foreach ( $ bits as $ bit ) { list ( $ stem , $ choice ) = explode ( '-' , $ bit ) ; $ selections [ $ stem ] = $ choice ; } return $ selections ; }
docstring: Explode the answer saved as a string in state
  
  @param string $answer comma separated list of dash separated pairs
  @return array
docstring_tokens: Explode the answer saved as a string in state