original_string: public function get_variants() {
          $variants = array_keys($this->variantstats);
          if (count($variants) > 1 || reset($variants) != 1) {
              return $variants;
          } else {
              return array();
          }
      }
code: public function get_variants() {
          $variants = array_keys($this->variantstats);
          if (count($variants) > 1 || reset($variants) != 1) {
              return $variants;
          } else {
              return array();
          }
      }
code_tokens: public function get_variants ( ) { $ variants = array_keys ( $ this -> variantstats ) ; if ( count ( $ variants ) > 1 || reset ( $ variants ) != 1 ) { return $ variants ; } else { return array ( ) ; } }
docstring: Array of variants that have appeared in the attempt data for this question. Or an empty array if there is only one variant.
  
  @return int[] the variant nos.
docstring_tokens: Array of variants that have appeared in the attempt data for this question . Or an empty array if there is only one variant .