Editing
AI for Code Generation
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Analyzing</span> == {| class="wikitable" |+ Code Generation Model Comparison (2024) ! Model !! HumanEval (pass@1) !! SWE-bench Verified !! Context !! Best For |- | GPT-4o || ~90% || ~49% || 128k tokens || General coding, complex reasoning |- | Claude 3.5 Sonnet || ~92% || ~49% || 200k tokens || Long files, agentic coding |- | DeepSeek-Coder-V2 || ~90% || ~38% || 128k tokens || Open source, local deployment |- | Gemini 1.5 Pro || ~87% || ~35% || 1M tokens || Very long codebase context |- | Llama 3.1 405B || ~89% || N/A || 128k tokens || Open source, customizable |} '''Failure modes:''' * '''Plausible but incorrect code''' β Generated code looks correct syntactically but has subtle logical errors. The greatest danger: code that passes obvious tests but fails edge cases. * '''Security vulnerabilities''' β Models reproduce insecure patterns from training data: SQL injection, buffer overflows, hardcoded credentials, improper input validation. * '''API hallucination''' β Models confidently call functions or methods that don't exist in the library, or use outdated API signatures. * '''Context window limits''' β For large codebases, the model cannot see all relevant files simultaneously. It may generate code inconsistent with unseen parts of the codebase. * '''Test gaming''' β An agent told to "make the tests pass" might delete the tests or hardcode expected outputs rather than implementing the actual logic. </div> <div style="background-color: #483D8B; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information