original_string: protected function loadURLs() {
  		$omissions = self::config()->omit;
  		$dataobjects = self::config()->extra_dataobjects;
  
  		$i = 0;
  		$classes = ClassInfo::subclassesFor('SiteTree');
  		array_shift($classes);
  		
  		$sampler = Sampler::create($classes)
  					->setDefaultLimit(self::config()->default_limit)
  					->setOmissions(self::config()->omit)
  					->setLimits(self::config()->limits);
  		
  		$list = $sampler->execute();
  		$totalPages = $list->count();
  		$this->output->clearProgress();
  
  		foreach($list as $page) {
  			$i++;
  
  			if($html = $this->getSampleForObject($page)) {
  				$this->samples[] = $html;
  			}
  			
  			$this->output->updateProgress("$i / $totalPages");		
  		}
  
  		$this->output->writeln();
  		
  		if(!empty($dataobjects)) {
  			$this->output->clearProgress();
  			$i = 0;
  			$sampler->setClasses($dataobjects);
  			$list = $sampler->execute();
  			$totalPages = $list->count();
  			
  			$this->output->write("Loading $totalPages DataObject URLs...");
  			
  			foreach($list as $object) {
  				if(!$object->hasMethod('Link')) {
  					$this->output->writeln("<error>{$object->ClassName} has no Link() method. Skipping.</error>");
  					continue;
  				}
  
  				if($html = $this->getSampleForObject($object)) {
  					$this->samples[] = $html;
  				}				
  				$i++;				
  				$this->output->updateProgressPercent($i, $totalPages);
  			}
  
  			$this->output->writeln();
  		}
  	}
code: protected function loadURLs() {
  		$omissions = self::config()->omit;
  		$dataobjects = self::config()->extra_dataobjects;
  
  		$i = 0;
  		$classes = ClassInfo::subclassesFor('SiteTree');
  		array_shift($classes);
  		
  		$sampler = Sampler::create($classes)
  					->setDefaultLimit(self::config()->default_limit)
  					->setOmissions(self::config()->omit)
  					->setLimits(self::config()->limits);
  		
  		$list = $sampler->execute();
  		$totalPages = $list->count();
  		$this->output->clearProgress();
  
  		foreach($list as $page) {
  			$i++;
  
  			if($html = $this->getSampleForObject($page)) {
  				$this->samples[] = $html;
  			}
  			
  			$this->output->updateProgress("$i / $totalPages");		
  		}
  
  		$this->output->writeln();
  		
  		if(!empty($dataobjects)) {
  			$this->output->clearProgress();
  			$i = 0;
  			$sampler->setClasses($dataobjects);
  			$list = $sampler->execute();
  			$totalPages = $list->count();
  			
  			$this->output->write("Loading $totalPages DataObject URLs...");
  			
  			foreach($list as $object) {
  				if(!$object->hasMethod('Link')) {
  					$this->output->writeln("<error>{$object->ClassName} has no Link() method. Skipping.</error>");
  					continue;
  				}
  
  				if($html = $this->getSampleForObject($object)) {
  					$this->samples[] = $html;
  				}				
  				$i++;				
  				$this->output->updateProgressPercent($i, $totalPages);
  			}
  
  			$this->output->writeln();
  		}
  	}
code_tokens: protected function loadURLs ( ) { $ omissions = self :: config ( ) -> omit ; $ dataobjects = self :: config ( ) -> extra_dataobjects ; $ i = 0 ; $ classes = ClassInfo :: subclassesFor ( 'SiteTree' ) ; array_shift ( $ classes ) ; $ sampler = Sampler :: create ( $ classes ) -> setDefaultLimit ( self :: config ( ) -> default_limit ) -> setOmissions ( self :: config ( ) -> omit ) -> setLimits ( self :: config ( ) -> limits ) ; $ list = $ sampler -> execute ( ) ; $ totalPages = $ list -> count ( ) ; $ this -> output -> clearProgress ( ) ; foreach ( $ list as $ page ) { $ i ++ ; if ( $ html = $ this -> getSampleForObject ( $ page ) ) { $ this -> samples [ ] = $ html ; } $ this -> output -> updateProgress ( "$i / $totalPages" ) ; } $ this -> output -> writeln ( ) ; if ( ! empty ( $ dataobjects ) ) { $ this -> output -> clearProgress ( ) ; $ i = 0 ; $ sampler -> setClasses ( $ dataobjects ) ; $ list = $ sampler -> execute ( ) ; $ totalPages = $ list -> count ( ) ; $ this -> output -> write ( "Loading $totalPages DataObject URLs..." ) ; foreach ( $ list as $ object ) { if ( ! $ object -> hasMethod ( 'Link' ) ) { $ this -> output -> writeln ( "<error>{$object->ClassName} has no Link() method. Skipping.</error>" ) ; continue ; } if ( $ html = $ this -> getSampleForObject ( $ object ) ) { $ this -> samples [ ] = $ html ; } $ i ++ ; $ this -> output -> updateProgressPercent ( $ i , $ totalPages ) ; } $ this -> output -> writeln ( ) ; } }
docstring: Loads all URLs to sample rendered content, per confirguration
docstring_tokens: Loads all URLs to sample rendered content per confirguration