How does FlightAware come up with the route?

How does FlightAware come up with the route? Is it as filed, as cleared, or as flown?

The route listed on the flight page is as cleared (filed + ammended by ATC).
The map on the flight page is as flown.