original_string: public function ask($question, $weight = "y") {
  		$question = self::format($question);
  		$y = $weight == 'y' ? 'Y' : 'y';
  		$n = $weight == 'n' ? 'N' : 'n';
  		$answer = $this->prompt("$question [$y/$n]");
  		$line = trim(strtolower($answer));
  		
  		if(empty($line)) {
  			$line = $weight;
  		}
  
  		return in_array($line, array('y','yes'));
  	}
code: public function ask($question, $weight = "y") {
  		$question = self::format($question);
  		$y = $weight == 'y' ? 'Y' : 'y';
  		$n = $weight == 'n' ? 'N' : 'n';
  		$answer = $this->prompt("$question [$y/$n]");
  		$line = trim(strtolower($answer));
  		
  		if(empty($line)) {
  			$line = $weight;
  		}
  
  		return in_array($line, array('y','yes'));
  	}
code_tokens: public function ask ( $ question , $ weight = "y" ) { $ question = self :: format ( $ question ) ; $ y = $ weight == 'y' ? 'Y' : 'y' ; $ n = $ weight == 'n' ? 'N' : 'n' ; $ answer = $ this -> prompt ( "$question [$y/$n]" ) ; $ line = trim ( strtolower ( $ answer ) ) ; if ( empty ( $ line ) ) { $ line = $ weight ; } return in_array ( $ line , array ( 'y' , 'yes' ) ) ; }
docstring: Asks the user a question. If a 'y' value is entered, returns true
  
  @param  string $question
  @param  string $weight   Either 'y' or 'n' can have the default value (on enter key)
  @return boolean
docstring_tokens: Asks the user a question . If a y value is entered returns true