original_string: private function create_assignments() {
          // Set up generator.
          $assigngenerator = $this->generator->get_plugin_generator('mod_assign');
  
          // Create assignments.
          $number = self::$paramassignments[$this->size];
          $this->log('createassignments', $number, true);
          for ($i = 0; $i < $number; $i++) {
              $record = array('course' => $this->course);
              $options = array('section' => $this->get_target_section());
              $assigngenerator->create_instance($record, $options);
              $this->dot($i, $number);
          }
  
          $this->end_log();
      }
code: private function create_assignments() {
          // Set up generator.
          $assigngenerator = $this->generator->get_plugin_generator('mod_assign');
  
          // Create assignments.
          $number = self::$paramassignments[$this->size];
          $this->log('createassignments', $number, true);
          for ($i = 0; $i < $number; $i++) {
              $record = array('course' => $this->course);
              $options = array('section' => $this->get_target_section());
              $assigngenerator->create_instance($record, $options);
              $this->dot($i, $number);
          }
  
          $this->end_log();
      }
code_tokens: private function create_assignments ( ) { // Set up generator. $ assigngenerator = $ this -> generator -> get_plugin_generator ( 'mod_assign' ) ; // Create assignments. $ number = self :: $ paramassignments [ $ this -> size ] ; $ this -> log ( 'createassignments' , $ number , true ) ; for ( $ i = 0 ; $ i < $ number ; $ i ++ ) { $ record = array ( 'course' => $ this -> course ) ; $ options = array ( 'section' => $ this -> get_target_section ( ) ) ; $ assigngenerator -> create_instance ( $ record , $ options ) ; $ this -> dot ( $ i , $ number ) ; } $ this -> end_log ( ) ; }
docstring: Creates a number of Assignment activities.
docstring_tokens: Creates a number of Assignment activities .