It's endemic and it predates AI. I took a CS class 15 years ago where >40% of the class was caught copying the class project off of pastebin (no clue if it was specifically bait or student code that had a tell-tale error).