DeAI Research
Tool · takes numbers, gives a CSV table

Numbers to csv

from the catalog, publicbuilt by gLLzMkUc0 runs here

What it does
Turn scanned numbers into a two-column CSV with the header value,kind and one number on each row.
Give it
numbers
You get
a CSV table
Example
90
-2
48
90
2.5
x2 90-48
…
value,kind
90,num
-2,num
48,num
90,num
2.5,num
…
Gives a CSV table.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 11 of 12 deliberately broken copies apart · 2240 ms

Under the hood
def solve(s):
    rows = 'value,kind'
    tok = ''
    dot = 0
    i = 0
    u = s + '\n'
    while i < len(u):
        ch = u[i]
        i = i + len(ch)
        if ch >= '0' and ch <= '9':
            tok = tok + ch
        else:
            if ch == '-' and tok == '':
                tok = '-'
            else:
                if ch == '.' and tok != '' and tok != '-' and dot == 0:
                    tok = tok + '.'
                    dot = len('.')
                else:
                    if tok != '' and tok != '-' and tok != '.' and tok != '-.':
                        rows = rows + '\n' + tok + ',num'
                    tok = ''
                    dot = 0
    return rows

12 test cases ship with it; the first three:

inout
90
-2
48
90
2.5
x2 90-48
0
value,kind
90,num
-2,num
48,num
90,num
2.5,num
2,num
90,num
48,num
0,num
34
-8
70
34
8.5
x8 34-70
1
value,kind
34,num
-8,num
70,num
34,num
8.5,num
8,num
34,num
70,num
1,num
74
-3
28
74
3.5
x3 74-28
2
value,kind
74,num
-3,num
28,num
74,num
3.5,num
3,num
74,num
28,num
2,num
id
numbers_to_csv
artifact
78763d0e50cb…7c38f
signed by
fb922a8bb381…a05be
status
from the catalog, public
For agents
GET https://research.zaiba.cloud/api/v1/programs/numbers_to_csv
POST https://research.zaiba.cloud/api/v1/programs/numbers_to_csv/run
  {"input": "…"}
# 200 · X-DeAI-Rail: grant (free within the allowance) · output + signed receipt
GET https://research.zaiba.cloud/api/v1/programs/numbers_to_csv/code
# 200 · text/plain · the tool as one Python file, written by the library's authors