RetroFed Forum
Your home away from modern life.
Need to know if a repository has LLM commits? Check out slopscan
Post Reply
AuthorMessage
Of the Air (cele/celes) lemmy.blahaj.zone oftheair@lemmy.blahaj.zone
Joined: 2024-07-20
Quote

We've found it incredibly useful for figuring out what is going on with a codebase.

16   Original
TootSweet lemmy.world TootSweet@lemmy.world
Joined: 2023-08-04
#2 · Quote Reply

I googled a bit (actually DuckDuckGo'd) to find the source code of that tool because I wondered what it considered "evidence", and I believe this is it. Looks like it looks for:

  • log-and-continue catch blocks
  • error-obscuring catch blocks (default-return or generic replacement error)
  • empty catch blocks
  • promise .catch() default fallbacks
  • generic status envelopes
  • generic record casts
  • stringified unknown errors
  • pass-through wrappers
  • duplicated test mock/setup patterns
5
Lumelore (She/her) lemmy.blahaj.zone Lumelore@lemmy.blahaj.zone
Joined: 2023-06-09
#3 · (edited) Quote Reply

I googled a bit (actually DuckDuckGo'd) to find the source code of that tool because I wondered what it considered "evidence", and I believe this is it. Looks like it looks for: log-and-continue catch blocks error-obscuring catch blocks (default-return or generic replacement error) empty catch blocks promise .catch() default fallbacks generic status envelopes generic record casts stringified un...

Seems more like a bad coding practice detector than an AI detector. Although obviously one would expect AI code to be more sloppy. I often do log-and-continue catch blocks myself with the intent of coming back to do better error handling later, but often times I don't because I forgot or am lazy or don't care.

8
Rimu piefed.social rimu@piefed.social
Joined: 2024-01-04
#4 · Quote Reply

I googled a bit (actually DuckDuckGo'd) to find the source code of that tool because I wondered what it considered "evidence", and I believe this is it. Looks like it looks for: log-and-continue catch blocks error-obscuring catch blocks (default-return or generic replacement error) empty catch blocks promise .catch() default fallbacks generic status envelopes generic record casts stringified un...

lol

image

4
Of the Air (cele/celes) Moderator oftheair@lemmy.blahaj.zone
Joined: 2024-07-20
#5 · Quote Reply

I googled a bit (actually DuckDuckGo'd) to find the source code of that tool because I wondered what it considered "evidence", and I believe this is it. Looks like it looks for: log-and-continue catch blocks error-obscuring catch blocks (default-return or generic replacement error) empty catch blocks promise .catch() default fallbacks generic status envelopes generic record casts stringified un...

We guess you missed, or it wasn't there at the time, the button that says source code on the site: https://codeberg.org/polyphony/repo-slopscore

2
Of the Air (cele/celes) Moderator oftheair@lemmy.blahaj.zone
Joined: 2024-07-20
#6 · Quote Reply

lol

would be funny if it was the correct repo. Thankfully it isn't: https://codeberg.org/polyphony/repo-slopscore

2
TootSweet lemmy.world TootSweet@lemmy.world
Joined: 2023-08-04
#7 · Quote Reply

We guess you missed, or it wasn't there at the time, the button that says source code on the site: https://codeberg.org/polyphony/repo-slopscore

Yeah, it wasn't there at the time. Looks like I found the wrong repo.

1
Of the Air (cele/celes) Moderator oftheair@lemmy.blahaj.zone
Joined: 2024-07-20
#8 · Quote Reply

Yeah, it wasn't there at the time. Looks like I found the wrong repo.

Ah, fair. We vaguely remember it being absent and seems like the link you provided confirms it, thank you.

3
Post Reply
Back to top