omega-rosetta
aien-dev/omega-rosetta
Brought by drakestapleton
omega-rosetta / bench / results / hand / HumanEval_16_count_distinct_characters.json
| 1 | { |
| 2 | "name": "HumanEval_16_count_distinct_characters", |
| 3 | "language": "om", |
| 4 | "temperature": 0.0, |
| 5 | "top_p": 1.0, |
| 6 | "max_tokens": 0, |
| 7 | "prompt": "om2\nnote Given a string, find out how many distinct characters (regardless of case) does it consist of\nnote >>> count_distinct_characters \"xyzXYZ\"\nnote 3\nnote >>> count_distinct_characters \"Jerry\"\nnote 4\nfn count_distinct_characters string view uchar * to long\n", |
| 8 | "tests": "fn tc_0 to bool\na0 = new uchar 1 0\nr = count_distinct_characters part a0 0 0\nret eq r 0\nend\ntext t1_0 \"abcde\"\nfn tc_1 to bool\nr = count_distinct_characters t1_0\nret eq r 5\nend\ntext t2_0 \"abcdecadeCADE\"\nfn tc_2 to bool\nr = count_distinct_characters t2_0\nret eq r 5\nend\ntext t3_0 \"aaaaAAAAaaaa\"\nfn tc_3 to bool\nr = count_distinct_characters t3_0\nret eq r 1\nend\ntext t4_0 \"Jerry jERRY JeRRRY\"\nfn tc_4 to bool\nr = count_distinct_characters t4_0\nret eq r 5\nend\ntext mpe_ok \"MultiPL-E Omega: all tests passed\\n\"\nfn main to int\nif not tc_0\nret 1\nend\nif not tc_1\nret 2\nend\nif not tc_2\nret 3\nend\nif not tc_3\nret 4\nend\nif not tc_4\nret 5\nend\nw = write 1 mpe_ok 0 len mpe_ok\nret 0\nend", |
| 9 | "completions": [ |
| 10 | "seen = new uchar 256 0\nn = long 0\nfor i ulong len string\nc = get string i\nif and ge c 65 le c 90\nc = add c 32\nend\nif eq get seen c 0\nput seen c 1\nn = add n 1\nend\nend\nret n\nend\n" |
| 11 | ], |
| 12 | "stop_tokens": [ |
| 13 | "\nfn ", |
| 14 | "\nstruct ", |
| 15 | "\nglobal ", |
| 16 | "\ntext ", |
| 17 | "\nconst ", |
| 18 | "\nlayout ", |
| 19 | "\nabstract " |
| 20 | ], |
| 21 | "stub_mode": "hand" |
| 22 | } |