arXiv AI By Sergey V. Samsonau

scicode-lint: Detecting Methodology Bugs in Scientific Python Code with LLM-Generated Patterns

Read the original on arXiv AI →

arXiv:2603. 17893v2 Announce Type: replace-cross Abstract: Methodology bugs in scientific Python code produce plausible but incorrect results that traditional linters and static analysis tools cannot detect.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv AI.

arXiv AI
1d ago

Automatic Detection of LLM-Generated Code: A Comparative Case Study of Contemporary Models Across Function and Class Granularities

The study evaluates how well large language models (LLMs) can be detected when they generate code, comparing GPT‑3.5, Claude 3 Haiku, Claude Haiku 4.5, and GPT‑OSS across function‑ and class‑level code. Using 14,485 functions and 11,913 classes from CodeSearchNet, the authors trained CatBoost classifiers with interpretable software metrics and found that granularity (function vs. class) has a far greater impact on detection than the specific model, with function‑level detection dominated by GPT‑3.5 and class‑level detection dominated by the newer models. SHAP analysis revealed that the Comment‑to‑Code Ratio is the only universal feature, yet its importance varies widely among models, explaining why detectors trained on one LLM often fail on others.

By Musfiqur Rahman, SayedHassan Khatoonabadi, Ahmad Abdellatif, Emad Shihab