Earlier quoted context omitted.
Sure but if you have to audit every suggestion to see if it violates copyright laws that's not a particularly useful tool.
Depends. If you find useful code on Github, Stack Overflow or anywhere else in the internet, you still need to check whether it is suitable with your licensing or not.
When a person gets code from another source on the internet, they generally know where the code has come from.