original_string: public function get_default_grade() {
          $scaleid = $this->get('scaleid');
          $scaleconfig = $this->get('scaleconfiguration');
          if ($scaleid === null) {
              $scaleconfig = $this->get_framework()->get('scaleconfiguration');
          }
          return competency_framework::get_default_grade_from_scale_configuration($scaleconfig);
      }
code: public function get_default_grade() {
          $scaleid = $this->get('scaleid');
          $scaleconfig = $this->get('scaleconfiguration');
          if ($scaleid === null) {
              $scaleconfig = $this->get_framework()->get('scaleconfiguration');
          }
          return competency_framework::get_default_grade_from_scale_configuration($scaleconfig);
      }
code_tokens: public function get_default_grade ( ) { $ scaleid = $ this -> get ( 'scaleid' ) ; $ scaleconfig = $ this -> get ( 'scaleconfiguration' ) ; if ( $ scaleid === null ) { $ scaleconfig = $ this -> get_framework ( ) -> get ( 'scaleconfiguration' ) ; } return competency_framework :: get_default_grade_from_scale_configuration ( $ scaleconfig ) ; }
docstring: Extracts the default grade from the scale configuration.
  
  Returns an array where the first element is the grade, and the second
  is a boolean representing whether or not this grade is considered 'proficient'.
  
  @return array(int grade, bool proficient)
docstring_tokens: Extracts the default grade from the scale configuration .