original_string: public function load()
      {
          if (file_exists($this->filepath) && ($contents = file_get_contents($this->filepath))) {
              $yaml = new Parser();
              $config = $yaml->parse($contents);
  
              if (null === $config) {
                  $config = array();
              }
  
              $processor = new Processor();
              $configDefinition = new ConfigDefinition();
              $processedConfiguration = $processor->processConfiguration(
                  $configDefinition,
                  $config
              );
  
              if (empty($processedConfiguration)) {
                  throw new Exception(
                      'You need to specify at least one gaguge in the configuration file'
                  );
              }
  
              return $processedConfiguration;
          }
          else {
              throw new \RuntimeException(sprintf('Configuration file does not exist or is not accessible %s',
                  $this->filepath));
          }
  
      }
code: public function load()
      {
          if (file_exists($this->filepath) && ($contents = file_get_contents($this->filepath))) {
              $yaml = new Parser();
              $config = $yaml->parse($contents);
  
              if (null === $config) {
                  $config = array();
              }
  
              $processor = new Processor();
              $configDefinition = new ConfigDefinition();
              $processedConfiguration = $processor->processConfiguration(
                  $configDefinition,
                  $config
              );
  
              if (empty($processedConfiguration)) {
                  throw new Exception(
                      'You need to specify at least one gaguge in the configuration file'
                  );
              }
  
              return $processedConfiguration;
          }
          else {
              throw new \RuntimeException(sprintf('Configuration file does not exist or is not accessible %s',
                  $this->filepath));
          }
  
      }
code_tokens: public function load ( ) { if ( file_exists ( $ this -> filepath ) && ( $ contents = file_get_contents ( $ this -> filepath ) ) ) { $ yaml = new Parser ( ) ; $ config = $ yaml -> parse ( $ contents ) ; if ( null === $ config ) { $ config = array ( ) ; } $ processor = new Processor ( ) ; $ configDefinition = new ConfigDefinition ( ) ; $ processedConfiguration = $ processor -> processConfiguration ( $ configDefinition , $ config ) ; if ( empty ( $ processedConfiguration ) ) { throw new Exception ( 'You need to specify at least one gaguge in the configuration file' ) ; } return $ processedConfiguration ; } else { throw new \ RuntimeException ( sprintf ( 'Configuration file does not exist or is not accessible %s' , $ this -> filepath ) ) ; } }
docstring: Process configuration and make sure the configuration format is as expected
  
  @return array
docstring_tokens: Process configuration and make sure the configuration format is as expected