Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An open question of AI generated code #87

Open
DSOTM-pf opened this issue Oct 26, 2024 · 0 comments
Open

An open question of AI generated code #87

DSOTM-pf opened this issue Oct 26, 2024 · 0 comments

Comments

@DSOTM-pf
Copy link

Hi, I found that the code the-flower was generated by ChatGPT.

running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
# Update player position based on user input
keys = pygame.key.get_pressed()
if keys[pygame.K_LEFT]:
player_rect.x -= 5
if keys[pygame.K_RIGHT]:
player_rect.x += 5
if keys[pygame.K_UP]:
player_rect.y -= 5
if keys[pygame.K_DOWN]:
player_rect.y += 5

My question is whether there may be a license issue with this code. I noticed that this code is very similar to Ecoli.py in the Armbarbarian/Python repository.

  • The ChatGPT-generated code was updated in January 2024, while the similar code was updated in June 01/2023.

  • Besides, the similar code is under a No License license. According to the conditions of this No License license:

If you find software that doesn’t have a license, that generally means you have no permission from the creators of the software to use, modify, or share the software.

How do you view potential license conflicts between ChatGPT-generated code and existing open-source code?

If a license violation exists, would you add some explanation regarding the ChatGPT-generated code?

Thank you for your attention to this matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant