Guide to Code Generation Evaluation | Generated by AI

Home 2026.07

The file structure is straightforward — here’s how to read it:

Delimiters:

======================================================================

That = line separates each sample. Each sample starts with <|bos|> which is the beginning-of-sequence token.

Reading pattern:

  1. Scroll down past the log/init lines (lines 1-5)
  2. Each block between ====== lines is one generated sample
  3. Inside each block: the input prompt is everything you gave it, then the model’s continuation follows

Example:

<|bos|>def fibonacci(n):     ← prompt (what you gave)
    if n == 0:              ← model's generation
        return 1
    else:
        return fibonacci(n-1) + fibonacci(n-2)
    ...

Total: 8 samples (fibonacci, reverse_linked_list, sort_dict_by_value, Stack, numpy import, CSV comment, is_palindrome, binary_search). To quickly jump between samples from the terminal:

grep '^====' -n /mnt/data/zz/codeparrot/eval/results/python_samples.log

That prints line numbers of all separators:

6:  ======  ← sample 1: fibonacci
24: ======  ← sample 2: reverse_linked_list
48: ======  ← sample 3: sort_dict_by_value
68: ======  ← sample 4: Stack
94: ======  ← sample 5: numpy import
116: ====== ← sample 6: CSV comment
120: ====== ← ...wait that's only 1 line for CSV? Let me check
139: ====== ← sample 7: is_palindrome
175:        ← sample 8: binary_search (trailing, no ===== at end)

Then read a specific sample by line range:

sed -n '6,23p' /mnt/data/zz/codeparrot/eval/results/python_samples.log

To evaluate whether a generation is good:


Back Donate