Skip to content
mini-lab
Features of prelude-2

Feature #1818

Fires on “)`” (not labeled yet: read the examples)

Fires on
1.68% of tokens
Mostly in
python
Layer
after block 4

Where it fires

  • python 78%
  • agent 14%
  • chat 4%
  • story 2%
  • worksheet 2%

Makes the model say

returns)ON replace lotsmdprint return

Makes it not say

ice be sorry: why mom bYes

Strongest examples

On text the dictionary never trained on. The underlined token is where it fires most.

  1. python 6.97
    and b. For example, `mean(1, 12)` returns `6.
  2. python 6.93
    ` returns the cube of x. For example, `cubed(1)` returns `1`.
  3. python 6.86
    returns True if x is positive. For example, `positive(-1)` returns `False`.
  4. python 6.85
    . For example, `max_of(7, 12)` returns `12
  5. python 6.8
    . For example, `lower_of(3, 11)` returns `3`.
  6. python 6.76
    returns the opposite of x. For example, `opposite(11)` returns `-1
  7. python 6.71
    ` returns the factorial of n. For example, `fact(1)` returns `1`.
  8. python 6.66
    the length of s. For example, `num_chars("moon")` returns `4`.
  9. python 6.65
    double` returns twice x. For example, `double(12)` returns `24
  10. python 6.58
    . For example, `lower_of(6, 10)` returns `6`.
  11. python 6.56
    True if x is odd. For example, `odd(11)` returns `True`.
  12. python 6.45
    absolute value of x. For example, `abs_value(-1)` returns `1`.