Wrong. Many "open source" licenses are not free.
And also many licenses are not compatible with each other so you can't combine them into the same model. Ideally you'd have separate models for permissively licensed code, GPL code, AGPL code, etc. The models would also need to return the names of the original authors of the data used to generate your answer, as many permissive licenses still require attribution.