If you wrote 9,990 lines of proprietary code and included 10 lines of proprietary code from another company, I imagine that your entire program would have to be approved of by the other company in writing, or you wouldn't be able to distribute it.
What's supposed to be the difference here?