original_string: private function isBaeEnv() {
  		if (isset ( $_SERVER ['HTTP_HOST'] )) {
  			$host = $_SERVER ['HTTP_HOST'];
  			$pos = strpos ( $host, '.' );
  			if ($pos !== false) {
  				$substr = substr ( $host, $pos + 1 );
  				if ($substr == 'duapp.com') {
  					return true;
  				}
  			}
  		}
  		if (isset ( $_SERVER ["HTTP_BAE_LOGID"] )) {
  			return true;
  		}
  
  		return false;
  	}
code: private function isBaeEnv() {
  		if (isset ( $_SERVER ['HTTP_HOST'] )) {
  			$host = $_SERVER ['HTTP_HOST'];
  			$pos = strpos ( $host, '.' );
  			if ($pos !== false) {
  				$substr = substr ( $host, $pos + 1 );
  				if ($substr == 'duapp.com') {
  					return true;
  				}
  			}
  		}
  		if (isset ( $_SERVER ["HTTP_BAE_LOGID"] )) {
  			return true;
  		}
  
  		return false;
  	}
code_tokens: private function isBaeEnv ( ) { if ( isset ( $ _SERVER [ 'HTTP_HOST' ] ) ) { $ host = $ _SERVER [ 'HTTP_HOST' ] ; $ pos = strpos ( $ host , '.' ) ; if ( $ pos !== false ) { $ substr = substr ( $ host , $ pos + 1 ) ; if ( $ substr == 'duapp.com' ) { return true ; } } } if ( isset ( $ _SERVER [ "HTTP_BAE_LOGID" ] ) ) { return true ; } return false ; }
docstring: is the environment BAE?
  @return boolean the result of the answer
docstring_tokens: is the environment BAE?