original_string: public function is_gradebook_feedback_enabled() {
          // Get default grade book feedback plugin.
          $adminconfig = $this->get_admin_config();
          $gradebookplugin = $adminconfig->feedback_plugin_for_gradebook;
          $gradebookplugin = str_replace('assignfeedback_', '', $gradebookplugin);
  
          // Check if default gradebook feedback is visible and enabled.
          $gradebookfeedbackplugin = $this->get_feedback_plugin_by_type($gradebookplugin);
  
          if (empty($gradebookfeedbackplugin)) {
              return false;
          }
  
          if ($gradebookfeedbackplugin->is_visible() && $gradebookfeedbackplugin->is_enabled()) {
              return true;
          }
  
          // Gradebook feedback plugin is either not visible/enabled.
          return false;
      }
code: public function is_gradebook_feedback_enabled() {
          // Get default grade book feedback plugin.
          $adminconfig = $this->get_admin_config();
          $gradebookplugin = $adminconfig->feedback_plugin_for_gradebook;
          $gradebookplugin = str_replace('assignfeedback_', '', $gradebookplugin);
  
          // Check if default gradebook feedback is visible and enabled.
          $gradebookfeedbackplugin = $this->get_feedback_plugin_by_type($gradebookplugin);
  
          if (empty($gradebookfeedbackplugin)) {
              return false;
          }
  
          if ($gradebookfeedbackplugin->is_visible() && $gradebookfeedbackplugin->is_enabled()) {
              return true;
          }
  
          // Gradebook feedback plugin is either not visible/enabled.
          return false;
      }
code_tokens: public function is_gradebook_feedback_enabled ( ) { // Get default grade book feedback plugin. $ adminconfig = $ this -> get_admin_config ( ) ; $ gradebookplugin = $ adminconfig -> feedback_plugin_for_gradebook ; $ gradebookplugin = str_replace ( 'assignfeedback_' , '' , $ gradebookplugin ) ; // Check if default gradebook feedback is visible and enabled. $ gradebookfeedbackplugin = $ this -> get_feedback_plugin_by_type ( $ gradebookplugin ) ; if ( empty ( $ gradebookfeedbackplugin ) ) { return false ; } if ( $ gradebookfeedbackplugin -> is_visible ( ) && $ gradebookfeedbackplugin -> is_enabled ( ) ) { return true ; } // Gradebook feedback plugin is either not visible/enabled. return false ; }
docstring: Returns true if gradebook feedback plugin is enabled
  
  @return bool true if gradebook feedback plugin is enabled and visible else false.
docstring_tokens: Returns true if gradebook feedback plugin is enabled