original_string: protected function initialise_stats_for_variant($variantno) {
          $this->subparts[$variantno] = array();
          foreach ($this->possibleresponses as $subpartid => $classes) {
              $this->subparts[$variantno][$subpartid] = new analysis_for_subpart($classes);
          }
      }
code: protected function initialise_stats_for_variant($variantno) {
          $this->subparts[$variantno] = array();
          foreach ($this->possibleresponses as $subpartid => $classes) {
              $this->subparts[$variantno][$subpartid] = new analysis_for_subpart($classes);
          }
      }
code_tokens: protected function initialise_stats_for_variant ( $ variantno ) { $ this -> subparts [ $ variantno ] = array ( ) ; foreach ( $ this -> possibleresponses as $ subpartid => $ classes ) { $ this -> subparts [ $ variantno ] [ $ subpartid ] = new analysis_for_subpart ( $ classes ) ; } }
docstring: Initialise data structure for response analysis of one variant.
  
  @param int $variantno
docstring_tokens: Initialise data structure for response analysis of one variant .