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;">Evaluating</span> == Expert evaluation of code generation systems: '''pass@k metric''': Sample k code solutions, run all unit tests, and measure the probability at least one passes: pass@k = 1 - C(n-c, k)/C(n, k), where n=total samples, c=passing samples. pass@1 (single best attempt) is the production-relevant metric; pass@10 or pass@100 measures model capability. '''SWE-bench''': A far more realistic benchmark than HumanEval. Given a real GitHub issue description and repository, can the model write a patch that fixes the issue (validated by the repository's test suite)? SWE-bench Verified has human-validated problem statements, making it more reliable. '''Security evaluation''': CyberSecEval (Meta) and SVEN benchmark test whether models generate vulnerable code or can identify security issues. Code generation systems for production use must be evaluated here. '''Practical utility beyond accuracy''': Does the AI reduce developer time? Does it generate code that needs significant editing? Does it produce maintainable, idiomatic code or technically correct but unreadable code? User surveys and time-to-completion studies supplement automated metrics. Expert practitioners run generated code through static analysis (Bandit, Semgrep, pylint) and require generated code to pass the same code review standards as human-written code. </div> <div style="background-color: #2F4F4F; 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