Can I apply for a patent or copyright using open source software?

Copyright can be applied, the state censorship is lax, everyone can get it, and the basic value is not high, and the source code can be changed. Although the function is the same, it can still be applied without infringement. If the patent has been made public here, it has been made public to others, including exhibitions, networks, shops and so on. , then it loses its novelty and the right to apply is unstable.