Body: <p>Lately, our Junior developer has been producing code fixes very quickly. At first, I was excited for him as I thought he was starting to retain information and proving he was able to research and fix issues. But during our last code review, I was walking through his fixes and he couldn't speak to why he did was he did or what the code was actually doing. Obviously, OpenAI's Chat has taken off and I am just curious if there is a way to determine if code was generated by AI?</p>
  <p>I did see that Stack Overflow has a policy on this <a href="https://meta.stackoverflow.com/questions/421831/temporary-policy-chatgpt-is-banned">Temporary policy: ChatGPT is banned</a> so it seems that they have a way to tell if the code is authentically written or not?</p>
  <p>Any guidance is appreciated.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-12-28T16:18:55.717Z
Comments.Text: This has been asked on SO Meta before: [How can we determine whether an answer used ChatGPT?](https://meta.stackoverflow.com/questions/421880/how-can-we-determine-whether-an-answer-used-chatgpt)
Comments.UserDisplayName: 0stone0
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-12-28T16:36:06.697Z
Comments.Text: This is concerning answers on SO. I am asking about general code and if it can be detected or not.
Comments.UserDisplayName: FreddyNoNose
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-12-29T02:54:26.007Z
Comments.Text: Did the code of all test cases?
Comments.UserDisplayName: Azhar Khan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-12-29T14:01:36.587Z
Comments.Text: @AzharKhan I assume you meant "Did the code pass all test cases?" 
  
  So the code changes were made and worked then changes to test cases were made. But still hard to tell if the code was AI generated or not.
Comments.UserDisplayName: FreddyNoNose
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-02-20T10:21:58.627Z
Comments.Text: Just spend a few hours with him while he's developing, and ask him to change the code to do something else. Or start something new. Anyway if he's good enough to understand what gpt does and how to fix it, is it really a problem?
Comments.UserDisplayName: Déjà vu
Tags: <open-ai><chatgpt>
Title: Is there a way to determine if code has been autogenerated by an AI source?
UserDisplayName: FreddyNoNose
ThreadText: # Is there a way to determine if code has been autogenerated by an AI source?
  
  (Asked by: username_0 on 2022-12-28)
  
  Lately, our Junior developer has been producing code fixes very quickly. At first, I was excited for him as I thought he was starting to retain information and proving he was able to research and fix issues. But during our last code review, I was walking through his fixes and he couldn't speak to why he did was he did or what the code was actually doing. Obviously, OpenAI's Chat has taken off and I am just curious if there is a way to determine if code was generated by AI?
  
  I did see that Stack Overflow has a policy on this [Temporary policy: ChatGPT is banned](https://meta.stackoverflow.com/questions/421831/temporary-policy-chatgpt-is-banned) so it seems that they have a way to tell if the code is authentically written or not?
  
  Any guidance is appreciated.
  
  **Tags:** open-ai, chatgpt
  > **Comments:**
  > **username_1**: This has been asked on SO Meta before: [How can we determine whether an answer used ChatGPT?](https://meta.stackoverflow.com/questions/421880/how-can-we-determine-whether-an-answer-used-chatgpt)  
  > **username_0**: This is concerning answers on SO. I am asking about general code and if it can be detected or not.  
  > **username_2**: Did the code of all test cases?  
  > **username_0**: @AzharKhan I assume you meant "Did the code pass all test cases?"   So the code changes were made and worked then changes to test cases were made. But still hard to tell if the code was AI generated or not.  
  > **username_3**: Just spend a few hours with him while he's developing, and ask him to change the code to do something else. Or start something new. Anyway if he's good enough to understand what gpt does and how to fix it, is it really a problem?  
  
  ---
  
  ## 0 answers
  
  