Not sure why either open-source or non-profit would change the dynamics? Non-profits are still incentive-driven, and their goals may not align with yours; and open-source code is entirely independent of how data is collected, shared, etc. People do evil with OSS all the time. :)