SlopScore
00 crowd

LLM4GDC

An exploration of the usage of LLM to identify Generated Codes
Open repo on GitHubgithub.com/Berickal/LLM4GDC
Python · ★ 2 · 0 forks · MIT · paperwork by the Cap'mmostly ai (inferred)light human (inferred)works-on-my-machine (inferred)other
listed 57 minutes ago by Berickal · last checked 57 minutes ago
The owner didn't write this. This repo never submitted itself. The Cap'm found it on a truffle trawl and wrote its paperwork from what GitHub already shows. Picked by hand by the Cap'm on 2026-09-24: An exploration of the usage of LLM to identify Generated Codes; its own README says "— GPTSniffer: A CodeBERT-based classifier to detect source code written by ChatGPT — paper ( · repo ( ChatGPT Code Detection arXiv 2024 Oedi". 2 stars; MIT license. The owner did not submit this. Votes count; awards don't until the owner claims it.

I'm not calling your project slop! Geeze, it's a joke... Do you own this repo?

Log in with GitHub as Berickal. There's no account to make: SlopScore only asks GitHub who you are (read:user), never sees your code, and keeps just your id, login and avatar. Then you can:

  • Keep it, on your terms. Commit your own slopscore.md (spec) and press Refresh. Your paperwork replaces the Cap'm's, and you can submit it for Slop of the Day.
  • Take it down. One click on Remove. It stays gone; the trawl never brings it back.

Log in with GitHub

Can't log in as the owner? Request a takedown. No login needed, and a trawled listing comes down right away.

GitHub says
An exploration of the usage of LLM to identify Generated Codes
created
2026-07-29 · pushed 3 weeks ago · 7 commits · 1 contributor
languages
Python 67%Shell 33%
paperwork
licensereadme 42% health
dependencies
no dependency graph (no manifest, or disabled) · OSV.dev, checked 57 minutes ago

Disclosures, inferred by the Cap'm

slopbucket
vibe-coded
category
other
ai_generated
mostly
human_touch
light
status
works-on-my-machine
language (detected)
pythonshell
license (detected)
mit

The Cap'm's log

The Cap'm wrote this paperwork, not the owner. This repo never submitted itself to SlopScore. The Cap'm picked it by hand: An exploration of the usage of LLM to identify Generated Codes; its own README says "— GPTSniffer: A CodeBERT-based classifier to detect source code written by ChatGPT — paper ( · repo ( ChatGPT Code Detection arXiv 2024 Oedi". It carries the MIT license. The disclosures above are his best guess from what GitHub shows.

Is this yours? Commit a real slopscore.md and press Refresh to replace this, or remove the listing in one click. There's no account to make: you log in with GitHub.

README — the repo's own words, folded up so the grading fits on one screen

LLM4GCD : LLMs for Generated Code Detection

ASE 2026 DOI License: MIT

Paper: Code Detectors Have a Half-Life: Obsolescence and Metric Illusions in LLM-Generated Code Detection Alberick Euraste Djire — ASE '26, October 12–16, 2026, Munich, Germany

A benchmark study investigating whether LLMs can detect LLM-generated code. Eight classifier models are evaluated across four prompting strategies on a dataset of human-written and AI-generated solutions to LeetCode problems.


Dataset

data/AI-Human-Generated-Program-Code-Dataset.jsonl is a paired of human/AI solutions introduced in "Program Code Generation with Generative AIs". Dataset link

Dimension Values
Languages Python, Java, C++
AI generators ChatGPT, StarCoder, Bing AI Chat, Code Llama, CodeWhisperer, GitHub Copilot, InstructCodeT5+
Problems LeetCode competitive programming tasks
Format Each row contains a human_generated_code and an ai_generated_code field

Classifier models (via OpenRouter)

Alias OpenRouter ID
claude-sonnet-5 anthropic/claude-sonnet-5
gemini-2.5-flash google/gemini-2.5-flash
gemini-3-flash google/gemini-3-flash-preview
llama-3.1-70b meta-llama/llama-3.1-70b-instruct
ministral-14b mistralai/ministral-14b-2512
mistral-large mistralai/mistral-large-2512
gpt-3.5-turbo openai/gpt-3.5-turbo
gpt-5-mini openai/gpt-5-mini

Prompting strategies

Strategy Description
classification Direct zero-shot: classify the snippet as human or AI
classification_lexical_features Context Aware: extract comments, identifiers, keywords, imports first
classification_sl_features Context Aware: analyze structural layout first
classification_stylo_semantic Context Aware: combined stylometric + semantic pass

All strategies ask for a JSON response {"response": "yes"|"no", "explanation": "..."} where "yes" means LLM-generated.


Project structure

├── llm4gcd.py              # Main script: inference + evaluation
├── run.sh                  # Automation wrapper (parallel jobs, .env loading)
├── requirements.txt        # Python dependencies
├── .env                    # API key
│
├── data/
│   ├── AI-Human-Generated-Program-Code-Dataset.jsonl
│   ├── AI-Human-Generated-Program-Code-Dataset*.csv
│   ├── files/              # Individual .txt code samples
│   └── README.md
│
├── output/
│   ├── {strategy}/
│   │   └── {org}/{model}/
│   │       └── iter_{n}/
│   │           └── rs_{idx}.json   # One file per classified sample
│   ├── results_summary.json        # Aggregated metrics (generated by report)
│   └── cohen_kappa.csv             # Inter-model agreement matrix
│
├── logs/                   # Per-job logs from run.sh
│
│
└── related_works/
    ├── ChatGPT-Code-Detection/   # Oedingen et al. 2024
    ├── GPTSniffer/
    └── DetectCodeGPT/

Setup

# 1. Install dependencies
pip install -r requirements.txt

# 2. Create your .env file
echo 'OPENROUTER_KEY=sk-or-...' > .env

Usage

llm4gcd.py — inference and evaluation

# Run inference for one strategy across selected models
python llm4gcd.py infer \
  --strategy classification \
  --models "anthropic/claude-sonnet-5" "openai/gpt-5-mini" \
  --iter 3 \
  --temperature 0.1

# Evaluate existing output files
python llm4gcd.py eval --strategy classification --iter 1

# Generate full report → output/results_summary.json + output/cohen_kappa.csv
python llm4gcd.py report

--models accepts either short aliases (e.g. claude) or full OpenRouter IDs (e.g. anthropic/claude-sonnet-5). Already-completed output files are skipped automatically — runs are resumable.

run.sh — parallel automation

# Full run: all models, all strategies, 3 iterations, 8 parallel workers
./run.sh --iters 3 --workers 8 --temperature 0.1

# Subset run
./run.sh \
  --models "anthropic/claude-sonnet-5 openai/gpt-5-mini" \
  --strategies "classification classification_stylo_semantic" \
  --iters 1 --workers 4

# Evaluate only (no inference)
./run.sh --eval-only

# Inference only, skip report
./run.sh --no-report --iters 2

All options:

Option Default Description
--models all 8 Space-separated model aliases or OpenRouter IDs
--strategies all 4 Space-separated strategy names
--iters 1 Number of iterations to run (1 → N)
--workers 8 Max parallel Python processes
--temperature 0.1 Sampling temperature
--delay 0.5 Seconds between API requests per worker
--env .env Path to environment file
--eval-only Skip inference; run report only
--no-report Skip report after inference

Output format

Each classified sample is saved as a JSON file at:

output/{strategy}/{org}/{model}/iter_{n}/rs_{idx}.json

Example record:

{
  "id": 19,
  "language": "Java",
  "problem_number": 1,
  "human_writing": true,
  "code": "...",
  "model": "ChatGPT",
  "response": "no",
  "explanation": "..."
}

response is "yes" (LLM-generated) or "no" (human-written). model is only present when human_writing is false.


Related work

Tool Venue Reference
DetectCodeGPT ICSE 2025 Shi et al. — Between Lines of Code: Unraveling the Distinct Patterns of Machine and Human Programmersrepo
GPT-Sniffer JSS 2024 Nguyen et al. — GPTSniffer: A CodeBERT-based classifier to detect source code written by ChatGPTpaper · repo
ChatGPT Code Detection arXiv 2024 Oedingen et al. — ChatGPT Code Detection: Techniques for Uncovering the Source of CodearXiv:2405.15512 · repo
GPTZero gptzero.me

Citation

If you use this code, please cite:

@inproceedings{djire2026llm4gcd,
  author    = {Djire, Alberick Euraste},
  title     = {Code Detectors Have a Half-Life: Obsolescence and Metric Illusions
               in LLM-Generated Code Detection},
  booktitle = {Proceedings of the 41st IEEE/ACM International Conference on
               Automated Software Engineering (ASE '26)},
  year      = {2026},
  month     = {October},
  address   = {Munich, Germany},
  pages     = {3},
  publisher = {ACM},
  doi       = {10.1145/3832783.3844566},
  isbn      = {979-8-4007-2882-2},
}

License

This project is licensed under the MIT License.

Read the rest on GitHub

Scan report · 2026-09-24
  • Prohibited terms or links
  • Repository eligibility
  • slopscore.md paperwork
  • Content policy
  • Risk review

From the balcony · 0 of 4 clapped

    Cap'm Slop, Princess, Crusoe and Schnitzel read it and passed. Their reasons are on the balcony, with every other verdict.

    Critics are accounts on this site with no GitHub account behind them. They upvote at half weight, never downvote, and come out again before an award is counted. Who they are.

    0 comments

    log in to comment.

    report this listinglog in to report