original_string: protected function get_default_numerical_options($oldquestiontextformat, $units) {
          global $CFG;
  
          // replay the upgrade step 2009100100 - new table
          $options = array(
              'id'                 => $this->converter->get_nextid(),
              'instructions'       => null,
              'instructionsformat' => 0,
              'showunits'          => 0,
              'unitsleft'          => 0,
              'unitgradingtype'    => 0,
              'unitpenalty'        => 0.1
          );
  
          // replay the upgrade step 2009100101
          if ($CFG->texteditors !== 'textarea' and $oldquestiontextformat == FORMAT_MOODLE) {
              $options['instructionsformat'] = FORMAT_HTML;
          } else {
              $options['instructionsformat'] = $oldquestiontextformat;
          }
  
          // Set a good default, depending on whether there are any units defined.
          if (empty($units)) {
              $options['showunits'] = 3;
          }
  
          return $options;
      }
code: protected function get_default_numerical_options($oldquestiontextformat, $units) {
          global $CFG;
  
          // replay the upgrade step 2009100100 - new table
          $options = array(
              'id'                 => $this->converter->get_nextid(),
              'instructions'       => null,
              'instructionsformat' => 0,
              'showunits'          => 0,
              'unitsleft'          => 0,
              'unitgradingtype'    => 0,
              'unitpenalty'        => 0.1
          );
  
          // replay the upgrade step 2009100101
          if ($CFG->texteditors !== 'textarea' and $oldquestiontextformat == FORMAT_MOODLE) {
              $options['instructionsformat'] = FORMAT_HTML;
          } else {
              $options['instructionsformat'] = $oldquestiontextformat;
          }
  
          // Set a good default, depending on whether there are any units defined.
          if (empty($units)) {
              $options['showunits'] = 3;
          }
  
          return $options;
      }
code_tokens: protected function get_default_numerical_options ( $ oldquestiontextformat , $ units ) { global $ CFG ; // replay the upgrade step 2009100100 - new table $ options = array ( 'id' => $ this -> converter -> get_nextid ( ) , 'instructions' => null , 'instructionsformat' => 0 , 'showunits' => 0 , 'unitsleft' => 0 , 'unitgradingtype' => 0 , 'unitpenalty' => 0.1 ) ; // replay the upgrade step 2009100101 if ( $ CFG -> texteditors !== 'textarea' and $ oldquestiontextformat == FORMAT_MOODLE ) { $ options [ 'instructionsformat' ] = FORMAT_HTML ; } else { $ options [ 'instructionsformat' ] = $ oldquestiontextformat ; } // Set a good default, depending on whether there are any units defined. if ( empty ( $ units ) ) { $ options [ 'showunits' ] = 3 ; } return $ options ; }
docstring: Returns default numerical_option structure
  
  This structure is not present in moodle.xml, we create a new artificial one here.
  
  @see write_numerical_options()
  @param int $oldquestiontextformat
  @return array
docstring_tokens: Returns default numerical_option structure