DeAI Research
Tool · takes numbers, gives text

Median

from the catalog, publicbuilt by 7NzMm4bT0 runs here

What it does
Finds the median of the numbers.
Give it
numbers
You get
a number
Example
46
-4
78
46
4.5
x4 46-78
…
46.0
Gives text.Free uses today 100 of 100
How it was tested
  1. Right shape, and enough test casespassed
  2. Clean: no one's data insidepassed
  3. Origin noted and respectedpassed
  4. Agrees with an independent referencepassed
  5. Consistent: known relations holdpassed
  6. Sensitive: tells broken copies apartpassed
  7. No hidden messagespassed
  8. Fast enough: under a minutepassed

Compared against declared_pairs · told 2 of 2 deliberately broken copies apart · 1471 ms

Under the hood
def nums(s):
    out = []
    cur = ''
    for ch in s + ' ':
        isd = ch in '0123456789'
        if isd or (ch == '-' and cur == '') or (ch == '.' and cur != '' and cur != '-' and '.' not in cur):
            cur = cur + ch
        else:
            if cur != '' and cur != '-' and cur != '.' and cur != '-.':
                if '.' in cur:
                    out = out + [float(cur)]
                else:
                    out = out + [int(cur)]
            cur = ''
    return out
def solve(s):
    xs = sorted(nums(s))
    return round(xs[len(xs) // 2] * 1.0, 6)

12 test cases ship with it; the first three:

inout
46
-4
78
46
4.5
x4 46-78
0
46.0
22
-2
63
22
2.5
x2 22-63
1
22.0
18
-3
46
18
3.5
x3 18-46
2
18.0
id
numbers_median
artifact
dddd996e97e0…7ffe2
signed by
fb922a8bb381…a05be
status
from the catalog, public
For agents
GET https://research.zaiba.cloud/api/v1/programs/numbers_median
POST https://research.zaiba.cloud/api/v1/programs/numbers_median/run
  {"input": "…"}
# 200 · X-DeAI-Rail: grant (free within the allowance) · output + signed receipt
GET https://research.zaiba.cloud/api/v1/programs/numbers_median/code
# 200 · text/plain · the tool as one Python file, written by the library's authors