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-0015440-p1
Print every third line beginning with the second line (i.e., lines 2, 5, 8, ...).
NR%3==2
hana 36 gus 63 chen 48 lina 16 dina 109 lina 79
gus 63 dina 109
gus 16 ivan 90 chen 16 hana 115 alice 86 chen 8
ivan 90 alice 86
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015440
qwen/qwen3.7-plus
awkweave-0015441
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
gamma grove 23 alpha fable 17 beta juniper 112 alpha fable 74 delta grove 7 gamma delta 68 beta amber 71
5
alpha grove 85 alpha ember 43 alpha cobalt 11 gamma juniper 16 delta grove 66 beta indigo 110
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015441-p1
Calculate and output only the total number of unique values found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
gamma grove 23 alpha fable 17 beta juniper 112 alpha fable 74 delta grove 7 gamma delta 68 beta amber 71
5
alpha grove 85 alpha ember 43 alpha cobalt 11 gamma juniper 16 delta grove 66 beta indigo 110
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015441
qwen/qwen3.7-plus
awkweave-0015442
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 27 0 hana 10 21 gus 5 23 hana 30 30 hana 1 28 dina 18 2
hana 0.48 gus 0.22 hana 1.00 hana 0.04 dina 9.00
eli 3 0 kim 26 4 dina 26 17 kim 26 23 kim 27 22 kim 15 25 hana 1 11 dina 3 12
kim 6.50 dina 1.53 kim 1.13 kim 1.23 kim 0.60 hana 0.09 dina 0.25
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015442-p1
For each row where the third column is non-zero, print the first column and the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 27 0 hana 10 21 gus 5 23 hana 30 30 hana 1 28 dina 18 2
hana 0.48 gus 0.22 hana 1.00 hana 0.04 dina 9.00
eli 3 0 kim 26 4 dina 26 17 kim 26 23 kim 27 22 kim 15 25 hana 1 11 dina 3 12
kim 6.50 dina 1.53 kim 1.13 kim 1.23 kim 0.60 hana 0.09 dina 0.25
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015442
qwen/qwen3.7-plus
awkweave-0015443
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]}
ivan juniper 11 alice fable 27 bruno amber 11 eli indigo 23 farah delta 14 hana ember 26 farah juniper 19 hana amber 2 farah juniper 1
alice fable 27 hana ember 26 eli indigo 23
jules fable 17 jules delta 1 chen indigo 6 farah delta 26 dina delta 10 eli delta 9 ivan amber 25 kim harbor 19
farah delta 26 ivan amber 25 kim harbor 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015443-p1
Display the top three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any 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]}
ivan juniper 11 alice fable 27 bruno amber 11 eli indigo 23 farah delta 14 hana ember 26 farah juniper 19 hana amber 2 farah juniper 1
alice fable 27 hana ember 26 eli indigo 23
jules fable 17 jules delta 1 chen indigo 6 farah delta 26 dina delta 10 eli delta 9 ivan amber 25 kim harbor 19
farah delta 26 ivan amber 25 kim harbor 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015443
qwen/qwen3.7-plus
awkweave-0015444
Select the 4th and 3rd fields in that order.
{print $4, $3}
96 amber delta bruno birch juniper 13 indigo amber dina indigo juniper 74 cobalt ember alice indigo indigo 45 fable delta kim grove ember 18 birch ember eli amber fable 19 delta ember dina juniper cobalt 120 cobalt cobalt lina delta birch 36 amber fable alice ember amber 90 grove fable kim cobalt amber 110 cobalt grove...
bruno delta dina amber alice ember kim delta eli ember dina ember lina cobalt alice fable kim fable farah grove
58 fable ember chen juniper cobalt 56 ember cobalt gus grove indigo 77 grove delta dina delta indigo 67 ember fable gus grove ember 10 harbor delta kim indigo fable 63 indigo fable ivan birch fable 96 harbor delta farah fable grove 89 birch cobalt jules birch amber
chen ember gus cobalt dina delta gus fable kim delta ivan fable farah delta jules cobalt
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015444-p1
Output the fourth field followed by the third field for each record.
{print $4, $3}
96 amber delta bruno birch juniper 13 indigo amber dina indigo juniper 74 cobalt ember alice indigo indigo 45 fable delta kim grove ember 18 birch ember eli amber fable 19 delta ember dina juniper cobalt 120 cobalt cobalt lina delta birch 36 amber fable alice ember amber 90 grove fable kim cobalt amber 110 cobalt grove...
bruno delta dina amber alice ember kim delta eli ember dina ember lina cobalt alice fable kim fable farah grove
58 fable ember chen juniper cobalt 56 ember cobalt gus grove indigo 77 grove delta dina delta indigo 67 ember fable gus grove ember 10 harbor delta kim indigo fable 63 indigo fable ivan birch fable 96 harbor delta farah fable grove 89 birch cobalt jules birch amber
chen ember gus cobalt dina delta gus fable kim delta ivan fable farah delta jules cobalt
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015444
qwen/qwen3.7-plus
awkweave-0015445
Print the last field of every input line.
{print $NF}
1 99 64 85 116 71 25 53 32 31 40 11 12 87 50 28 115 28 79 117 13 38 100 100 38 78 70
64 71 32 11 50 28 13 100 70
101 11 98 35 74 78 48 86 96 91 5 11 88 0 46 35 10 22
98 78 96 11 46 22
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015445-p1
Print the final field of every line in the input.
{print $NF}
1 99 64 85 116 71 25 53 32 31 40 11 12 87 50 28 115 28 79 117 13 38 100 100 38 78 70
64 71 32 11 50 28 13 100 70
101 11 98 35 74 78 48 86 96 91 5 11 88 0 46 35 10 22
98 78 96 11 46 22
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015445
qwen/qwen3.7-plus
awkweave-0015446
Print the complete records where column 4 is at most 32.
$4 <= 32
paused lina delta 80 dina closed eli amber 70 lina failed eli fable 49 dina paused lina juniper 105 farah failed alice juniper 72 alice ready alice ember 24 dina pending hana harbor 76 alice paused gus birch 5 gus failed kim grove 40 dina
ready alice ember 24 dina paused gus birch 5 gus
active farah ember 91 lina paused lina indigo 100 eli pending gus fable 60 eli pending kim grove 105 jules closed gus cobalt 69 alice paused bruno cobalt 63 ivan pending bruno ember 93 jules pending gus juniper 78 eli active bruno fable 81 eli
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015446-p1
Output full records where the value in the fourth column is less than or equal to 32.
$4 <= 32
paused lina delta 80 dina closed eli amber 70 lina failed eli fable 49 dina paused lina juniper 105 farah failed alice juniper 72 alice ready alice ember 24 dina pending hana harbor 76 alice paused gus birch 5 gus failed kim grove 40 dina
ready alice ember 24 dina paused gus birch 5 gus
active farah ember 91 lina paused lina indigo 100 eli pending gus fable 60 eli pending kim grove 105 jules closed gus cobalt 69 alice paused bruno cobalt 63 ivan pending bruno ember 93 jules pending gus juniper 78 eli active bruno fable 81 eli
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015446
qwen/qwen3.7-plus
awkweave-0015447
Show whole lines whose 1st field is between 9 and 26, inclusive.
$1 >= 9 && $1 <= 26
10 ready failed jules 22 pending paused farah 7 failed active hana 1 pending ready ivan 26 closed active jules 16 pending active farah 18 active ready gus 26 pending active bruno 18 failed closed farah
10 ready failed jules 22 pending paused farah 26 closed active jules 16 pending active farah 18 active ready gus 26 pending active bruno 18 failed closed farah
16 closed closed lina 23 paused pending ivan 20 closed active hana 10 pending failed jules 24 failed closed alice 5 ready failed farah 19 ready failed hana 10 active active gus
16 closed closed lina 23 paused pending ivan 20 closed active hana 10 pending failed jules 24 failed closed alice 19 ready failed hana 10 active active gus
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015447-p1
Display entire lines where the first field falls within the inclusive range of 9 to 26.
$1 >= 9 && $1 <= 26
10 ready failed jules 22 pending paused farah 7 failed active hana 1 pending ready ivan 26 closed active jules 16 pending active farah 18 active ready gus 26 pending active bruno 18 failed closed farah
10 ready failed jules 22 pending paused farah 26 closed active jules 16 pending active farah 18 active ready gus 26 pending active bruno 18 failed closed farah
16 closed closed lina 23 paused pending ivan 20 closed active hana 10 pending failed jules 24 failed closed alice 5 ready failed farah 19 ready failed hana 10 active active gus
16 closed closed lina 23 paused pending ivan 20 closed active hana 10 pending failed jules 24 failed closed alice 19 ready failed hana 10 active active gus
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015447
qwen/qwen3.7-plus
awkweave-0015448
Print column 2 only for rows where column 4 is exactly pending.
$4 == "pending"{print $2}
indigo hana 0 failed ember chen 26 paused delta gus 4 failed amber farah 55 failed ember alice 109 pending ember lina 30 active juniper farah 83 ready harbor dina 85 ready
alice
delta alice 0 active amber dina 23 ready cobalt jules 95 ready grove eli 70 closed grove dina 14 ready ember eli 106 failed indigo hana 78 closed birch alice 91 active juniper chen 18 failed
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015448-p1
Extract the second column from rows where the fourth column matches 'pending' exactly.
$4 == "pending"{print $2}
indigo hana 0 failed ember chen 26 paused delta gus 4 failed amber farah 55 failed ember alice 109 pending ember lina 30 active juniper farah 83 ready harbor dina 85 ready
alice
delta alice 0 active amber dina 23 ready cobalt jules 95 ready grove eli 70 closed grove dina 14 ready ember eli 106 failed indigo hana 78 closed birch alice 91 active juniper chen 18 failed
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015448
qwen/qwen3.7-plus
awkweave-0015449
Print all fields from lines where field 1 begins with WARN.
$1 ~ /^WARN/
INFO 66 cobalt DEBUG 4 birch WARN 48 juniper INFO 46 indigo DEBUG 1 indigo ERROR 23 amber ERROR 32 indigo INFO 39 birch
WARN 48 juniper
DEBUG 61 birch WARN 77 indigo INFO 4 grove WARN 97 amber INFO 117 delta ERROR 19 juniper DEBUG 65 birch WARN 61 amber ERROR 9 grove
WARN 77 indigo WARN 97 amber WARN 61 amber
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015449-p1
Output all fields for lines whose first field starts with 'WARN'.
$1 ~ /^WARN/
INFO 66 cobalt DEBUG 4 birch WARN 48 juniper INFO 46 indigo DEBUG 1 indigo ERROR 23 amber ERROR 32 indigo INFO 39 birch
WARN 48 juniper
DEBUG 61 birch WARN 77 indigo INFO 4 grove WARN 97 amber INFO 117 delta ERROR 19 juniper DEBUG 65 birch WARN 61 amber ERROR 9 grove
WARN 77 indigo WARN 97 amber WARN 61 amber
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015449
qwen/qwen3.7-plus
awkweave-0015450
Print every line except those containing the exact text indigo.
$0 !~ /indigo/
birch 110 paused birch 60 paused harbor 5 paused cobalt 19 failed indigo 72 paused birch 63 active indigo 999 active
birch 110 paused birch 60 paused harbor 5 paused cobalt 19 failed birch 63 active
indigo 37 failed amber 15 active amber 40 paused cobalt 101 ready grove 37 failed birch 2 paused indigo 999 active
amber 15 active amber 40 paused cobalt 101 ready grove 37 failed birch 2 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015450-p1
Display every line that does not contain the exact string 'indigo'.
$0 !~ /indigo/
birch 110 paused birch 60 paused harbor 5 paused cobalt 19 failed indigo 72 paused birch 63 active indigo 999 active
birch 110 paused birch 60 paused harbor 5 paused cobalt 19 failed birch 63 active
indigo 37 failed amber 15 active amber 40 paused cobalt 101 ready grove 37 failed birch 2 paused indigo 999 active
amber 15 active amber 40 paused cobalt 101 ready grove 37 failed birch 2 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015450
qwen/qwen3.7-plus
awkweave-0015451
Print lines 3 through 4, including both endpoints.
NR >= 3 && NR <= 4
eli birch 0 farah delta 58 lina indigo 107 kim grove 120 alice ember 67 kim ember 96 eli birch 5
lina indigo 107 kim grove 120
lina harbor 96 lina fable 99 hana indigo 38 dina harbor 15 ivan cobalt 112 lina fable 67
hana indigo 38 dina harbor 15
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015451-p1
Print lines 3 to 4, inclusive.
NR >= 3 && NR <= 4
eli birch 0 farah delta 58 lina indigo 107 kim grove 120 alice ember 67 kim ember 96 eli birch 5
lina indigo 107 kim grove 120
lina harbor 96 lina fable 99 hana indigo 38 dina harbor 15 ivan cobalt 112 lina fable 67
hana indigo 38 dina harbor 15
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015451
qwen/qwen3.7-plus
awkweave-0015452
Output only the first 3 records.
NR <= 3
chen 18 indigo lina 114 grove kim 11 ember eli 61 birch bruno 31 ember eli 102 amber alice 19 indigo gus 95 ember
chen 18 indigo lina 114 grove kim 11 ember
eli 30 ember gus 115 juniper ivan 99 delta kim 24 birch gus 116 ember kim 51 fable alice 37 juniper hana 5 birch gus 83 fable kim 20 grove
eli 30 ember gus 115 juniper ivan 99 delta
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015452-p1
Show only the first 3 records.
NR <= 3
chen 18 indigo lina 114 grove kim 11 ember eli 61 birch bruno 31 ember eli 102 amber alice 19 indigo gus 95 ember
chen 18 indigo lina 114 grove kim 11 ember
eli 30 ember gus 115 juniper ivan 99 delta kim 24 birch gus 116 ember kim 51 fable alice 37 juniper hana 5 birch gus 83 fable kim 20 grove
eli 30 ember gus 115 juniper ivan 99 delta
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015452
qwen/qwen3.7-plus
awkweave-0015453
Skip the first line and print every remaining line unchanged.
NR > 1
chen 34 harbor farah 81 harbor jules 36 grove chen 83 amber gus 40 ember chen 76 fable bruno 84 ember dina 16 fable dina 7 harbor
farah 81 harbor jules 36 grove chen 83 amber gus 40 ember chen 76 fable bruno 84 ember dina 16 fable dina 7 harbor
bruno 110 indigo alice 107 cobalt kim 79 cobalt alice 59 birch ivan 69 grove ivan 8 birch eli 73 birch ivan 94 juniper gus 118 juniper dina 110 birch
alice 107 cobalt kim 79 cobalt alice 59 birch ivan 69 grove ivan 8 birch eli 73 birch ivan 94 juniper gus 118 juniper dina 110 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015453-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
chen 34 harbor farah 81 harbor jules 36 grove chen 83 amber gus 40 ember chen 76 fable bruno 84 ember dina 16 fable dina 7 harbor
farah 81 harbor jules 36 grove chen 83 amber gus 40 ember chen 76 fable bruno 84 ember dina 16 fable dina 7 harbor
bruno 110 indigo alice 107 cobalt kim 79 cobalt alice 59 birch ivan 69 grove ivan 8 birch eli 73 birch ivan 94 juniper gus 118 juniper dina 110 birch
alice 107 cobalt kim 79 cobalt alice 59 birch ivan 69 grove ivan 8 birch eli 73 birch ivan 94 juniper gus 118 juniper dina 110 birch
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015453
qwen/qwen3.7-plus
awkweave-0015454
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
kim failed 109 farah pending 66 alice active 48 gus paused 86 kim paused 3 gus pending 21 hana paused 43 kim closed 84
1
alice pending 57 eli failed 81 ivan active 104 alice ready 0 farah ready 103 kim pending 23
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015454-p1
Count the number of records with 'failed' in column 2; output 0 if none exist.
$2 == "failed"{n++}END{print n+0}
kim failed 109 farah pending 66 alice active 48 gus paused 86 kim paused 3 gus pending 21 hana paused 43 kim closed 84
1
alice pending 57 eli failed 81 ivan active 104 alice ready 0 farah ready 103 kim pending 23
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015454
qwen/qwen3.7-plus
awkweave-0015455
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
hana 19 fable farah 1 juniper alice 10 juniper ivan 2 indigo farah 1 juniper gus 7 harbor
40
kim 16 amber hana 6 amber hana 26 delta farah 4 fable alice 6 indigo bruno 17 harbor farah 7 cobalt
82
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015455-p1
Compute and display the sum of integer values in column 2.
{s+=$2}END{print s+0}
hana 19 fable farah 1 juniper alice 10 juniper ivan 2 indigo farah 1 juniper gus 7 harbor
40
kim 16 amber hana 6 amber hana 26 delta farah 4 fable alice 6 indigo bruno 17 harbor farah 7 cobalt
82
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015455
qwen/qwen3.7-plus
awkweave-0015456
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
fable 11 lina delta 29 alice harbor 22 ivan birch 15 farah delta 15 eli juniper 3 ivan ember 30 farah
17.86
ember 1 gus ember 12 farah cobalt 14 jules ember 21 hana indigo 29 kim harbor 26 kim harbor 19 jules delta 18 ivan
17.50
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015456-p1
Calculate the average of column 2 and format it to two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
fable 11 lina delta 29 alice harbor 22 ivan birch 15 farah delta 15 eli juniper 3 ivan ember 30 farah
17.86
ember 1 gus ember 12 farah cobalt 14 jules ember 21 hana indigo 29 kim harbor 26 kim harbor 19 jules delta 18 ivan
17.50
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015456
qwen/qwen3.7-plus
awkweave-0015457
Find and print the smallest numeric value in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
22 hana juniper 27 alice ember 16 ivan indigo 10 kim grove 8 farah amber 28 gus amber 29 gus cobalt 4 chen indigo 6 chen juniper
4
3 hana fable 16 hana harbor 11 dina indigo 11 lina grove 16 ivan ember 7 dina juniper 12 alice cobalt 11 kim ember 8 farah fable 26 farah ember
3
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015457-p1
Identify and print the minimum numeric value found in column 1.
NR==1||$1<extreme{extreme=$1}END{print extreme}
22 hana juniper 27 alice ember 16 ivan indigo 10 kim grove 8 farah amber 28 gus amber 29 gus cobalt 4 chen indigo 6 chen juniper
4
3 hana fable 16 hana harbor 11 dina indigo 11 lina grove 16 ivan ember 7 dina juniper 12 alice cobalt 11 kim ember 8 farah fable 26 farah ember
3
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015457
qwen/qwen3.7-plus
awkweave-0015458
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
2 farah cobalt 5 ivan fable 26 kim ember 18 eli indigo 7 hana juniper 29 hana fable
29
13 kim grove 25 jules fable 20 ivan delta 30 chen birch 19 hana grove 16 alice ember 16 chen fable
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015458-p1
Identify and print the maximum numeric value found in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
2 farah cobalt 5 ivan fable 26 kim ember 18 eli indigo 7 hana juniper 29 hana fable
29
13 kim grove 25 jules fable 20 ivan delta 30 chen birch 19 hana grove 16 alice ember 16 chen fable
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015458
qwen/qwen3.7-plus
awkweave-0015459
Count all input records and print the total.
END{print NR}
eli 63 ivan 77 bruno 48 lina 61 chen 107 dina 25
6
kim 7 ivan 43 kim 112 eli 4 chen 118 dina 15 lina 66 bruno 65
8
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015459-p1
Count the total number of input records and print the result.
END{print NR}
eli 63 ivan 77 bruno 48 lina 61 chen 107 dina 25
6
kim 7 ivan 43 kim 112 eli 4 chen 118 dina 15 lina 66 bruno 65
8
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015459
qwen/qwen3.7-plus
awkweave-0015460
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
gus cobalt 69 dina fable 29 kim grove 93 hana ember 115 lina harbor 38 bruno cobalt 84 ivan fable 44 lina harbor 38 bruno ember 32 kim birch 111 gus ember 103
gus cobalt 69 dina fable 29 kim grove 93 hana ember 115 lina harbor 38 bruno cobalt 84 ivan fable 44 bruno ember 32 kim birch 111 gus ember 103
alice ember 93 hana ember 38 bruno delta 9 eli amber 13 bruno birch 13 ivan cobalt 72 jules ember 111 hana juniper 86 bruno birch 13 ivan delta 105 ivan birch 103
alice ember 93 hana ember 38 bruno delta 9 eli amber 13 bruno birch 13 ivan cobalt 72 jules ember 111 hana juniper 86 ivan delta 105 ivan birch 103
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015460-p1
Eliminate exact duplicate lines while maintaining the original sequence and keeping the first instance.
!seen[$0]++
gus cobalt 69 dina fable 29 kim grove 93 hana ember 115 lina harbor 38 bruno cobalt 84 ivan fable 44 lina harbor 38 bruno ember 32 kim birch 111 gus ember 103
gus cobalt 69 dina fable 29 kim grove 93 hana ember 115 lina harbor 38 bruno cobalt 84 ivan fable 44 bruno ember 32 kim birch 111 gus ember 103
alice ember 93 hana ember 38 bruno delta 9 eli amber 13 bruno birch 13 ivan cobalt 72 jules ember 111 hana juniper 86 bruno birch 13 ivan delta 105 ivan birch 103
alice ember 93 hana ember 38 bruno delta 9 eli amber 13 bruno birch 13 ivan cobalt 72 jules ember 111 hana juniper 86 ivan delta 105 ivan birch 103
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015460
qwen/qwen3.7-plus
awkweave-0015461
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
ivan grove 47 lina birch 89 ivan birch 112 alice harbor 35 hana indigo 98 lina birch 37 farah harbor 33
ivan grove 47 lina birch 89 alice harbor 35 hana indigo 98 farah harbor 33
jules birch 73 bruno indigo 23 dina grove 11 ivan grove 39 ivan delta 40 gus grove 20
jules birch 73 bruno indigo 23 dina grove 11 ivan grove 39 gus grove 20
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015461-p1
Retain only the initial line for every unique value found in column 1, preserving the input order.
!seen[$1]++
ivan grove 47 lina birch 89 ivan birch 112 alice harbor 35 hana indigo 98 lina birch 37 farah harbor 33
ivan grove 47 lina birch 89 alice harbor 35 hana indigo 98 farah harbor 33
jules birch 73 bruno indigo 23 dina grove 11 ivan grove 39 ivan delta 40 gus grove 20
jules birch 73 bruno indigo 23 dina grove 11 ivan grove 39 gus grove 20
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015461
qwen/qwen3.7-plus
awkweave-0015462
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
gus 6 grove alice 14 grove dina 24 cobalt jules 9 birch chen 28 grove eli 3 fable hana 30 delta lina 15 delta kim 11 grove
gus 6 alice 20 dina 44 jules 53 chen 81 eli 84 hana 114 lina 129 kim 140
jules 28 grove hana 18 harbor alice 14 ember chen 3 birch ivan 7 fable ivan 18 birch alice 23 ember
jules 28 hana 46 alice 60 chen 63 ivan 70 ivan 88 alice 111
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015462-p1
Output column 1 alongside the cumulative total of column 2 for each record, separated by a space.
{s+=$2;print $1,s}
gus 6 grove alice 14 grove dina 24 cobalt jules 9 birch chen 28 grove eli 3 fable hana 30 delta lina 15 delta kim 11 grove
gus 6 alice 20 dina 44 jules 53 chen 81 eli 84 hana 114 lina 129 kim 140
jules 28 grove hana 18 harbor alice 14 ember chen 3 birch ivan 7 fable ivan 18 birch alice 23 ember
jules 28 hana 46 alice 60 chen 63 ivan 70 ivan 88 alice 111
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015462
qwen/qwen3.7-plus
awkweave-0015463
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
dina 14 20 indigo dina 7 14 cobalt dina 17 30 indigo dina 2 11 juniper kim 17 2 delta ivan 12 23 harbor gus 8 10 fable
dina 34 dina 21 dina 47 dina 13 kim 19 ivan 35 gus 18
hana 26 26 cobalt gus 12 28 fable gus 9 22 harbor ivan 29 9 indigo dina 19 29 harbor hana 11 21 indigo lina 2 21 indigo lina 12 20 amber
hana 52 gus 40 gus 31 ivan 38 dina 48 hana 32 lina 23 lina 32
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015463-p1
For each row, display field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
dina 14 20 indigo dina 7 14 cobalt dina 17 30 indigo dina 2 11 juniper kim 17 2 delta ivan 12 23 harbor gus 8 10 fable
dina 34 dina 21 dina 47 dina 13 kim 19 ivan 35 gus 18
hana 26 26 cobalt gus 12 28 fable gus 9 22 harbor ivan 29 9 indigo dina 19 29 harbor hana 11 21 indigo lina 2 21 indigo lina 12 20 amber
hana 52 gus 40 gus 31 ivan 38 dina 48 hana 32 lina 23 lina 32
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015463
qwen/qwen3.7-plus
awkweave-0015464
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
bruno 2 farah 18 bruno 23 bruno 11 eli 26 lina 26 kim 3
bruno fail farah fail bruno fail bruno fail eli pass lina pass kim fail
chen 15 chen 14 eli 2 bruno 28 farah 19 alice 24 hana 20
chen fail chen fail eli fail bruno pass farah fail alice fail hana fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015464-p1
Output column 1 and 'pass' if column 2 is 25 or greater; otherwise, output 'fail'.
{print $1,($2>=25?"pass":"fail")}
bruno 2 farah 18 bruno 23 bruno 11 eli 26 lina 26 kim 3
bruno fail farah fail bruno fail bruno fail eli pass lina pass kim fail
chen 15 chen 14 eli 2 bruno 28 farah 19 alice 24 hana 20
chen fail chen fail eli fail bruno pass farah fail alice fail hana fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015464
qwen/qwen3.7-plus
awkweave-0015465
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
gus birch 17 hana juniper 35 gus amber 22 alice grove 28 chen harbor 99 hana delta 10 alice amber 18 gus amber 58 dina birch 68 hana amber 35
GUS HANA GUS ALICE CHEN HANA ALICE GUS DINA HANA
alice birch 50 kim delta 37 ivan amber 88 lina juniper 92 eli cobalt 5 hana amber 51 ivan ember 31
ALICE KIM IVAN LINA ELI HANA IVAN
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015465-p1
Transform column 1 to uppercase and output only that column.
{print toupper($1)}
gus birch 17 hana juniper 35 gus amber 22 alice grove 28 chen harbor 99 hana delta 10 alice amber 18 gus amber 58 dina birch 68 hana amber 35
GUS HANA GUS ALICE CHEN HANA ALICE GUS DINA HANA
alice birch 50 kim delta 37 ivan amber 88 lina juniper 92 eli cobalt 5 hana amber 51 ivan ember 31
ALICE KIM IVAN LINA ELI HANA IVAN
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015465
qwen/qwen3.7-plus
awkweave-0015466
From column 1, print 4 characters starting at character 1.
{print substr($1,1,4)}
delta 33 harbor 99 delta 48 cobalt 41 ember 45 harbor 92 birch 98 delta 11
delt harb delt coba embe harb birc delt
harbor 65 birch 57 amber 21 juniper 102 ember 56 juniper 114 cobalt 86 fable 18 harbor 11 indigo 51
harb birc ambe juni embe juni coba fabl harb indi
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015466-p1
Extract and print the first 4 characters from column 1, starting at position 1.
{print substr($1,1,4)}
delta 33 harbor 99 delta 48 cobalt 41 ember 45 harbor 92 birch 98 delta 11
delt harb delt coba embe harb birc delt
harbor 65 birch 57 amber 21 juniper 102 ember 56 juniper 114 cobalt 86 fable 18 harbor 11 indigo 51
harb birc ambe juni embe juni coba fabl harb indi
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015466
qwen/qwen3.7-plus
awkweave-0015467
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
birch_ember 89 harbor_juniper 39 cobalt_birch 84 grove_indigo 72 harbor_delta 52 juniper_ember 40
birch ember harbor juniper cobalt birch grove indigo harbor delta juniper ember
ember_indigo 115 ember_fable 62 indigo_harbor 68 juniper_juniper 108 grove_grove 111 amber_grove 113 harbor_harbor 24
ember indigo ember fable indigo harbor juniper juniper grove grove amber grove harbor harbor
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015467-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
birch_ember 89 harbor_juniper 39 cobalt_birch 84 grove_indigo 72 harbor_delta 52 juniper_ember 40
birch ember harbor juniper cobalt birch grove indigo harbor delta juniper ember
ember_indigo 115 ember_fable 62 indigo_harbor 68 juniper_juniper 108 grove_grove 111 amber_grove 113 harbor_harbor 24
ember indigo ember fable indigo harbor juniper juniper grove grove amber grove harbor harbor
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015467
qwen/qwen3.7-plus
awkweave-0015468
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)}
chen amber 82 closed dina birch 12 active alice amber 87 paused kim juniper 77 closed dina fable 52 paused eli ember 107 paused
closed 82 amber chen active 12 birch dina paused 87 amber alice closed 77 juniper kim paused 52 fable dina paused 107 ember eli
alice grove 61 closed bruno indigo 103 paused lina amber 107 closed hana indigo 12 ready hana ember 67 active kim harbor 58 closed ivan delta 0 failed
closed 61 grove alice paused 103 indigo bruno closed 107 amber lina ready 12 indigo hana active 67 ember hana closed 58 harbor kim failed 0 delta ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015468-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)}
chen amber 82 closed dina birch 12 active alice amber 87 paused kim juniper 77 closed dina fable 52 paused eli ember 107 paused
closed 82 amber chen active 12 birch dina paused 87 amber alice closed 77 juniper kim paused 52 fable dina paused 107 ember eli
alice grove 61 closed bruno indigo 103 paused lina amber 107 closed hana indigo 12 ready hana ember 67 active kim harbor 58 closed ivan delta 0 failed
closed 61 grove alice paused 103 indigo bruno closed 107 amber lina ready 12 indigo hana active 67 ember hana closed 58 harbor kim failed 0 delta ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015468
qwen/qwen3.7-plus
awkweave-0015469
Print the number of whitespace-separated fields on each line.
{print NF}
farah cobalt 90 closed hana cobalt 57 failed hana birch 69 ready alice birch 83 pending kim juniper 112 pending jules ember 22 active lina birch 98 closed lina cobalt 12 paused
4 4 4 4 4 4 4 4
eli cobalt 10 ready chen harbor 34 ready hana amber 17 pending lina fable 59 pending ivan indigo 48 pending dina ember 0 closed kim ember 89 ready kim cobalt 49 active bruno amber 39 paused chen indigo 36 closed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015469-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
farah cobalt 90 closed hana cobalt 57 failed hana birch 69 ready alice birch 83 pending kim juniper 112 pending jules ember 22 active lina birch 98 closed lina cobalt 12 paused
4 4 4 4 4 4 4 4
eli cobalt 10 ready chen harbor 34 ready hana amber 17 pending lina fable 59 pending ivan indigo 48 pending dina ember 0 closed kim ember 89 ready kim cobalt 49 active bruno amber 39 paused chen indigo 36 closed
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015469
qwen/qwen3.7-plus
awkweave-0015470
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]]}
bruno delta 88 farah gamma 34 kim delta 8 jules beta 12 gus delta 6 alice gamma 0 gus beta 23 alice delta 107
delta 4 gamma 2 beta 2
kim gamma 9 bruno delta 107 lina alpha 76 jules gamma 99 farah gamma 8 alice gamma 63 eli delta 4 gus gamma 22 gus gamma 31 alice beta 115
gamma 6 delta 2 alpha 1 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015470-p1
Tally the records for each distinct value in column 2, printing each value and its count in the 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]]}
bruno delta 88 farah gamma 34 kim delta 8 jules beta 12 gus delta 6 alice gamma 0 gus beta 23 alice delta 107
delta 4 gamma 2 beta 2
kim gamma 9 bruno delta 107 lina alpha 76 jules gamma 99 farah gamma 8 alice gamma 63 eli delta 4 gus gamma 22 gus gamma 31 alice beta 115
gamma 6 delta 2 alpha 1 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015470
qwen/qwen3.7-plus
awkweave-0015471
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]]}
dina alpha 30 alice beta 20 alice gamma 20 jules delta 17 hana gamma 7 ivan alpha 28 farah alpha 12 bruno gamma 18 kim beta 11 jules delta 15
alpha 70 beta 31 gamma 45 delta 32
ivan beta 28 jules delta 9 gus alpha 8 hana beta 2 alice beta 22 gus gamma 29
beta 52 delta 9 alpha 8 gamma 29
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015471-p1
Calculate the sum of column 3 for each category in column 2, displaying 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]]}
dina alpha 30 alice beta 20 alice gamma 20 jules delta 17 hana gamma 7 ivan alpha 28 farah alpha 12 bruno gamma 18 kim beta 11 jules delta 15
alpha 70 beta 31 gamma 45 delta 32
ivan beta 28 jules delta 9 gus alpha 8 hana beta 2 alice beta 22 gus gamma 29
beta 52 delta 9 alpha 8 gamma 29
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015471
qwen/qwen3.7-plus
awkweave-0015472
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]]}
beta cobalt 27 beta amber 12 alpha birch 14 alpha delta 111 delta indigo 93 alpha harbor 23 beta cobalt 71 beta grove 14 gamma juniper 45
beta 4 alpha 3
delta indigo 108 gamma indigo 117 delta harbor 24 delta indigo 73 gamma ember 81 gamma harbor 86 beta amber 45 gamma birch 81 beta cobalt 2
delta 3 gamma 4 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015472-p1
List each unique value from the first column along with its frequency, ordered by when it first appears.
{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]]}
beta cobalt 27 beta amber 12 alpha birch 14 alpha delta 111 delta indigo 93 alpha harbor 23 beta cobalt 71 beta grove 14 gamma juniper 45
beta 4 alpha 3
delta indigo 108 gamma indigo 117 delta harbor 24 delta indigo 73 gamma ember 81 gamma harbor 86 beta amber 45 gamma birch 81 beta cobalt 2
delta 3 gamma 4 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015472
qwen/qwen3.7-plus
awkweave-0015473
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"]}
region display_name score note r001 jules 28 ready r002 jules 4 paused r003 hana 26 closed r004 alice 27 paused r005 kim 28 closed r006 alice 7 pending r007 gus 29 ready
28 4 26 27 28 7 29
region display_name score note r001 farah 9 paused r002 dina 3 active r003 jules 23 failed r004 gus 3 failed r005 lina 16 failed r006 chen 16 closed r007 alice 3 pending r008 bruno 4 paused r009 dina 24 failed r010 kim 8 pending
9 3 23 3 16 16 3 4 24 8
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015473-p1
Skip the header row and output the values found in the score column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
region display_name score note r001 jules 28 ready r002 jules 4 paused r003 hana 26 closed r004 alice 27 paused r005 kim 28 closed r006 alice 7 pending r007 gus 29 ready
28 4 26 27 28 7 29
region display_name score note r001 farah 9 paused r002 dina 3 active r003 jules 23 failed r004 gus 3 failed r005 lina 16 failed r006 chen 16 closed r007 alice 3 pending r008 bruno 4 paused r009 dina 24 failed r010 kim 8 pending
9 3 23 3 16 16 3 4 24 8
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015473
qwen/qwen3.7-plus
awkweave-0015474
The first row is a header. Print display_name for data rows whose score is greater than 15.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>15{print $h["display_name"]}
record_id display_name score state r001 ivan 18 pending r002 hana 27 active r003 hana 17 closed r004 hana 11 pending r005 lina 13 failed r006 gus 3 failed r007 alice 28 closed r008 kim 22 failed r009 ivan 16 failed
ivan hana hana alice kim ivan
record_id display_name score state r001 jules 16 closed r002 chen 21 failed r003 hana 13 failed r004 chen 21 ready r005 farah 1 failed r006 hana 25 failed r007 ivan 28 pending
jules chen chen hana ivan
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015474-p1
Ignore the header line, then print the display_name field for any record where the score is strictly greater than 15.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>15{print $h["display_name"]}
record_id display_name score state r001 ivan 18 pending r002 hana 27 active r003 hana 17 closed r004 hana 11 pending r005 lina 13 failed r006 gus 3 failed r007 alice 28 closed r008 kim 22 failed r009 ivan 16 failed
ivan hana hana alice kim ivan
record_id display_name score state r001 jules 16 closed r002 chen 21 failed r003 hana 13 failed r004 chen 21 ready r005 farah 1 failed r006 hana 25 failed r007 ivan 28 pending
jules chen chen hana ivan
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015474
qwen/qwen3.7-plus
awkweave-0015475
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 18 pending kim 21 closed dina 27 closed ivan 12 active ivan 16 active gus 17 pending farah 15 active hana 9 paused bruno 13 closed
18 21 27 12 16 17 15 9 13
jules 13 closed jules 21 active ivan 22 failed lina 9 ready ivan 22 pending dina 14 ready gus 17 closed jules 9 ready
13 21 22 9 22 14 17 9
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015475-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 18 pending kim 21 closed dina 27 closed ivan 12 active ivan 16 active gus 17 pending farah 15 active hana 9 paused bruno 13 closed
18 21 27 12 16 17 15 9 13
jules 13 closed jules 21 active ivan 22 failed lina 9 ready ivan 22 pending dina 14 ready gus 17 closed jules 9 ready
13 21 22 9 22 14 17 9
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0015475
qwen/qwen3.7-plus
awkweave-0015476
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 10.
BEGIN{FS=OFS=","}$2>10{print $1}
farah,30,closed kim,20,ready lina,10,paused ivan,13,ready alice,3,failed hana,20,active eli,12,pending
farah kim ivan hana eli
dina,16,closed dina,6,failed chen,30,closed bruno,13,paused eli,21,closed eli,10,paused chen,28,failed bruno,16,paused lina,11,paused dina,5,active
dina chen bruno eli chen bruno lina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015476-p1
For simple CSV input without quoted commas, output the first column only if the second column's value is greater than 10.
BEGIN{FS=OFS=","}$2>10{print $1}
farah,30,closed kim,20,ready lina,10,paused ivan,13,ready alice,3,failed hana,20,active eli,12,pending
farah kim ivan hana eli
dina,16,closed dina,6,failed chen,30,closed bruno,13,paused eli,21,closed eli,10,paused chen,28,failed bruno,16,paused lina,11,paused dina,5,active
dina chen bruno eli chen bruno lina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015476
qwen/qwen3.7-plus
awkweave-0015477
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
chen cobalt 112 kim birch 103 farah fable 83 farah cobalt 23 eli birch 120 jules cobalt 119 hana juniper 117 dina grove 97 kim birch 94 chen grove 101
chen cobalt 112 kim birch 103 farah fable 83 farah cobalt 23 eli birch 120 jules cobalt 119 hana juniper 117 dina grove 97 kim birch 94 chen grove 101
chen grove 30 dina delta 64 jules ember 113 lina ember 8 farah birch 32 lina ember 41 eli birch 114 chen indigo 6 eli cobalt 24 gus harbor 5
chen grove 30 dina delta 64 jules ember 113 lina ember 8 farah birch 32 lina ember 41 eli birch 114 chen indigo 6 eli cobalt 24 gus harbor 5
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015477-p1
Remove leading and trailing whitespace from each line, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
chen cobalt 112 kim birch 103 farah fable 83 farah cobalt 23 eli birch 120 jules cobalt 119 hana juniper 117 dina grove 97 kim birch 94 chen grove 101
chen cobalt 112 kim birch 103 farah fable 83 farah cobalt 23 eli birch 120 jules cobalt 119 hana juniper 117 dina grove 97 kim birch 94 chen grove 101
chen grove 30 dina delta 64 jules ember 113 lina ember 8 farah birch 32 lina ember 41 eli birch 114 chen indigo 6 eli cobalt 24 gus harbor 5
chen grove 30 dina delta 64 jules ember 113 lina ember 8 farah birch 32 lina ember 41 eli birch 114 chen indigo 6 eli cobalt 24 gus harbor 5
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015477
qwen/qwen3.7-plus
awkweave-0015478
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan juniper 62 ready kim fable 9 paused eli cobalt 110 closed dina birch 108 failed ivan amber 63 failed hana fable 32 paused eli indigo 46 ready
ivan juniper 62 ready
jules fable 110 failed ivan birch 18 failed chen juniper 58 pending jules juniper 25 paused alice grove 96 closed farah delta 76 paused ivan fable 26 pending alice grove 60 failed farah ember 74 pending
chen juniper 58 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015478-p1
Identify and output the longest line in the input; if multiple lines share the maximum length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
ivan juniper 62 ready kim fable 9 paused eli cobalt 110 closed dina birch 108 failed ivan amber 63 failed hana fable 32 paused eli indigo 46 ready
ivan juniper 62 ready
jules fable 110 failed ivan birch 18 failed chen juniper 58 pending jules juniper 25 paused alice grove 96 closed farah delta 76 paused ivan fable 26 pending alice grove 60 failed farah ember 74 pending
chen juniper 58 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015478
qwen/qwen3.7-plus
awkweave-0015479
Print every 3rd line starting at line 3 (then line 6, and so on).
NR%3==0
gus 12 bruno 36 chen 45 farah 99 alice 5 jules 5 chen 88
chen 45 jules 5
dina 53 eli 88 kim 43 bruno 103 farah 63 alice 4 chen 69 alice 10 lina 3 hana 51
kim 43 alice 4 lina 3
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015479-p1
Output every third line of the input, beginning with line 3 (i.e., lines 3, 6, 9, etc.).
NR%3==0
gus 12 bruno 36 chen 45 farah 99 alice 5 jules 5 chen 88
chen 45 jules 5
dina 53 eli 88 kim 43 bruno 103 farah 63 alice 4 chen 69 alice 10 lina 3 hana 51
kim 43 alice 4 lina 3
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015479
qwen/qwen3.7-plus
awkweave-0015480
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
alpha birch 23 alpha grove 92 gamma grove 87 beta delta 45 gamma indigo 91 gamma birch 43 beta fable 61 delta birch 115 gamma amber 110
4
alpha cobalt 27 delta grove 49 alpha birch 78 gamma amber 49 alpha ember 6 delta ember 110 beta harbor 28
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015480-p1
Calculate the number of unique entries in the first column and print just that total count.
{if(!seen[$1]++)n++}END{print n+0}
alpha birch 23 alpha grove 92 gamma grove 87 beta delta 45 gamma indigo 91 gamma birch 43 beta fable 61 delta birch 115 gamma amber 110
4
alpha cobalt 27 delta grove 49 alpha birch 78 gamma amber 49 alpha ember 6 delta ember 110 beta harbor 28
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015480
qwen/qwen3.7-plus
awkweave-0015481
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}
alice 30 0 lina 23 25 hana 6 16 lina 10 15 lina 15 22 dina 23 24 hana 6 20 chen 27 5
lina 0.92 hana 0.38 lina 0.67 lina 0.68 dina 0.96 hana 0.30 chen 5.40
lina 28 0 kim 9 21 kim 5 29 farah 28 6 hana 23 26 jules 12 20 lina 17 30
kim 0.43 kim 0.17 farah 4.67 hana 0.88 jules 0.60 lina 0.57
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015481-p1
For each record, output the first column and the result of dividing the second column by the third (formatted to two decimal places), excluding any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
alice 30 0 lina 23 25 hana 6 16 lina 10 15 lina 15 22 dina 23 24 hana 6 20 chen 27 5
lina 0.92 hana 0.38 lina 0.67 lina 0.68 dina 0.96 hana 0.30 chen 5.40
lina 28 0 kim 9 21 kim 5 29 farah 28 6 hana 23 26 jules 12 20 lina 17 30
kim 0.43 kim 0.17 farah 4.67 hana 0.88 jules 0.60 lina 0.57
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015481
qwen/qwen3.7-plus
awkweave-0015482
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]}
hana juniper 22 jules fable 13 ivan cobalt 16 dina fable 22 eli ember 19 chen cobalt 25
chen cobalt 25 hana juniper 22 dina fable 22
farah amber 30 eli harbor 14 hana amber 24 farah grove 6 bruno juniper 2 chen fable 3 lina amber 25 hana indigo 15
farah amber 30 lina amber 25 hana amber 24
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015482-p1
Retrieve the top three records based on the highest numeric values in column 3, sorted in descending order; maintain the original input order for any 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]}
hana juniper 22 jules fable 13 ivan cobalt 16 dina fable 22 eli ember 19 chen cobalt 25
chen cobalt 25 hana juniper 22 dina fable 22
farah amber 30 eli harbor 14 hana amber 24 farah grove 6 bruno juniper 2 chen fable 3 lina amber 25 hana indigo 15
farah amber 30 lina amber 25 hana amber 24
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015482
qwen/qwen3.7-plus
awkweave-0015483
Select the 6th and 4th fields in that order.
{print $6, $4}
failed 5 19 birch cobalt 86 pending 75 119 ember juniper 77 failed 119 61 cobalt ember 114 ready 42 74 juniper grove 70 ready 67 63 amber birch 87 pending 78 81 delta juniper 65 closed 87 13 birch amber 21 closed 76 67 cobalt amber 25 closed 58 115 indigo ember 15 closed 106 33 fable ember 90
86 birch 77 ember 114 cobalt 70 juniper 87 amber 65 delta 21 birch 25 cobalt 15 indigo 90 fable
closed 53 13 juniper ember 17 active 22 39 indigo amber 112 ready 107 97 fable delta 120 ready 98 6 delta amber 105 paused 116 71 cobalt ember 35 closed 64 21 birch birch 81 failed 49 105 harbor indigo 63 ready 18 105 juniper grove 119
17 juniper 112 indigo 120 fable 105 delta 35 cobalt 81 birch 63 harbor 119 juniper
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015483-p1
Extract and print the 6th field followed by the 4th field.
{print $6, $4}
failed 5 19 birch cobalt 86 pending 75 119 ember juniper 77 failed 119 61 cobalt ember 114 ready 42 74 juniper grove 70 ready 67 63 amber birch 87 pending 78 81 delta juniper 65 closed 87 13 birch amber 21 closed 76 67 cobalt amber 25 closed 58 115 indigo ember 15 closed 106 33 fable ember 90
86 birch 77 ember 114 cobalt 70 juniper 87 amber 65 delta 21 birch 25 cobalt 15 indigo 90 fable
closed 53 13 juniper ember 17 active 22 39 indigo amber 112 ready 107 97 fable delta 120 ready 98 6 delta amber 105 paused 116 71 cobalt ember 35 closed 64 21 birch birch 81 failed 49 105 harbor indigo 63 ready 18 105 juniper grove 119
17 juniper 112 indigo 120 fable 105 delta 35 cobalt 81 birch 63 harbor 119 juniper
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015483
qwen/qwen3.7-plus
awkweave-0015484
Print the last field of every input line.
{print $NF}
birch cobalt paused bruno 20 indigo indigo pending farah 99 birch fable failed jules 93 cobalt harbor closed farah 65 birch juniper pending lina 118 amber delta active eli 77 cobalt fable pending eli 65
20 99 93 65 118 77 65
grove delta ready lina 32 cobalt delta ready chen 26 grove cobalt active alice 57 cobalt grove ready eli 78 birch ember ready lina 73 grove cobalt failed farah 99
32 26 57 78 73 99
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015484-p1
Output the final field from each input line.
{print $NF}
birch cobalt paused bruno 20 indigo indigo pending farah 99 birch fable failed jules 93 cobalt harbor closed farah 65 birch juniper pending lina 118 amber delta active eli 77 cobalt fable pending eli 65
20 99 93 65 118 77 65
grove delta ready lina 32 cobalt delta ready chen 26 grove cobalt active alice 57 cobalt grove ready eli 78 birch ember ready lina 73 grove cobalt failed farah 99
32 26 57 78 73 99
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015484
qwen/qwen3.7-plus
awkweave-0015485
Print the complete records where column 1 is less than 31.
$1 < 31
38 paused amber 116 failed birch 25 active amber 100 closed juniper 78 active indigo 91 active amber 77 active birch 8 paused ember 85 ready fable 67 pending amber
25 active amber 8 paused ember
36 closed delta 110 closed indigo 55 paused birch 102 closed amber 96 ready indigo 76 active amber 107 failed amber 20 ready cobalt 75 paused amber
20 ready cobalt
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015485-p1
Display full records where the value in the first column is strictly less than 31.
$1 < 31
38 paused amber 116 failed birch 25 active amber 100 closed juniper 78 active indigo 91 active amber 77 active birch 8 paused ember 85 ready fable 67 pending amber
25 active amber 8 paused ember
36 closed delta 110 closed indigo 55 paused birch 102 closed amber 96 ready indigo 76 active amber 107 failed amber 20 ready cobalt 75 paused amber
20 ready cobalt
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015485
qwen/qwen3.7-plus
awkweave-0015486
Show whole lines whose 2nd field is between 5 and 25, inclusive.
$2 >= 5 && $2 <= 25
active 5 birch ember active 11 juniper birch active 15 indigo cobalt active 4 juniper cobalt paused 29 juniper delta ready 1 grove amber closed 22 harbor juniper closed 25 indigo fable closed 4 indigo indigo ready 12 grove fable
active 5 birch ember active 11 juniper birch active 15 indigo cobalt closed 22 harbor juniper closed 25 indigo fable ready 12 grove fable
closed 5 amber indigo failed 27 cobalt cobalt ready 14 fable juniper closed 8 fable delta active 12 cobalt fable active 13 birch delta failed 8 indigo ember ready 21 grove harbor
closed 5 amber indigo ready 14 fable juniper closed 8 fable delta active 12 cobalt fable active 13 birch delta failed 8 indigo ember ready 21 grove harbor
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015486-p1
Show entire lines where the second field falls within the inclusive range of 5 to 25.
$2 >= 5 && $2 <= 25
active 5 birch ember active 11 juniper birch active 15 indigo cobalt active 4 juniper cobalt paused 29 juniper delta ready 1 grove amber closed 22 harbor juniper closed 25 indigo fable closed 4 indigo indigo ready 12 grove fable
active 5 birch ember active 11 juniper birch active 15 indigo cobalt closed 22 harbor juniper closed 25 indigo fable ready 12 grove fable
closed 5 amber indigo failed 27 cobalt cobalt ready 14 fable juniper closed 8 fable delta active 12 cobalt fable active 13 birch delta failed 8 indigo ember ready 21 grove harbor
closed 5 amber indigo ready 14 fable juniper closed 8 fable delta active 12 cobalt fable active 13 birch delta failed 8 indigo ember ready 21 grove harbor
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015486
qwen/qwen3.7-plus
awkweave-0015487
Print column 3 only for rows where column 2 is exactly paused.
$2 == "paused"{print $3}
39 pending jules indigo 105 active alice birch 22 pending chen amber 28 failed eli harbor 43 pending chen juniper 110 ready lina cobalt 53 paused jules juniper 83 active hana ember
jules
21 pending eli indigo 95 closed chen grove 10 closed chen fable 89 failed hana cobalt 32 paused chen indigo 50 ready eli juniper 44 paused hana birch 45 failed jules birch 29 ready bruno grove 71 active hana birch
chen hana
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015487-p1
Output only the third column for rows where the second column equals paused.
$2 == "paused"{print $3}
39 pending jules indigo 105 active alice birch 22 pending chen amber 28 failed eli harbor 43 pending chen juniper 110 ready lina cobalt 53 paused jules juniper 83 active hana ember
jules
21 pending eli indigo 95 closed chen grove 10 closed chen fable 89 failed hana cobalt 32 paused chen indigo 50 ready eli juniper 44 paused hana birch 45 failed jules birch 29 ready bruno grove 71 active hana birch
chen hana
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015487
qwen/qwen3.7-plus
awkweave-0015488
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
fable INFO 49 fable INFO 107 fable WARN 85 harbor DEBUG 106 ember ERROR 2 ember DEBUG 18
fable INFO 49 fable INFO 107
delta DEBUG 99 harbor INFO 46 amber INFO 79 harbor ERROR 75 harbor WARN 42 fable INFO 48 harbor INFO 95 delta DEBUG 119 fable INFO 2
harbor INFO 46 amber INFO 79 fable INFO 48 harbor INFO 95 fable INFO 2
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015488-p1
Print all fields for lines where the second field starts with INFO.
$2 ~ /^INFO/
fable INFO 49 fable INFO 107 fable WARN 85 harbor DEBUG 106 ember ERROR 2 ember DEBUG 18
fable INFO 49 fable INFO 107
delta DEBUG 99 harbor INFO 46 amber INFO 79 harbor ERROR 75 harbor WARN 42 fable INFO 48 harbor INFO 95 delta DEBUG 119 fable INFO 2
harbor INFO 46 amber INFO 79 fable INFO 48 harbor INFO 95 fable INFO 2
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015488
qwen/qwen3.7-plus
awkweave-0015489
Print every line except those containing the exact text grove.
$0 !~ /grove/
juniper 22 pending indigo 33 paused cobalt 73 active cobalt 88 pending fable 28 active juniper 97 failed fable 89 ready delta 77 closed grove 999 active
juniper 22 pending indigo 33 paused cobalt 73 active cobalt 88 pending fable 28 active juniper 97 failed fable 89 ready delta 77 closed
harbor 64 ready cobalt 30 ready ember 77 ready birch 88 pending delta 119 ready juniper 110 active grove 999 active
harbor 64 ready cobalt 30 ready ember 77 ready birch 88 pending delta 119 ready juniper 110 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0015489-p1
Output every line that does not contain the exact string grove.
$0 !~ /grove/
juniper 22 pending indigo 33 paused cobalt 73 active cobalt 88 pending fable 28 active juniper 97 failed fable 89 ready delta 77 closed grove 999 active
juniper 22 pending indigo 33 paused cobalt 73 active cobalt 88 pending fable 28 active juniper 97 failed fable 89 ready delta 77 closed
harbor 64 ready cobalt 30 ready ember 77 ready birch 88 pending delta 119 ready juniper 110 active grove 999 active
harbor 64 ready cobalt 30 ready ember 77 ready birch 88 pending delta 119 ready juniper 110 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0015489
qwen/qwen3.7-plus
awkweave-0015500
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
eli cobalt 111 jules grove 28 chen harbor 113 jules ember 39 chen ember 117 jules birch 9 farah ember 19 hana harbor 14
eli cobalt 111 jules grove 28 chen harbor 113 farah ember 19 hana harbor 14
alice delta 20 bruno juniper 10 ivan delta 75 bruno amber 44 eli indigo 61 chen ember 69
alice delta 20 bruno juniper 10 ivan delta 75 eli indigo 61 chen ember 69
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null