Qwen 3.6 27B FP8 Instruct | Benchmark #1

Described in:Qwen 3.8 27B vs Qwen 3.6 27B: benchmark results analysisQwen 3.6 35B vs Qwen 3.6 27B: benchmark results analysis

Benchmark summary

HumanEval for SC#

ModelQwen 3.6 27B QuantizationFP8 ModeInstruct

HumanEval adapted to SC#, adding an extra challenge: models must generate correct code in a custom sandboxed language while following its documentation and constraints.

Score 140/162 86.4% passed
140 passed22 failed162 total 162 AI queries 0 tool calls TOKENS IN1 433 735 TOKENS OUT24 438

Results by difficulty

4 groups
Level Easy
64 / 69 92.8%
passed
69 AI queries 0 tool calls IN609 348 OUT6 001
Level Medium
72 / 83 86.7%
passed
83 AI queries 0 tool calls IN735 299 OUT14 340
Level Hard
4 / 9 44.4%
passed
9 AI queries 0 tool calls IN80 155 OUT2 845
Level VeryHard
0 / 1 0.0%
passed
1 AI query 0 tool calls IN8 933 OUT1 252

Results by category

1 group
Category CodeGeneration
86.4% 140/162 passed
162 AI queries 0 tool calls TOKENS IN1 433 735 TOKENS OUT24 438

Tests with multiple category tags are counted in each matching category, so category totals may exceed the report total.

Benchmark items
Script / test Status Tokens
Code Generation - Algorithms & Combinatorics 10 passed6 failed
62.5%
IN142 207 OUT5 050
✓
BalancedParenthesesModel checks whether a string of parentheses is correctly balanced. Provenance: HumanEval/61 (entry point correct_bracketing). Level: Easy — single left-to-right pass tracking a balance that must never go negative and must end at zero.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 840 OUT100
✓
CountBucketLoweringsModel counts total bucket lowerings needed to empty rows of wells. Provenance: HumanEval/115 (entry point max_fill). Level: Medium — per-row water sum, ceiling division by capacity, then a total; the ceiling with integer arithmetic is the trap.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 885 OUT114
×
EvaluateAlgebraExpressionModel writes an SC# function evaluating a small arithmetic expression with Python operator precedence. Provenance: HumanEval/160 (entry point do_algebra). Level: Hard — a mini expression evaluator over five operators across three precedence tiers, with the right-associativity of ** as the key trap and floor-division to get right.1 AI query 0 tool callscategory:CodeGenerationlevel:Hardsource:HumanEval
Assertion expression evaluated to false: run.Success Context: power-times-plus: candidate failed: List index 2 is out of range. The list has 2 element(s). Values: run.Success = false
Failed IN8 992 OUT564
×
FindValueCoordinatesInRaggedMatrixModel returns the coordinates of every cell equal to x in a ragged matrix, in a fixed order. Provenance: HumanEval/87 (entry point get_row). SC# represents each coordinate as a two-item List<int> [row, column]. Level: Medium — collect matches across variable-length rows, then a dual-key ordering (rows ascending, columns descending) that is easy to get backwards.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Assertion expression evaluated to false: run.Compiled Context: baseline-multiple: candidate did not compile: SC# compilation failed inside the script runner. Compiler diagnostics: 17:38: Expected '(' after the List type. Lists are created with 'new List<T>()' or 'new List<T>(items)', found '{'. Values: run.Compiled = false
Failed IN8 885 OUT152
✓
GreatestFrequentIntegerModel returns the greatest positive integer whose frequency in the list is at least its own value, or -1 if none. Provenance: HumanEval/69 (entry point search). Level: Medium — count occurrences and combine two conditions (value>0 and frequency>=value) while tracking the maximum qualifying value.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 852 OUT158
✓
HasZeroSumTripleModel decides whether three elements at distinct positions sum to zero. Provenance: HumanEval/40 (entry point triples_sum_to_zero). Level: Medium — brute-force over index triples, with the trap that distinctness is by position, not by value (repeated equal values at different indices count).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 846 OUT183
✓
LargestKValuesSortedAscendingModel returns the k largest values sorted ascending. Provenance: HumanEval/120 (entry point maximum). Level: Medium — sort then take the top k, with duplicates preserved and the k = 0 edge.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 849 OUT98
×
LexicographicMinGridPathModel writes an SC# function returning the values along the lexicographically smallest length-k grid path. Provenance: HumanEval/129 (entry point minPath). Level: VeryHard — the naive search space is huge; a correct answer needs the non-obvious insight that the optimum bounces between the global minimum 1 and its smallest edge-neighbor. Unique answer, so exact list comparison is deterministic.1 AI query 0 tool callscategory:CodeGenerationlevel:VeryHardsource:HumanEval
Assertion expression evaluated to false: run.Compiled Context: three-by-three: candidate did not compile: SC# compilation failed inside the script runner. Compiler diagnostics: 27:49: Expected ')' to close the argument list, found 'startC'. Values: run.Compiled = false
Failed IN8 933 OUT1 252
✓
MinimumSubarraySumModel finds the minimum sum over all non-empty contiguous subarrays. Provenance: HumanEval/114 (entry point minSubArraySum). Level: Hard — a Kadane-style running-minimum with state, plus the all-positive trap (the answer is the smallest element, never 0). Uses long because inputs exceed int range.1 AI query 0 tool callscategory:CodeGenerationlevel:Hardsource:HumanEval
Passed IN8 856 OUT146
✓
MostFrequentLettersModel returns the most frequent letter(s) and their count, keeping every tie. Provenance: HumanEval/111 (entry point histogram). Level: Medium — tally counts, find the maximum, then collect all keys reaching it (ties included).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 869 OUT227
×
OrderByDigitScoreModel writes an SC# function that stably sorts integers by a signed digit-sum score. Provenance: HumanEval/145 (entry point order_by_points). Level: Hard — combines a subtle scoring rule (leading digit of a negative number counts negative), a stable sort whose tie-break by original position is mandatory for determinism, and empty/negative/tie edge cases.1 AI query 0 tool callscategory:CodeGenerationlevel:Hardsource:HumanEval
Assertion expression evaluated to false: run.Compiled Context: baseline: candidate did not compile: SC# compilation failed inside the script runner. Compiler diagnostics: 60:29: Expected ')' to close the parenthesized expression, found 'a'. Values: run.Compiled = false
Failed IN8 926 OUT461
✓
PlanetsBetweenModel writes an SC# function listing the planets between two named planets, ordered from the Sun. Provenance: HumanEval/148 (entry point bf). SC# returns a List<string> instead of a Python tuple. Level: Medium — map names to orbital positions, emit the strictly-between range sun-outward regardless of argument order, and handle invalid-name, equal-name and adjacent (empty) edge cases.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 896 OUT276
×
PolynomialRealRootModel finds one real root of a polynomial given its coefficients. Provenance: HumanEval/32 (entry point find_zero). Level: Hard — requires a numeric root-finding method (e.g. bracket a sign change, then bisect); no closed form, and correctness is a tolerance on the residual rather than an exact value.1 AI query 0 tool callscategory:CodeGenerationlevel:Hardsource:HumanEval
Assertion expression evaluated to false: run.Compiled Context: linear: candidate did not compile: SC# compilation failed inside the script runner. Compiler diagnostics: 5:20: Expected ';' after the variable declaration, found '('. Values: run.Compiled = false
Failed IN8 870 OUT593
✓
SumEvenElementsAtOddIndicesModel sums the even values that sit at odd zero-based indices. Provenance: HumanEval/85 (entry point add). Level: Easy — one stride-2 loop with a parity filter and an accumulator.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 861 OUT78
✓
SwapCaseAndShiftVowelsModel swaps letter case and shifts vowels forward by two. Provenance: HumanEval/93 (entry point encode). Level: Medium — per-character case swap composed with a vowel-only alphabet shift, keeping the swapped case.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 889 OUT296
×
ValidateMmDdYyyyDateModel validates a strict mm-dd-yyyy date string. Provenance: HumanEval/124 (entry point valid_date). Level: Hard — several interacting rules (fixed format, digit counts, dash positions, month range, per-month day range, no leap year) where any single miss flips the answer.1 AI query 0 tool callscategory:CodeGenerationlevel:Hardsource:HumanEval
Assertion expression evaluated to false: run.Compiled Context: valid-march: candidate did not compile: SC# compilation failed inside the script runner. Compiler diagnostics: 17:18: Type 'string' has no supported method named 'AllDigits'. 17:41: Type 'string' has no supported method named 'AllDigits'. 17:65: Type 'string' has no supported method named 'AllDigits'. Values: run.Compiled = false
Failed IN8 958 OUT352
Code Generation - Arithmetic & Predicates 13 passed1 failed
92.9%
IN124 019 OUT1 975
✓
AbsoluteScoreDifferencesModel returns the element-wise absolute difference between two equal-length integer lists. Provenance: HumanEval/152 (entry point compare). Level: Easy — a single element-wise map (absolute difference) over paired lists, no edge cases beyond equal length.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 837 OUT76
✓
GpaToLetterGradesModel maps a list of numeric GPAs to letter grades using a fixed threshold table. Provenance: HumanEval/81 (entry point numerical_letter_grade). Level: Medium — 13 ordered thresholds with strict "greater-than" boundaries plus the exact 4.0 == A+ special case; boundary values are easy to misclassify.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 957 OUT381
✓
IsListMonotonicModel decides whether a list is monotonically non-decreasing or non-increasing. Provenance: HumanEval/57 (entry point monotonic). Level: Easy — single pass tracking two direction flags; equal adjacent values allowed.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 827 OUT158
✓
LargerOfTwoNumericStringsModel compares two numeric strings (decimal separator '.' or ',') and returns the larger one unchanged, or empty if equal. Provenance: HumanEval/137 (entry point compare_one). SC# uses string inputs; equal values return an empty string instead of Python None. Level: Medium — normalize separators, parse and compare numerically, then return the original string (preserving commas) or empty on a tie.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 858 OUT118
✓
MeanAbsoluteDeviationModel computes the mean absolute deviation of a list of doubles around their mean. Provenance: HumanEval/4 (entry point mean_absolute_deviation).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 839 OUT129
✓
MedianOfIntegerListModel returns the median of a list of integers, averaging the two middle values for even length. Provenance: HumanEval/47 (entry point median). Level: Medium — sort then branch on parity, returning a possibly fractional average.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 827 OUT141
✓
NearestNegativeAndPositiveModel finds the negative closest to zero and the smallest positive, with presence flags. Provenance: HumanEval/136 (entry point largest_smallest_integers). SC# returns a struct instead of Python's tuple with None. Level: Medium — two independent scans plus presence flags, excluding zero and handling both-absent cases.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 930 OUT223
✓
PolynomialDerivativeCoefficientsModel returns the coefficients of a polynomial's derivative in the same coefficient form. Provenance: HumanEval/62 (entry point derivative). Level: Easy — single loop multiplying each coefficient by its index; constant gives an empty list.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 848 OUT84
×
SortEvenLengthStringsModel keeps only even-length strings and returns them sorted by length then alphabetically, without mutating the input. Provenance: HumanEval/149 (entry point sorted_list_sum). Level: Medium — filter by parity plus a two-key (length, then lexicographic) ordering; several tie cases.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Assertion expression evaluated to false: run.Compiled Context: baseline-one: candidate did not compile: SC# compilation failed inside the script runner. Compiler diagnostics: 12:21: Expected ')' to close the parenthesized expression, found ','. Values: run.Compiled = false
Failed IN8 837 OUT123
✓
SumOddValuesAtEvenIndexesModel sums the odd values located at even zero-based indexes. Provenance: HumanEval/121 (entry point solution). Level: Easy — a single strided loop with an odd-value guard; returns 0 when nothing matches.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 843 OUT86
✓
SumOfSquaredCeilingsModel rounds each number up with ceiling, squares it, and sums the results. Provenance: HumanEval/133 (entry point sum_squares). Level: Easy — map ceiling then square then accumulate; handles negatives (ceiling of -2.4 is -2) and the double-to-int result.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 884 OUT65
✓
SumSquaresOfPositiveOddIntegersModel sums the squares of every value that is a positive odd integer, ignoring negatives, evens and non-integers. Provenance: HumanEval/151 (entry point double_the_difference). Level: Medium — parity plus an integrality guard over doubles (the non-integer filter is the trap), then sum of squares.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 832 OUT104
✓
SumWithIndexBasedPowersModel transforms each list entry by its index (square when index is a multiple of 3, cube when a multiple of 4 but not 3, unchanged otherwise) and sums the results. Provenance: HumanEval/142 (entry point sum_squares). Level: Medium — three-way index-based branch whose precedence (multiple-of-3 wins over multiple-of-4) is a genuine trap; empty-list edge case.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 870 OUT148
✓
WordWithMostUniqueCharsModel returns the word with the most distinct characters, breaking ties by lexicographically smallest. Provenance: HumanEval/158 (entry point find_max). Level: Medium — count distinct characters per word, take the argmax, and break ties by lexicographic order (~3 steps).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 830 OUT139
Code Generation - Easy Fundamentals 10 passed
100.0%
IN88 186 OUT630
✓
AddTwoIntegersModel implements integer addition. Provenance: HumanEval/53 (entry point Add).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 799 OUT20
✓
BalanceEverGoesNegativeModel detects whether a running balance ever goes negative. Provenance: HumanEval/3 (entry point BelowZero).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 822 OUT61
✓
BinaryStringXorModel implements binary XOR on two equal-length bit strings. Provenance: HumanEval/11 (entry point StringXor).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 847 OUT89
✓
FilterStringsBySubstringModel filters strings by substring membership. Provenance: HumanEval/7 (entry point FilterBySubstring).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 812 OUT69
✓
FractionalPartModel returns the fractional part of a positive number. Provenance: HumanEval/2 (entry point TruncateNumber).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 816 OUT24
✓
HasCloseElementsModel detects whether any two elements are closer than a threshold. Provenance: HumanEval/0 (entry point HasCloseElements).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 818 OUT97
✓
InsertDelimiterModel inserts a delimiter between consecutive elements. Provenance: HumanEval/5 (entry point Intersperse).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 826 OUT113
✓
StringLengthModel implements string length. Provenance: HumanEval/23 (entry point GetStringLength).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 797 OUT17
✓
SumAndProductModel returns the sum and product of a list of integers. Provenance: HumanEval/8 (entry point SumProduct).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 843 OUT87
✓
SumFromOneToNModel implements the sum 1..n inclusive. Provenance: HumanEval/60 (entry point SumToN).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 806 OUT53
Code Generation - Lists & Sequences 9 passed1 failed
90.0%
IN88 316 OUT794
✓
AllValuesBelowThresholdModel checks that every value is strictly below a threshold. Provenance: HumanEval/52 (entry point BelowThreshold).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 822 OUT55
×
CanMakeFirstListAllEvenModel decides whether unlimited swaps between two lists can make the first list all even. Provenance: HumanEval/110 (entry point exchange).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Assertion expression evaluated to false: run.Compiled Context: baseline-yes: candidate did not compile: SC# compilation failed inside the script runner. Compiler diagnostics: 1:43: Expected a parameter name, found ')'. Values: run.Compiled = false
Failed IN8 846 OUT100
✓
CarrotsEatenAndRemainingModel computes total carrots eaten and carrots left after a meal, capping consumption at the remaining stock. Provenance: HumanEval/159 (entry point eat).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 875 OUT48
✓
CountEvenAndOddDigitsModel counts the even and odd digits of a number (using its absolute value). Provenance: HumanEval/155 (entry point even_odd_count).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 845 OUT131
✓
IncrementEachElementModel returns a new list with every element incremented by one. Provenance: HumanEval/42 (entry point IncrList).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 822 OUT54
✓
KeepPositiveNumbersModel keeps only positive integers, preserving order. Provenance: HumanEval/30 (entry point GetPositive).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 820 OUT65
✓
MaximumListElementModel returns the maximum element of a non-empty list. Provenance: HumanEval/35 (entry point MaxElement).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 805 OUT73
✓
PairSummingToZeroModel detects two distinct positions summing to zero. Provenance: HumanEval/43 (entry point PairsSumToZero).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 827 OUT71
✓
RollingMaximumModel implements a rolling (running) maximum over a list. Provenance: HumanEval/9 (entry point rolling_max).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 824 OUT93
✓
SortedCommonElementsModel returns the ascending-sorted list of values common to two integer lists, without duplicates. Provenance: HumanEval/58 (entry point common).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 830 OUT104
Code Generation - Number Theory 13 passed1 failed
92.9%
IN123 969 OUT2 148
✓
BuildStonePileModel builds a pile of n levels: the first level has n stones and each next level has 2 more. Provenance: HumanEval/100 (entry point make_a_pile). Level: Easy — a single accumulation loop (n + 2*i); no real edge cases.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 870 OUT61
✓
CountOddBoundaryDigitsModel counts values greater than 10 whose first and last decimal digits are both odd. Provenance: HumanEval/146 (entry point specialFilter). Level: Medium — per element: a magnitude guard, extracting the leading digit (its own loop), extracting the last digit, and an odd-digit test (~3-4 steps).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 847 OUT134
✓
CountPositiveSignedDigitSumsModel counts the integers whose signed digit sum is greater than 0, where a negative number's most significant digit carries the minus sign (-123 -> -1 + 2 + 3 = 4). Provenance: HumanEval/108 (entry point count_nums). Level: Medium — extract the most significant digit, apply the sign only to it, sum the digits, and count positives, with the negative and zero edge cases.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 894 OUT216
✓
CountSevensInMultiplesOf11Or13Model counts occurrences of the digit 7 across the multiples of 11 or 13 below n. Provenance: HumanEval/36 (entry point fizz_buzz). Level: Medium — iterate a range, filter by a divisibility union without double counting multiples of both, and count a digit.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 826 OUT129
✓
DigitSumInBinaryModel sums the decimal digits of an integer and returns that sum in binary. Provenance: HumanEval/84 (entry point solve). Level: Medium — composes two sub-steps (decimal digit sum, then base-2 conversion) with a zero edge case.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 881 OUT200
✓
EveryThreeConsecutiveDistinctModel checks whether every window of three consecutive characters in a string is made of distinct characters. Provenance: HumanEval/80 (entry point is_happy). Level: Easy — a single sliding window with a length guard and a pairwise-distinct check.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 842 OUT129
✓
FactorialOrTriangularByParityModel returns a list of size n where, for 1-based index i, even i holds i! and odd i holds 1 + 2 + ... + i. Provenance: HumanEval/106 (entry point f). Level: Medium — a loop with a parity branch selecting between two sub-computations (factorial vs triangular sum), plus the 1-based-index twist.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 871 OUT160
✓
FractionProductIsWholeModel decides whether the product of two positive fractions is a whole number. Provenance: HumanEval/144 (entry point simplify). Level: Medium — parse two "num/den" strings into four integers, cross-multiply, then test divisibility (~3 steps).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 829 OUT122
✓
IsPrimeNumberModel tests whether an integer is a prime number. Provenance: HumanEval/31 (entry point is_prime). Level: Easy — a single well-known trial-division loop with an early exit and one edge (values below 2).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 813 OUT108
✓
IsSimplePowerOfNModel decides whether one integer is an exact power of another. Provenance: HumanEval/76 (entry point is_simple_power). Level: Medium — the model must handle the n==1 special case and the exponent-0 case (x==1) that a naive multiply loop misses; the spec no longer hands over the loop.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 898 OUT75
✓
NumbersWithAllOddDigitsModel returns, sorted ascending, the values whose decimal digits are all odd. Provenance: HumanEval/104 (entry point unique_digits). Level: Medium — filter by an all-odd-digits predicate (per-value digit decomposition) then sort.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 855 OUT143
✓
PrimesBelowNModel returns all prime numbers less than n in ascending order (empty when n <= 2). Provenance: HumanEval/96 (entry point count_up_to). Level: Medium — compose a primality test (inner loop) with a collection loop and the n<=2 edge; more than a single simple loop.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 822 OUT224
✓
RangeAverageInBinaryModel computes the average of the inclusive integer range n..m, rounds it to the nearest integer, and returns that value in binary with a "0b" prefix; returns "-1" when n > m. Provenance: HumanEval/103 (entry point rounded_avg). SC# uses a string return type, so the invalid range yields "-1" instead of Python's integer -1. Determinism note: every input uses an even (n + m) so the mean is an exact integer and no rounding tie occurs (the original's tie cases depend on Python banker's rounding, which is not portable to SC# Math.Round). Level: Medium — sum/average a range, then a base-conversion loop to binary, plus the invalid edge.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 854 OUT226
×
SortByBinaryOneBitsModel sorts integers by their binary one-bit count, breaking ties by numeric value. Provenance: HumanEval/116 (entry point sort_array). Level: Medium — combine a bit-count computation with a stable two-key ordering; negatives count bits of the absolute value to match the benchmark.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Assertion expression evaluated to false: run.Compiled Context: baseline-positive: candidate did not compile: SC# compilation failed inside the script runner. Compiler diagnostics: 4:25: Expected ')' to close the parenthesized expression, found ','. Values: run.Compiled = false
Failed IN8 867 OUT221
Code Generation - Numbers & Math 18 passed1 failed
94.7%
IN167 812 OUT1 617
✓
BiggestEvenInRangeModel returns the largest even integer in an inclusive range, or -1 when none exists. Provenance: HumanEval/102 (entry point choose_num).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 827 OUT84
✓
CarRaceCollisionsModel computes the number of head-on car collisions. Provenance: HumanEval/41 (entry point CarRaceCollision).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 843 OUT19
✓
CountMangoesInBasketModel computes the count of mango fruits given a "N apples and M oranges" string and a fruit total. Provenance: HumanEval/67 (entry point fruit_distribution).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 845 OUT54
✓
CountNumbersStartingOrEndingWithOneModel counts n-digit positive integers that start or end with the digit 1. Provenance: HumanEval/83 (entry point starts_one_ends).1 AI query 0 tool callscategory:CodeGenerationlevel:Hardsource:HumanEval
Passed IN8 830 OUT127
✓
EvenDigitsInRangeModel returns the even single digits lying between two bounds, in ascending order. Provenance: HumanEval/163 (entry point generate_integers).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 865 OUT104
✓
GreatestCommonDivisorModel implements the greatest common divisor of two integers. Provenance: HumanEval/13 (entry point greatest_common_divisor). Level: Medium — Euclid's algorithm keeps state across iterations (repeated modulo + swap until the remainder is 0), beyond a single expression or plain accumulator loop.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 808 OUT73
✓
HasPrimeLengthModel returns true when a string's length is a prime number. Provenance: HumanEval/82 (entry point prime_length).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 810 OUT136
✓
IsPerfectCubeModel detects whether an integer is a perfect cube, including negatives and zero. Provenance: HumanEval/77 (entry point iscube).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 816 OUT154
✓
IsRightAngleTriangleModel determines whether three side lengths form a right-angled triangle. Provenance: HumanEval/157 (entry point right_angle_triangle).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 832 OUT107
✓
IsSumOfFourPositiveEvensModel decides whether n is expressible as a sum of exactly four positive even numbers. Provenance: HumanEval/138 (entry point is_equal_to_sum_even).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 815 OUT29
✓
LargestProperDivisorModel returns the largest proper divisor. Provenance: HumanEval/24 (entry point largest_divisor).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 806 OUT65
✓
ProductOfOddDigitsModel returns the product of the odd decimal digits, or 0 when every digit is even. Provenance: HumanEval/131 (entry point digits).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 817 OUT121
✓
ProductOfUnitDigitsModel returns the product of the unit digits of two integers, treating them as non-negative. Provenance: HumanEval/97 (entry point multiply).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 861 OUT68
×
RoundToClosestIntegerModel parses a numeric string and rounds it to the closest integer, breaking .5 ties away from zero. Provenance: HumanEval/99 (entry point closest_integer).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Assertion expression evaluated to false: run.Compiled Context: baseline-integer: candidate did not compile: SC# compilation failed inside the script runner. Compiler diagnostics: 4:33: Unknown variable 'MidpointRounding'. Values: run.Compiled = false
Failed IN8 846 OUT47
✓
SelectValueByPrimalityModel returns x when n is prime and y otherwise. Provenance: HumanEval/150 (entry point x_or_y).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 821 OUT77
✓
SumMagnitudesTimesSignProductModel multiplies the sum of magnitudes by the product of the signs (any zero makes the product zero); empty input returns null. Provenance: HumanEval/128 (entry point prod_signs).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 851 OUT134
✓
SumSmallElementsFromPrefixModel sums the values among the first k entries whose absolute value has at most two digits. Provenance: HumanEval/122 (entry point add_elements).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 841 OUT79
✓
TriangleAreaFromBaseAndHeightModel returns the area of a triangle from base and height. Provenance: HumanEval/45 (entry point TriangleArea).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 819 OUT28
✓
TriangleAreaRoundedModel computes Heron's triangle area rounded to two decimals, or -1 for degenerate side lengths. Provenance: HumanEval/71 (entry point triangle_area).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 859 OUT111
Code Generation - Parsing & Decoding 12 passed2 failed
85.7%
IN124 083 OUT2 035
×
CircularShiftDigitsModel circularly shifts the decimal digits of an integer to the right, returning the result as a string. Provenance: HumanEval/65 (entry point circular_shift). Level: Medium — convert to digits, branch on shift vs digit count (reverse when it overflows), rotate by the right amount, and preserve leading zeros the rotation creates; several interacting edge cases and an easy direction/off-by-one trap.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Assertion expression evaluated to false: run.ResultJson == expectedJson Context: baseline-leading-zero: expected "001", got "010" Values: run.ResultJson = "\"010\"" expectedJson = "\"001\""
Failed IN8 867 OUT182
✓
ConvertIntegerToSmallBaseModel converts a positive integer to a base below ten and returns its string representation. Provenance: HumanEval/44 (entry point change_base). Level: Medium — repeated division/modulo building the digits in the correct order; a small but genuine algorithm.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 838 OUT116
✓
CountPrimeHexDigitsModel counts how many hexadecimal digits of a string have prime value. Provenance: HumanEval/78 (entry point hex_key). Level: Easy — a single pass counting membership in a fixed six-element set (the set is part of the original spec, not a hint).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 858 OUT88
✓
DecimalToBinaryWithDelimitersModel converts a non-negative integer to its binary digits and wraps the result with "db" markers. Provenance: HumanEval/79 (entry point decimal_to_binary). Level: Easy — a standard repeated-division binary conversion (single loop) with the zero edge case and a fixed prefix/suffix wrap.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 868 OUT105
✓
DecodeCaesarShiftByFiveModel decodes lowercase text that was Caesar-shifted forward by five, by shifting each letter back five with wraparound. Provenance: HumanEval/50 (entry point decode_shift). Level: Easy — single pass of modular character arithmetic with one wraparound edge.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 840 OUT125
✓
DecodeCyclicGroupsOfThreeModel decodes text whose full three-character groups were rotated left, by rotating each such group right. Provenance: HumanEval/38 (entry point decode_cyclic). Level: Medium — process the string in groups of three, rotate each full group, and leave a short trailing group unchanged.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 855 OUT140
×
HasNestedBracketSubsequenceModel detects whether a bracket string has a subsequence containing a nested bracket pair. Provenance: HumanEval/132 (entry point is_nested). Level: Hard — subsequence nesting is subtly different from balanced brackets; naive stack or balance checks give wrong answers on many cases.1 AI query 0 tool callscategory:CodeGenerationlevel:Hardsource:HumanEval
Assertion expression evaluated to false: run.ResultJson == expectedJson Context: baseline-not-nested: expected false, got true Values: run.ResultJson = "true" expectedJson = "false"
Failed IN8 933 OUT116
✓
MaxNestingDepthPerGroupModel reports the maximum nesting depth of each parenthesis group. Provenance: HumanEval/6 (entry point parse_nested_parens). Level: Medium — per-group depth tracking with a running maximum, reset at each group boundary; composed loop with state, beyond a single expression.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 843 OUT201
✓
ParseMusicBeatsModel parses ASCII note tokens into beat counts. Provenance: HumanEval/17 (entry point parse_music). Level: Easy — split on spaces and map each token through a fixed three-way legend; no state, single empty-input edge. Below the old "Medium" bucket.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 843 OUT134
✓
RotationSubstringCheckModel reports whether the second word or any rotation of it occurs as a contiguous substring of the first. Provenance: HumanEval/154 (entry point cycpattern_check). Level: Medium — the "any rotation" requirement is a real trap; a nested scan over all substrings and all rotations (b+b trick) is needed.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 825 OUT111
✓
SeparateBalancedParenGroupsModel separates a string into its top-level balanced parenthesis groups. Provenance: HumanEval/1 (entry point separate_paren_groups). Level: Medium — a depth-counter state machine that accumulates characters and emits a group each time depth returns to zero, plus the space-ignoring rule; a couple of composed steps beyond a plain loop.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 885 OUT148
✓
SplitWordsOrCountLettersModel splits text on spaces, else on commas, else counts a subset of its lowercase letters, returning a discriminated result struct. Provenance: HumanEval/125 (entry point split_words). Level: Medium — three mutually exclusive branches, an empty-part filter, and a parity-based letter count, all packed into a typed result struct that emulates Python's list-or-int return.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 959 OUT422
✓
StringToMd5DigestModel returns the lowercase hexadecimal MD5 digest of text, or null when text is empty. Provenance: HumanEval/162 (entry point string_to_md5). Level: Easy — a single guarded call to the built-in Md5 over the text's UTF-8 bytes, plus the empty-input null guard; the challenge is finding and using the library primitive, not the algorithm.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 825 OUT47
✓
ValidateAngleBracketNestingModel validates that a string of angle brackets is correctly nested. Provenance: HumanEval/56 (entry point correct_bracketing). Level: Medium — running depth counter with two interacting failure modes (never negative, and ends balanced).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 844 OUT100
Code Generation - Recursion & Sequences 15 passed
100.0%
IN132 899 OUT2 694
✓
BrazilianFactorialModel writes an SC# function returning the Brazilian factorial n! * (n-1)! * ... * 1!. Provenance: HumanEval/139 (entry point special_factorial). Level: Medium — a running-factorial product loop (~3 steps); the main trap is that the result overflows int at n=7, so it must be computed and returned as long.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 878 OUT89
✓
CountEvenAndOddPalindromesModel counts even and odd integer palindromes from 1 to n. Provenance: HumanEval/107 (entry point even_odd_palindrome). SC# returns the tuple as a two-item List<int> [evenCount, oddCount]. Level: Medium — palindrome detection over a range plus two parity-partitioned counters.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 869 OUT201
✓
CountTriplesDivisibleByThreeModel writes an SC# function counting index triples whose mapped values sum to a multiple of 3. Provenance: HumanEval/147 (entry point get_max_triples). Level: Medium — build a[i] = i*i - i + 1 over a 1-based range, then count triples i<j<k with sum divisible by 3; a straightforward triple loop suffices for the tested sizes (up to n=100).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 866 OUT398
✓
Fib4SequenceModel computes the four-step Fibonacci-like sequence iteratively. Provenance: HumanEval/46 (entry point fib4). Level: Medium — maintain a sliding window of four previous terms with four specific base cases; recursion is disallowed for efficiency.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 873 OUT174
✓
FibFibSequenceModel computes the three-step Fibonacci-like (tribonacci) sequence iteratively. Provenance: HumanEval/63 (entry point fibfib). Level: Medium — maintain a sliding window of three previous terms with three base cases; compute efficiently rather than by naive recursion.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 861 OUT143
✓
IntervalIntersectionLengthIsPrimeModel reports whether the length of two intervals' intersection is prime. Provenance: HumanEval/127 (entry point intersection). SC# represents each interval as a two-item List<int> [start, end]. Level: Medium — compute the overlap, apply the (end - start) length convention, then test primality.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 911 OUT156
✓
LargestPrimeFactorModel returns the largest prime factor of n. Provenance: HumanEval/59 (entry point largest_prime_factor). Level: Medium — trial division with state, dividing each factor out fully before advancing, and handling the final remaining prime.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 809 OUT142
✓
NthFibonacciModel returns the nth Fibonacci number. Provenance: HumanEval/55 (entry point fib). Level: Easy — the classic two-variable accumulator loop with base cases 0 and 1.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 825 OUT107
✓
NthPrimeFibonacciModel returns the nth Fibonacci number that is also prime, 1-based. Provenance: HumanEval/39 (entry point prime_fib). Level: Medium — compose iterative Fibonacci generation with a primality test and a running count until the nth prime Fibonacci is reached (all tested values stay within int).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 835 OUT312
✓
OddNumbersInCollatzSequenceModel returns the odd values of a Collatz sequence, sorted ascending. Provenance: HumanEval/123 (entry point get_odd_collatz). Level: Medium — generate the state-driven sequence to 1, filter odds (including 1), then sort.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 877 OUT135
✓
PowerOfTwoModuloModel computes 2 to the power n modulo p. Provenance: HumanEval/49 (entry point modp). Level: Medium — the trap is numeric overflow: with n up to ~1100, 2^n must be reduced modulo p each step rather than computed then reduced.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 845 OUT125
✓
PrimeFactorizationModel implements integer prime factorization, listing factors from smallest to largest with each factor repeated as many times as it divides the input. Provenance: HumanEval/25 (entry point factorize). Level: Medium — trial division with running state (divide the factor out and re-test it), emitting repeats in a defined ascending order; more than a single expression or plain accumulator loop.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 862 OUT167
✓
ProductOfThreePrimesModel decides whether a number is the product of exactly three prime numbers (with multiplicity). Provenance: HumanEval/75 (entry point is_multiply_prime). Level: Medium — factor the number and check that the total count of prime factors, counting repeats, equals exactly three.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 851 OUT121
✓
SumDigitsOfLargestPrimeModel returns the digit sum of the largest prime in a list. Provenance: HumanEval/94 (entry point skjkasdkd). Level: Medium — primality test, tracking the running maximum prime, then summing its digits.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 839 OUT249
✓
TribonacciLikeSequenceModel writes an SC# function returning the first n+1 values of a Tribonacci-like sequence. Provenance: HumanEval/130 (entry point tri). Level: Hard — the odd-index rule references tri(n+1), a forward reference that would loop under naive recursion; the solver must realize the referenced term is even-indexed and directly computable, then build the list iteratively.1 AI query 0 tool callscategory:CodeGenerationlevel:Hardsource:HumanEval
Passed IN8 898 OUT175
Code Generation - Sequences & Sorting 12 passed3 failed
80.0%
IN132 662 OUT2 145
×
CanSortByRightShiftsModel decides whether a list can be sorted ascending using only whole-array right shifts (rotations). Provenance: HumanEval/109 (entry point move_one_ball). Level: Medium — needs the insight that a rotation-sortable list has at most one circular descent; a couple of edge cases (empty, already sorted).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Assertion expression evaluated to false: run.Compiled Context: baseline-true: candidate did not compile: SC# compilation failed inside the script runner. Compiler diagnostics: 10:28: Expected an expression, found '^'. Values: run.Compiled = false
Failed IN8 871 OUT105
✓
FindClosestPairModel finds the two closest values in a list and returns them in ascending order. Provenance: HumanEval/20 (entry point find_closest_elements). Level: Medium — an O(n^2) scan over all pairs tracking the minimal distance, plus ordering the winning pair.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 833 OUT141
✓
IsSortedWithLimitedDuplicatesModel checks that a list is non-decreasing and no value occurs more than twice. Provenance: HumanEval/126 (entry point is_sorted). Level: Medium — two coupled checks (order plus a per-value occurrence count) with empty/single-element edge cases.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 854 OUT158
✓
LargestDecreasingIndexModel returns the largest index whose element is smaller than its predecessor, or -1 if none. Provenance: HumanEval/135 (entry point can_arrange). Level: Easy — a single pass keeping the last decreasing index; -1 for empty and single-element lists.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 844 OUT92
✓
MinChangesToPalindromeModel finds the minimum number of element changes needed to make a list a palindrome. Provenance: HumanEval/73 (entry point smallest_change). Level: Medium — the spec no longer names the pair-counting trick, so the model must derive that only mismatched symmetric pairs cost a change (the middle element of odd-length lists is free) and index them without off-by-one.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 834 OUT89
✓
PluckSmallestEvenNodeModel returns the smallest even value together with its first index as [value, index], or an empty list when there is none. Provenance: HumanEval/68 (entry point pluck). Level: Medium — track a running minimum plus its index, break ties toward the earliest index, and handle empty / no-even inputs; a few interacting edge cases beyond a plain scan.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 850 OUT159
✓
RemoveNonUniqueElementsModel removes every value that appears more than once, keeping only values that occur exactly once. Provenance: HumanEval/26 (entry point remove_duplicates).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 840 OUT138
✓
RescaleToUnitIntervalModel linearly rescales a list of doubles so the smallest becomes 0 and the largest becomes 1. Provenance: HumanEval/21 (entry point rescale_to_unit).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 848 OUT219
×
SecondSmallestDistinctValueModel returns the second smallest DISTINCT element of a list, or null when there is none. Provenance: HumanEval/90 (entry point next_smallest; canonical dedups via set before taking index 1). Level: Medium — dedup + sort + take second, with the null cases (empty, all-equal) and the distinct-value subtlety that flips [1,1,1,1,0] from 1-vs-something.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Assertion expression evaluated to false: run.ResultJson == expectedJson Context: baseline-duplicate-second: expected 1, got null Values: run.ResultJson = "null" expectedJson = "1"
Failed IN8 827 OUT158
✓
SortArrayByEndpointParityModel sorts a copy of a non-negative integer list ascending or descending depending on the parity of the sum of its first and last elements, without mutating the input. Provenance: HumanEval/88 (entry point sort_array). Level: Medium — compose a copy, an endpoint-parity decision that selects the sort direction, and a sort, plus the empty/single edge cases; more than a plain sort.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 861 OUT109
✓
SortedUniqueIntegersModel returns the distinct elements of a list sorted ascending. Provenance: HumanEval/34 (entry point unique). Level: Easy — deduplicate then sort; two straightforward operations, one empty-list edge.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 814 OUT46
×
SortNumberWordsModel sorts number words from zero to nine into ascending numeric order. Provenance: HumanEval/19 (entry point sort_numbers).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Assertion expression evaluated to false: run.Compiled Context: baseline-empty: candidate did not compile: SC# compilation failed inside the script runner. Compiler diagnostics: 21:45: Expected '>' to close the List type, found '<'. Values: run.Compiled = false
Failed IN8 852 OUT288
✓
SortValuesAtEvenIndicesModel sorts the values at even indices, leaving odd indices in place. Provenance: HumanEval/37 (entry point sort_even). Level: Medium — collect even-index values, sort them, then scatter them back; index bookkeeping across two passes.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 841 OUT134
✓
SortValuesAtIndicesDivisibleByThreeModel sorts the values that sit at indices divisible by three, leaving the other positions in place. Provenance: HumanEval/33 (entry point sort_third). Level: Medium — collect every third value, sort them, then scatter them back by index; a few steps with index bookkeeping.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 842 OUT162
✓
StrangeSortAlternatingMinMaxModel reorders a list by alternately taking the smallest and largest of the remaining values. Provenance: HumanEval/70 (entry point strange_sort_list). Level: Medium — recognise the sort-then-two-pointer pattern, keep state while alternating min/max, and preserve duplicates and odd-length handling.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 851 OUT147
Code Generation - String Algorithms 12 passed4 failed
75.0%
IN141 698 OUT3 208
✓
CountSentencesStartingWithIModel counts sentences that start with the standalone word "I". Sentences are delimited by '.', '?' or '!'. Provenance: HumanEval/91 (entry point is_bored). The exact "starts with word I" rule (I vs Is/It, standalone I at sentence end) is spelled out to make the count deterministic. Level: Hard — scan with sentence-boundary state, skip leading spaces, detect a standalone leading "I" while rejecting distractors like Is/It and mid-sentence I, across several subtle edge cases.1 AI query 0 tool callscategory:CodeGenerationlevel:Hardsource:HumanEval
Passed IN8 892 OUT311
×
DeleteCharsThenCheckPalindromeModel deletes characters that appear in a removal set and reports whether the remainder is a palindrome. Provenance: HumanEval/112 (entry point reverse_delete). SC# returns a result struct instead of Python's tuple. Level: Easy — filter characters, then a straightforward two-pointer palindrome check; the empty string counts as a palindrome.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Assertion expression evaluated to false: run.ResultJson == expectedJson Context: baseline-abcde: expected {"Text":"bcd","IsPalindrome":false}, got {"Text":"","IsPalindrome":true} Values: run.ResultJson = "{\"Text\":\"\",\"IsPalindrome\":true}" expectedJson = "{\"Text\":\"bcd\",\"IsPalindrome\":false}"
Failed IN8 863 OUT172
✓
DictionaryKeysUniformCaseModel returns true when every key of a non-empty dictionary is lowercase, or every key is uppercase; false for empty, mixed, or titlecase keys. Provenance: HumanEval/95 (entry point check_dict_case). SC# Dictionary<string,string> keys are always strings, so Python's non-string-key case is intentionally not represented. Level: Medium — reduce over the keys checking a uniform-casing property, with the empty, mixed and titlecase edge cases and the "cased letters required" subtlety.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 837 OUT150
✓
DigitNamesDescendingModel sorts the integers, walks them in descending order, keeps only values 1..9 and replaces each with its English name in title case. Provenance: HumanEval/105 (entry point by_length). Level: Medium — chain sort + descending traversal + range filter + name mapping, with the out-of-range and empty edge cases.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 864 OUT181
✓
FlipCaseOrReverseNoLettersModel swaps the case of every letter, or reverses the string when it contains no letters. Provenance: HumanEval/161 (entry point solve). Level: Medium — one pass swaps each letter's case while tracking whether any letter was seen, then a second branch reverses the whole string when none was; two distinct output modes plus the empty/no-letter edge cases.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 848 OUT263
×
IntegerToLowercaseRomanModel converts an integer in 1..1000 to its lowercase Roman numeral, using subtractive forms. Provenance: HumanEval/156 (entry point int_to_mini_roman). Level: Medium — greedy subtraction against the full value/symbol table including all subtractive pairs; one wrong table entry fails a case.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Assertion expression evaluated to false: run.ResultJson == expectedJson Context: baseline-1000: expected "m", got "cmc" Values: run.ResultJson = "\"cmc\"" expectedJson = "\"m\""
Failed IN8 857 OUT326
✓
KeepWordsWithPrimeLengthModel keeps only the words whose length is prime, preserving order, and rejoins them. Provenance: HumanEval/143 (entry point words_in_sentence). Level: Medium — split, a per-word primality sub-check, order-preserving filter, and rejoin (~3 composed steps).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 845 OUT214
✓
NormalizeSpaceRunsModel rewrites runs of spaces: one or two become underscores, three or more become a single hyphen. Provenance: HumanEval/140 (entry point fix_spaces). Level: Medium — run-length replacement with a threshold, applied at the start, middle and end of the string.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 895 OUT186
✓
RemoveVowelsFromTextModel returns the input string with every vowel removed. Provenance: HumanEval/51 (entry point remove_vowels). Level: Easy — single pass filtering characters against a small vowel set.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 831 OUT113
×
SelectWordsByConsonantCountModel selects the words containing exactly n consonants, preserving order. Provenance: HumanEval/117 (entry point select_words). Level: Easy — tokenize on spaces and count consonants per word; a couple of edge cases (empty string, repeated spaces).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Assertion expression evaluated to false: run.Compiled Context: baseline-little: candidate did not compile: SC# compilation failed inside the script runner. Compiler diagnostics: 16:18: Unknown variable 'volumes'. Values: run.Compiled = false
Failed IN8 871 OUT162
×
ShortestPalindromeExtensionModel extends a string into the shortest palindrome that begins with it. Provenance: HumanEval/10 (entry point make_palindrome). Level: Medium — requires the insight of finding the longest palindromic suffix and appending the reversed remaining prefix, with edge cases (empty, single char, already a palindrome).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Assertion expression evaluated to false: run.ResultJson == expectedJson Context: baseline-xyz: expected "xyzyx", got "xyzx" Values: run.ResultJson = "\"xyzx\"" expectedJson = "\"xyzyx\""
Failed IN8 856 OUT226
✓
SortCharactersWithinWordsModel sorts the characters within each space-separated word ascending by ASCII value, keeping word order and every space. Provenance: HumanEval/86 (entry point anti_shuffle). Level: Medium — tokenise on spaces while preserving blanks (including consecutive and trailing spaces), sort each word's characters, and rejoin without dropping or collapsing whitespace.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 847 OUT188
✓
SplitWordsByCommaOrSpaceModel splits a string into words separated by commas or spaces, dropping empty tokens. Provenance: HumanEval/101 (entry point words_string). Level: Easy — a single-pass tokenizer over two separators with the empty/repeated-separator edge.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 835 OUT197
✓
StrongestClassExtensionModel picks the extension whose strength (uppercase letters minus lowercase letters) is greatest, breaking ties by first occurrence, and formats ClassName.Extension. Provenance: HumanEval/153 (entry point Strongest_Extension). Level: Medium — compute a per-extension score, take the argmax with a first-wins tie rule, then format (~3 steps).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 855 OUT217
✓
SumUppercaseAsciiCodesModel sums the ASCII codes of the uppercase English letters in a string, ignoring all other characters. Provenance: HumanEval/66 (entry point digitSum). Level: Easy — a single pass with one character-range condition and an accumulator.1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 831 OUT69
✓
ValidateFileNameModel validates a file name against a set of naming rules. Provenance: HumanEval/141 (entry point file_name_check). Level: Medium — five independent rules (digit count, exactly one dot, non-empty stem, leading latin letter, allowed extension) with several distinct edge cases.1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 871 OUT233
Code Generation - Strings & Text 16 passed3 failed
84.2%
IN167 884 OUT2 142
✓
AllPrefixesModel returns all non-empty prefixes from shortest to longest. Provenance: HumanEval/14 (entry point all_prefixes).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 814 OUT83
✓
CanConcatenateToBalancedModel checks whether two parenthesis strings can be concatenated in some order to form a balanced string. Provenance: HumanEval/119 (entry point match_parens).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 861 OUT158
×
ClosestVowelBetweenConsonantsModel finds the rightmost vowel that lies strictly between two consonants. Provenance: HumanEval/118 (entry point get_closest_vowel).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Assertion expression evaluated to false: run.Compiled Context: baseline-yogurt: candidate did not compile: SC# compilation failed inside the script runner. Compiler diagnostics: 9:29: 'Cast' target type must be byte, int, long, decimal, double, char, Date, DateTime or TimeSpan, but got 'string'. 14:71: 'Cast' target type must be byte, int, long, decimal, double, char, Date, DateTime or TimeSpan, but got 'string'. 15:71: 'Cast' target type must be byte, int, long, decimal, double, char, Date, DateTime or TimeSpan, but got 'string'. 19:24: 'Cast' target type must be byte, int, long, decimal, double, char, Date, DateTime or TimeSpan, but got 'string'. Values: run.Compiled = false
Failed IN8 864 OUT197
✓
ConcatenateStringsModel concatenates a list of strings in order. Provenance: HumanEval/28 (entry point concatenate).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 813 OUT47
✓
CountDistinctCharactersModel counts distinct characters case-insensitively. Provenance: HumanEval/16 (entry point count_distinct_characters).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 804 OUT49
✓
CountOverlappingOccurrencesModel counts overlapping substring occurrences. Provenance: HumanEval/18 (entry point how_many_times).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 809 OUT108
✓
CountUppercaseVowelsAtEvenIndicesModel counts uppercase vowels located at even indices of a string. Provenance: HumanEval/98 (entry point count_upper).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 821 OUT116
×
CountVowelsWithTrailingYModel counts vowels, additionally counting a trailing y as a vowel. Provenance: HumanEval/64 (entry point vowels_count).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Assertion expression evaluated to false: run.ResultJson == expectedJson Context: baseline-key-uppercase-y: expected 2, got 1 Values: run.ResultJson = "1" expectedJson = "2"
Failed IN8 848 OUT180
✓
FilterStringsByPrefixModel filters strings by prefix, preserving order. Provenance: HumanEval/29 (entry point FilterByPrefix).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 820 OUT70
✓
FlipCaseModel flips ASCII letter case. Provenance: HumanEval/27 (entry point flip_case).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 815 OUT127
✓
LastCharIsStandaloneLetterModel reports whether the final character is a standalone single-letter word. Provenance: HumanEval/134 (entry point check_if_last_char_is_a_letter).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 862 OUT138
✓
ListWithSmallerCharTotalModel returns whichever list has the smaller total character count, preferring the first on a tie. Provenance: HumanEval/74 (entry point total_match).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 833 OUT110
✓
LongestStringModel returns the first longest string, or null for empty input. Provenance: HumanEval/12 (entry point longest).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 820 OUT99
✓
OddDigitCountSentencesModel builds a fixed sentence per digit string where every letter 'i' is replaced by the odd-digit count. Provenance: HumanEval/113 (entry point odd_count).1 AI query 0 tool callscategory:CodeGenerationlevel:Mediumsource:HumanEval
Passed IN8 971 OUT184
✓
PalindromeWithinWeightModel returns true when a list is a palindrome and its sum fits a weight limit. Provenance: HumanEval/72 (entry point will_it_fly).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 831 OUT132
✓
RotateAlphabetCipherModel rotates each lowercase letter forward through the alphabet with wraparound. Provenance: HumanEval/89 (entry point encrypt).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 852 OUT106
×
SameDistinctCharactersModel checks whether two strings share exactly the same distinct characters. Provenance: HumanEval/54 (entry point SameChars).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Assertion expression evaluated to false: run.Compiled Context: baseline-true-long: candidate did not compile: SC# compilation failed inside the script runner. Compiler diagnostics: 15:16: Type 'HashSet<char>' has no supported method named 'Equals' with 1 argument(s). Values: run.Compiled = false
Failed IN8 817 OUT89
✓
SpaceDelimitedSequenceModel builds a space-delimited sequence of integers from 0 through n. Provenance: HumanEval/15 (entry point string_sequence).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 819 OUT73
✓
StringIsPalindromeModel checks whether a string is a palindrome. Provenance: HumanEval/48 (entry point IsPalindrome).1 AI query 0 tool callscategory:CodeGenerationlevel:Easysource:HumanEval
Passed IN8 810 OUT76