Github and other OpenSource hosting sites should pretty much invalidate any possible software patent claim via prior art, right ?
If you have that you're immune, show up with your print out, you get costs.
If you lose you might have to, for example, hand over profits.
The flipside is that small companies can use patents to prevent unlicensed exploitation of their own inventions.
This is my personal view and does not relate to my employment.