id
stringlengths
16
19
request
stringlengths
21
206
program
stringlengths
6
211
input_text
stringlengths
40
477
expected_output
stringlengths
2
276
validation_input
stringlengths
39
469
validation_output
stringlengths
0
298
family
stringclasses
39 values
difficulty
int64
1
3
split
stringclasses
1 value
source
stringclasses
3 values
license
stringclasses
1 value
paraphrase_of
stringlengths
16
16
⌀
paraphrase_model
stringclasses
1 value
awkweave-0006880-p1
Eliminate exact duplicate lines while maintaining the original order and keeping the first instance of each.
!seen[$0]++
hana grove 13 hana grove 13 jules grove 25 ivan cobalt 86 kim ember 90 eli ember 37 dina fable 86 kim harbor 68
hana grove 13 jules grove 25 ivan cobalt 86 kim ember 90 eli ember 37 dina fable 86 kim harbor 68
eli grove 20 bruno ember 29 ivan grove 116 gus harbor 119 lina indigo 87 eli delta 5 bruno ember 29
eli grove 20 bruno ember 29 ivan grove 116 gus harbor 119 lina indigo 87 eli delta 5
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006880
qwen/qwen3.7-plus
awkweave-0006881
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
ivan birch 13 farah cobalt 40 alice ember 49 chen ember 88 hana juniper 107 bruno harbor 88 jules delta 42
ivan birch 13 farah cobalt 40 alice ember 49 chen ember 88 hana juniper 107 bruno harbor 88 jules delta 42
bruno indigo 57 bruno delta 1 dina ember 56 farah harbor 115 dina delta 47 gus fable 95 hana cobalt 24 ivan indigo 44 lina fable 1
bruno indigo 57 dina ember 56 farah harbor 115 gus fable 95 hana cobalt 24 ivan indigo 44 lina fable 1
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006881-p1
Retain only the first occurrence for each unique value in column 1, preserving the original input sequence.
!seen[$1]++
ivan birch 13 farah cobalt 40 alice ember 49 chen ember 88 hana juniper 107 bruno harbor 88 jules delta 42
ivan birch 13 farah cobalt 40 alice ember 49 chen ember 88 hana juniper 107 bruno harbor 88 jules delta 42
bruno indigo 57 bruno delta 1 dina ember 56 farah harbor 115 dina delta 47 gus fable 95 hana cobalt 24 ivan indigo 44 lina fable 1
bruno indigo 57 dina ember 56 farah harbor 115 gus fable 95 hana cobalt 24 ivan indigo 44 lina fable 1
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006881
qwen/qwen3.7-plus
awkweave-0006882
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
farah 24 indigo dina 12 birch hana 30 juniper alice 14 grove bruno 29 ember kim 28 juniper dina 6 harbor bruno 3 fable
farah 24 dina 36 hana 66 alice 80 bruno 109 kim 137 dina 143 bruno 146
chen 9 indigo alice 6 indigo farah 22 cobalt jules 24 juniper chen 16 birch jules 30 harbor
chen 9 alice 15 farah 37 jules 61 chen 77 jules 107
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006882-p1
For every record, output column 1 alongside the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
farah 24 indigo dina 12 birch hana 30 juniper alice 14 grove bruno 29 ember kim 28 juniper dina 6 harbor bruno 3 fable
farah 24 dina 36 hana 66 alice 80 bruno 109 kim 137 dina 143 bruno 146
chen 9 indigo alice 6 indigo farah 22 cobalt jules 24 juniper chen 16 birch jules 30 harbor
chen 9 alice 15 farah 37 jules 61 chen 77 jules 107
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006882
qwen/qwen3.7-plus
awkweave-0006883
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
eli 7 3 amber kim 20 27 fable farah 6 17 cobalt lina 12 25 amber kim 25 20 ember lina 25 29 cobalt farah 4 28 juniper
eli 10 kim 47 farah 23 lina 37 kim 45 lina 54 farah 32
chen 16 25 amber kim 20 25 amber alice 13 17 harbor eli 24 21 juniper kim 21 25 birch chen 4 9 ember ivan 12 26 grove farah 19 19 birch
chen 41 kim 45 alice 30 eli 45 kim 46 chen 13 ivan 38 farah 38
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006883-p1
For each row, output field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
eli 7 3 amber kim 20 27 fable farah 6 17 cobalt lina 12 25 amber kim 25 20 ember lina 25 29 cobalt farah 4 28 juniper
eli 10 kim 47 farah 23 lina 37 kim 45 lina 54 farah 32
chen 16 25 amber kim 20 25 amber alice 13 17 harbor eli 24 21 juniper kim 21 25 birch chen 4 9 ember ivan 12 26 grove farah 19 19 birch
chen 41 kim 45 alice 30 eli 45 kim 46 chen 13 ivan 38 farah 38
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006883
qwen/qwen3.7-plus
awkweave-0006884
Print column 1 and pass when column 2 is at least 23; otherwise print fail.
{print $1,($2>=23?"pass":"fail")}
hana 15 chen 4 dina 11 alice 23 hana 5 dina 11
hana fail chen fail dina fail alice pass hana fail dina fail
alice 7 farah 4 bruno 2 ivan 19 ivan 9 dina 17 jules 21
alice fail farah fail bruno fail ivan fail ivan fail dina fail jules fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006884-p1
Output column 1 and display 'pass' if column 2 is 23 or more; otherwise, display 'fail'.
{print $1,($2>=23?"pass":"fail")}
hana 15 chen 4 dina 11 alice 23 hana 5 dina 11
hana fail chen fail dina fail alice pass hana fail dina fail
alice 7 farah 4 bruno 2 ivan 19 ivan 9 dina 17 jules 21
alice fail farah fail bruno fail ivan fail ivan fail dina fail jules fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006884
qwen/qwen3.7-plus
awkweave-0006885
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
dina harbor 71 gus birch 105 dina cobalt 74 alice ember 87 kim amber 88 dina ember 91 farah cobalt 53 eli ember 112 gus fable 14
DINA GUS DINA ALICE KIM DINA FARAH ELI GUS
ivan amber 41 jules delta 71 gus juniper 46 dina harbor 96 lina amber 46 kim fable 100 ivan birch 101 alice fable 101
IVAN JULES GUS DINA LINA KIM IVAN ALICE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006885-p1
Transform column 1 to uppercase and output only that column.
{print toupper($1)}
dina harbor 71 gus birch 105 dina cobalt 74 alice ember 87 kim amber 88 dina ember 91 farah cobalt 53 eli ember 112 gus fable 14
DINA GUS DINA ALICE KIM DINA FARAH ELI GUS
ivan amber 41 jules delta 71 gus juniper 46 dina harbor 96 lina amber 46 kim fable 100 ivan birch 101 alice fable 101
IVAN JULES GUS DINA LINA KIM IVAN ALICE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006885
qwen/qwen3.7-plus
awkweave-0006886
From column 1, print 4 characters starting at character 3.
{print substr($1,3,4)}
fable 40 indigo 24 ember 118 juniper 19 delta 64 indigo 5
ble digo ber nipe lta digo
indigo 22 ember 117 grove 96 harbor 73 juniper 41 birch 91 fable 81 juniper 7
digo ber ove rbor nipe rch ble nipe
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006886-p1
From column 1, print 4 characters starting at character 3.
{print substr($1,3,4)}
fable 40 indigo 24 ember 118 juniper 19 delta 64 indigo 5
ble digo ber nipe lta digo
indigo 22 ember 117 grove 96 harbor 73 juniper 41 birch 91 fable 81 juniper 7
digo ber ove rbor nipe rch ble nipe
substring
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0006886
qwen/qwen3.7-plus
awkweave-0006887
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
fable_indigo 68 juniper_amber 63 ember_birch 50 delta_juniper 58 indigo_indigo 20 cobalt_amber 18 juniper_cobalt 107 amber_harbor 28
fable indigo juniper amber ember birch delta juniper indigo indigo cobalt amber juniper cobalt amber harbor
birch_harbor 69 amber_delta 54 cobalt_ember 58 birch_delta 107 delta_cobalt 23 indigo_birch 5 juniper_indigo 46 indigo_juniper 85 cobalt_grove 97
birch harbor amber delta cobalt ember birch delta delta cobalt indigo birch juniper indigo indigo juniper cobalt grove
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006887-p1
Substitute all underscores in column 1 with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
fable_indigo 68 juniper_amber 63 ember_birch 50 delta_juniper 58 indigo_indigo 20 cobalt_amber 18 juniper_cobalt 107 amber_harbor 28
fable indigo juniper amber ember birch delta juniper indigo indigo cobalt amber juniper cobalt amber harbor
birch_harbor 69 amber_delta 54 cobalt_ember 58 birch_delta 107 delta_cobalt 23 indigo_birch 5 juniper_indigo 46 indigo_juniper 85 cobalt_grove 97
birch harbor amber delta cobalt ember birch delta delta cobalt indigo birch juniper indigo indigo juniper cobalt grove
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006887
qwen/qwen3.7-plus
awkweave-0006888
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
dina harbor 101 closed eli harbor 19 closed alice fable 76 active lina cobalt 8 pending gus harbor 76 failed jules delta 110 pending chen cobalt 81 pending
closed 101 harbor dina closed 19 harbor eli active 76 fable alice pending 8 cobalt lina failed 76 harbor gus pending 110 delta jules pending 81 cobalt chen
gus grove 87 pending farah cobalt 43 active lina delta 67 ready ivan cobalt 120 pending farah fable 50 failed dina harbor 26 closed lina indigo 5 ready hana birch 8 ready gus delta 79 pending
pending 87 grove gus active 43 cobalt farah ready 67 delta lina pending 120 cobalt ivan failed 50 fable farah closed 26 harbor dina ready 5 indigo lina ready 8 birch hana pending 79 delta gus
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006888-p1
Reverse the sequence of fields for each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
dina harbor 101 closed eli harbor 19 closed alice fable 76 active lina cobalt 8 pending gus harbor 76 failed jules delta 110 pending chen cobalt 81 pending
closed 101 harbor dina closed 19 harbor eli active 76 fable alice pending 8 cobalt lina failed 76 harbor gus pending 110 delta jules pending 81 cobalt chen
gus grove 87 pending farah cobalt 43 active lina delta 67 ready ivan cobalt 120 pending farah fable 50 failed dina harbor 26 closed lina indigo 5 ready hana birch 8 ready gus delta 79 pending
pending 87 grove gus active 43 cobalt farah ready 67 delta lina pending 120 cobalt ivan failed 50 fable farah closed 26 harbor dina ready 5 indigo lina ready 8 birch hana pending 79 delta gus
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006888
qwen/qwen3.7-plus
awkweave-0006889
Print the number of whitespace-separated fields on each line.
{print NF}
dina amber 47 pending kim ember 9 ready ivan amber 68 closed chen ember 84 closed jules indigo 18 pending dina delta 91 failed kim juniper 43 ready
4 4 4 4 4 4 4
lina grove 62 pending bruno juniper 53 failed farah cobalt 86 pending bruno harbor 87 pending lina juniper 8 ready bruno ember 66 closed gus ember 104 failed
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006889-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
dina amber 47 pending kim ember 9 ready ivan amber 68 closed chen ember 84 closed jules indigo 18 pending dina delta 91 failed kim juniper 43 ready
4 4 4 4 4 4 4
lina grove 62 pending bruno juniper 53 failed farah cobalt 86 pending bruno harbor 87 pending lina juniper 8 ready bruno ember 66 closed gus ember 104 failed
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006889
qwen/qwen3.7-plus
awkweave-0006900
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta delta 65 delta indigo 72 alpha harbor 31 alpha grove 10 beta delta 40 gamma grove 0 alpha indigo 41 delta indigo 102 beta cobalt 15 alpha fable 4
4
gamma harbor 92 gamma indigo 59 beta amber 62 alpha indigo 54 delta ember 92 alpha grove 9 delta juniper 62 alpha birch 12 beta amber 23 alpha grove 35
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006900-p1
Calculate the number of unique values in column 1 and print just that total.
{if(!seen[$1]++)n++}END{print n+0}
delta delta 65 delta indigo 72 alpha harbor 31 alpha grove 10 beta delta 40 gamma grove 0 alpha indigo 41 delta indigo 102 beta cobalt 15 alpha fable 4
4
gamma harbor 92 gamma indigo 59 beta amber 62 alpha indigo 54 delta ember 92 alpha grove 9 delta juniper 62 alpha birch 12 beta amber 23 alpha grove 35
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006900
qwen/qwen3.7-plus
awkweave-0006901
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 25 0 eli 4 28 farah 18 30 ivan 23 11 dina 17 5 hana 8 3 ivan 22 20 lina 2 27 alice 17 20 jules 23 10
eli 0.14 farah 0.60 ivan 2.09 dina 3.40 hana 2.67 ivan 1.10 lina 0.07 alice 0.85 jules 2.30
jules 21 0 bruno 29 23 dina 11 7 hana 16 30 dina 28 12 gus 8 16 eli 25 16 dina 3 11 ivan 7 11
bruno 1.26 dina 1.57 hana 0.53 dina 2.33 gus 0.50 eli 1.56 dina 0.27 ivan 0.64
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006901-p1
For each row, output column 1 and the result of column 2 divided by column 3 formatted to two decimal places, ignoring rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
hana 25 0 eli 4 28 farah 18 30 ivan 23 11 dina 17 5 hana 8 3 ivan 22 20 lina 2 27 alice 17 20 jules 23 10
eli 0.14 farah 0.60 ivan 2.09 dina 3.40 hana 2.67 ivan 1.10 lina 0.07 alice 0.85 jules 2.30
jules 21 0 bruno 29 23 dina 11 7 hana 16 30 dina 28 12 gus 8 16 eli 25 16 dina 3 11 ivan 7 11
bruno 1.26 dina 1.57 hana 0.53 dina 2.33 gus 0.50 eli 1.56 dina 0.27 ivan 0.64
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006901
qwen/qwen3.7-plus
awkweave-0006902
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
bruno indigo 2 jules birch 13 alice grove 16 eli juniper 6 kim amber 3 gus cobalt 16 bruno delta 21 bruno birch 1 ivan juniper 20
bruno delta 21 ivan juniper 20 alice grove 16
alice juniper 21 hana ember 14 jules harbor 25 dina harbor 7 jules cobalt 19 chen ember 7 farah cobalt 27
farah cobalt 27 jules harbor 25 alice juniper 21
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006902-p1
Output the top three records with the highest numeric values in column 3, sorted in descending order, maintaining input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
bruno indigo 2 jules birch 13 alice grove 16 eli juniper 6 kim amber 3 gus cobalt 16 bruno delta 21 bruno birch 1 ivan juniper 20
bruno delta 21 ivan juniper 20 alice grove 16
alice juniper 21 hana ember 14 jules harbor 25 dina harbor 7 jules cobalt 19 chen ember 7 farah cobalt 27
farah cobalt 27 jules harbor 25 alice juniper 21
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006902
qwen/qwen3.7-plus
awkweave-0006903
Select the 5th and 1st fields in that order.
{print $5, $1}
birch chen eli harbor harbor juniper chen bruno cobalt juniper ember gus hana fable delta amber alice chen fable fable fable bruno farah juniper amber harbor alice hana harbor cobalt
harbor birch juniper juniper delta ember fable amber amber fable cobalt harbor
juniper chen alice amber grove delta gus chen harbor birch birch ivan ivan ember juniper fable kim farah juniper fable indigo hana chen indigo delta delta ivan kim indigo fable amber lina jules harbor delta delta hana bruno juniper cobalt
grove juniper birch delta juniper birch fable fable delta indigo fable delta delta amber cobalt delta
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006903-p1
Output the 5th field followed by the 1st field.
{print $5, $1}
birch chen eli harbor harbor juniper chen bruno cobalt juniper ember gus hana fable delta amber alice chen fable fable fable bruno farah juniper amber harbor alice hana harbor cobalt
harbor birch juniper juniper delta ember fable amber amber fable cobalt harbor
juniper chen alice amber grove delta gus chen harbor birch birch ivan ivan ember juniper fable kim farah juniper fable indigo hana chen indigo delta delta ivan kim indigo fable amber lina jules harbor delta delta hana bruno juniper cobalt
grove juniper birch delta juniper birch fable fable delta indigo fable delta delta amber cobalt delta
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006903
qwen/qwen3.7-plus
awkweave-0006904
Print the last field of every input line.
{print $NF}
active failed 117 farah ready paused 50 lina active ready 62 farah active paused 87 ivan active pending 22 kim closed pending 38 gus failed closed 111 bruno active paused 106 alice closed failed 76 lina
farah lina farah ivan kim gus bruno alice lina
ready failed 79 hana active closed 37 hana closed pending 100 alice closed paused 63 ivan active pending 44 ivan pending failed 102 farah pending closed 15 gus pending failed 7 kim active paused 33 alice
hana hana alice ivan ivan farah gus kim alice
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006904-p1
Output the final field of every input line.
{print $NF}
active failed 117 farah ready paused 50 lina active ready 62 farah active paused 87 ivan active pending 22 kim closed pending 38 gus failed closed 111 bruno active paused 106 alice closed failed 76 lina
farah lina farah ivan kim gus bruno alice lina
ready failed 79 hana active closed 37 hana closed pending 100 alice closed paused 63 ivan active pending 44 ivan pending failed 102 farah pending closed 15 gus pending failed 7 kim active paused 33 alice
hana hana alice ivan ivan farah gus kim alice
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006904
qwen/qwen3.7-plus
awkweave-0006905
Print the complete records where column 2 is greater than 24.
$2 > 24
cobalt 43 fable cobalt 90 indigo amber 112 juniper cobalt 109 birch harbor 50 ember fable 45 fable cobalt 39 harbor fable 72 fable harbor 32 cobalt
cobalt 43 fable cobalt 90 indigo amber 112 juniper cobalt 109 birch harbor 50 ember fable 45 fable cobalt 39 harbor fable 72 fable harbor 32 cobalt
harbor 99 birch harbor 119 ember juniper 68 indigo harbor 101 delta indigo 108 cobalt indigo 115 amber delta 67 ember grove 5 juniper
harbor 99 birch harbor 119 ember juniper 68 indigo harbor 101 delta indigo 108 cobalt indigo 115 amber delta 67 ember
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006905-p1
Output full records where the value in column 2 exceeds 24.
$2 > 24
cobalt 43 fable cobalt 90 indigo amber 112 juniper cobalt 109 birch harbor 50 ember fable 45 fable cobalt 39 harbor fable 72 fable harbor 32 cobalt
cobalt 43 fable cobalt 90 indigo amber 112 juniper cobalt 109 birch harbor 50 ember fable 45 fable cobalt 39 harbor fable 72 fable harbor 32 cobalt
harbor 99 birch harbor 119 ember juniper 68 indigo harbor 101 delta indigo 108 cobalt indigo 115 amber delta 67 ember grove 5 juniper
harbor 99 birch harbor 119 ember juniper 68 indigo harbor 101 delta indigo 108 cobalt indigo 115 amber delta 67 ember
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006905
qwen/qwen3.7-plus
awkweave-0006906
Show whole lines whose 2nd field is between 11 and 27, inclusive.
$2 >= 11 && $2 <= 27
jules 7 failed delta eli 6 pending harbor gus 2 ready grove kim 2 active birch eli 22 paused fable alice 22 pending ember gus 20 ready grove farah 8 paused indigo chen 6 closed cobalt
eli 22 paused fable alice 22 pending ember gus 20 ready grove
bruno 19 paused harbor farah 11 paused fable eli 18 pending harbor kim 25 failed birch jules 3 paused juniper bruno 21 pending juniper chen 21 pending delta jules 29 paused amber
bruno 19 paused harbor farah 11 paused fable eli 18 pending harbor kim 25 failed birch bruno 21 pending juniper chen 21 pending delta
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006906-p1
Display full lines where the second field falls within the inclusive range of 11 to 27.
$2 >= 11 && $2 <= 27
jules 7 failed delta eli 6 pending harbor gus 2 ready grove kim 2 active birch eli 22 paused fable alice 22 pending ember gus 20 ready grove farah 8 paused indigo chen 6 closed cobalt
eli 22 paused fable alice 22 pending ember gus 20 ready grove
bruno 19 paused harbor farah 11 paused fable eli 18 pending harbor kim 25 failed birch jules 3 paused juniper bruno 21 pending juniper chen 21 pending delta jules 29 paused amber
bruno 19 paused harbor farah 11 paused fable eli 18 pending harbor kim 25 failed birch bruno 21 pending juniper chen 21 pending delta
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006906
qwen/qwen3.7-plus
awkweave-0006907
Print column 3 only for rows where column 1 is exactly paused.
$1 == "paused"{print $3}
active cobalt eli 63 active delta eli 3 paused indigo ivan 118 pending ember farah 86 failed harbor farah 109 active delta jules 22 paused cobalt ivan 57 failed cobalt ivan 112
ivan ivan
pending cobalt gus 78 pending delta bruno 105 paused grove ivan 73 ready fable ivan 80 paused cobalt dina 7 active delta dina 30 active amber eli 29 closed juniper bruno 56
ivan dina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006907-p1
Output only the third column for rows where the first column matches 'paused' exactly.
$1 == "paused"{print $3}
active cobalt eli 63 active delta eli 3 paused indigo ivan 118 pending ember farah 86 failed harbor farah 109 active delta jules 22 paused cobalt ivan 57 failed cobalt ivan 112
ivan ivan
pending cobalt gus 78 pending delta bruno 105 paused grove ivan 73 ready fable ivan 80 paused cobalt dina 7 active delta dina 30 active amber eli 29 closed juniper bruno 56
ivan dina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006907
qwen/qwen3.7-plus
awkweave-0006908
Print all fields from lines where field 1 begins with WARN.
$1 ~ /^WARN/
WARN ember 23 INFO grove 76 ERROR juniper 61 DEBUG juniper 17 DEBUG harbor 95 INFO amber 55
WARN ember 23
WARN indigo 92 ERROR fable 102 WARN cobalt 90 DEBUG harbor 36 DEBUG birch 79 INFO juniper 13 DEBUG harbor 45 WARN delta 27 ERROR ember 82 INFO harbor 49
WARN indigo 92 WARN cobalt 90 WARN delta 27
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006908-p1
Print all fields from lines where the first field starts with the prefix 'WARN'.
$1 ~ /^WARN/
WARN ember 23 INFO grove 76 ERROR juniper 61 DEBUG juniper 17 DEBUG harbor 95 INFO amber 55
WARN ember 23
WARN indigo 92 ERROR fable 102 WARN cobalt 90 DEBUG harbor 36 DEBUG birch 79 INFO juniper 13 DEBUG harbor 45 WARN delta 27 ERROR ember 82 INFO harbor 49
WARN indigo 92 WARN cobalt 90 WARN delta 27
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006908
qwen/qwen3.7-plus
awkweave-0006909
Print every line except those containing the exact text delta.
$0 !~ /delta/
grove 26 closed delta 91 pending birch 72 paused indigo 52 failed grove 112 ready grove 9 ready harbor 9 failed delta 999 active
grove 26 closed birch 72 paused indigo 52 failed grove 112 ready grove 9 ready harbor 9 failed
cobalt 7 active amber 52 failed harbor 18 ready ember 78 pending fable 8 closed ember 37 failed juniper 65 ready birch 86 ready delta 999 active
cobalt 7 active amber 52 failed harbor 18 ready ember 78 pending fable 8 closed ember 37 failed juniper 65 ready birch 86 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006909-p1
Output every line that does not contain the exact string 'delta'.
$0 !~ /delta/
grove 26 closed delta 91 pending birch 72 paused indigo 52 failed grove 112 ready grove 9 ready harbor 9 failed delta 999 active
grove 26 closed birch 72 paused indigo 52 failed grove 112 ready grove 9 ready harbor 9 failed
cobalt 7 active amber 52 failed harbor 18 ready ember 78 pending fable 8 closed ember 37 failed juniper 65 ready birch 86 ready delta 999 active
cobalt 7 active amber 52 failed harbor 18 ready ember 78 pending fable 8 closed ember 37 failed juniper 65 ready birch 86 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006909
qwen/qwen3.7-plus
awkweave-0006910
Print lines 3 through 4, including both endpoints.
NR >= 3 && NR <= 4
alice indigo 102 alice birch 27 farah ember 20 gus grove 93 bruno grove 66 kim harbor 74 farah harbor 78 kim ember 81
farah ember 20 gus grove 93
chen harbor 101 chen delta 23 chen cobalt 19 kim fable 23 kim delta 14 jules grove 80
chen cobalt 19 kim fable 23
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006910-p1
Print lines 3 to 4, inclusive of both endpoints.
NR >= 3 && NR <= 4
alice indigo 102 alice birch 27 farah ember 20 gus grove 93 bruno grove 66 kim harbor 74 farah harbor 78 kim ember 81
farah ember 20 gus grove 93
chen harbor 101 chen delta 23 chen cobalt 19 kim fable 23 kim delta 14 jules grove 80
chen cobalt 19 kim fable 23
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006910
qwen/qwen3.7-plus
awkweave-0006911
Output only the first 3 records.
NR <= 3
bruno 118 juniper farah 16 grove ivan 67 delta jules 104 cobalt gus 91 grove gus 104 amber
bruno 118 juniper farah 16 grove ivan 67 delta
alice 7 ember gus 117 harbor bruno 23 amber gus 16 birch gus 1 juniper alice 54 fable
alice 7 ember gus 117 harbor bruno 23 amber
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006911-p1
Display only the first three records.
NR <= 3
bruno 118 juniper farah 16 grove ivan 67 delta jules 104 cobalt gus 91 grove gus 104 amber
bruno 118 juniper farah 16 grove ivan 67 delta
alice 7 ember gus 117 harbor bruno 23 amber gus 16 birch gus 1 juniper alice 54 fable
alice 7 ember gus 117 harbor bruno 23 amber
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006911
qwen/qwen3.7-plus
awkweave-0006912
Skip the first line and print every remaining line unchanged.
NR > 1
bruno 1 grove dina 16 amber bruno 119 cobalt lina 37 harbor alice 51 fable lina 3 birch farah 33 birch ivan 12 harbor bruno 81 indigo
dina 16 amber bruno 119 cobalt lina 37 harbor alice 51 fable lina 3 birch farah 33 birch ivan 12 harbor bruno 81 indigo
alice 88 harbor farah 48 harbor kim 6 birch chen 16 fable bruno 34 juniper jules 68 cobalt farah 90 birch eli 41 amber chen 120 grove chen 81 amber
farah 48 harbor kim 6 birch chen 16 fable bruno 34 juniper jules 68 cobalt farah 90 birch eli 41 amber chen 120 grove chen 81 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006912-p1
Omit the first line and print all subsequent lines without modification.
NR > 1
bruno 1 grove dina 16 amber bruno 119 cobalt lina 37 harbor alice 51 fable lina 3 birch farah 33 birch ivan 12 harbor bruno 81 indigo
dina 16 amber bruno 119 cobalt lina 37 harbor alice 51 fable lina 3 birch farah 33 birch ivan 12 harbor bruno 81 indigo
alice 88 harbor farah 48 harbor kim 6 birch chen 16 fable bruno 34 juniper jules 68 cobalt farah 90 birch eli 41 amber chen 120 grove chen 81 amber
farah 48 harbor kim 6 birch chen 16 fable bruno 34 juniper jules 68 cobalt farah 90 birch eli 41 amber chen 120 grove chen 81 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006912
qwen/qwen3.7-plus
awkweave-0006913
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
ivan pending 70 chen pending 48 gus failed 9 ivan pending 71 farah closed 59 jules active 116
1
farah pending 103 alice ready 81 farah pending 105 bruno ready 105 kim paused 3 dina closed 20 dina pending 63 alice closed 28
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006913-p1
Count the number of records where the second column is 'closed', outputting 0 if none are found.
$2 == "closed"{n++}END{print n+0}
ivan pending 70 chen pending 48 gus failed 9 ivan pending 71 farah closed 59 jules active 116
1
farah pending 103 alice ready 81 farah pending 105 bruno ready 105 kim paused 3 dina closed 20 dina pending 63 alice closed 28
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006913
qwen/qwen3.7-plus
awkweave-0006914
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
15 bruno ember 2 gus amber 11 alice fable 28 eli grove 2 dina indigo 23 kim delta 9 eli fable
90
18 farah delta 20 alice indigo 22 bruno grove 9 kim grove 20 lina grove 14 gus fable 24 ivan ember 29 ivan birch
156
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006914-p1
Compute and display the sum of integer values in the first column.
{s+=$1}END{print s+0}
15 bruno ember 2 gus amber 11 alice fable 28 eli grove 2 dina indigo 23 kim delta 9 eli fable
90
18 farah delta 20 alice indigo 22 bruno grove 9 kim grove 20 lina grove 14 gus fable 24 ivan ember 29 ivan birch
156
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006914
qwen/qwen3.7-plus
awkweave-0006915
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
alice cobalt 8 alice harbor 14 ivan cobalt 15 ivan birch 12 jules indigo 7 dina cobalt 17 kim harbor 13 ivan birch 9 alice harbor 16
12.33
bruno ember 22 eli amber 12 ivan amber 15 lina indigo 8 lina fable 16 ivan indigo 18 chen indigo 15
15.14
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006915-p1
Calculate the arithmetic mean of the third column and format the result to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
alice cobalt 8 alice harbor 14 ivan cobalt 15 ivan birch 12 jules indigo 7 dina cobalt 17 kim harbor 13 ivan birch 9 alice harbor 16
12.33
bruno ember 22 eli amber 12 ivan amber 15 lina indigo 8 lina fable 16 ivan indigo 18 chen indigo 15
15.14
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006915
qwen/qwen3.7-plus
awkweave-0006916
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
5 eli ember 19 hana delta 2 lina ember 14 eli juniper 9 lina grove 15 hana delta 25 lina fable 28 chen delta
2
14 chen birch 13 jules cobalt 17 dina fable 12 gus harbor 8 jules harbor 17 dina juniper 7 lina grove 20 gus juniper
7
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006916-p1
Identify and print the minimum numeric value found in the first column.
NR==1||$1<extreme{extreme=$1}END{print extreme}
5 eli ember 19 hana delta 2 lina ember 14 eli juniper 9 lina grove 15 hana delta 25 lina fable 28 chen delta
2
14 chen birch 13 jules cobalt 17 dina fable 12 gus harbor 8 jules harbor 17 dina juniper 7 lina grove 20 gus juniper
7
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006916
qwen/qwen3.7-plus
awkweave-0006917
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
2 jules birch 23 alice indigo 25 jules juniper 3 ivan delta 3 bruno cobalt 12 bruno harbor 9 gus ember 3 lina harbor 9 ivan delta
25
23 eli grove 1 eli fable 1 dina ember 9 farah ember 24 alice harbor 5 gus ember
24
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006917-p1
Identify and print the maximum numeric value found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
2 jules birch 23 alice indigo 25 jules juniper 3 ivan delta 3 bruno cobalt 12 bruno harbor 9 gus ember 3 lina harbor 9 ivan delta
25
23 eli grove 1 eli fable 1 dina ember 9 farah ember 24 alice harbor 5 gus ember
24
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006917
qwen/qwen3.7-plus
awkweave-0006918
Count all input records and print the total.
END{print NR}
bruno 0 dina 70 kim 97 chen 42 dina 73 alice 108 ivan 52 ivan 86 lina 23
9
eli 44 jules 69 jules 103 eli 20 gus 10 dina 60 ivan 20 jules 1 dina 73 alice 17
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006918-p1
Calculate and output the total number of input records.
END{print NR}
bruno 0 dina 70 kim 97 chen 42 dina 73 alice 108 ivan 52 ivan 86 lina 23
9
eli 44 jules 69 jules 103 eli 20 gus 10 dina 60 ivan 20 jules 1 dina 73 alice 17
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006918
qwen/qwen3.7-plus
awkweave-0006919
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
alice grove 13 alice grove 13 dina amber 90 jules harbor 111 alice amber 23 alice amber 37 jules cobalt 102
alice grove 13 dina amber 90 jules harbor 111 alice amber 23 alice amber 37 jules cobalt 102
hana harbor 79 eli juniper 116 jules indigo 88 kim cobalt 16 hana amber 97 bruno indigo 90 bruno harbor 92 farah amber 34 hana harbor 79
hana harbor 79 eli juniper 116 jules indigo 88 kim cobalt 16 hana amber 97 bruno indigo 90 bruno harbor 92 farah amber 34
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006919-p1
Eliminate duplicate lines by keeping only the first instance of each, maintaining the original sequence.
!seen[$0]++
alice grove 13 alice grove 13 dina amber 90 jules harbor 111 alice amber 23 alice amber 37 jules cobalt 102
alice grove 13 dina amber 90 jules harbor 111 alice amber 23 alice amber 37 jules cobalt 102
hana harbor 79 eli juniper 116 jules indigo 88 kim cobalt 16 hana amber 97 bruno indigo 90 bruno harbor 92 farah amber 34 hana harbor 79
hana harbor 79 eli juniper 116 jules indigo 88 kim cobalt 16 hana amber 97 bruno indigo 90 bruno harbor 92 farah amber 34
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006919
qwen/qwen3.7-plus
awkweave-0006920
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
alice birch 8 hana juniper 118 kim fable 47 farah juniper 52 hana juniper 4 farah cobalt 82 bruno birch 27 gus juniper 38
alice birch 8 hana juniper 118 kim fable 47 farah juniper 52 bruno birch 27 gus juniper 38
ivan grove 9 kim juniper 23 alice amber 37 chen harbor 9 bruno cobalt 9 kim harbor 117
ivan grove 9 kim juniper 23 alice amber 37 chen harbor 9 bruno cobalt 9
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006920-p1
Retain only the initial row for every unique value in the first column, keeping the original input order.
!seen[$1]++
alice birch 8 hana juniper 118 kim fable 47 farah juniper 52 hana juniper 4 farah cobalt 82 bruno birch 27 gus juniper 38
alice birch 8 hana juniper 118 kim fable 47 farah juniper 52 bruno birch 27 gus juniper 38
ivan grove 9 kim juniper 23 alice amber 37 chen harbor 9 bruno cobalt 9 kim harbor 117
ivan grove 9 kim juniper 23 alice amber 37 chen harbor 9 bruno cobalt 9
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006920
qwen/qwen3.7-plus
awkweave-0006921
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
eli 24 indigo farah 10 grove ivan 9 grove lina 27 indigo alice 12 fable jules 20 grove
eli 24 farah 34 ivan 43 lina 70 alice 82 jules 102
gus 18 juniper bruno 22 juniper gus 21 cobalt lina 1 ember chen 23 amber farah 8 ember lina 21 indigo farah 3 ember bruno 4 juniper jules 19 juniper
gus 18 bruno 40 gus 61 lina 62 chen 85 farah 93 lina 114 farah 117 bruno 121 jules 140
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006921-p1
Output the first column alongside the cumulative sum of the second column for each record, separated by a space.
{s+=$2;print $1,s}
eli 24 indigo farah 10 grove ivan 9 grove lina 27 indigo alice 12 fable jules 20 grove
eli 24 farah 34 ivan 43 lina 70 alice 82 jules 102
gus 18 juniper bruno 22 juniper gus 21 cobalt lina 1 ember chen 23 amber farah 8 ember lina 21 indigo farah 3 ember bruno 4 juniper jules 19 juniper
gus 18 bruno 40 gus 61 lina 62 chen 85 farah 93 lina 114 farah 117 bruno 121 jules 140
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006921
qwen/qwen3.7-plus
awkweave-0006922
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 2 30 indigo lina 20 30 grove dina 17 2 ember bruno 16 23 amber ivan 17 24 fable kim 24 15 harbor
bruno 32 lina 50 dina 19 bruno 39 ivan 41 kim 39
jules 29 9 indigo farah 5 14 cobalt farah 17 16 juniper hana 1 23 amber kim 25 18 indigo hana 1 16 birch jules 29 15 juniper lina 25 6 birch alice 23 28 harbor
jules 38 farah 19 farah 33 hana 24 kim 43 hana 17 jules 44 lina 31 alice 51
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006922-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
bruno 2 30 indigo lina 20 30 grove dina 17 2 ember bruno 16 23 amber ivan 17 24 fable kim 24 15 harbor
bruno 32 lina 50 dina 19 bruno 39 ivan 41 kim 39
jules 29 9 indigo farah 5 14 cobalt farah 17 16 juniper hana 1 23 amber kim 25 18 indigo hana 1 16 birch jules 29 15 juniper lina 25 6 birch alice 23 28 harbor
jules 38 farah 19 farah 33 hana 24 kim 43 hana 17 jules 44 lina 31 alice 51
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006922
qwen/qwen3.7-plus
awkweave-0006923
Print column 1 and pass when column 2 is at least 20; otherwise print fail.
{print $1,($2>=20?"pass":"fail")}
eli 29 dina 13 hana 22 kim 24 bruno 27 lina 30 alice 14 chen 19
eli pass dina fail hana pass kim pass bruno pass lina pass alice fail chen fail
alice 29 eli 14 kim 28 eli 26 farah 21 farah 27 lina 14 farah 4 chen 15
alice pass eli fail kim pass eli pass farah pass farah pass lina fail farah fail chen fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006923-p1
Output the first column and print 'pass' if the second column is 20 or greater; otherwise, print 'fail'.
{print $1,($2>=20?"pass":"fail")}
eli 29 dina 13 hana 22 kim 24 bruno 27 lina 30 alice 14 chen 19
eli pass dina fail hana pass kim pass bruno pass lina pass alice fail chen fail
alice 29 eli 14 kim 28 eli 26 farah 21 farah 27 lina 14 farah 4 chen 15
alice pass eli fail kim pass eli pass farah pass farah pass lina fail farah fail chen fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006923
qwen/qwen3.7-plus
awkweave-0006924
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
dina indigo 37 gus birch 106 gus delta 67 dina indigo 113 kim harbor 111 bruno amber 46 gus indigo 81
INDIGO BIRCH DELTA INDIGO HARBOR AMBER INDIGO
chen fable 106 alice juniper 47 hana fable 16 eli grove 90 kim amber 89 kim harbor 29 kim cobalt 36 alice grove 32
FABLE JUNIPER FABLE GROVE AMBER HARBOR COBALT GROVE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006924-p1
Transform the second column to uppercase and output only that column.
{print toupper($2)}
dina indigo 37 gus birch 106 gus delta 67 dina indigo 113 kim harbor 111 bruno amber 46 gus indigo 81
INDIGO BIRCH DELTA INDIGO HARBOR AMBER INDIGO
chen fable 106 alice juniper 47 hana fable 16 eli grove 90 kim amber 89 kim harbor 29 kim cobalt 36 alice grove 32
FABLE JUNIPER FABLE GROVE AMBER HARBOR COBALT GROVE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006924
qwen/qwen3.7-plus
awkweave-0006925
From column 1, print 3 characters starting at character 1.
{print substr($1,1,3)}
amber 28 harbor 6 grove 16 harbor 82 ember 77 birch 37
amb har gro har emb bir
delta 98 ember 84 amber 107 grove 75 indigo 70 fable 88 delta 26
del emb amb gro ind fab del
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006925-p1
Extract and print the first 3 characters from the first column, starting at position 1.
{print substr($1,1,3)}
amber 28 harbor 6 grove 16 harbor 82 ember 77 birch 37
amb har gro har emb bir
delta 98 ember 84 amber 107 grove 75 indigo 70 fable 88 delta 26
del emb amb gro ind fab del
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006925
qwen/qwen3.7-plus
awkweave-0006926
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
cobalt_cobalt 93 ember_indigo 4 harbor_harbor 6 amber_fable 82 indigo_ember 92 birch_indigo 45 amber_fable 93 birch_harbor 58 juniper_amber 57
cobalt cobalt ember indigo harbor harbor amber fable indigo ember birch indigo amber fable birch harbor juniper amber
indigo_grove 97 delta_amber 105 harbor_indigo 80 birch_grove 93 indigo_ember 52 fable_cobalt 1 grove_grove 117 ember_juniper 109 grove_delta 48
indigo grove delta amber harbor indigo birch grove indigo ember fable cobalt grove grove ember juniper grove delta
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006926-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
cobalt_cobalt 93 ember_indigo 4 harbor_harbor 6 amber_fable 82 indigo_ember 92 birch_indigo 45 amber_fable 93 birch_harbor 58 juniper_amber 57
cobalt cobalt ember indigo harbor harbor amber fable indigo ember birch indigo amber fable birch harbor juniper amber
indigo_grove 97 delta_amber 105 harbor_indigo 80 birch_grove 93 indigo_ember 52 fable_cobalt 1 grove_grove 117 ember_juniper 109 grove_delta 48
indigo grove delta amber harbor indigo birch grove indigo ember fable cobalt grove grove ember juniper grove delta
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006926
qwen/qwen3.7-plus
awkweave-0006927
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana ember 69 closed dina birch 58 ready kim cobalt 61 failed gus ember 120 ready eli amber 80 closed kim harbor 18 closed bruno cobalt 11 failed hana indigo 94 closed kim juniper 103 pending ivan fable 55 active
closed 69 ember hana ready 58 birch dina failed 61 cobalt kim ready 120 ember gus closed 80 amber eli closed 18 harbor kim failed 11 cobalt bruno closed 94 indigo hana pending 103 juniper kim active 55 fable ivan
ivan harbor 84 active lina ember 93 active bruno birch 62 ready jules fable 59 pending chen fable 89 pending alice delta 98 paused ivan delta 100 pending
active 84 harbor ivan active 93 ember lina ready 62 birch bruno pending 59 fable jules pending 89 fable chen paused 98 delta alice pending 100 delta ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006927-p1
Reverse the sequence of fields on each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana ember 69 closed dina birch 58 ready kim cobalt 61 failed gus ember 120 ready eli amber 80 closed kim harbor 18 closed bruno cobalt 11 failed hana indigo 94 closed kim juniper 103 pending ivan fable 55 active
closed 69 ember hana ready 58 birch dina failed 61 cobalt kim ready 120 ember gus closed 80 amber eli closed 18 harbor kim failed 11 cobalt bruno closed 94 indigo hana pending 103 juniper kim active 55 fable ivan
ivan harbor 84 active lina ember 93 active bruno birch 62 ready jules fable 59 pending chen fable 89 pending alice delta 98 paused ivan delta 100 pending
active 84 harbor ivan active 93 ember lina ready 62 birch bruno pending 59 fable jules pending 89 fable chen paused 98 delta alice pending 100 delta ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006927
qwen/qwen3.7-plus
awkweave-0006928
Print the number of whitespace-separated fields on each line.
{print NF}
hana grove 82 closed alice amber 20 ready lina fable 7 pending bruno harbor 70 pending lina fable 41 paused lina cobalt 87 pending alice cobalt 77 paused chen grove 96 pending
4 4 4 4 4 4 4 4
dina cobalt 104 failed alice amber 63 paused lina harbor 28 pending ivan fable 80 ready lina amber 97 paused lina fable 38 ready chen fable 15 pending
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006928-p1
Output the count of whitespace-delimited fields for each line.
{print NF}
hana grove 82 closed alice amber 20 ready lina fable 7 pending bruno harbor 70 pending lina fable 41 paused lina cobalt 87 pending alice cobalt 77 paused chen grove 96 pending
4 4 4 4 4 4 4 4
dina cobalt 104 failed alice amber 63 paused lina harbor 28 pending ivan fable 80 ready lina amber 97 paused lina fable 38 ready chen fable 15 pending
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006928
qwen/qwen3.7-plus
awkweave-0006929
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
dina alpha 70 alice gamma 91 ivan alpha 15 gus delta 111 bruno beta 95 dina beta 68
alpha 2 gamma 1 delta 1 beta 2
lina alpha 19 dina gamma 67 dina gamma 45 bruno delta 15 alice beta 99 bruno alpha 118 farah delta 12 lina beta 18
alpha 2 gamma 2 delta 2 beta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006929-p1
Tally the records for each unique value in the second column and print each value with its count, ordered by first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
dina alpha 70 alice gamma 91 ivan alpha 15 gus delta 111 bruno beta 95 dina beta 68
alpha 2 gamma 1 delta 1 beta 2
lina alpha 19 dina gamma 67 dina gamma 45 bruno delta 15 alice beta 99 bruno alpha 118 farah delta 12 lina beta 18
alpha 2 gamma 2 delta 2 beta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006929
qwen/qwen3.7-plus
awkweave-0006930
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
farah alpha 19 dina beta 22 eli gamma 27 dina alpha 1 gus alpha 23 kim alpha 30 ivan alpha 19 eli gamma 28 jules alpha 14
alpha 106 beta 22 gamma 55
chen delta 30 kim delta 2 bruno beta 20 lina beta 16 ivan beta 25 dina gamma 26 gus beta 3
delta 32 beta 64 gamma 26
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006930-p1
Aggregate the sum of column 3 for each unique category in column 2, listing the groups in the order they first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
farah alpha 19 dina beta 22 eli gamma 27 dina alpha 1 gus alpha 23 kim alpha 30 ivan alpha 19 eli gamma 28 jules alpha 14
alpha 106 beta 22 gamma 55
chen delta 30 kim delta 2 bruno beta 20 lina beta 16 ivan beta 25 dina gamma 26 gus beta 3
delta 32 beta 64 gamma 26
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006930
qwen/qwen3.7-plus
awkweave-0006931
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma indigo 93 delta indigo 26 beta fable 94 delta harbor 33 gamma fable 29 delta harbor 7 gamma fable 58 alpha juniper 53 gamma delta 116 gamma ember 64
gamma 5 delta 3
gamma fable 39 beta ember 57 beta delta 71 alpha harbor 2 alpha ember 90 delta fable 106 delta cobalt 98 beta grove 98
beta 3 alpha 2 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006931-p1
List every value from column 1 that appears more than once, along with its frequency, sorted by the order of first occurrence.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma indigo 93 delta indigo 26 beta fable 94 delta harbor 33 gamma fable 29 delta harbor 7 gamma fable 58 alpha juniper 53 gamma delta 116 gamma ember 64
gamma 5 delta 3
gamma fable 39 beta ember 57 beta delta 71 alpha harbor 2 alpha ember 90 delta fable 106 delta cobalt 98 beta grove 98
beta 3 alpha 2 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006931
qwen/qwen3.7-plus
awkweave-0006932
The first row is a header. Print the score column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
display_name note record_id score r001 lina 8 paused r002 eli 2 paused r003 dina 9 paused r004 gus 10 active r005 chen 9 closed r006 alice 19 closed r007 eli 30 ready
paused paused paused active closed closed ready
display_name note record_id score r001 hana 29 paused r002 kim 27 pending r003 farah 1 active r004 eli 5 ready r005 alice 29 paused r006 lina 21 pending r007 hana 2 paused r008 ivan 13 paused r009 eli 5 ready
paused pending active ready paused pending paused paused ready
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006932-p1
Treating the first line as a header, output the values from the score column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
display_name note record_id score r001 lina 8 paused r002 eli 2 paused r003 dina 9 paused r004 gus 10 active r005 chen 9 closed r006 alice 19 closed r007 eli 30 ready
paused paused paused active closed closed ready
display_name note record_id score r001 hana 29 paused r002 kim 27 pending r003 farah 1 active r004 eli 5 ready r005 alice 29 paused r006 lina 21 pending r007 hana 2 paused r008 ivan 13 paused r009 eli 5 ready
paused pending active ready paused pending paused paused ready
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006932
qwen/qwen3.7-plus
awkweave-0006933
The first row is a header. Print display_name for data rows whose score is greater than 19.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>19{print $h["display_name"]}
record_id display_name score state r001 farah 9 closed r002 chen 10 active r003 ivan 21 pending r004 chen 25 paused r005 gus 6 failed r006 bruno 26 closed
ivan chen bruno
record_id display_name score state r001 eli 30 closed r002 eli 22 paused r003 bruno 3 ready r004 ivan 1 pending r005 hana 22 closed r006 gus 28 paused r007 hana 23 ready r008 lina 9 pending r009 bruno 10 paused
eli eli hana gus hana
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006933-p1
With the first row as a header, output the display_name field for any data row where the score exceeds 19.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>19{print $h["display_name"]}
record_id display_name score state r001 farah 9 closed r002 chen 10 active r003 ivan 21 pending r004 chen 25 paused r005 gus 6 failed r006 bruno 26 closed
ivan chen bruno
record_id display_name score state r001 eli 30 closed r002 eli 22 paused r003 bruno 3 ready r004 ivan 1 pending r005 hana 22 closed r006 gus 28 paused r007 hana 23 ready r008 lina 9 pending r009 bruno 10 paused
eli eli hana gus hana
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006933
qwen/qwen3.7-plus
awkweave-0006934
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 3 active kim 3 ready chen 19 paused gus 12 closed hana 30 active alice 8 paused farah 9 closed
3 3 19 12 30 8 9
dina 5 pending hana 8 pending dina 8 pending alice 25 pending alice 23 paused gus 1 ready ivan 4 ready farah 13 pending ivan 3 paused eli 27 paused
5 8 8 25 23 1 4 13 3 27
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006934-p1
Given tab-separated input, extract and print the second column from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 3 active kim 3 ready chen 19 paused gus 12 closed hana 30 active alice 8 paused farah 9 closed
3 3 19 12 30 8 9
dina 5 pending hana 8 pending dina 8 pending alice 25 pending alice 23 paused gus 1 ready ivan 4 ready farah 13 pending ivan 3 paused eli 27 paused
5 8 8 25 23 1 4 13 3 27
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006934
qwen/qwen3.7-plus
awkweave-0006935
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 17.
BEGIN{FS=OFS=","}$2>17{print $1}
alice,16,closed hana,1,active lina,8,failed alice,29,closed eli,12,pending farah,23,ready hana,5,paused farah,8,ready
alice farah
jules,17,failed bruno,5,paused farah,28,failed hana,9,active hana,20,failed farah,23,ready ivan,4,failed hana,7,pending
farah hana farah
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006935-p1
For simple comma-separated data without quoted commas, print the first column whenever the second column is greater than 17.
BEGIN{FS=OFS=","}$2>17{print $1}
alice,16,closed hana,1,active lina,8,failed alice,29,closed eli,12,pending farah,23,ready hana,5,paused farah,8,ready
alice farah
jules,17,failed bruno,5,paused farah,28,failed hana,9,active hana,20,failed farah,23,ready ivan,4,failed hana,7,pending
farah hana farah
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006935
qwen/qwen3.7-plus
awkweave-0006936
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
kim ember 90 ivan amber 61 farah cobalt 23 jules harbor 48 eli birch 16 gus birch 53 eli amber 77
kim ember 90 ivan amber 61 farah cobalt 23 jules harbor 48 eli birch 16 gus birch 53 eli amber 77
lina juniper 45 kim ember 97 gus harbor 0 alice harbor 45 lina grove 59 chen juniper 73 lina amber 35 ivan ember 11
lina juniper 45 kim ember 97 gus harbor 0 alice harbor 45 lina grove 59 chen juniper 73 lina amber 35 ivan ember 11
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006936-p1
Remove leading and trailing whitespace from each line and replace sequences of internal whitespace with a single space.
{$1=$1;print}
kim ember 90 ivan amber 61 farah cobalt 23 jules harbor 48 eli birch 16 gus birch 53 eli amber 77
kim ember 90 ivan amber 61 farah cobalt 23 jules harbor 48 eli birch 16 gus birch 53 eli amber 77
lina juniper 45 kim ember 97 gus harbor 0 alice harbor 45 lina grove 59 chen juniper 73 lina amber 35 ivan ember 11
lina juniper 45 kim ember 97 gus harbor 0 alice harbor 45 lina grove 59 chen juniper 73 lina amber 35 ivan ember 11
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006936
qwen/qwen3.7-plus
awkweave-0006937
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan delta 76 closed chen indigo 90 ready lina birch 52 active eli delta 45 active hana delta 39 pending gus fable 31 failed
hana delta 39 pending
hana indigo 85 active bruno fable 117 active kim birch 106 paused bruno juniper 36 paused lina amber 31 active bruno juniper 85 failed
bruno juniper 36 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006937-p1
Identify and output the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan delta 76 closed chen indigo 90 ready lina birch 52 active eli delta 45 active hana delta 39 pending gus fable 31 failed
hana delta 39 pending
hana indigo 85 active bruno fable 117 active kim birch 106 paused bruno juniper 36 paused lina amber 31 active bruno juniper 85 failed
bruno juniper 36 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006937
qwen/qwen3.7-plus
awkweave-0006938
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
eli 75 jules 24 gus 72 dina 28 hana 87 bruno 72
gus 72 bruno 72
lina 6 jules 44 bruno 70 chen 105 ivan 105 chen 97 dina 93 jules 117 gus 26
bruno 70 chen 97 gus 26
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006938-p1
Output every third line of the input, beginning with line 3 (i.e., lines 3, 6, 9, etc.).
NR%3==0
eli 75 jules 24 gus 72 dina 28 hana 87 bruno 72
gus 72 bruno 72
lina 6 jules 44 bruno 70 chen 105 ivan 105 chen 97 dina 93 jules 117 gus 26
bruno 70 chen 97 gus 26
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006938
qwen/qwen3.7-plus
awkweave-0006939
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha fable 18 alpha ember 102 delta grove 67 alpha grove 78 beta amber 105 beta delta 111 beta indigo 38
6
gamma birch 64 alpha amber 37 delta harbor 26 gamma harbor 104 alpha delta 30 gamma cobalt 29 delta grove 10 beta grove 4 alpha cobalt 74 alpha harbor 104
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0006939-p1
Calculate the number of unique values in column 2 and print only this total count.
{if(!seen[$2]++)n++}END{print n+0}
alpha fable 18 alpha ember 102 delta grove 67 alpha grove 78 beta amber 105 beta delta 111 beta indigo 38
6
gamma birch 64 alpha amber 37 delta harbor 26 gamma harbor 104 alpha delta 30 gamma cobalt 29 delta grove 10 beta grove 4 alpha cobalt 74 alpha harbor 104
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0006939
qwen/qwen3.7-plus
awkweave-0006940
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 7 0 eli 3 7 chen 12 11 gus 18 24 ivan 3 17 chen 3 15 ivan 9 1
eli 0.43 chen 1.09 gus 0.75 ivan 0.18 chen 0.20 ivan 9.00
alice 10 0 lina 18 27 hana 20 3 bruno 20 7 eli 30 10 farah 26 14 ivan 1 25 alice 13 23
lina 0.67 hana 6.67 bruno 2.86 eli 3.00 farah 1.86 ivan 0.04 alice 0.57
ratio
2
train
original-grammar
CC-BY-4.0
null
null