Any alternative sources for code? Can't find it on OpenLayers Github, which is now version 5.4
this issue on github will help you out to understand.
The codes are on the cdn as Mike linked. and If you need sources not compressed, you can still get it from openlayers repository. https://github.com/openlayers/openlayers/tree/v3.4.0