Standardize Go-package structure (#746)

This commit is contained in:
John Kerl 2021-11-11 14:15:13 -05:00 committed by GitHub
parent 0d4fc143ad
commit e2b6ec2391
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20166 changed files with 6121 additions and 6828 deletions

1
test/input/1.dkvp Normal file
View file

@ -0,0 +1 @@
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533

2
test/input/2.dkvp Normal file
View file

@ -0,0 +1,2 @@
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797

22
test/input/256-ragged.txt Normal file
View file

@ -0,0 +1,22 @@
00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
40 41 42 43
44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
60 61 62 63
64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f
80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f
90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f
a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf
c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf
d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df
e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef
f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff

16
test/input/256.txt Normal file
View file

@ -0,0 +1,16 @@
00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f
80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f
90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f
a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf
c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf
d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df
e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef
f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff

3
test/input/a.csv Normal file
View file

@ -0,0 +1,3 @@
a,b,c
1,2,3
4,5,6
1 a b c
2 1 2 3
3 4 5 6

3
test/input/a.pprint Normal file
View file

@ -0,0 +1,3 @@
a b c
1 2 3
4 5 6

10
test/input/abixy Normal file
View file

@ -0,0 +1,10 @@
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729
a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697
a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694
a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864

10
test/input/abixy-het Normal file
View file

@ -0,0 +1,10 @@
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
aaa=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
a=eks,bbb=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
a=wye,b=pan,i=5,xxx=0.5732889198020006,y=0.8636244699032729
a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697
a=eks,b=zee,iii=7,x=0.6117840605678454,y=0.1878849191181694
a=zee,b=wye,i=8,x=0.5985540091064224,yyy=0.976181385699006
aaa=hat,bbb=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864

2000
test/input/abixy-wide Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,20 @@
a=cat,b=pan,i=1,x=0.5117389009583777,y=0.08295224980036853,x2=0.2618767027540883,xy=0.0424498931448654,y2=0.006881075746942741
a=pan,b=wye,i=2,x=0.5225940442098578,y=0.511678736087022,x2=0.27310453504361476,xy=0.2674002600279053,y2=0.26181512896361225
a=wye,b=cat,i=3,x=0.8150401717873625,y=0.07989551500795256,x2=0.6642904816271734,xy=0.06511805427712146,y2=0.006383293318385972
a=dog,b=hat,i=4,x=0.4488733555675044,y=0.5730530513123552,x2=0.20148728933843124,xy=0.25722824606077416,y2=0.32838979961840076
a=dog,b=pan,i=5,x=0.2946557960430134,y=0.6850437256584863,x2=0.08682203814174191,xy=0.20185210430817294,y2=0.46928490606405937
a=wye,b=cat,i=6,x=0.048709182664292916,y=0.5851879044762575,x2=0.0023725844758234536,xy=0.02850402453206882,y2=0.34244488354531344
a=dog,b=hat,i=7,x=0.8500003149528544,y=0.2984098741712895,x2=0.7225005354199517,xy=0.25364848703063775,y2=0.08904845300292483
a=pan,b=pan,i=8,x=0.616507208914765,y=0.25924335982487057,x2=0.38008113864387366,xy=0.15982540019531707,y2=0.06720711961328732
a=hat,b=hat,i=9,x=0.33786884067769307,y=0.6036735617015514,x2=0.11415535350088835,xy=0.203962486439877,y2=0.3644217690974368
a=wye,b=hat,i=10,x=0.3834648944206174,y=0.4999709279216641,x2=0.14704532525301522,xy=0.19172129908885902,y2=0.24997092876684981
a=pan,b=hat,i=11,x=0.025474999754416028,y=0.7861954915044592,x2=0.0006489756124874967,xy=0.020028329952999087,y2=0.6181033508619382
a=cat,b=hat,i=12,x=0.6335445699880142,y=0.15467178563525052,x2=0.4013787221612979,xy=0.0979914699195631,y2=0.02392336127159689
a=hat,b=wye,i=13,x=0.35922068401384877,y=0.8502678133887914,x2=0.1290394998233774,xy=0.30543378552048117,y2=0.7229553544849566
a=dog,b=dog,i=14,x=0.5440047442770544,y=0.933608851612059,x2=0.2959411617959433,xy=0.5078876445760125,y2=0.8716254878083876
a=wye,b=dog,i=15,x=0.4689175303764642,y=0.09048353045392021,x2=0.21988365029436224,xy=0.04242931364019586,y2=0.008187269283405506
a=pan,b=pan,i=16,x=0.3959177828066379,y=0.6339858483805666,x2=0.15675089074252413,xy=0.25100627142161924,y2=0.4019380559468268
a=dog,b=hat,i=17,x=0.34033844788864975,y=0.8845934733681523,x2=0.11583025911125516,xy=0.3010611697385466,y2=0.782505613125532
a=wye,b=wye,i=18,x=0.6770613653962891,y=0.896307226056897,x2=0.4584120925122874,xy=0.6068549942886431,y2=0.8033666434818095
a=dog,b=wye,i=19,x=0.4865373244199632,y=0.44117766146315884,x2=0.23671856805373653,xy=0.2146493990021416,y2=0.1946377289741016
a=dog,b=dog,i=20,x=0.3223311725542929,y=0.08115611029827985,x2=0.10389738480022534,xy=0.026159144192390068,y2=0.006586314238746564

11
test/input/abixy.csv Normal file
View file

@ -0,0 +1,11 @@
a,b,i,x,y
pan,pan,1,0.3467901443380824,0.7268028627434533
eks,pan,2,0.7586799647899636,0.5221511083334797
wye,wye,3,0.20460330576630303,0.33831852551664776
eks,wye,4,0.38139939387114097,0.13418874328430463
wye,pan,5,0.5732889198020006,0.8636244699032729
zee,pan,6,0.5271261600918548,0.49322128674835697
eks,zee,7,0.6117840605678454,0.1878849191181694
zee,wye,8,0.5985540091064224,0.976181385699006
hat,wye,9,0.03144187646093577,0.7495507603507059
pan,wye,10,0.5026260055412137,0.9526183602969864
1 a b i x y
2 pan pan 1 0.3467901443380824 0.7268028627434533
3 eks pan 2 0.7586799647899636 0.5221511083334797
4 wye wye 3 0.20460330576630303 0.33831852551664776
5 eks wye 4 0.38139939387114097 0.13418874328430463
6 wye pan 5 0.5732889198020006 0.8636244699032729
7 zee pan 6 0.5271261600918548 0.49322128674835697
8 eks zee 7 0.6117840605678454 0.1878849191181694
9 zee wye 8 0.5985540091064224 0.976181385699006
10 hat wye 9 0.03144187646093577 0.7495507603507059
11 pan wye 10 0.5026260055412137 0.9526183602969864

10
test/input/abixy.dkvp Normal file
View file

@ -0,0 +1,10 @@
a=pan,b=pan,i=1,x=0.3467901443380824,y=0.7268028627434533
a=eks,b=pan,i=2,x=0.7586799647899636,y=0.5221511083334797
a=wye,b=wye,i=3,x=0.20460330576630303,y=0.33831852551664776
a=eks,b=wye,i=4,x=0.38139939387114097,y=0.13418874328430463
a=wye,b=pan,i=5,x=0.5732889198020006,y=0.8636244699032729
a=zee,b=pan,i=6,x=0.5271261600918548,y=0.49322128674835697
a=eks,b=zee,i=7,x=0.6117840605678454,y=0.1878849191181694
a=zee,b=wye,i=8,x=0.5985540091064224,y=0.976181385699006
a=hat,b=wye,i=9,x=0.03144187646093577,y=0.7495507603507059
a=pan,b=wye,i=10,x=0.5026260055412137,y=0.9526183602969864

10
test/input/abixy.json Normal file
View file

@ -0,0 +1,10 @@
{ "a": "pan", "b": "pan", "i": 1, "x": 0.3467901443380824, "y": 0.7268028627434533 }
{ "a": "eks", "b": "pan", "i": 2, "x": 0.7586799647899636, "y": 0.5221511083334797 }
{ "a": "wye", "b": "wye", "i": 3, "x": 0.20460330576630303, "y": 0.33831852551664776 }
{ "a": "eks", "b": "wye", "i": 4, "x": 0.38139939387114097, "y": 0.13418874328430463 }
{ "a": "wye", "b": "pan", "i": 5, "x": 0.5732889198020006, "y": 0.8636244699032729 }
{ "a": "zee", "b": "pan", "i": 6, "x": 0.5271261600918548, "y": 0.49322128674835697 }
{ "a": "eks", "b": "zee", "i": 7, "x": 0.6117840605678454, "y": 0.1878849191181694 }
{ "a": "zee", "b": "wye", "i": 8, "x": 0.5985540091064224, "y": 0.976181385699006 }
{ "a": "hat", "b": "wye", "i": 9, "x": 0.03144187646093577, "y": 0.7495507603507059 }
{ "a": "pan", "b": "wye", "i": 10, "x": 0.5026260055412137, "y": 0.9526183602969864 }

12
test/input/abixy.md Normal file
View file

@ -0,0 +1,12 @@
| a | b | i | x | y |
| --- | --- | --- | --- | --- |
| pan | pan | 1 | 0.3467901443380824 | 0.7268028627434533 |
| eks | pan | 2 | 0.7586799647899636 | 0.5221511083334797 |
| wye | wye | 3 | 0.20460330576630303 | 0.33831852551664776 |
| eks | wye | 4 | 0.38139939387114097 | 0.13418874328430463 |
| wye | pan | 5 | 0.5732889198020006 | 0.8636244699032729 |
| zee | pan | 6 | 0.5271261600918548 | 0.49322128674835697 |
| eks | zee | 7 | 0.6117840605678454 | 0.1878849191181694 |
| zee | wye | 8 | 0.5985540091064224 | 0.976181385699006 |
| hat | wye | 9 | 0.03144187646093577 | 0.7495507603507059 |
| pan | wye | 10 | 0.5026260055412137 | 0.9526183602969864 |

10
test/input/abixy.nidx Normal file
View file

@ -0,0 +1,10 @@
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
wye wye 3 0.20460330576630303 0.33831852551664776
eks wye 4 0.38139939387114097 0.13418874328430463
wye pan 5 0.5732889198020006 0.8636244699032729
zee pan 6 0.5271261600918548 0.49322128674835697
eks zee 7 0.6117840605678454 0.1878849191181694
zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864

11
test/input/abixy.pprint Normal file
View file

@ -0,0 +1,11 @@
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
wye wye 3 0.20460330576630303 0.33831852551664776
eks wye 4 0.38139939387114097 0.13418874328430463
wye pan 5 0.5732889198020006 0.8636244699032729
zee pan 6 0.5271261600918548 0.49322128674835697
eks zee 7 0.6117840605678454 0.1878849191181694
zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864

11
test/input/abixy.tsv Normal file
View file

@ -0,0 +1,11 @@
a b i x y
pan pan 1 0.3467901443380824 0.7268028627434533
eks pan 2 0.7586799647899636 0.5221511083334797
wye wye 3 0.20460330576630303 0.33831852551664776
eks wye 4 0.38139939387114097 0.13418874328430463
wye pan 5 0.5732889198020006 0.8636244699032729
zee pan 6 0.5271261600918548 0.49322128674835697
eks zee 7 0.6117840605678454 0.1878849191181694
zee wye 8 0.5985540091064224 0.976181385699006
hat wye 9 0.03144187646093577 0.7495507603507059
pan wye 10 0.5026260055412137 0.9526183602969864
1 a b i x y
2 pan pan 1 0.3467901443380824 0.7268028627434533
3 eks pan 2 0.7586799647899636 0.5221511083334797
4 wye wye 3 0.20460330576630303 0.33831852551664776
5 eks wye 4 0.38139939387114097 0.13418874328430463
6 wye pan 5 0.5732889198020006 0.8636244699032729
7 zee pan 6 0.5271261600918548 0.49322128674835697
8 eks zee 7 0.6117840605678454 0.1878849191181694
9 zee wye 8 0.5985540091064224 0.976181385699006
10 hat wye 9 0.03144187646093577 0.7495507603507059
11 pan wye 10 0.5026260055412137 0.9526183602969864

59
test/input/abixy.xtab Normal file
View file

@ -0,0 +1,59 @@
a pan
b pan
i 1
x 0.3467901443380824
y 0.7268028627434533
a eks
b pan
i 2
x 0.7586799647899636
y 0.5221511083334797
a wye
b wye
i 3
x 0.20460330576630303
y 0.33831852551664776
a eks
b wye
i 4
x 0.38139939387114097
y 0.13418874328430463
a wye
b pan
i 5
x 0.5732889198020006
y 0.8636244699032729
a zee
b pan
i 6
x 0.5271261600918548
y 0.49322128674835697
a eks
b zee
i 7
x 0.6117840605678454
y 0.1878849191181694
a zee
b wye
i 8
x 0.5985540091064224
y 0.976181385699006
a hat
b wye
i 9
x 0.03144187646093577
y 0.7495507603507059
a pan
b wye
i 10
x 0.5026260055412137
y 0.9526183602969864

4
test/input/absent.dkvp Normal file
View file

@ -0,0 +1,4 @@
a=1,b=2
a=,b=4
x=,b=6
a=7,b=8

6
test/input/arrays.json Normal file
View file

@ -0,0 +1,6 @@
{"a":1,"b":1}
{"a":2,"b":[2,3]}
{"a":3,"b":{"c":[4,5]}}
{"a":4,"b":{"c":{"d":[4,5]}}}
{"a":5,"b":[6,7,[8,9]]}
{"a":6,"b":[[[11]]]}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,5 @@
hello
there
how
are
you

View file

@ -0,0 +1,5 @@
hello
there
how
are
you

View file

@ -0,0 +1 @@
hello there how are you

View file

@ -0,0 +1,5 @@
hello
there
how
are
you

View file

@ -0,0 +1 @@
hello there how are you

View file

@ -0,0 +1,5 @@
hello
there
how
are
you

2
test/input/b.csv Normal file
View file

@ -0,0 +1,2 @@
d,e,f
5,6,7
1 d e f
2 5 6 7

2
test/input/b.pprint Normal file
View file

@ -0,0 +1,2 @@
d e f
5 6 7

View file

@ -0,0 +1,6 @@
{
"m": "a\"b\"c"
}
{
"m": "a\\\"b\\\"c"
}

View file

@ -0,0 +1,3 @@
"a","b","c"
1,2,3
4,5,6
1 a b c
2 1 2 3
3 4 5 6

3
test/input/bom.csv Normal file
View file

@ -0,0 +1,3 @@
a,b,c
1,2,3
4,5,6
1 a b c
2 1 2 3
3 4 5 6

3
test/input/braced.csv Normal file
View file

@ -0,0 +1,3 @@
name:x,name:y,z
1,2,3
4,6,5
1 name:x name:y z
2 1 2 3
3 4 6 5

6
test/input/c.csv Normal file
View file

@ -0,0 +1,6 @@
a,b,c
1,2,3
4,5,6
a,b,c
7,8,9
1 a b c
2 1 2 3
3 4 5 6
4 a b c
5 7 8 9

6
test/input/c.pprint Normal file
View file

@ -0,0 +1,6 @@
a b c
1 2 3
4 5 6
a b c
7 8 9

View file

@ -0,0 +1,13 @@
FIELD=
FIELD=a
FIELD=ab
FIELD=abc
FIELD=abcd
FIELD=abcde
FIELD=abcdef
FIELD=abcdefg
FIELD=abcdefgh
FIELD=abcdefghi
FIELD=abcdefghij
FIELD=abcdefghijk
FIELD=abcdefghijkl

4
test/input/capture.dkvp Normal file
View file

@ -0,0 +1,4 @@
FIELD=ABC123
FIELD=ABC..123
FIELD=..ABC..123..
FIELD=none of the above

View file

@ -0,0 +1,15 @@
hostname localhost
pid 12345
req.id 6789
req.method GET
req.path api/check
req.host foo.bar
req.headers.host bar.baz
req.headers.user-agent browser
res.status_code 200
res.header.content-type text
res.header.content-encoding plain
empty1 {}
empty2 []
wrapper.empty3 {}
wrapper.emtpy4 []

View file

@ -0,0 +1,17 @@
n,a,b , c
1,xy,2,3
2,xy ,2,3
3,xy ,2,3
4,xy ,2,3
5,xy,2,3
6, xy,2,3
7, xy,2,3
8, xy,2,3
9,xy,2,3
10, xy ,2,3
11, xy ,2,3
12, xy ,2,3
13,,2,3
14, ,2,3
15, ,2,3
16, ,2,3
1 n a b c
2 1 xy 2 3
3 2 xy 2 3
4 3 xy 2 3
5 4 xy 2 3
6 5 xy 2 3
7 6 xy 2 3
8 7 xy 2 3
9 8 xy 2 3
10 9 xy 2 3
11 10 xy 2 3
12 11 xy 2 3
13 12 xy 2 3
14 13 2 3
15 14 2 3
16 15 2 3
17 16 2 3

View file

@ -0,0 +1,3 @@
a,b,c
1,2,3
4,5,
1 a b c
2 1 2 3
3 4 5

View file

@ -0,0 +1,3 @@
@@ hello world 1
a=1,b=2,c=3
a=4,b=5,c=6

View file

@ -0,0 +1,4 @@
# hello
a,b,c
1,2,3
4,5,6
1 # hello
2 a,b,c
3 1,2,3
4 4,5,6

View file

@ -0,0 +1,3 @@
# hello world 1
a=1,b=2,c=3
a=4,b=5,c=6

View file

@ -0,0 +1,3 @@
# hello world 1
{ "a":1, "b":2, "c":3 }
{ "a":4, "b":5, "c":6 }

View file

@ -0,0 +1,3 @@
# hello world 1
aX1 bX2 cX3
aX4 bX5 cX6

View file

@ -0,0 +1,8 @@
x 1
#hello world3
z 3
x 2
#hello world4
z 5

View file

@ -0,0 +1,3 @@
a=1,b=2,c=3
@@ hello world 2
a=4,b=5,c=6

View file

@ -0,0 +1,7 @@
# hello
a,b,c
# hi
1,2,3
# there
4,5,6
# haha
1 # hello
2 a,b,c
3 # hi
4 1,2,3
5 # there
6 4,5,6
7 # haha

View file

@ -0,0 +1,3 @@
a=1,b=2,c=3
# hello world 2
a=4,b=5,c=6

View file

@ -0,0 +1,3 @@
{ "a":1, "b":2, "c":3 }
# hello world 2
{ "a":4, "b":5, "c":6 }

View file

@ -0,0 +1,3 @@
aX1 bX2 cX3
# hello world 2
aX4 bX5 cX6

View file

@ -0,0 +1,13 @@
#hello world1
#hello world2
x 1
#hello world3
z 3
x 2
#hello world4
z 5
#hello world5
#hello world6

View file

@ -0,0 +1,3 @@
a=1,b=2,c=3
a=4,b=5,c=6
@@ hello world 3

View file

@ -0,0 +1,3 @@
a=1,b=2,c=3
a=4,b=5,c=6
# hello world 3

View file

@ -0,0 +1,3 @@
{ "a":1, "b":2, "c":3 }
{ "a":4, "b":5, "c":6 }
# hello world 3

View file

@ -0,0 +1,3 @@
aX1 bX2 cX3
aX4 bX5 cX6
# hello world 3

5
test/input/d.csv Normal file
View file

@ -0,0 +1,5 @@
h,i,j
3,4,5
m,n,o
8,9,10
1 h i j
2 3 4 5
3 m n o
4 8 9 10

5
test/input/d.pprint Normal file
View file

@ -0,0 +1,5 @@
h i j
3 4 5
m n o
8 9 10

5
test/input/date1.csv Normal file
View file

@ -0,0 +1,5 @@
Name,Date_201505,Extraneous
Alice,2015-05-14,foo
Bob,2015-05-11,bar
Chuck,2015-05-28,quux
Denise,2015-05-02,meep
1 Name Date_201505 Extraneous
2 Alice 2015-05-14 foo
3 Bob 2015-05-11 bar
4 Chuck 2015-05-28 quux
5 Denise 2015-05-02 meep

5
test/input/date2.csv Normal file
View file

@ -0,0 +1,5 @@
Name,Date_201506,Extraneous
Alice,2015-06-23,cafe
Denise,2015-06-17,feed
Chuck,2015-06-19,beef
Bob,2015-06-19,d00d
1 Name Date_201506 Extraneous
2 Alice 2015-06-23 cafe
3 Denise 2015-06-17 feed
4 Chuck 2015-06-19 beef
5 Bob 2015-06-19 d00d

0
test/input/dev-null.txt Normal file
View file

4
test/input/dot-match.csv Normal file
View file

@ -0,0 +1,4 @@
text
hi
a.b
bye
1 text
2 hi
3 a.b
4 bye

View file

@ -0,0 +1,11 @@
a///b///i//x///////////////////y
pan/pan/1//0.3467901443380824//0.7268028627434533
eks/pan/2//0.7586799647899636//0.5221511083334797
wye/wye/3//0.20460330576630303/0.33831852551664776
eks/wye/4//0.38139939387114097/0.13418874328430463
wye/pan/5//0.5732889198020006//0.8636244699032729
zee/pan/6//0.5271261600918548//0.49322128674835697
eks/zee/7//0.6117840605678454//0.1878849191181694
zee/wye/8//0.5985540091064224//0.976181385699006
hat/wye/9//0.03144187646093577/0.7495507603507059
pan/wye/10/0.5026260055412137//0.9526183602969864

6
test/input/dots.xtab Normal file
View file

@ -0,0 +1,6 @@
a.....1
b.....2
c.....345
defg..6
hi....78

View file

@ -0,0 +1,2 @@
a=pan,b=wy.e,c=3
a=pan,b=wy=e,c=3

4
test/input/e.csv Normal file
View file

@ -0,0 +1,4 @@
a,b,c
1,2,3
4,5,6
1 a b c
2 1 2 3
3 4 5 6

4
test/input/e.pprint Normal file
View file

@ -0,0 +1,4 @@
a b c
1 2 3
4 5 6

View file

@ -0,0 +1,3 @@
a 1
b 2
c 3 4 5

4
test/input/emit2.dkvp Normal file
View file

@ -0,0 +1,4 @@
a=vee,b=wye,n=2
a=vee,b=zee,n=4
a=eks,b=wye,n=6
a=eks,b=zee,n=8

4
test/input/env-assign.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
while read line; do
echo "[ZYX]=[$ZYX] $line"
done

3
test/input/env-var.dkvp Normal file
View file

@ -0,0 +1,3 @@
name=X,x=1,y=2
name=Y,x=3,y=4
x=5,y=6

2
test/input/escapes.json Normal file
View file

@ -0,0 +1,2 @@
{"abc\bdef\fghi": "jkl\nmno\rpqr\tstu\"vw\\xyz"}
{"abc\bdef\fghi": "jkl\nmno\rpqr\tstu\"vw\\\\xyz"}

1
test/input/example.asv Normal file
View file

@ -0,0 +1 @@
abcdefghi

1
test/input/example.usv Normal file
View file

@ -0,0 +1 @@
a␟b␟c␞d␟e␟f␞g␟h␟i

0
test/input/f.csv Normal file
View file

5
test/input/f.mlr Normal file
View file

@ -0,0 +1,5 @@
func f(x, y) {
return x + y
}
$z = f($x, $y)

0
test/input/f.pprint Normal file
View file

9
test/input/ff.mlr Normal file
View file

@ -0,0 +1,9 @@
func f(n) {
if (n > 1) {
return n*f(n-1)
} else {
return 1
}
}
$y = f($i)

10
test/input/fg.mlr Normal file
View file

@ -0,0 +1,10 @@
$fg = f(g($i));
$gf = g(f($i));
func f(x) {
return x**2
}
func g(x) {
return 3*x
}

19
test/input/fibo.mlr Normal file
View file

@ -0,0 +1,19 @@
begin {
@f["0"] = 1;
@f["1"] = 1;
}
func f(n) {
str sn = string(n);
if (is_absent(@f[sn])) {
num fn = f(n-1) + f(n-2);
f[sn] = fn;
return fn;
} else {
return @f[sn]
}
}
end {
for (n = 1; n < 100; n += 1) {
print string(n) . " " . string(f(n))
}
}

4
test/input/fill-down.csv Normal file
View file

@ -0,0 +1,4 @@
a,b,c
1,,3
4,5,6
7,,9
1 a b c
2 1 3
3 4 5 6
4 7 9

View file

@ -0,0 +1 @@
$x < $y

View file

@ -0,0 +1 @@
f($x) > 0.5

View file

@ -0,0 +1 @@
func f(x) { return $x * 0.99 }

View file

@ -0,0 +1,42 @@
{
"a": 1,
"b": {
"c": 2,
"d": 3
}
}
{
"a": 1,
"b": {
"c": {
"x": 2,
"y": 3
},
"d": {
"x": 4,
"y": 5
}
}
}
{
"a": 1,
"b": {
"c": [
2,
3
]
}
}
{
"a": 1,
"b": [
{
"x": 2,
"y": 3
},
{
"x": 4,
"y": 5
}
]
}

View file

@ -0,0 +1,29 @@
{
"hostname": "localhost",
"pid": 12345,
"req": {
"id": 6789,
"method": "GET",
"path": "api/check",
"host": "foo.bar",
"headers": {
"host": "bar.baz",
"user-agent": "browser"
}
},
"res": {
"status_code": 200,
"header": {
"content-type": "text",
"content-encoding": "plain"
}
},
"empty1": {
},
"empty2": [
],
"wrapper": {
"empty3": {},
"emtpy4": []
}
}

25
test/input/for-multi.json Normal file
View file

@ -0,0 +1,25 @@
{
"a": {
"x": 1,
"y": 2
},
"b": {
"x": 3,
"y": 4
}
}
{
"a": {
"x": 5,
"y": 6
},
"b": {
"x": 7
}
}
{
"b": {
"x": 8,
"y": 9
}
}

17
test/input/freq.dkvp Normal file
View file

@ -0,0 +1,17 @@
a=apple,b=apple
a=apple,b=apple
a=apple,b=apple
a=apple,b=apple
a=apple,b=apple
a=apple,b=apple
a=bat,b=cat
a=bat,b=cat
a=bat,b=cat
a=bat,b=cat
a=bat,b=cat
a=cat,b=bat
a=cat,b=bat
a=cat,b=bat
a=cat,b=cat
a=dog,b=dog
a=dog,b=dog

View file

@ -0,0 +1,7 @@
x,g
100,red
203,red
101,green
307,red
209,green
314,green
1 x g
2 100 red
3 203 red
4 101 green
5 307 red
6 209 green
7 314 green

28
test/input/fsec2xhms Normal file
View file

@ -0,0 +1,28 @@
sec=0.25
sec=1.25
sec=59.25
sec=60.25
sec=61.25
sec=3599.25
sec=3600.25
sec=3601.25
sec=86399.25
sec=86400.25
sec=86401.25
sec=863999.25
sec=864000.25
sec=864001.25
sec=-0.25
sec=-1.25
sec=-59.25
sec=-60.25
sec=-61.25
sec=-3599.25
sec=-3600.25
sec=-3601.25
sec=-86399.25
sec=-86400.25
sec=-86401.25
sec=-863999.25
sec=-864000.25
sec=-864001.25

5
test/input/g.csv Normal file
View file

@ -0,0 +1,5 @@

5
test/input/g.pprint Normal file
View file

@ -0,0 +1,5 @@

View file

@ -0,0 +1,10 @@
end {
print "---------------------------------------------------------------- TIMEZONE";
print "TZ is", ENV["TZ"];
print "---------------------------------------------------------------- GMT2LOCALTIME / LOCALTIME2GMT";
print gmt2localtime("1970-01-01T00:00:00Z");
print localtime2gmt("1970-01-01 00:00:00");
}

Some files were not shown because too many files have changed in this diff Show more