original_string: public function save_settings(stdClass $data) {
          if (empty($data->assignsubmission_onlinetext_wordlimit) || empty($data->assignsubmission_onlinetext_wordlimit_enabled)) {
              $wordlimit = 0;
              $wordlimitenabled = 0;
          } else {
              $wordlimit = $data->assignsubmission_onlinetext_wordlimit;
              $wordlimitenabled = 1;
          }
  
          $this->set_config('wordlimit', $wordlimit);
          $this->set_config('wordlimitenabled', $wordlimitenabled);
  
          return true;
      }
code: public function save_settings(stdClass $data) {
          if (empty($data->assignsubmission_onlinetext_wordlimit) || empty($data->assignsubmission_onlinetext_wordlimit_enabled)) {
              $wordlimit = 0;
              $wordlimitenabled = 0;
          } else {
              $wordlimit = $data->assignsubmission_onlinetext_wordlimit;
              $wordlimitenabled = 1;
          }
  
          $this->set_config('wordlimit', $wordlimit);
          $this->set_config('wordlimitenabled', $wordlimitenabled);
  
          return true;
      }
code_tokens: public function save_settings ( stdClass $ data ) { if ( empty ( $ data -> assignsubmission_onlinetext_wordlimit ) || empty ( $ data -> assignsubmission_onlinetext_wordlimit_enabled ) ) { $ wordlimit = 0 ; $ wordlimitenabled = 0 ; } else { $ wordlimit = $ data -> assignsubmission_onlinetext_wordlimit ; $ wordlimitenabled = 1 ; } $ this -> set_config ( 'wordlimit' , $ wordlimit ) ; $ this -> set_config ( 'wordlimitenabled' , $ wordlimitenabled ) ; return true ; }
docstring: Save the settings for onlinetext submission plugin
  
  @param stdClass $data
  @return bool
docstring_tokens: Save the settings for onlinetext submission plugin