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-0023721-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
bruno 108 birch lina 47 harbor chen 49 amber ivan 94 fable ivan 20 grove bruno 86 ember gus 88 birch
lina 47 harbor chen 49 amber ivan 94 fable ivan 20 grove bruno 86 ember gus 88 birch
dina 107 fable gus 34 grove hana 85 birch ivan 104 cobalt eli 85 harbor jules 91 juniper farah 19 cobalt bruno 112 indigo lina 21 harbor kim 37 ember
gus 34 grove hana 85 birch ivan 104 cobalt eli 85 harbor jules 91 juniper farah 19 cobalt bruno 112 indigo lina 21 harbor kim 37 ember
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023721
qwen/qwen3.7-plus
awkweave-0023722
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
farah ready 80 dina failed 105 jules closed 49 jules failed 88 bruno ready 101 farah failed 99
0
dina closed 41 gus pending 65 chen failed 72 ivan paused 115 lina failed 30 chen paused 24
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023722-p1
Count the number of records where column 2 is active; output 0 if the count is zero.
$2 == "active"{n++}END{print n+0}
farah ready 80 dina failed 105 jules closed 49 jules failed 88 bruno ready 101 farah failed 99
0
dina closed 41 gus pending 65 chen failed 72 ivan paused 115 lina failed 30 chen paused 24
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023722
qwen/qwen3.7-plus
awkweave-0023723
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
2 kim cobalt 28 dina ember 25 gus birch 28 ivan amber 7 hana indigo 19 kim grove 8 kim cobalt 3 jules delta 25 gus grove
145
12 bruno juniper 11 jules delta 15 alice grove 24 alice indigo 14 chen grove 30 gus indigo 18 eli ember
124
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023723-p1
Compute and display the sum of integer values in column 1.
{s+=$1}END{print s+0}
2 kim cobalt 28 dina ember 25 gus birch 28 ivan amber 7 hana indigo 19 kim grove 8 kim cobalt 3 jules delta 25 gus grove
145
12 bruno juniper 11 jules delta 15 alice grove 24 alice indigo 14 chen grove 30 gus indigo 18 eli ember
124
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023723
qwen/qwen3.7-plus
awkweave-0023724
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
cobalt hana 2 amber gus 21 cobalt eli 27 birch farah 17 amber farah 8 indigo gus 6
13.50
ember eli 22 cobalt farah 7 birch farah 28 indigo hana 27 cobalt bruno 8 harbor gus 2
15.67
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023724-p1
Print the average of column 3, formatted to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
cobalt hana 2 amber gus 21 cobalt eli 27 birch farah 17 amber farah 8 indigo gus 6
13.50
ember eli 22 cobalt farah 7 birch farah 28 indigo hana 27 cobalt bruno 8 harbor gus 2
15.67
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023724
qwen/qwen3.7-plus
awkweave-0023725
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
eli 18 fable lina 10 ember jules 10 fable lina 20 harbor kim 8 indigo hana 12 birch eli 26 harbor chen 15 juniper bruno 28 delta gus 24 birch
8
bruno 17 fable hana 8 birch chen 20 indigo hana 24 birch chen 2 grove ivan 7 indigo kim 26 fable
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023725-p1
Identify and output the minimum numeric value found in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
eli 18 fable lina 10 ember jules 10 fable lina 20 harbor kim 8 indigo hana 12 birch eli 26 harbor chen 15 juniper bruno 28 delta gus 24 birch
8
bruno 17 fable hana 8 birch chen 20 indigo hana 24 birch chen 2 grove ivan 7 indigo kim 26 fable
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023725
qwen/qwen3.7-plus
awkweave-0023726
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
20 gus fable 18 ivan harbor 23 hana fable 26 alice cobalt 17 gus grove 25 jules ember
26
1 kim birch 11 kim delta 12 bruno harbor 4 gus juniper 24 ivan delta 22 kim ember 18 ivan grove 21 jules ember
24
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023726-p1
Identify and output the maximum numeric value found in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
20 gus fable 18 ivan harbor 23 hana fable 26 alice cobalt 17 gus grove 25 jules ember
26
1 kim birch 11 kim delta 12 bruno harbor 4 gus juniper 24 ivan delta 22 kim ember 18 ivan grove 21 jules ember
24
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023726
qwen/qwen3.7-plus
awkweave-0023727
Count all input records and print the total.
END{print NR}
alice 14 alice 88 kim 57 eli 23 gus 108 jules 52 jules 77 dina 92 eli 88 chen 110
10
bruno 41 kim 16 jules 91 lina 42 jules 26 gus 63 farah 79 bruno 13 eli 18
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023727-p1
Count the total number of input records and print the result.
END{print NR}
alice 14 alice 88 kim 57 eli 23 gus 108 jules 52 jules 77 dina 92 eli 88 chen 110
10
bruno 41 kim 16 jules 91 lina 42 jules 26 gus 63 farah 79 bruno 13 eli 18
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023727
qwen/qwen3.7-plus
awkweave-0023728
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
eli birch 61 dina harbor 44 chen birch 6 hana cobalt 46 hana cobalt 46 bruno harbor 45 bruno ember 82 ivan cobalt 99 eli birch 120 hana amber 16 hana juniper 25
eli birch 61 dina harbor 44 chen birch 6 hana cobalt 46 bruno harbor 45 bruno ember 82 ivan cobalt 99 eli birch 120 hana amber 16 hana juniper 25
lina juniper 110 alice juniper 80 eli fable 6 chen fable 109 ivan delta 7 hana amber 55 eli cobalt 13 lina ember 83 lina ember 83 eli birch 5
lina juniper 110 alice juniper 80 eli fable 6 chen fable 109 ivan delta 7 hana amber 55 eli cobalt 13 lina ember 83 eli birch 5
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023728-p1
Eliminate exact duplicate lines while keeping the first occurrence and maintaining the original sequence.
!seen[$0]++
eli birch 61 dina harbor 44 chen birch 6 hana cobalt 46 hana cobalt 46 bruno harbor 45 bruno ember 82 ivan cobalt 99 eli birch 120 hana amber 16 hana juniper 25
eli birch 61 dina harbor 44 chen birch 6 hana cobalt 46 bruno harbor 45 bruno ember 82 ivan cobalt 99 eli birch 120 hana amber 16 hana juniper 25
lina juniper 110 alice juniper 80 eli fable 6 chen fable 109 ivan delta 7 hana amber 55 eli cobalt 13 lina ember 83 lina ember 83 eli birch 5
lina juniper 110 alice juniper 80 eli fable 6 chen fable 109 ivan delta 7 hana amber 55 eli cobalt 13 lina ember 83 eli birch 5
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023728
qwen/qwen3.7-plus
awkweave-0023729
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
hana amber 43 lina delta 32 alice harbor 40 lina ember 28 eli birch 70 gus harbor 78 ivan indigo 101 lina juniper 20 lina cobalt 65 eli delta 39
hana amber 43 lina delta 32 alice harbor 40 eli birch 70 gus harbor 78 ivan indigo 101
lina amber 33 ivan harbor 7 farah birch 28 kim juniper 64 ivan amber 56 chen indigo 83 alice ember 95 bruno birch 24 ivan cobalt 53 bruno harbor 6
lina amber 33 ivan harbor 7 farah birch 28 kim juniper 64 chen indigo 83 alice ember 95 bruno birch 24
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023729-p1
Retain only the first line for each unique value in column 1, preserving the input order.
!seen[$1]++
hana amber 43 lina delta 32 alice harbor 40 lina ember 28 eli birch 70 gus harbor 78 ivan indigo 101 lina juniper 20 lina cobalt 65 eli delta 39
hana amber 43 lina delta 32 alice harbor 40 eli birch 70 gus harbor 78 ivan indigo 101
lina amber 33 ivan harbor 7 farah birch 28 kim juniper 64 ivan amber 56 chen indigo 83 alice ember 95 bruno birch 24 ivan cobalt 53 bruno harbor 6
lina amber 33 ivan harbor 7 farah birch 28 kim juniper 64 chen indigo 83 alice ember 95 bruno birch 24
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023729
qwen/qwen3.7-plus
awkweave-0023730
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
kim 24 fable ivan 21 birch alice 29 cobalt lina 7 grove ivan 26 cobalt farah 7 cobalt
kim 24 ivan 45 alice 74 lina 81 ivan 107 farah 114
ivan 28 delta eli 8 grove farah 2 harbor eli 27 ember alice 8 amber alice 18 juniper hana 6 juniper lina 9 ember
ivan 28 eli 36 farah 38 eli 65 alice 73 alice 91 hana 97 lina 106
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023730-p1
Output the first column and the cumulative total of the second column for each record, separated by a space.
{s+=$2;print $1,s}
kim 24 fable ivan 21 birch alice 29 cobalt lina 7 grove ivan 26 cobalt farah 7 cobalt
kim 24 ivan 45 alice 74 lina 81 ivan 107 farah 114
ivan 28 delta eli 8 grove farah 2 harbor eli 27 ember alice 8 amber alice 18 juniper hana 6 juniper lina 9 ember
ivan 28 eli 36 farah 38 eli 65 alice 73 alice 91 hana 97 lina 106
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023730
qwen/qwen3.7-plus
awkweave-0023731
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
jules 21 29 juniper chen 5 5 fable farah 1 9 amber alice 29 12 ember ivan 25 29 cobalt dina 12 15 grove jules 5 3 cobalt jules 19 5 birch farah 24 11 birch
jules 50 chen 10 farah 10 alice 41 ivan 54 dina 27 jules 8 jules 24 farah 35
hana 11 11 fable gus 7 21 ember gus 3 3 ember lina 10 16 juniper ivan 18 5 juniper jules 4 9 cobalt eli 4 7 ember jules 21 9 fable gus 30 16 amber kim 19 13 ember
hana 22 gus 28 gus 6 lina 26 ivan 23 jules 13 eli 11 jules 30 gus 46 kim 32
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023731-p1
For every row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
jules 21 29 juniper chen 5 5 fable farah 1 9 amber alice 29 12 ember ivan 25 29 cobalt dina 12 15 grove jules 5 3 cobalt jules 19 5 birch farah 24 11 birch
jules 50 chen 10 farah 10 alice 41 ivan 54 dina 27 jules 8 jules 24 farah 35
hana 11 11 fable gus 7 21 ember gus 3 3 ember lina 10 16 juniper ivan 18 5 juniper jules 4 9 cobalt eli 4 7 ember jules 21 9 fable gus 30 16 amber kim 19 13 ember
hana 22 gus 28 gus 6 lina 26 ivan 23 jules 13 eli 11 jules 30 gus 46 kim 32
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023731
qwen/qwen3.7-plus
awkweave-0023732
Print column 1 and pass when column 2 is at least 27; otherwise print fail.
{print $1,($2>=27?"pass":"fail")}
dina 23 bruno 2 alice 23 farah 10 dina 2 bruno 25 chen 29 bruno 14 dina 14 kim 6
dina fail bruno fail alice fail farah fail dina fail bruno fail chen pass bruno fail dina fail kim fail
chen 13 ivan 7 bruno 19 farah 2 hana 9 dina 22 jules 1
chen fail ivan fail bruno fail farah fail hana fail dina fail jules fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023732-p1
Print the first column; if the second column is 27 or greater, output 'pass', otherwise output 'fail'.
{print $1,($2>=27?"pass":"fail")}
dina 23 bruno 2 alice 23 farah 10 dina 2 bruno 25 chen 29 bruno 14 dina 14 kim 6
dina fail bruno fail alice fail farah fail dina fail bruno fail chen pass bruno fail dina fail kim fail
chen 13 ivan 7 bruno 19 farah 2 hana 9 dina 22 jules 1
chen fail ivan fail bruno fail farah fail hana fail dina fail jules fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023732
qwen/qwen3.7-plus
awkweave-0023733
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
gus harbor 120 jules amber 48 gus cobalt 2 lina juniper 1 farah grove 8 eli harbor 105
HARBOR AMBER COBALT JUNIPER GROVE HARBOR
farah juniper 111 gus birch 76 bruno grove 102 chen birch 112 dina amber 33 chen birch 67 chen cobalt 97 alice delta 112 hana birch 44
JUNIPER BIRCH GROVE BIRCH AMBER BIRCH COBALT DELTA BIRCH
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023733-p1
Transform the second column to uppercase and output only that column.
{print toupper($2)}
gus harbor 120 jules amber 48 gus cobalt 2 lina juniper 1 farah grove 8 eli harbor 105
HARBOR AMBER COBALT JUNIPER GROVE HARBOR
farah juniper 111 gus birch 76 bruno grove 102 chen birch 112 dina amber 33 chen birch 67 chen cobalt 97 alice delta 112 hana birch 44
JUNIPER BIRCH GROVE BIRCH AMBER BIRCH COBALT DELTA BIRCH
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023733
qwen/qwen3.7-plus
awkweave-0023734
From column 1, print 2 characters starting at character 2.
{print substr($1,2,2)}
cobalt 54 ember 0 delta 100 ember 94 amber 95 grove 101 indigo 77 grove 111
ob mb el mb mb ro nd ro
delta 36 juniper 59 ember 26 indigo 18 birch 59 ember 48 birch 50 indigo 80
el un mb nd ir mb ir nd
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023734-p1
Extract and print a 2-character substring from the first column, starting at the second character.
{print substr($1,2,2)}
cobalt 54 ember 0 delta 100 ember 94 amber 95 grove 101 indigo 77 grove 111
ob mb el mb mb ro nd ro
delta 36 juniper 59 ember 26 indigo 18 birch 59 ember 48 birch 50 indigo 80
el un mb nd ir mb ir nd
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023734
qwen/qwen3.7-plus
awkweave-0023735
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
cobalt_grove 58 juniper_ember 30 juniper_juniper 96 delta_amber 47 amber_ember 63 ember_juniper 10 fable_fable 80 cobalt_juniper 101
cobalt grove juniper ember juniper juniper delta amber amber ember ember juniper fable fable cobalt juniper
amber_juniper 15 juniper_harbor 86 delta_birch 67 amber_amber 78 cobalt_fable 18 birch_indigo 110
amber juniper juniper harbor delta birch amber amber cobalt fable birch indigo
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023735-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
cobalt_grove 58 juniper_ember 30 juniper_juniper 96 delta_amber 47 amber_ember 63 ember_juniper 10 fable_fable 80 cobalt_juniper 101
cobalt grove juniper ember juniper juniper delta amber amber ember ember juniper fable fable cobalt juniper
amber_juniper 15 juniper_harbor 86 delta_birch 67 amber_amber 78 cobalt_fable 18 birch_indigo 110
amber juniper juniper harbor delta birch amber amber cobalt fable birch indigo
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023735
qwen/qwen3.7-plus
awkweave-0023736
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)}
lina cobalt 20 failed farah indigo 112 paused kim indigo 104 paused bruno juniper 116 ready eli birch 75 active chen juniper 5 ready kim cobalt 79 closed lina cobalt 86 paused kim fable 44 ready
failed 20 cobalt lina paused 112 indigo farah paused 104 indigo kim ready 116 juniper bruno active 75 birch eli ready 5 juniper chen closed 79 cobalt kim paused 86 cobalt lina ready 44 fable kim
lina juniper 80 pending jules juniper 75 failed jules grove 119 ready hana harbor 14 failed ivan amber 84 pending ivan fable 20 ready bruno fable 95 ready jules cobalt 47 failed jules delta 55 pending lina juniper 76 paused
pending 80 juniper lina failed 75 juniper jules ready 119 grove jules failed 14 harbor hana pending 84 amber ivan ready 20 fable ivan ready 95 fable bruno failed 47 cobalt jules pending 55 delta jules paused 76 juniper lina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023736-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)}
lina cobalt 20 failed farah indigo 112 paused kim indigo 104 paused bruno juniper 116 ready eli birch 75 active chen juniper 5 ready kim cobalt 79 closed lina cobalt 86 paused kim fable 44 ready
failed 20 cobalt lina paused 112 indigo farah paused 104 indigo kim ready 116 juniper bruno active 75 birch eli ready 5 juniper chen closed 79 cobalt kim paused 86 cobalt lina ready 44 fable kim
lina juniper 80 pending jules juniper 75 failed jules grove 119 ready hana harbor 14 failed ivan amber 84 pending ivan fable 20 ready bruno fable 95 ready jules cobalt 47 failed jules delta 55 pending lina juniper 76 paused
pending 80 juniper lina failed 75 juniper jules ready 119 grove jules failed 14 harbor hana pending 84 amber ivan ready 20 fable ivan ready 95 fable bruno failed 47 cobalt jules pending 55 delta jules paused 76 juniper lina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023736
qwen/qwen3.7-plus
awkweave-0023737
Print the number of whitespace-separated fields on each line.
{print NF}
ivan grove 22 paused lina amber 95 ready dina cobalt 38 ready eli harbor 45 failed dina ember 80 ready dina harbor 25 failed ivan ember 71 active eli ember 113 failed ivan fable 114 failed
4 4 4 4 4 4 4 4 4
farah fable 7 paused chen juniper 81 ready hana cobalt 63 closed farah fable 113 pending dina amber 63 active eli juniper 8 closed
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023737-p1
Output the count of whitespace-delimited fields for each line.
{print NF}
ivan grove 22 paused lina amber 95 ready dina cobalt 38 ready eli harbor 45 failed dina ember 80 ready dina harbor 25 failed ivan ember 71 active eli ember 113 failed ivan fable 114 failed
4 4 4 4 4 4 4 4 4
farah fable 7 paused chen juniper 81 ready hana cobalt 63 closed farah fable 113 pending dina amber 63 active eli juniper 8 closed
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023737
qwen/qwen3.7-plus
awkweave-0023738
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]]}
hana gamma 77 alice alpha 49 eli gamma 29 kim beta 84 kim gamma 76 bruno alpha 16 alice gamma 15 alice gamma 24
gamma 5 alpha 2 beta 1
hana alpha 37 gus alpha 31 kim gamma 96 farah beta 37 jules gamma 90 chen beta 120 bruno alpha 21
alpha 3 gamma 2 beta 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023738-p1
Tally the records for each unique value in the second column. Print each value alongside 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]]}
hana gamma 77 alice alpha 49 eli gamma 29 kim beta 84 kim gamma 76 bruno alpha 16 alice gamma 15 alice gamma 24
gamma 5 alpha 2 beta 1
hana alpha 37 gus alpha 31 kim gamma 96 farah beta 37 jules gamma 90 chen beta 120 bruno alpha 21
alpha 3 gamma 2 beta 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023738
qwen/qwen3.7-plus
awkweave-0023739
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]]}
ivan alpha 18 jules beta 26 eli gamma 25 jules beta 12 ivan beta 4 dina alpha 16
alpha 34 beta 42 gamma 25
gus alpha 14 hana beta 22 dina alpha 12 chen alpha 24 alice gamma 28 kim alpha 7 farah gamma 14 bruno alpha 18
alpha 75 beta 22 gamma 42
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023739-p1
Calculate the sum of the third column for each category in the second column, printing 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]]}
ivan alpha 18 jules beta 26 eli gamma 25 jules beta 12 ivan beta 4 dina alpha 16
alpha 34 beta 42 gamma 25
gus alpha 14 hana beta 22 dina alpha 12 chen alpha 24 alice gamma 28 kim alpha 7 farah gamma 14 bruno alpha 18
alpha 75 beta 22 gamma 42
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023739
qwen/qwen3.7-plus
awkweave-0023740
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 harbor 77 gamma harbor 120 gamma birch 106 alpha harbor 49 beta fable 87 beta delta 57 gamma ember 2 alpha indigo 30 alpha indigo 51
beta 3 gamma 3 alpha 3
delta indigo 75 gamma delta 97 alpha amber 69 gamma juniper 81 delta juniper 0 beta grove 117 beta juniper 93 gamma indigo 10
delta 2 gamma 3 beta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023740-p1
List each duplicate value from the first column along with its occurrence count, sorted by first appearance.
{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 harbor 77 gamma harbor 120 gamma birch 106 alpha harbor 49 beta fable 87 beta delta 57 gamma ember 2 alpha indigo 30 alpha indigo 51
beta 3 gamma 3 alpha 3
delta indigo 75 gamma delta 97 alpha amber 69 gamma juniper 81 delta juniper 0 beta grove 117 beta juniper 93 gamma indigo 10
delta 2 gamma 3 beta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023740
qwen/qwen3.7-plus
awkweave-0023741
The first row is a header. Print the state column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
display_name state score region r001 ivan 7 failed r002 lina 15 pending r003 jules 21 paused r004 chen 5 active r005 alice 28 closed r006 gus 29 pending r007 dina 8 ready r008 ivan 12 paused r009 bruno 2 paused
ivan lina jules chen alice gus dina ivan bruno
display_name state score region r001 alice 12 pending r002 jules 28 active r003 bruno 22 ready r004 ivan 4 failed r005 alice 29 closed r006 chen 20 paused r007 eli 28 active r008 farah 9 pending
alice jules bruno ivan alice chen eli farah
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023741-p1
Skip the header row and print the state column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
display_name state score region r001 ivan 7 failed r002 lina 15 pending r003 jules 21 paused r004 chen 5 active r005 alice 28 closed r006 gus 29 pending r007 dina 8 ready r008 ivan 12 paused r009 bruno 2 paused
ivan lina jules chen alice gus dina ivan bruno
display_name state score region r001 alice 12 pending r002 jules 28 active r003 bruno 22 ready r004 ivan 4 failed r005 alice 29 closed r006 chen 20 paused r007 eli 28 active r008 farah 9 pending
alice jules bruno ivan alice chen eli farah
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023741
qwen/qwen3.7-plus
awkweave-0023742
The first row is a header. Print display_name for data rows whose score is greater than 8.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>8{print $h["display_name"]}
record_id display_name score state r001 dina 28 pending r002 bruno 29 ready r003 gus 15 paused r004 lina 20 active r005 kim 26 paused r006 kim 27 ready
dina bruno gus lina kim kim
record_id display_name score state r001 alice 30 pending r002 jules 9 ready r003 ivan 21 paused r004 farah 29 ready r005 chen 22 pending r006 dina 18 active r007 ivan 14 failed r008 alice 22 active r009 eli 26 ready
alice jules ivan farah chen dina ivan alice eli
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023742-p1
Treat the first line as a header and output the display_name field for all subsequent rows where the score exceeds 8.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>8{print $h["display_name"]}
record_id display_name score state r001 dina 28 pending r002 bruno 29 ready r003 gus 15 paused r004 lina 20 active r005 kim 26 paused r006 kim 27 ready
dina bruno gus lina kim kim
record_id display_name score state r001 alice 30 pending r002 jules 9 ready r003 ivan 21 paused r004 farah 29 ready r005 chen 22 pending r006 dina 18 active r007 ivan 14 failed r008 alice 22 active r009 eli 26 ready
alice jules ivan farah chen dina ivan alice eli
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023742
qwen/qwen3.7-plus
awkweave-0023743
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 26 pending chen 16 closed jules 27 active alice 5 active hana 16 closed chen 8 active dina 22 failed dina 1 ready kim 15 paused
26 16 27 5 16 8 22 1 15
jules 10 failed farah 21 ready bruno 24 active eli 14 paused farah 27 closed ivan 20 failed lina 2 active
10 21 24 14 27 20 2
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023743-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
ivan 26 pending chen 16 closed jules 27 active alice 5 active hana 16 closed chen 8 active dina 22 failed dina 1 ready kim 15 paused
26 16 27 5 16 8 22 1 15
jules 10 failed farah 21 ready bruno 24 active eli 14 paused farah 27 closed ivan 20 failed lina 2 active
10 21 24 14 27 20 2
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0023743
qwen/qwen3.7-plus
awkweave-0023744
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}
gus,19,paused eli,28,ready alice,5,pending alice,9,failed jules,26,failed hana,24,paused eli,28,closed
gus eli jules hana eli
kim,30,active dina,1,active alice,28,failed ivan,1,failed alice,2,pending jules,9,active kim,5,pending kim,11,active alice,17,paused jules,16,failed
kim alice
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023744-p1
Process simple comma-separated values without quoted commas; output the first column only if the second column is greater than 17.
BEGIN{FS=OFS=","}$2>17{print $1}
gus,19,paused eli,28,ready alice,5,pending alice,9,failed jules,26,failed hana,24,paused eli,28,closed
gus eli jules hana eli
kim,30,active dina,1,active alice,28,failed ivan,1,failed alice,2,pending jules,9,active kim,5,pending kim,11,active alice,17,paused jules,16,failed
kim alice
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023744
qwen/qwen3.7-plus
awkweave-0023745
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan amber 115 eli birch 66 ivan grove 23 bruno fable 74 jules amber 16 chen fable 8 gus indigo 59 kim indigo 62 lina grove 94
ivan amber 115 eli birch 66 ivan grove 23 bruno fable 74 jules amber 16 chen fable 8 gus indigo 59 kim indigo 62 lina grove 94
farah grove 117 dina grove 89 kim delta 34 jules juniper 22 jules cobalt 34 bruno harbor 120 alice indigo 29 ivan fable 107
farah grove 117 dina grove 89 kim delta 34 jules juniper 22 jules cobalt 34 bruno harbor 120 alice indigo 29 ivan fable 107
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023745-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
ivan amber 115 eli birch 66 ivan grove 23 bruno fable 74 jules amber 16 chen fable 8 gus indigo 59 kim indigo 62 lina grove 94
ivan amber 115 eli birch 66 ivan grove 23 bruno fable 74 jules amber 16 chen fable 8 gus indigo 59 kim indigo 62 lina grove 94
farah grove 117 dina grove 89 kim delta 34 jules juniper 22 jules cobalt 34 bruno harbor 120 alice indigo 29 ivan fable 107
farah grove 117 dina grove 89 kim delta 34 jules juniper 22 jules cobalt 34 bruno harbor 120 alice indigo 29 ivan fable 107
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023745
qwen/qwen3.7-plus
awkweave-0023746
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
hana cobalt 68 failed ivan harbor 108 closed eli fable 88 ready bruno indigo 120 ready dina juniper 87 closed bruno birch 39 pending alice fable 64 active hana fable 26 paused
ivan harbor 108 closed
hana amber 119 pending bruno ember 80 failed ivan delta 106 ready ivan juniper 61 failed dina fable 91 active ivan indigo 88 paused kim delta 90 closed chen indigo 89 active
hana amber 119 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023746-p1
Identify and output the longest line from the input; in case of a tie in length, select the first occurrence.
{if(length($0)>length(best))best=$0}END{print best}
hana cobalt 68 failed ivan harbor 108 closed eli fable 88 ready bruno indigo 120 ready dina juniper 87 closed bruno birch 39 pending alice fable 64 active hana fable 26 paused
ivan harbor 108 closed
hana amber 119 pending bruno ember 80 failed ivan delta 106 ready ivan juniper 61 failed dina fable 91 active ivan indigo 88 paused kim delta 90 closed chen indigo 89 active
hana amber 119 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023746
qwen/qwen3.7-plus
awkweave-0023747
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
farah 87 hana 24 dina 47 ivan 54 jules 106 bruno 16 eli 42 dina 12 dina 107
farah 87 dina 47 jules 106 eli 42 dina 107
gus 88 farah 110 ivan 23 dina 64 ivan 81 chen 93 eli 112 chen 15 eli 102
gus 88 ivan 23 ivan 81 eli 112 eli 102
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023747-p1
Output every other line starting from the first line (i.e., lines 1, 3, 5, etc.).
NR%2==1
farah 87 hana 24 dina 47 ivan 54 jules 106 bruno 16 eli 42 dina 12 dina 107
farah 87 dina 47 jules 106 eli 42 dina 107
gus 88 farah 110 ivan 23 dina 64 ivan 81 chen 93 eli 112 chen 15 eli 102
gus 88 ivan 23 ivan 81 eli 112 eli 102
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023747
qwen/qwen3.7-plus
awkweave-0023748
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta fable 76 delta ember 38 alpha grove 81 delta birch 47 delta birch 114 gamma delta 87
5
gamma harbor 25 delta cobalt 65 alpha amber 59 alpha delta 9 gamma cobalt 98 gamma fable 20 gamma fable 49 alpha harbor 86 beta grove 93
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023748-p1
Calculate the number of unique values in the second column and print only that total count.
{if(!seen[$2]++)n++}END{print n+0}
beta fable 76 delta ember 38 alpha grove 81 delta birch 47 delta birch 114 gamma delta 87
5
gamma harbor 25 delta cobalt 65 alpha amber 59 alpha delta 9 gamma cobalt 98 gamma fable 20 gamma fable 49 alpha harbor 86 beta grove 93
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023748
qwen/qwen3.7-plus
awkweave-0023749
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 1 0 hana 20 24 farah 21 14 hana 17 26 chen 24 1 jules 2 27 farah 23 26 lina 20 4 eli 25 7
hana 0.83 farah 1.50 hana 0.65 chen 24.00 jules 0.07 farah 0.88 lina 5.00 eli 3.57
alice 2 0 ivan 9 28 ivan 17 16 bruno 23 7 jules 4 9 kim 5 28 chen 29 10 farah 17 21
ivan 0.32 ivan 1.06 bruno 3.29 jules 0.44 kim 0.18 chen 2.90 farah 0.81
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023749-p1
For each row, output the first column and the result of dividing the second column by the third column rounded to two decimal places, skipping any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
alice 1 0 hana 20 24 farah 21 14 hana 17 26 chen 24 1 jules 2 27 farah 23 26 lina 20 4 eli 25 7
hana 0.83 farah 1.50 hana 0.65 chen 24.00 jules 0.07 farah 0.88 lina 5.00 eli 3.57
alice 2 0 ivan 9 28 ivan 17 16 bruno 23 7 jules 4 9 kim 5 28 chen 29 10 farah 17 21
ivan 0.32 ivan 1.06 bruno 3.29 jules 0.44 kim 0.18 chen 2.90 farah 0.81
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023749
qwen/qwen3.7-plus
awkweave-0023750
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 delta 6 jules juniper 13 kim amber 22 farah indigo 3 jules harbor 3 lina harbor 22 hana fable 30 ivan indigo 20
hana fable 30 kim amber 22 lina harbor 22
alice amber 15 dina birch 9 kim delta 11 dina grove 4 farah fable 22 bruno birch 14 hana harbor 10 alice amber 7 farah juniper 4
farah fable 22 alice amber 15 bruno birch 14
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023750-p1
Output the top three records based on the highest numeric values in the third column, 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]}
bruno delta 6 jules juniper 13 kim amber 22 farah indigo 3 jules harbor 3 lina harbor 22 hana fable 30 ivan indigo 20
hana fable 30 kim amber 22 lina harbor 22
alice amber 15 dina birch 9 kim delta 11 dina grove 4 farah fable 22 bruno birch 14 hana harbor 10 alice amber 7 farah juniper 4
farah fable 22 alice amber 15 bruno birch 14
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023750
qwen/qwen3.7-plus
awkweave-0023751
Select the 3rd and 1st fields in that order.
{print $3, $1}
52 amber paused lina 39 indigo ready ivan 113 cobalt paused dina 82 juniper failed dina 2 harbor active bruno 16 fable ready jules 100 juniper pending eli 119 juniper pending chen 110 amber paused alice 84 juniper active lina
paused 52 ready 39 paused 113 failed 82 active 2 ready 16 pending 100 pending 119 paused 110 active 84
38 amber ready jules 57 juniper active gus 109 juniper closed dina 81 indigo failed eli 16 fable closed lina 115 harbor pending farah
ready 38 active 57 closed 109 failed 81 closed 16 pending 115
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023751-p1
Extract and print the third field followed by the first field.
{print $3, $1}
52 amber paused lina 39 indigo ready ivan 113 cobalt paused dina 82 juniper failed dina 2 harbor active bruno 16 fable ready jules 100 juniper pending eli 119 juniper pending chen 110 amber paused alice 84 juniper active lina
paused 52 ready 39 paused 113 failed 82 active 2 ready 16 pending 100 pending 119 paused 110 active 84
38 amber ready jules 57 juniper active gus 109 juniper closed dina 81 indigo failed eli 16 fable closed lina 115 harbor pending farah
ready 38 active 57 closed 109 failed 81 closed 16 pending 115
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023751
qwen/qwen3.7-plus
awkweave-0023752
Print the last field of every input line.
{print $NF}
closed eli 64 paused active 71 paused bruno 8 failed paused 82 failed bruno 115 failed active 65 pending eli 53 paused closed 57 closed chen 72 active closed 69 closed alice 78 paused ready 42
71 82 65 57 69 42
pending dina 103 pending ready 6 pending chen 35 active closed 93 failed ivan 92 closed ready 74 closed eli 71 ready active 3 failed farah 117 failed ready 107 active eli 54 failed ready 87 active eli 15 pending pending 71 paused dina 82 paused active 91
6 93 74 3 107 87 71 91
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023752-p1
Print the final field from each line of input.
{print $NF}
closed eli 64 paused active 71 paused bruno 8 failed paused 82 failed bruno 115 failed active 65 pending eli 53 paused closed 57 closed chen 72 active closed 69 closed alice 78 paused ready 42
71 82 65 57 69 42
pending dina 103 pending ready 6 pending chen 35 active closed 93 failed ivan 92 closed ready 74 closed eli 71 ready active 3 failed farah 117 failed ready 107 active eli 54 failed ready 87 active eli 15 pending pending 71 paused dina 82 paused active 91
6 93 74 3 107 87 71 91
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023752
qwen/qwen3.7-plus
awkweave-0023753
Print the complete records where column 2 is greater than 21.
$2 > 21
ivan 23 amber pending gus 96 harbor ready jules 3 indigo paused jules 94 cobalt paused alice 61 fable active gus 9 indigo closed chen 108 amber paused gus 115 ember ready
ivan 23 amber pending gus 96 harbor ready jules 94 cobalt paused alice 61 fable active chen 108 amber paused gus 115 ember ready
alice 18 birch paused farah 8 birch ready hana 106 juniper failed farah 110 birch closed eli 26 harbor closed jules 48 harbor paused dina 19 ember pending kim 58 amber pending lina 109 birch active
hana 106 juniper failed farah 110 birch closed eli 26 harbor closed jules 48 harbor paused kim 58 amber pending lina 109 birch active
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023753-p1
Output full records where the value in the second column is strictly greater than 21.
$2 > 21
ivan 23 amber pending gus 96 harbor ready jules 3 indigo paused jules 94 cobalt paused alice 61 fable active gus 9 indigo closed chen 108 amber paused gus 115 ember ready
ivan 23 amber pending gus 96 harbor ready jules 94 cobalt paused alice 61 fable active chen 108 amber paused gus 115 ember ready
alice 18 birch paused farah 8 birch ready hana 106 juniper failed farah 110 birch closed eli 26 harbor closed jules 48 harbor paused dina 19 ember pending kim 58 amber pending lina 109 birch active
hana 106 juniper failed farah 110 birch closed eli 26 harbor closed jules 48 harbor paused kim 58 amber pending lina 109 birch active
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023753
qwen/qwen3.7-plus
awkweave-0023754
Show whole lines whose 2nd field is between 10 and 24, inclusive.
$2 >= 10 && $2 <= 24
ready 8 ready ready active 11 pending paused closed 28 closed closed ready 22 ready closed failed 25 closed closed closed 25 paused active closed 12 closed failed
active 11 pending paused ready 22 ready closed closed 12 closed failed
failed 12 failed paused failed 14 closed ready pending 20 failed paused paused 2 paused ready failed 26 closed ready pending 10 active ready failed 28 active ready active 7 pending closed
failed 12 failed paused failed 14 closed ready pending 20 failed paused pending 10 active ready
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023754-p1
Display entire lines where the second field falls within the inclusive range of 10 to 24.
$2 >= 10 && $2 <= 24
ready 8 ready ready active 11 pending paused closed 28 closed closed ready 22 ready closed failed 25 closed closed closed 25 paused active closed 12 closed failed
active 11 pending paused ready 22 ready closed closed 12 closed failed
failed 12 failed paused failed 14 closed ready pending 20 failed paused paused 2 paused ready failed 26 closed ready pending 10 active ready failed 28 active ready active 7 pending closed
failed 12 failed paused failed 14 closed ready pending 20 failed paused pending 10 active ready
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023754
qwen/qwen3.7-plus
awkweave-0023755
Print column 2 only for rows where column 3 is exactly paused.
$3 == "paused"{print $2}
76 hana paused grove 44 eli active amber 107 bruno pending indigo 84 jules active fable 76 farah pending fable 84 kim paused harbor
hana kim
99 hana active harbor 80 farah ready juniper 75 hana failed grove 48 ivan failed juniper 111 chen pending fable 69 hana failed ember
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023755-p1
Output only the second column for rows where the third column is exactly 'paused'.
$3 == "paused"{print $2}
76 hana paused grove 44 eli active amber 107 bruno pending indigo 84 jules active fable 76 farah pending fable 84 kim paused harbor
hana kim
99 hana active harbor 80 farah ready juniper 75 hana failed grove 48 ivan failed juniper 111 chen pending fable 69 hana failed ember
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023755
qwen/qwen3.7-plus
awkweave-0023756
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
WARN 13 fable INFO 56 harbor WARN 83 harbor ERROR 103 amber WARN 83 juniper INFO 98 grove WARN 48 harbor DEBUG 29 ember WARN 98 harbor
ERROR 103 amber
ERROR 25 delta WARN 78 juniper DEBUG 108 cobalt INFO 44 cobalt WARN 50 grove DEBUG 56 birch WARN 35 harbor DEBUG 105 delta INFO 79 amber
ERROR 25 delta
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023756-p1
Print all fields from lines where the first field starts with 'ERROR'.
$1 ~ /^ERROR/
WARN 13 fable INFO 56 harbor WARN 83 harbor ERROR 103 amber WARN 83 juniper INFO 98 grove WARN 48 harbor DEBUG 29 ember WARN 98 harbor
ERROR 103 amber
ERROR 25 delta WARN 78 juniper DEBUG 108 cobalt INFO 44 cobalt WARN 50 grove DEBUG 56 birch WARN 35 harbor DEBUG 105 delta INFO 79 amber
ERROR 25 delta
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023756
qwen/qwen3.7-plus
awkweave-0023757
Print every line except those containing the exact text grove.
$0 !~ /grove/
harbor 105 active birch 62 ready cobalt 114 closed indigo 94 failed juniper 68 ready fable 43 pending grove 999 active
harbor 105 active birch 62 ready cobalt 114 closed indigo 94 failed juniper 68 ready fable 43 pending
juniper 71 active grove 52 closed juniper 32 active delta 89 active harbor 77 active cobalt 59 ready fable 87 active ember 78 closed fable 113 closed birch 95 pending grove 999 active
juniper 71 active juniper 32 active delta 89 active harbor 77 active cobalt 59 ready fable 87 active ember 78 closed fable 113 closed birch 95 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023757-p1
Print every line that does not contain the exact string 'grove'.
$0 !~ /grove/
harbor 105 active birch 62 ready cobalt 114 closed indigo 94 failed juniper 68 ready fable 43 pending grove 999 active
harbor 105 active birch 62 ready cobalt 114 closed indigo 94 failed juniper 68 ready fable 43 pending
juniper 71 active grove 52 closed juniper 32 active delta 89 active harbor 77 active cobalt 59 ready fable 87 active ember 78 closed fable 113 closed birch 95 pending grove 999 active
juniper 71 active juniper 32 active delta 89 active harbor 77 active cobalt 59 ready fable 87 active ember 78 closed fable 113 closed birch 95 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023757
qwen/qwen3.7-plus
awkweave-0023758
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
jules delta 36 chen harbor 88 chen amber 63 alice amber 100 bruno grove 78 dina indigo 94 alice delta 60
alice amber 100 bruno grove 78
gus ember 116 dina ember 0 gus fable 27 gus delta 53 farah indigo 97 alice amber 11 gus indigo 11
gus delta 53 farah indigo 97
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023758-p1
Output lines 4 through 5, inclusive of both endpoints.
NR >= 4 && NR <= 5
jules delta 36 chen harbor 88 chen amber 63 alice amber 100 bruno grove 78 dina indigo 94 alice delta 60
alice amber 100 bruno grove 78
gus ember 116 dina ember 0 gus fable 27 gus delta 53 farah indigo 97 alice amber 11 gus indigo 11
gus delta 53 farah indigo 97
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023758
qwen/qwen3.7-plus
awkweave-0023759
Output only the first 3 records.
NR <= 3
bruno 16 indigo chen 27 amber chen 12 amber dina 97 amber ivan 8 indigo chen 32 juniper lina 77 birch
bruno 16 indigo chen 27 amber chen 12 amber
hana 26 grove gus 100 cobalt bruno 109 birch alice 99 fable eli 48 birch gus 120 cobalt dina 0 ember bruno 49 juniper
hana 26 grove gus 100 cobalt bruno 109 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023759-p1
Display only the first 3 records.
NR <= 3
bruno 16 indigo chen 27 amber chen 12 amber dina 97 amber ivan 8 indigo chen 32 juniper lina 77 birch
bruno 16 indigo chen 27 amber chen 12 amber
hana 26 grove gus 100 cobalt bruno 109 birch alice 99 fable eli 48 birch gus 120 cobalt dina 0 ember bruno 49 juniper
hana 26 grove gus 100 cobalt bruno 109 birch
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023759
qwen/qwen3.7-plus
awkweave-0023760
Skip the first line and print every remaining line unchanged.
NR > 1
alice 40 fable jules 65 juniper hana 50 amber ivan 94 amber ivan 95 indigo hana 74 fable
jules 65 juniper hana 50 amber ivan 94 amber ivan 95 indigo hana 74 fable
hana 49 cobalt lina 35 grove gus 109 ember bruno 65 fable ivan 118 ember hana 113 delta kim 39 fable eli 59 delta bruno 71 ember bruno 113 delta
lina 35 grove gus 109 ember bruno 65 fable ivan 118 ember hana 113 delta kim 39 fable eli 59 delta bruno 71 ember bruno 113 delta
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023760-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
alice 40 fable jules 65 juniper hana 50 amber ivan 94 amber ivan 95 indigo hana 74 fable
jules 65 juniper hana 50 amber ivan 94 amber ivan 95 indigo hana 74 fable
hana 49 cobalt lina 35 grove gus 109 ember bruno 65 fable ivan 118 ember hana 113 delta kim 39 fable eli 59 delta bruno 71 ember bruno 113 delta
lina 35 grove gus 109 ember bruno 65 fable ivan 118 ember hana 113 delta kim 39 fable eli 59 delta bruno 71 ember bruno 113 delta
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023760
qwen/qwen3.7-plus
awkweave-0023761
Count how many records have failed in column 2. Print 0 if there are none.
$2 == "failed"{n++}END{print n+0}
gus closed 66 chen pending 63 alice ready 12 kim ready 9 dina active 55 chen paused 25 chen paused 71 ivan paused 4
0
alice active 120 eli pending 50 alice active 68 jules pending 115 chen active 39 kim failed 114 ivan pending 108
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023761-p1
Count the number of records with 'failed' in the second column, printing 0 if none exist.
$2 == "failed"{n++}END{print n+0}
gus closed 66 chen pending 63 alice ready 12 kim ready 9 dina active 55 chen paused 25 chen paused 71 ivan paused 4
0
alice active 120 eli pending 50 alice active 68 jules pending 115 chen active 39 kim failed 114 ivan pending 108
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023761
qwen/qwen3.7-plus
awkweave-0023762
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
ember 17 ivan grove 17 hana delta 15 dina amber 23 kim cobalt 17 gus fable 16 eli
105
cobalt 5 alice cobalt 16 hana harbor 2 eli indigo 29 hana ember 6 dina delta 24 ivan amber 17 jules amber 2 ivan cobalt 1 gus
102
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023762-p1
Compute and output the sum of integer values in the second column.
{s+=$2}END{print s+0}
ember 17 ivan grove 17 hana delta 15 dina amber 23 kim cobalt 17 gus fable 16 eli
105
cobalt 5 alice cobalt 16 hana harbor 2 eli indigo 29 hana ember 6 dina delta 24 ivan amber 17 jules amber 2 ivan cobalt 1 gus
102
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023762
qwen/qwen3.7-plus
awkweave-0023763
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
20 gus fable 26 bruno harbor 12 hana amber 9 bruno birch 4 dina juniper 25 ivan ember 2 jules ember 16 eli indigo
14.25
17 ivan indigo 8 hana harbor 19 gus indigo 24 kim harbor 2 chen fable 14 chen delta
14.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023763-p1
Print the average of the first column, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
20 gus fable 26 bruno harbor 12 hana amber 9 bruno birch 4 dina juniper 25 ivan ember 2 jules ember 16 eli indigo
14.25
17 ivan indigo 8 hana harbor 19 gus indigo 24 kim harbor 2 chen fable 14 chen delta
14.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023763
qwen/qwen3.7-plus
awkweave-0023764
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
ember 24 gus indigo 16 gus harbor 17 gus birch 12 kim juniper 13 jules juniper 21 jules amber 9 farah indigo 11 bruno
9
ember 29 lina indigo 21 hana cobalt 9 lina ember 20 ivan grove 12 ivan birch 30 hana delta 2 eli juniper 16 ivan indigo 14 chen
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023764-p1
Identify and print the minimum numeric value found in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
ember 24 gus indigo 16 gus harbor 17 gus birch 12 kim juniper 13 jules juniper 21 jules amber 9 farah indigo 11 bruno
9
ember 29 lina indigo 21 hana cobalt 9 lina ember 20 ivan grove 12 ivan birch 30 hana delta 2 eli juniper 16 ivan indigo 14 chen
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023764
qwen/qwen3.7-plus
awkweave-0023765
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
28 kim amber 23 alice delta 11 gus grove 2 dina indigo 10 hana juniper 1 chen ember 5 alice amber
28
28 hana cobalt 26 ivan cobalt 2 lina delta 2 hana harbor 14 chen ember 21 gus amber
28
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023765-p1
Identify and print the maximum numeric value found in the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
28 kim amber 23 alice delta 11 gus grove 2 dina indigo 10 hana juniper 1 chen ember 5 alice amber
28
28 hana cobalt 26 ivan cobalt 2 lina delta 2 hana harbor 14 chen ember 21 gus amber
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023765
qwen/qwen3.7-plus
awkweave-0023766
Count all input records and print the total.
END{print NR}
dina 71 kim 18 chen 71 chen 95 lina 97 chen 100 ivan 109 ivan 4 ivan 89 chen 97
10
lina 119 lina 37 lina 92 dina 6 dina 37 hana 108 alice 62 kim 26 chen 87 hana 81
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023766-p1
Calculate and output the total number of input records.
END{print NR}
dina 71 kim 18 chen 71 chen 95 lina 97 chen 100 ivan 109 ivan 4 ivan 89 chen 97
10
lina 119 lina 37 lina 92 dina 6 dina 37 hana 108 alice 62 kim 26 chen 87 hana 81
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023766
qwen/qwen3.7-plus
awkweave-0023767
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
dina amber 66 eli ember 105 hana grove 31 farah fable 102 farah grove 15 dina amber 66 lina cobalt 120 chen grove 60 eli delta 117 dina cobalt 76 kim birch 108
dina amber 66 eli ember 105 hana grove 31 farah fable 102 farah grove 15 lina cobalt 120 chen grove 60 eli delta 117 dina cobalt 76 kim birch 108
chen juniper 58 dina birch 9 ivan ember 98 dina birch 9 alice juniper 80 lina indigo 85 farah harbor 27 hana cobalt 101 bruno juniper 17 lina fable 72
chen juniper 58 dina birch 9 ivan ember 98 alice juniper 80 lina indigo 85 farah harbor 27 hana cobalt 101 bruno juniper 17 lina fable 72
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023767-p1
Eliminate duplicate lines by keeping only the first instance of each, maintaining the original sequence.
!seen[$0]++
dina amber 66 eli ember 105 hana grove 31 farah fable 102 farah grove 15 dina amber 66 lina cobalt 120 chen grove 60 eli delta 117 dina cobalt 76 kim birch 108
dina amber 66 eli ember 105 hana grove 31 farah fable 102 farah grove 15 lina cobalt 120 chen grove 60 eli delta 117 dina cobalt 76 kim birch 108
chen juniper 58 dina birch 9 ivan ember 98 dina birch 9 alice juniper 80 lina indigo 85 farah harbor 27 hana cobalt 101 bruno juniper 17 lina fable 72
chen juniper 58 dina birch 9 ivan ember 98 alice juniper 80 lina indigo 85 farah harbor 27 hana cobalt 101 bruno juniper 17 lina fable 72
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023767
qwen/qwen3.7-plus
awkweave-0023768
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
gus grove 118 jules juniper 116 chen indigo 46 gus amber 116 eli juniper 84 jules delta 55 lina indigo 120 jules harbor 32 eli fable 30 eli juniper 65
gus grove 118 jules juniper 116 chen indigo 46 eli juniper 84 jules delta 55 lina indigo 120 jules harbor 32 eli fable 30 eli juniper 65
farah indigo 38 dina fable 83 bruno fable 27 kim cobalt 93 alice cobalt 119 jules fable 77
farah indigo 38 dina fable 83 bruno fable 27 kim cobalt 93 alice cobalt 119 jules fable 77
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023768-p1
Retain only the initial row for every unique value found in the third column, ensuring the original input order is preserved.
!seen[$3]++
gus grove 118 jules juniper 116 chen indigo 46 gus amber 116 eli juniper 84 jules delta 55 lina indigo 120 jules harbor 32 eli fable 30 eli juniper 65
gus grove 118 jules juniper 116 chen indigo 46 eli juniper 84 jules delta 55 lina indigo 120 jules harbor 32 eli fable 30 eli juniper 65
farah indigo 38 dina fable 83 bruno fable 27 kim cobalt 93 alice cobalt 119 jules fable 77
farah indigo 38 dina fable 83 bruno fable 27 kim cobalt 93 alice cobalt 119 jules fable 77
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023768
qwen/qwen3.7-plus
awkweave-0023769
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
lina 2 cobalt jules 13 amber alice 27 grove alice 16 delta ivan 27 amber lina 7 delta
lina 2 jules 15 alice 42 alice 58 ivan 85 lina 92
eli 24 fable lina 28 indigo dina 10 grove lina 6 delta hana 29 grove ivan 27 amber kim 19 juniper
eli 24 lina 52 dina 62 lina 68 hana 97 ivan 124 kim 143
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023769-p1
Output the first column alongside the cumulative sum of the second column for each record, using a space as the delimiter.
{s+=$2;print $1,s}
lina 2 cobalt jules 13 amber alice 27 grove alice 16 delta ivan 27 amber lina 7 delta
lina 2 jules 15 alice 42 alice 58 ivan 85 lina 92
eli 24 fable lina 28 indigo dina 10 grove lina 6 delta hana 29 grove ivan 27 amber kim 19 juniper
eli 24 lina 52 dina 62 lina 68 hana 97 ivan 124 kim 143
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023769
qwen/qwen3.7-plus
awkweave-0023770
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
bruno 18 4 birch bruno 6 5 cobalt dina 12 27 birch bruno 10 17 fable chen 16 7 amber farah 29 1 cobalt dina 26 23 grove eli 15 20 grove
bruno 22 bruno 11 dina 39 bruno 27 chen 23 farah 30 dina 49 eli 35
bruno 22 23 harbor jules 17 6 cobalt eli 16 18 indigo ivan 2 13 harbor kim 13 12 birch ivan 3 28 ember alice 23 19 juniper gus 10 27 cobalt
bruno 45 jules 23 eli 34 ivan 15 kim 25 ivan 31 alice 42 gus 37
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0023770-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
bruno 18 4 birch bruno 6 5 cobalt dina 12 27 birch bruno 10 17 fable chen 16 7 amber farah 29 1 cobalt dina 26 23 grove eli 15 20 grove
bruno 22 bruno 11 dina 39 bruno 27 chen 23 farah 30 dina 49 eli 35
bruno 22 23 harbor jules 17 6 cobalt eli 16 18 indigo ivan 2 13 harbor kim 13 12 birch ivan 3 28 ember alice 23 19 juniper gus 10 27 cobalt
bruno 45 jules 23 eli 34 ivan 15 kim 25 ivan 31 alice 42 gus 37
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0023770
qwen/qwen3.7-plus
awkweave-0023771
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
kim 30 hana 23 kim 6 lina 24 alice 3 ivan 23
kim pass hana pass kim fail lina pass alice fail ivan pass
farah 16 kim 10 gus 4 jules 28 jules 1 chen 19
farah fail kim fail gus fail jules pass jules fail chen fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null