original_string: public function data_preprocessing(&$defaultvalues) {
          parent::data_preprocessing($defaultvalues);
          $defaultvalues['completionentriesenabled'] = !empty($defaultvalues['completionentries']) ? 1 : 0;
          if (empty($defaultvalues['completionentries'])) {
              $defaultvalues['completionentries'] = 1;
          }
      }
code: public function data_preprocessing(&$defaultvalues) {
          parent::data_preprocessing($defaultvalues);
          $defaultvalues['completionentriesenabled'] = !empty($defaultvalues['completionentries']) ? 1 : 0;
          if (empty($defaultvalues['completionentries'])) {
              $defaultvalues['completionentries'] = 1;
          }
      }
code_tokens: public function data_preprocessing ( & $ defaultvalues ) { parent :: data_preprocessing ( $ defaultvalues ) ; $ defaultvalues [ 'completionentriesenabled' ] = ! empty ( $ defaultvalues [ 'completionentries' ] ) ? 1 : 0 ; if ( empty ( $ defaultvalues [ 'completionentries' ] ) ) { $ defaultvalues [ 'completionentries' ] = 1 ; } }
docstring: Set up the completion checkbox which is not part of standard data.
  
  @param array $defaultvalues
docstring_tokens: Set up the completion checkbox which is not part of standard data .