It is a hyperbole, this does not use like or as
This first chapter is appropriately titled "Mr. Sherlock Holmes," as it introduces us to the great detective, while describing his abilities, and comparing him to Dr. Watson. Watson serves as Holmes' chronicler throughout the Sherlock Holmes series, but he does more than that.
The first sentence:
The sentence includes a present participle. (this is true: this participle is "passing")
The participial phrase modifies the word commuters. (false! it modifies "cars")
The participial phrase is essential. No commas are needed. (correct!)
The participial phrase is passing by. (this is also correct!)
The second sentence:
The sentence includes a past participle.
(correct! it's "derived")
The participial phrase modifies the words Middle Ages. (false!!!! it modifies "Family names")
The participial phrase is essential. No commas are needed.
(correct!)
The participial phrase is derived from people's surroundings.(correct again! this is the whole participial phrase)