original_string: private function parseFile($configFilePath) {
  		$configFileText = file_get_contents ( $configFilePath );
  		
  		// Now split each line on carriage return
  		$lines = explode ( "\n", $configFileText );
  		
  		// Now loop through each line, attempting a split by equals sign to get key value pairs out.
  		foreach ( $lines as $line ) {
  			
  			// Firstly split lines on # to ensure that comments are ignored
  			$splitComment = explode ( "#", $line );
  			
  			$propertyLine = trim ( $splitComment [0] );
  			
  			//  if the first entry is zero length when trimmed we know the line is a comment so we ignore the whole line
  			// Otherwise continue and use the bit before any potential comment
  			if (strlen ( $propertyLine ) > 0) {
  				
  				// Now split into key, value on =
  				$positionOfFirstEquals = strpos ( $propertyLine, "=" );
  				
  				// If there are not 2 or more array entries at this point we should complain unless we meet a blank line.
  				if ($positionOfFirstEquals) {
  					$this->parameters [trim ( substr ( $propertyLine, 0, $positionOfFirstEquals ) )] = trim ( substr ( $propertyLine, $positionOfFirstEquals + 1 ) );
  				} else {
  					throw new Exception ( "Error in config file: Parameter '" . $propertyLine . "' Does not have a value" );
  				}
  			
  			}
  		}
  	}
code: private function parseFile($configFilePath) {
  		$configFileText = file_get_contents ( $configFilePath );
  		
  		// Now split each line on carriage return
  		$lines = explode ( "\n", $configFileText );
  		
  		// Now loop through each line, attempting a split by equals sign to get key value pairs out.
  		foreach ( $lines as $line ) {
  			
  			// Firstly split lines on # to ensure that comments are ignored
  			$splitComment = explode ( "#", $line );
  			
  			$propertyLine = trim ( $splitComment [0] );
  			
  			//  if the first entry is zero length when trimmed we know the line is a comment so we ignore the whole line
  			// Otherwise continue and use the bit before any potential comment
  			if (strlen ( $propertyLine ) > 0) {
  				
  				// Now split into key, value on =
  				$positionOfFirstEquals = strpos ( $propertyLine, "=" );
  				
  				// If there are not 2 or more array entries at this point we should complain unless we meet a blank line.
  				if ($positionOfFirstEquals) {
  					$this->parameters [trim ( substr ( $propertyLine, 0, $positionOfFirstEquals ) )] = trim ( substr ( $propertyLine, $positionOfFirstEquals + 1 ) );
  				} else {
  					throw new Exception ( "Error in config file: Parameter '" . $propertyLine . "' Does not have a value" );
  				}
  			
  			}
  		}
  	}
code_tokens: private function parseFile ( $ configFilePath ) { $ configFileText = file_get_contents ( $ configFilePath ) ; // Now split each line on carriage return $ lines = explode ( "\n" , $ configFileText ) ; // Now loop through each line, attempting a split by equals sign to get key value pairs out. foreach ( $ lines as $ line ) { // Firstly split lines on # to ensure that comments are ignored $ splitComment = explode ( "#" , $ line ) ; $ propertyLine = trim ( $ splitComment [ 0 ] ) ; //  if the first entry is zero length when trimmed we know the line is a comment so we ignore the whole line // Otherwise continue and use the bit before any potential comment if ( strlen ( $ propertyLine ) > 0 ) { // Now split into key, value on = $ positionOfFirstEquals = strpos ( $ propertyLine , "=" ) ; // If there are not 2 or more array entries at this point we should complain unless we meet a blank line. if ( $ positionOfFirstEquals ) { $ this -> parameters [ trim ( substr ( $ propertyLine , 0 , $ positionOfFirstEquals ) ) ] = trim ( substr ( $ propertyLine , $ positionOfFirstEquals + 1 ) ) ; } else { throw new Exception ( "Error in config file: Parameter '" . $ propertyLine . "' Does not have a value" ) ; } } } }
docstring: Parse function.  Splits the config file into lines and
  then looks for key value pairs of the form key=value
docstring_tokens: Parse function . Splits the config file into lines and then looks for key value pairs of the form key = value