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-0055613
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]}
jules harbor 19 jules ember 1 kim indigo 12 ivan cobalt 21 dina fable 7 dina delta 15 hana birch 26 kim delta 8 chen delta 14 eli ember 17
hana birch 26 ivan cobalt 21 jules harbor 19
gus harbor 12 eli fable 20 jules fable 24 jules harbor 26 ivan cobalt 29 hana ember 18 hana indigo 1 bruno juniper 10 ivan cobalt 6 farah indigo 29
ivan cobalt 29 farah indigo 29 jules harbor 26
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055613-p1
Display the three full records that have the largest numeric values in the third column, ordered from highest to lowest, while maintaining the original input sequence for any tied values.
{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]}
jules harbor 19 jules ember 1 kim indigo 12 ivan cobalt 21 dina fable 7 dina delta 15 hana birch 26 kim delta 8 chen delta 14 eli ember 17
hana birch 26 ivan cobalt 21 jules harbor 19
gus harbor 12 eli fable 20 jules fable 24 jules harbor 26 ivan cobalt 29 hana ember 18 hana indigo 1 bruno juniper 10 ivan cobalt 6 farah indigo 29
ivan cobalt 29 farah indigo 29 jules harbor 26
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055613
qwen/qwen3.7-plus
awkweave-0055614
Print column 4 followed by column 3 for every record.
{print $4, $3}
harbor farah jules 13 kim grove delta kim eli 76 hana amber indigo dina bruno 30 gus amber amber lina alice 9 bruno birch amber chen kim 103 dina ember indigo bruno farah 9 ivan ember
13 jules 76 eli 30 bruno 9 alice 103 kim 9 farah
grove hana lina 58 ivan amber juniper bruno dina 92 farah cobalt ember ivan ivan 25 farah fable delta alice lina 71 eli ember juniper eli chen 50 gus ember delta lina farah 84 dina fable harbor ivan ivan 81 eli indigo juniper ivan ivan 72 dina fable delta gus kim 63 gus juniper indigo hana jules 16 lina ember
58 lina 92 dina 25 ivan 71 lina 50 chen 84 farah 81 ivan 72 ivan 63 kim 16 jules
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055614-p1
Output the fourth column followed immediately by the third column for each record.
{print $4, $3}
harbor farah jules 13 kim grove delta kim eli 76 hana amber indigo dina bruno 30 gus amber amber lina alice 9 bruno birch amber chen kim 103 dina ember indigo bruno farah 9 ivan ember
13 jules 76 eli 30 bruno 9 alice 103 kim 9 farah
grove hana lina 58 ivan amber juniper bruno dina 92 farah cobalt ember ivan ivan 25 farah fable delta alice lina 71 eli ember juniper eli chen 50 gus ember delta lina farah 84 dina fable harbor ivan ivan 81 eli indigo juniper ivan ivan 72 dina fable delta gus kim 63 gus juniper indigo hana jules 16 lina ember
58 lina 92 dina 25 ivan 71 lina 50 chen 84 farah 81 ivan 72 ivan 63 kim 16 jules
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055614
qwen/qwen3.7-plus
awkweave-0055615
Print the last field of every input line.
{print $NF}
alice 19 closed 104 ember lina 95 paused 85 amber kim 51 ready 1 amber jules 76 pending 115 fable dina 21 closed 21 harbor chen 40 paused 97 harbor gus 61 closed 107 birch bruno 13 pending 66 ember lina 95 closed 79 cobalt
ember amber amber fable harbor harbor birch ember cobalt
ivan 34 ready 31 indigo bruno 112 closed 31 harbor ivan 18 active 80 indigo eli 16 pending 35 grove ivan 9 failed 1 indigo kim 76 closed 20 ember jules 25 paused 35 ember farah 112 active 38 amber hana 12 active 40 harbor hana 3 pending 34 ember
indigo harbor indigo grove indigo ember ember amber harbor ember
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055615-p1
Print the final field from every line of input.
{print $NF}
alice 19 closed 104 ember lina 95 paused 85 amber kim 51 ready 1 amber jules 76 pending 115 fable dina 21 closed 21 harbor chen 40 paused 97 harbor gus 61 closed 107 birch bruno 13 pending 66 ember lina 95 closed 79 cobalt
ember amber amber fable harbor harbor birch ember cobalt
ivan 34 ready 31 indigo bruno 112 closed 31 harbor ivan 18 active 80 indigo eli 16 pending 35 grove ivan 9 failed 1 indigo kim 76 closed 20 ember jules 25 paused 35 ember farah 112 active 38 amber hana 12 active 40 harbor hana 3 pending 34 ember
indigo harbor indigo grove indigo ember ember amber harbor ember
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055615
qwen/qwen3.7-plus
awkweave-0055616
Print the complete records where column 2 is at most 73.
$2 <= 73
ember 41 ivan grove 114 dina delta 8 farah cobalt 88 ivan ember 22 jules indigo 29 dina
ember 41 ivan delta 8 farah ember 22 jules indigo 29 dina
juniper 47 dina birch 42 kim indigo 38 eli amber 14 ivan fable 8 kim fable 88 alice
juniper 47 dina birch 42 kim indigo 38 eli amber 14 ivan fable 8 kim
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055616-p1
Output the entire records where the value in the second column is less than or equal to 73.
$2 <= 73
ember 41 ivan grove 114 dina delta 8 farah cobalt 88 ivan ember 22 jules indigo 29 dina
ember 41 ivan delta 8 farah ember 22 jules indigo 29 dina
juniper 47 dina birch 42 kim indigo 38 eli amber 14 ivan fable 8 kim fable 88 alice
juniper 47 dina birch 42 kim indigo 38 eli amber 14 ivan fable 8 kim
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055616
qwen/qwen3.7-plus
awkweave-0055617
Show whole lines whose 3rd field is between 11 and 29, inclusive.
$3 >= 11 && $3 <= 29
juniper fable 24 failed indigo fable 11 active birch fable 25 ready amber birch 24 active indigo indigo 20 pending delta juniper 9 paused harbor grove 2 ready juniper ember 20 closed
juniper fable 24 failed indigo fable 11 active birch fable 25 ready amber birch 24 active indigo indigo 20 pending juniper ember 20 closed
grove grove 23 active indigo juniper 21 active delta amber 2 paused indigo birch 1 paused birch cobalt 17 active ember juniper 24 failed harbor fable 24 closed birch birch 21 pending indigo indigo 16 ready grove birch 3 active
grove grove 23 active indigo juniper 21 active birch cobalt 17 active ember juniper 24 failed harbor fable 24 closed birch birch 21 pending indigo indigo 16 ready
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055617-p1
Display complete lines where the third field falls within the range of 11 to 29, inclusive.
$3 >= 11 && $3 <= 29
juniper fable 24 failed indigo fable 11 active birch fable 25 ready amber birch 24 active indigo indigo 20 pending delta juniper 9 paused harbor grove 2 ready juniper ember 20 closed
juniper fable 24 failed indigo fable 11 active birch fable 25 ready amber birch 24 active indigo indigo 20 pending juniper ember 20 closed
grove grove 23 active indigo juniper 21 active delta amber 2 paused indigo birch 1 paused birch cobalt 17 active ember juniper 24 failed harbor fable 24 closed birch birch 21 pending indigo indigo 16 ready grove birch 3 active
grove grove 23 active indigo juniper 21 active birch cobalt 17 active ember juniper 24 failed harbor fable 24 closed birch birch 21 pending indigo indigo 16 ready
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055617
qwen/qwen3.7-plus
awkweave-0055618
Print column 4 only for rows where column 2 is exactly closed.
$2 == "closed"{print $4}
73 pending grove alice 46 paused birch ivan 5 closed birch eli 40 pending fable chen 120 closed amber kim 91 closed amber hana 109 ready indigo lina 28 failed ember eli 34 ready amber eli
eli kim hana
0 paused delta dina 39 paused cobalt dina 85 closed harbor bruno 62 ready indigo jules 58 active cobalt alice 90 pending indigo alice 33 active cobalt ivan
bruno
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055618-p1
Output only the fourth column for rows where the second column contains the exact value 'closed'.
$2 == "closed"{print $4}
73 pending grove alice 46 paused birch ivan 5 closed birch eli 40 pending fable chen 120 closed amber kim 91 closed amber hana 109 ready indigo lina 28 failed ember eli 34 ready amber eli
eli kim hana
0 paused delta dina 39 paused cobalt dina 85 closed harbor bruno 62 ready indigo jules 58 active cobalt alice 90 pending indigo alice 33 active cobalt ivan
bruno
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055618
qwen/qwen3.7-plus
awkweave-0055619
Print all fields from lines where field 2 begins with WARN.
$2 ~ /^WARN/
111 INFO fable 49 WARN grove 78 INFO delta 60 ERROR grove 91 DEBUG delta 64 ERROR harbor 58 ERROR ember 13 ERROR grove
49 WARN grove
76 ERROR harbor 120 ERROR ember 33 DEBUG delta 11 ERROR ember 48 INFO delta 99 ERROR grove 88 WARN grove 26 DEBUG indigo 58 ERROR delta
88 WARN grove
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055619-p1
Print all fields from lines where the second field starts with the string 'WARN'.
$2 ~ /^WARN/
111 INFO fable 49 WARN grove 78 INFO delta 60 ERROR grove 91 DEBUG delta 64 ERROR harbor 58 ERROR ember 13 ERROR grove
49 WARN grove
76 ERROR harbor 120 ERROR ember 33 DEBUG delta 11 ERROR ember 48 INFO delta 99 ERROR grove 88 WARN grove 26 DEBUG indigo 58 ERROR delta
88 WARN grove
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055619
qwen/qwen3.7-plus
awkweave-0055620
Print every line except those containing the exact text indigo.
$0 !~ /indigo/
juniper 105 paused harbor 86 closed harbor 76 pending indigo 32 closed delta 96 ready juniper 109 active cobalt 26 closed juniper 22 pending fable 67 active harbor 117 pending indigo 999 active
juniper 105 paused harbor 86 closed harbor 76 pending delta 96 ready juniper 109 active cobalt 26 closed juniper 22 pending fable 67 active harbor 117 pending
juniper 112 paused grove 117 closed delta 115 pending grove 23 closed cobalt 116 failed amber 112 ready delta 114 pending ember 44 ready juniper 20 closed indigo 999 active
juniper 112 paused grove 117 closed delta 115 pending grove 23 closed cobalt 116 failed amber 112 ready delta 114 pending ember 44 ready juniper 20 closed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055620-p1
Output every line except those that contain the exact string 'indigo'.
$0 !~ /indigo/
juniper 105 paused harbor 86 closed harbor 76 pending indigo 32 closed delta 96 ready juniper 109 active cobalt 26 closed juniper 22 pending fable 67 active harbor 117 pending indigo 999 active
juniper 105 paused harbor 86 closed harbor 76 pending delta 96 ready juniper 109 active cobalt 26 closed juniper 22 pending fable 67 active harbor 117 pending
juniper 112 paused grove 117 closed delta 115 pending grove 23 closed cobalt 116 failed amber 112 ready delta 114 pending ember 44 ready juniper 20 closed indigo 999 active
juniper 112 paused grove 117 closed delta 115 pending grove 23 closed cobalt 116 failed amber 112 ready delta 114 pending ember 44 ready juniper 20 closed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055620
qwen/qwen3.7-plus
awkweave-0055621
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
dina ember 33 chen fable 118 kim fable 9 ivan grove 95 farah ember 4 chen amber 97
ivan grove 95 farah ember 4
eli fable 3 hana fable 54 kim delta 75 ivan juniper 66 bruno delta 59 hana indigo 53 farah indigo 60 alice indigo 97 eli fable 22
ivan juniper 66 bruno delta 59
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055621-p1
Print lines 4 through 5, inclusive of both endpoints.
NR >= 4 && NR <= 5
dina ember 33 chen fable 118 kim fable 9 ivan grove 95 farah ember 4 chen amber 97
ivan grove 95 farah ember 4
eli fable 3 hana fable 54 kim delta 75 ivan juniper 66 bruno delta 59 hana indigo 53 farah indigo 60 alice indigo 97 eli fable 22
ivan juniper 66 bruno delta 59
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055621
qwen/qwen3.7-plus
awkweave-0055622
Output only the first 3 records.
NR <= 3
lina 75 grove ivan 52 fable eli 70 cobalt farah 23 cobalt ivan 91 amber alice 61 fable lina 56 ember alice 53 fable
lina 75 grove ivan 52 fable eli 70 cobalt
dina 20 fable eli 28 birch ivan 97 juniper alice 111 cobalt kim 89 ember farah 111 fable farah 10 grove dina 58 ember jules 66 cobalt gus 27 ember
dina 20 fable eli 28 birch ivan 97 juniper
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055622-p1
Output only the first three records.
NR <= 3
lina 75 grove ivan 52 fable eli 70 cobalt farah 23 cobalt ivan 91 amber alice 61 fable lina 56 ember alice 53 fable
lina 75 grove ivan 52 fable eli 70 cobalt
dina 20 fable eli 28 birch ivan 97 juniper alice 111 cobalt kim 89 ember farah 111 fable farah 10 grove dina 58 ember jules 66 cobalt gus 27 ember
dina 20 fable eli 28 birch ivan 97 juniper
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055622
qwen/qwen3.7-plus
awkweave-0055623
Skip the first line and print every remaining line unchanged.
NR > 1
eli 36 birch farah 37 delta gus 76 delta hana 35 amber eli 26 amber eli 118 ember ivan 83 juniper dina 61 cobalt alice 17 cobalt gus 85 juniper
farah 37 delta gus 76 delta hana 35 amber eli 26 amber eli 118 ember ivan 83 juniper dina 61 cobalt alice 17 cobalt gus 85 juniper
farah 106 indigo gus 74 juniper eli 119 grove dina 53 cobalt chen 65 cobalt jules 76 ember gus 6 cobalt kim 51 birch
gus 74 juniper eli 119 grove dina 53 cobalt chen 65 cobalt jules 76 ember gus 6 cobalt kim 51 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055623-p1
Omit the first line and print all subsequent lines exactly as they appear.
NR > 1
eli 36 birch farah 37 delta gus 76 delta hana 35 amber eli 26 amber eli 118 ember ivan 83 juniper dina 61 cobalt alice 17 cobalt gus 85 juniper
farah 37 delta gus 76 delta hana 35 amber eli 26 amber eli 118 ember ivan 83 juniper dina 61 cobalt alice 17 cobalt gus 85 juniper
farah 106 indigo gus 74 juniper eli 119 grove dina 53 cobalt chen 65 cobalt jules 76 ember gus 6 cobalt kim 51 birch
gus 74 juniper eli 119 grove dina 53 cobalt chen 65 cobalt jules 76 ember gus 6 cobalt kim 51 birch
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055623
qwen/qwen3.7-plus
awkweave-0055624
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
dina ready 26 farah paused 65 gus failed 82 ivan ready 82 gus failed 32 gus active 96 dina paused 13 farah closed 72 bruno active 95
1
jules ready 65 hana paused 62 dina failed 81 lina failed 45 kim pending 99 bruno ready 10 jules pending 57
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055624-p1
Determine the number of entries where column 2 contains 'closed', outputting 0 if no such entries exist.
$2 == "closed"{n++}END{print n+0}
dina ready 26 farah paused 65 gus failed 82 ivan ready 82 gus failed 32 gus active 96 dina paused 13 farah closed 72 bruno active 95
1
jules ready 65 hana paused 62 dina failed 81 lina failed 45 kim pending 99 bruno ready 10 jules pending 57
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055624
qwen/qwen3.7-plus
awkweave-0055625
Calculate and print the sum of the integers in column 2.
{s+=$2}END{print s+0}
ivan 6 harbor jules 3 delta dina 1 delta chen 27 harbor dina 16 juniper farah 12 ember chen 1 indigo ivan 7 amber chen 26 cobalt dina 21 harbor
120
ivan 11 indigo bruno 8 indigo bruno 3 indigo dina 27 fable gus 13 juniper farah 17 harbor gus 24 delta jules 7 indigo jules 7 birch alice 26 juniper
143
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055625-p1
Compute and display the total sum of all integer values found in column 2.
{s+=$2}END{print s+0}
ivan 6 harbor jules 3 delta dina 1 delta chen 27 harbor dina 16 juniper farah 12 ember chen 1 indigo ivan 7 amber chen 26 cobalt dina 21 harbor
120
ivan 11 indigo bruno 8 indigo bruno 3 indigo dina 27 fable gus 13 juniper farah 17 harbor gus 24 delta jules 7 indigo jules 7 birch alice 26 juniper
143
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055625
qwen/qwen3.7-plus
awkweave-0055626
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
18 cobalt lina 1 ember bruno 13 harbor gus 15 fable dina 4 amber jules 29 delta bruno 10 harbor alice 11 grove hana 20 indigo alice 4 harbor lina
12.50
19 juniper gus 20 birch gus 30 amber bruno 9 grove alice 24 ember chen 29 ember jules
21.83
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055626-p1
Output the average value of column 1, formatted to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
18 cobalt lina 1 ember bruno 13 harbor gus 15 fable dina 4 amber jules 29 delta bruno 10 harbor alice 11 grove hana 20 indigo alice 4 harbor lina
12.50
19 juniper gus 20 birch gus 30 amber bruno 9 grove alice 24 ember chen 29 ember jules
21.83
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055626
qwen/qwen3.7-plus
awkweave-0055627
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
juniper chen 20 fable hana 1 fable jules 21 indigo alice 24 amber bruno 2 harbor jules 2
1
juniper farah 9 fable jules 14 indigo hana 23 grove kim 6 amber dina 27 cobalt chen 6
6
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055627-p1
Identify and print the minimum numeric value present in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
juniper chen 20 fable hana 1 fable jules 21 indigo alice 24 amber bruno 2 harbor jules 2
1
juniper farah 9 fable jules 14 indigo hana 23 grove kim 6 amber dina 27 cobalt chen 6
6
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055627
qwen/qwen3.7-plus
awkweave-0055628
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
birch 11 hana amber 29 gus amber 21 dina juniper 7 eli harbor 10 gus harbor 1 jules birch 11 farah fable 15 chen delta 2 chen
29
fable 1 lina fable 14 eli grove 3 farah juniper 29 chen indigo 14 eli birch 23 hana ember 1 alice
29
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055628-p1
Identify and print the maximum numeric value present in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
birch 11 hana amber 29 gus amber 21 dina juniper 7 eli harbor 10 gus harbor 1 jules birch 11 farah fable 15 chen delta 2 chen
29
fable 1 lina fable 14 eli grove 3 farah juniper 29 chen indigo 14 eli birch 23 hana ember 1 alice
29
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055628
qwen/qwen3.7-plus
awkweave-0055629
Count all input records and print the total.
END{print NR}
lina 84 chen 82 hana 51 alice 60 alice 109 ivan 97 kim 61 farah 102 farah 95
9
chen 23 jules 77 farah 114 ivan 35 hana 69 jules 105 jules 32
7
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055629-p1
Count the total number of input records and print the result.
END{print NR}
lina 84 chen 82 hana 51 alice 60 alice 109 ivan 97 kim 61 farah 102 farah 95
9
chen 23 jules 77 farah 114 ivan 35 hana 69 jules 105 jules 32
7
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055629
qwen/qwen3.7-plus
awkweave-0055630
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
alice cobalt 79 ivan delta 113 ivan juniper 90 jules birch 119 farah fable 11 jules birch 119 chen harbor 73 hana indigo 38
alice cobalt 79 ivan delta 113 ivan juniper 90 jules birch 119 farah fable 11 chen harbor 73 hana indigo 38
lina amber 15 ivan cobalt 85 alice indigo 108 hana cobalt 77 kim juniper 47 lina amber 104 lina amber 104 dina fable 97 hana cobalt 88 ivan amber 10
lina amber 15 ivan cobalt 85 alice indigo 108 hana cobalt 77 kim juniper 47 lina amber 104 dina fable 97 hana cobalt 88 ivan amber 10
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055630-p1
Eliminate exact duplicate lines while maintaining the original order and keeping the first instance of each unique line.
!seen[$0]++
alice cobalt 79 ivan delta 113 ivan juniper 90 jules birch 119 farah fable 11 jules birch 119 chen harbor 73 hana indigo 38
alice cobalt 79 ivan delta 113 ivan juniper 90 jules birch 119 farah fable 11 chen harbor 73 hana indigo 38
lina amber 15 ivan cobalt 85 alice indigo 108 hana cobalt 77 kim juniper 47 lina amber 104 lina amber 104 dina fable 97 hana cobalt 88 ivan amber 10
lina amber 15 ivan cobalt 85 alice indigo 108 hana cobalt 77 kim juniper 47 lina amber 104 dina fable 97 hana cobalt 88 ivan amber 10
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055630
qwen/qwen3.7-plus
awkweave-0055631
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
lina amber 94 gus ember 61 chen grove 61 chen delta 32 bruno harbor 81 dina amber 109 dina birch 86 dina indigo 2
lina amber 94 gus ember 61 chen delta 32 bruno harbor 81 dina amber 109 dina birch 86 dina indigo 2
alice birch 105 lina cobalt 10 gus cobalt 76 lina ember 65 gus juniper 22 gus juniper 7
alice birch 105 lina cobalt 10 gus cobalt 76 lina ember 65 gus juniper 22 gus juniper 7
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055631-p1
Retain only the first occurrence of each unique value in column 3, preserving the original input sequence.
!seen[$3]++
lina amber 94 gus ember 61 chen grove 61 chen delta 32 bruno harbor 81 dina amber 109 dina birch 86 dina indigo 2
lina amber 94 gus ember 61 chen delta 32 bruno harbor 81 dina amber 109 dina birch 86 dina indigo 2
alice birch 105 lina cobalt 10 gus cobalt 76 lina ember 65 gus juniper 22 gus juniper 7
alice birch 105 lina cobalt 10 gus cobalt 76 lina ember 65 gus juniper 22 gus juniper 7
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055631
qwen/qwen3.7-plus
awkweave-0055632
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 17 cobalt alice 17 cobalt jules 2 ember gus 13 ember gus 25 grove chen 23 harbor farah 7 indigo bruno 5 harbor jules 5 cobalt
ivan 17 alice 34 jules 36 gus 49 gus 74 chen 97 farah 104 bruno 109 jules 114
dina 14 grove alice 2 ember hana 24 delta dina 1 fable jules 25 ember kim 26 birch jules 13 juniper dina 4 ember
dina 14 alice 16 hana 40 dina 41 jules 66 kim 92 jules 105 dina 109
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055632-p1
For each record, output column 1 alongside the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
ivan 17 cobalt alice 17 cobalt jules 2 ember gus 13 ember gus 25 grove chen 23 harbor farah 7 indigo bruno 5 harbor jules 5 cobalt
ivan 17 alice 34 jules 36 gus 49 gus 74 chen 97 farah 104 bruno 109 jules 114
dina 14 grove alice 2 ember hana 24 delta dina 1 fable jules 25 ember kim 26 birch jules 13 juniper dina 4 ember
dina 14 alice 16 hana 40 dina 41 jules 66 kim 92 jules 105 dina 109
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055632
qwen/qwen3.7-plus
awkweave-0055633
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
chen 29 8 amber jules 18 8 indigo dina 29 29 ember gus 30 18 cobalt jules 4 10 delta dina 29 4 cobalt alice 8 24 cobalt
chen 37 jules 26 dina 58 gus 48 jules 14 dina 33 alice 32
lina 7 11 juniper kim 11 17 delta chen 17 11 fable alice 19 25 indigo gus 19 17 birch hana 8 26 indigo bruno 11 29 amber alice 27 25 indigo gus 30 26 delta
lina 18 kim 28 chen 28 alice 44 gus 36 hana 34 bruno 40 alice 52 gus 56
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055633-p1
For each row, output field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
chen 29 8 amber jules 18 8 indigo dina 29 29 ember gus 30 18 cobalt jules 4 10 delta dina 29 4 cobalt alice 8 24 cobalt
chen 37 jules 26 dina 58 gus 48 jules 14 dina 33 alice 32
lina 7 11 juniper kim 11 17 delta chen 17 11 fable alice 19 25 indigo gus 19 17 birch hana 8 26 indigo bruno 11 29 amber alice 27 25 indigo gus 30 26 delta
lina 18 kim 28 chen 28 alice 44 gus 36 hana 34 bruno 40 alice 52 gus 56
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055633
qwen/qwen3.7-plus
awkweave-0055634
Print column 1 and pass when column 2 is at least 27; otherwise print fail.
{print $1,($2>=27?"pass":"fail")}
gus 16 hana 11 jules 13 kim 26 ivan 25 lina 17 dina 8 lina 8 gus 9
gus fail hana fail jules fail kim fail ivan fail lina fail dina fail lina fail gus fail
chen 1 jules 19 hana 17 lina 18 hana 8 gus 24 lina 5
chen fail jules fail hana fail lina fail hana fail gus fail lina fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055634-p1
Print column 1 along with 'pass' if column 2 is greater than or equal to 27; otherwise, print 'fail'.
{print $1,($2>=27?"pass":"fail")}
gus 16 hana 11 jules 13 kim 26 ivan 25 lina 17 dina 8 lina 8 gus 9
gus fail hana fail jules fail kim fail ivan fail lina fail dina fail lina fail gus fail
chen 1 jules 19 hana 17 lina 18 hana 8 gus 24 lina 5
chen fail jules fail hana fail lina fail hana fail gus fail lina fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055634
qwen/qwen3.7-plus
awkweave-0055635
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
jules birch 23 alice juniper 64 dina juniper 46 eli amber 12 hana indigo 55 eli fable 34 jules juniper 86 bruno harbor 62 kim grove 9
JULES ALICE DINA ELI HANA ELI JULES BRUNO KIM
kim fable 118 kim ember 91 farah cobalt 59 kim ember 77 dina cobalt 11 bruno fable 60 lina delta 103 alice juniper 50 bruno indigo 86 gus juniper 10
KIM KIM FARAH KIM DINA BRUNO LINA ALICE BRUNO GUS
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055635-p1
Transform column 1 to uppercase letters and output only that modified column.
{print toupper($1)}
jules birch 23 alice juniper 64 dina juniper 46 eli amber 12 hana indigo 55 eli fable 34 jules juniper 86 bruno harbor 62 kim grove 9
JULES ALICE DINA ELI HANA ELI JULES BRUNO KIM
kim fable 118 kim ember 91 farah cobalt 59 kim ember 77 dina cobalt 11 bruno fable 60 lina delta 103 alice juniper 50 bruno indigo 86 gus juniper 10
KIM KIM FARAH KIM DINA BRUNO LINA ALICE BRUNO GUS
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055635
qwen/qwen3.7-plus
awkweave-0055636
From column 1, print 2 characters starting at character 2.
{print substr($1,2,2)}
amber 79 juniper 61 birch 65 ember 112 juniper 22 fable 82
mb un ir mb un ab
birch 9 fable 67 harbor 11 cobalt 120 harbor 69 amber 38 amber 84 ember 106 grove 7 harbor 52
ir ab ar ob ar mb mb mb ro ar
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055636-p1
Extract and display a 2-character substring from the first column, beginning at the second character position.
{print substr($1,2,2)}
amber 79 juniper 61 birch 65 ember 112 juniper 22 fable 82
mb un ir mb un ab
birch 9 fable 67 harbor 11 cobalt 120 harbor 69 amber 38 amber 84 ember 106 grove 7 harbor 52
ir ab ar ob ar mb mb mb ro ar
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055636
qwen/qwen3.7-plus
awkweave-0055637
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
fable_cobalt 65 juniper_ember 94 harbor_ember 54 cobalt_ember 69 birch_amber 86 ember_cobalt 17
fable cobalt juniper ember harbor ember cobalt ember birch amber ember cobalt
amber_juniper 20 cobalt_amber 15 ember_ember 118 birch_ember 120 delta_indigo 46 cobalt_delta 64
amber juniper cobalt amber ember ember birch ember delta indigo cobalt delta
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055637-p1
Substitute all underscores with spaces in the first column and output the modified values.
{gsub(/_/," ",$1);print $1}
fable_cobalt 65 juniper_ember 94 harbor_ember 54 cobalt_ember 69 birch_amber 86 ember_cobalt 17
fable cobalt juniper ember harbor ember cobalt ember birch amber ember cobalt
amber_juniper 20 cobalt_amber 15 ember_ember 118 birch_ember 120 delta_indigo 46 cobalt_delta 64
amber juniper cobalt amber ember ember birch ember delta indigo cobalt delta
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055637
qwen/qwen3.7-plus
awkweave-0055638
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)}
ivan delta 118 closed lina indigo 47 failed alice birch 37 active ivan juniper 43 pending lina harbor 18 failed chen cobalt 98 paused
closed 118 delta ivan failed 47 indigo lina active 37 birch alice pending 43 juniper ivan failed 18 harbor lina paused 98 cobalt chen
chen amber 7 pending kim juniper 33 ready kim harbor 29 failed bruno ember 113 closed hana juniper 113 pending kim indigo 112 paused alice birch 85 active chen fable 64 pending bruno indigo 104 paused hana amber 18 closed
pending 7 amber chen ready 33 juniper kim failed 29 harbor kim closed 113 ember bruno pending 113 juniper hana paused 112 indigo kim active 85 birch alice pending 64 fable chen paused 104 indigo bruno closed 18 amber hana
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055638-p1
Output all fields for each line after reversing their original sequence.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
ivan delta 118 closed lina indigo 47 failed alice birch 37 active ivan juniper 43 pending lina harbor 18 failed chen cobalt 98 paused
closed 118 delta ivan failed 47 indigo lina active 37 birch alice pending 43 juniper ivan failed 18 harbor lina paused 98 cobalt chen
chen amber 7 pending kim juniper 33 ready kim harbor 29 failed bruno ember 113 closed hana juniper 113 pending kim indigo 112 paused alice birch 85 active chen fable 64 pending bruno indigo 104 paused hana amber 18 closed
pending 7 amber chen ready 33 juniper kim failed 29 harbor kim closed 113 ember bruno pending 113 juniper hana paused 112 indigo kim active 85 birch alice pending 64 fable chen paused 104 indigo bruno closed 18 amber hana
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055638
qwen/qwen3.7-plus
awkweave-0055639
Print the number of whitespace-separated fields on each line.
{print NF}
dina birch 29 ready chen juniper 97 ready jules juniper 43 paused gus delta 35 paused bruno juniper 64 failed chen fable 22 ready kim indigo 90 pending
4 4 4 4 4 4 4
kim ember 3 failed bruno harbor 33 ready eli juniper 37 closed kim harbor 95 closed kim indigo 79 closed bruno juniper 73 ready kim ember 105 closed
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055639-p1
Display the count of whitespace-delimited fields present on every line.
{print NF}
dina birch 29 ready chen juniper 97 ready jules juniper 43 paused gus delta 35 paused bruno juniper 64 failed chen fable 22 ready kim indigo 90 pending
4 4 4 4 4 4 4
kim ember 3 failed bruno harbor 33 ready eli juniper 37 closed kim harbor 95 closed kim indigo 79 closed bruno juniper 73 ready kim ember 105 closed
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055639
qwen/qwen3.7-plus
awkweave-0055640
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]]}
eli gamma 46 dina alpha 28 jules delta 59 gus delta 113 hana alpha 119 hana alpha 30
gamma 1 alpha 3 delta 2
hana gamma 70 chen alpha 66 hana gamma 105 bruno alpha 56 gus beta 45 hana alpha 3
gamma 2 alpha 3 beta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055640-p1
Tally the occurrences of each unique value in the second column and print the value alongside its count, maintaining 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]]}
eli gamma 46 dina alpha 28 jules delta 59 gus delta 113 hana alpha 119 hana alpha 30
gamma 1 alpha 3 delta 2
hana gamma 70 chen alpha 66 hana gamma 105 bruno alpha 56 gus beta 45 hana alpha 3
gamma 2 alpha 3 beta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055640
qwen/qwen3.7-plus
awkweave-0055641
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]]}
lina gamma 16 jules alpha 24 ivan beta 13 ivan gamma 27 lina beta 5 alice delta 11
gamma 43 alpha 24 beta 18 delta 11
bruno delta 8 lina gamma 5 ivan beta 3 jules alpha 27 jules gamma 27 alice delta 18
delta 26 gamma 32 beta 3 alpha 27
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055641-p1
Calculate the sum of the third column grouped by the second column, outputting the results in the order groups 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]]}
lina gamma 16 jules alpha 24 ivan beta 13 ivan gamma 27 lina beta 5 alice delta 11
gamma 43 alpha 24 beta 18 delta 11
bruno delta 8 lina gamma 5 ivan beta 3 jules alpha 27 jules gamma 27 alice delta 18
delta 26 gamma 32 beta 3 alpha 27
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055641
qwen/qwen3.7-plus
awkweave-0055642
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 ember 112 delta harbor 71 alpha delta 54 delta grove 76 gamma juniper 71 beta grove 18 gamma amber 28 gamma juniper 65 alpha grove 25
beta 2 delta 2 alpha 2 gamma 3
gamma cobalt 41 alpha ember 94 alpha indigo 42 alpha indigo 12 beta juniper 26 delta juniper 106
alpha 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055642-p1
List each duplicate value from the first column along with its frequency, sorted by the order of first occurrence.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta ember 112 delta harbor 71 alpha delta 54 delta grove 76 gamma juniper 71 beta grove 18 gamma amber 28 gamma juniper 65 alpha grove 25
beta 2 delta 2 alpha 2 gamma 3
gamma cobalt 41 alpha ember 94 alpha indigo 42 alpha indigo 12 beta juniper 26 delta juniper 106
alpha 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055642
qwen/qwen3.7-plus
awkweave-0055643
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"]}
note region score display_name r001 hana 15 ready r002 farah 14 active r003 dina 19 ready r004 lina 5 paused r005 jules 10 ready r006 chen 4 failed r007 chen 21 ready r008 jules 16 failed r009 gus 4 pending r010 lina 26 ready
15 14 19 5 10 4 21 16 4 26
note region score display_name r001 ivan 20 closed r002 alice 18 closed r003 jules 20 ready r004 chen 5 failed r005 ivan 24 paused r006 kim 16 paused r007 chen 10 ready r008 eli 22 active
20 18 20 5 24 16 10 22
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055643-p1
Treating the initial row as a header, output the values from the score column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
note region score display_name r001 hana 15 ready r002 farah 14 active r003 dina 19 ready r004 lina 5 paused r005 jules 10 ready r006 chen 4 failed r007 chen 21 ready r008 jules 16 failed r009 gus 4 pending r010 lina 26 ready
15 14 19 5 10 4 21 16 4 26
note region score display_name r001 ivan 20 closed r002 alice 18 closed r003 jules 20 ready r004 chen 5 failed r005 ivan 24 paused r006 kim 16 paused r007 chen 10 ready r008 eli 22 active
20 18 20 5 24 16 10 22
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055643
qwen/qwen3.7-plus
awkweave-0055644
The first row is a header. Print display_name for data rows whose score is greater than 24.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>24{print $h["display_name"]}
record_id display_name score state r001 dina 1 ready r002 lina 17 ready r003 hana 7 paused r004 gus 8 ready r005 farah 5 pending r006 farah 28 failed r007 bruno 19 closed
farah
record_id display_name score state r001 farah 24 pending r002 kim 23 failed r003 chen 14 active r004 chen 16 failed r005 bruno 27 failed r006 farah 11 pending r007 lina 19 paused r008 bruno 1 ready r009 bruno 17 paused r010 chen 14 active
bruno
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055644-p1
With the first row serving as a header, print the display_name field for data rows where the score exceeds 24.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>24{print $h["display_name"]}
record_id display_name score state r001 dina 1 ready r002 lina 17 ready r003 hana 7 paused r004 gus 8 ready r005 farah 5 pending r006 farah 28 failed r007 bruno 19 closed
farah
record_id display_name score state r001 farah 24 pending r002 kim 23 failed r003 chen 14 active r004 chen 16 failed r005 bruno 27 failed r006 farah 11 pending r007 lina 19 paused r008 bruno 1 ready r009 bruno 17 paused r010 chen 14 active
bruno
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055644
qwen/qwen3.7-plus
awkweave-0055645
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
bruno 30 failed dina 9 failed hana 27 paused farah 10 pending kim 3 active dina 11 pending kim 7 failed kim 2 paused lina 13 failed hana 20 failed
failed failed paused pending active pending failed paused failed failed
eli 21 ready bruno 21 closed dina 2 pending alice 1 pending alice 19 ready lina 4 failed chen 11 closed lina 29 failed hana 20 paused
ready closed pending pending ready failed closed failed paused
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055645-p1
Given tab-separated input, extract and print the third column from every record.
BEGIN{FS=OFS="\t"}{print $3}
bruno 30 failed dina 9 failed hana 27 paused farah 10 pending kim 3 active dina 11 pending kim 7 failed kim 2 paused lina 13 failed hana 20 failed
failed failed paused pending active pending failed paused failed failed
eli 21 ready bruno 21 closed dina 2 pending alice 1 pending alice 19 ready lina 4 failed chen 11 closed lina 29 failed hana 20 paused
ready closed pending pending ready failed closed failed paused
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055645
qwen/qwen3.7-plus
awkweave-0055646
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 11.
BEGIN{FS=OFS=","}$2>11{print $1}
ivan,12,ready lina,3,ready jules,13,ready lina,19,closed dina,10,closed eli,19,failed ivan,30,paused alice,2,paused gus,10,pending
ivan jules lina eli ivan
dina,28,pending gus,22,ready hana,5,paused kim,19,active chen,9,pending lina,30,closed
dina gus kim lina
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055646-p1
For simple comma-separated input without quoted commas, print the first column if the value in the second column is greater than 11.
BEGIN{FS=OFS=","}$2>11{print $1}
ivan,12,ready lina,3,ready jules,13,ready lina,19,closed dina,10,closed eli,19,failed ivan,30,paused alice,2,paused gus,10,pending
ivan jules lina eli ivan
dina,28,pending gus,22,ready hana,5,paused kim,19,active chen,9,pending lina,30,closed
dina gus kim lina
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055646
qwen/qwen3.7-plus
awkweave-0055647
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
eli harbor 110 farah delta 0 dina harbor 66 ivan indigo 117 jules grove 93 hana amber 52 chen birch 116 lina juniper 61
eli harbor 110 farah delta 0 dina harbor 66 ivan indigo 117 jules grove 93 hana amber 52 chen birch 116 lina juniper 61
gus juniper 91 gus amber 45 jules harbor 36 eli indigo 78 bruno grove 87 chen harbor 56 gus ember 55 gus ember 49
gus juniper 91 gus amber 45 jules harbor 36 eli indigo 78 bruno grove 87 chen harbor 56 gus ember 55 gus ember 49
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055647-p1
Remove leading and trailing whitespace, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
eli harbor 110 farah delta 0 dina harbor 66 ivan indigo 117 jules grove 93 hana amber 52 chen birch 116 lina juniper 61
eli harbor 110 farah delta 0 dina harbor 66 ivan indigo 117 jules grove 93 hana amber 52 chen birch 116 lina juniper 61
gus juniper 91 gus amber 45 jules harbor 36 eli indigo 78 bruno grove 87 chen harbor 56 gus ember 55 gus ember 49
gus juniper 91 gus amber 45 jules harbor 36 eli indigo 78 bruno grove 87 chen harbor 56 gus ember 55 gus ember 49
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055647
qwen/qwen3.7-plus
awkweave-0055648
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
alice harbor 72 paused eli delta 65 closed ivan grove 23 pending hana cobalt 71 closed gus juniper 9 paused dina ember 61 active eli fable 23 paused chen juniper 101 paused
chen juniper 101 paused
gus birch 106 ready dina amber 33 active farah juniper 49 pending ivan amber 10 active eli harbor 0 paused kim cobalt 47 closed chen harbor 40 ready kim ember 93 pending
farah juniper 49 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055648-p1
Output the longest line from the input, selecting the first one encountered if there is a tie in length.
{if(length($0)>length(best))best=$0}END{print best}
alice harbor 72 paused eli delta 65 closed ivan grove 23 pending hana cobalt 71 closed gus juniper 9 paused dina ember 61 active eli fable 23 paused chen juniper 101 paused
chen juniper 101 paused
gus birch 106 ready dina amber 33 active farah juniper 49 pending ivan amber 10 active eli harbor 0 paused kim cobalt 47 closed chen harbor 40 ready kim ember 93 pending
farah juniper 49 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055648
qwen/qwen3.7-plus
awkweave-0055649
Print every 4th line starting at line 3 (then line 7, and so on).
NR%4==3
jules 102 bruno 48 chen 14 eli 71 dina 82 lina 96 lina 55 gus 37 hana 110
chen 14 lina 55
gus 1 lina 114 gus 62 bruno 119 kim 73 farah 10 hana 62 lina 63
gus 62 hana 62
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055649-p1
Starting from line 3, print every fourth line (i.e., lines 3, 7, 11, etc.).
NR%4==3
jules 102 bruno 48 chen 14 eli 71 dina 82 lina 96 lina 55 gus 37 hana 110
chen 14 lina 55
gus 1 lina 114 gus 62 bruno 119 kim 73 farah 10 hana 62 lina 63
gus 62 hana 62
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055649
qwen/qwen3.7-plus
awkweave-0055650
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
beta birch 102 beta grove 50 alpha harbor 40 delta grove 20 alpha amber 66 beta birch 115
3
alpha delta 84 alpha indigo 109 alpha delta 68 alpha birch 68 beta ember 5 beta harbor 95 gamma ember 83 alpha indigo 57 beta grove 21
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055650-p1
Calculate and display only the number of unique values found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
beta birch 102 beta grove 50 alpha harbor 40 delta grove 20 alpha amber 66 beta birch 115
3
alpha delta 84 alpha indigo 109 alpha delta 68 alpha birch 68 beta ember 5 beta harbor 95 gamma ember 83 alpha indigo 57 beta grove 21
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055650
qwen/qwen3.7-plus
awkweave-0055651
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}
farah 20 0 farah 4 25 ivan 13 30 chen 18 9 ivan 7 17 gus 25 7 chen 19 30 bruno 11 1 farah 12 5 farah 22 1
farah 0.16 ivan 0.43 chen 2.00 ivan 0.41 gus 3.57 chen 0.63 bruno 11.00 farah 2.40 farah 22.00
alice 14 0 lina 1 9 gus 10 18 eli 19 20 eli 19 3 lina 9 27 ivan 12 7 dina 18 5
lina 0.11 gus 0.56 eli 0.95 eli 6.33 lina 0.33 ivan 1.71 dina 3.60
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055651-p1
For each row where the third column is not zero, output 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}
farah 20 0 farah 4 25 ivan 13 30 chen 18 9 ivan 7 17 gus 25 7 chen 19 30 bruno 11 1 farah 12 5 farah 22 1
farah 0.16 ivan 0.43 chen 2.00 ivan 0.41 gus 3.57 chen 0.63 bruno 11.00 farah 2.40 farah 22.00
alice 14 0 lina 1 9 gus 10 18 eli 19 20 eli 19 3 lina 9 27 ivan 12 7 dina 18 5
lina 0.11 gus 0.56 eli 0.95 eli 6.33 lina 0.33 ivan 1.71 dina 3.60
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055651
qwen/qwen3.7-plus
awkweave-0055652
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]}
dina amber 11 gus amber 22 kim juniper 20 farah fable 26 gus delta 14 ivan indigo 1 farah amber 11 lina delta 11 jules amber 14
farah fable 26 gus amber 22 kim juniper 20
dina grove 20 alice ember 19 bruno fable 29 jules birch 14 farah cobalt 24 ivan juniper 28 alice birch 4 dina juniper 23 eli indigo 26 hana cobalt 14
bruno fable 29 ivan juniper 28 eli indigo 26
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055652-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]}
dina amber 11 gus amber 22 kim juniper 20 farah fable 26 gus delta 14 ivan indigo 1 farah amber 11 lina delta 11 jules amber 14
farah fable 26 gus amber 22 kim juniper 20
dina grove 20 alice ember 19 bruno fable 29 jules birch 14 farah cobalt 24 ivan juniper 28 alice birch 4 dina juniper 23 eli indigo 26 hana cobalt 14
bruno fable 29 ivan juniper 28 eli indigo 26
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055652
qwen/qwen3.7-plus
awkweave-0055653
Select the 6th and 1st fields in that order.
{print $6, $1}
grove active hana indigo kim indigo indigo failed ivan harbor kim ember juniper failed bruno delta chen grove ember ready bruno juniper lina amber fable paused alice amber hana juniper cobalt active chen grove jules amber birch active lina fable hana ember
indigo grove ember indigo grove juniper amber ember juniper fable amber cobalt ember birch
amber failed alice ember kim grove delta closed ivan harbor alice cobalt juniper failed bruno amber eli amber fable paused chen grove bruno juniper indigo paused farah delta ivan indigo harbor pending chen delta eli cobalt indigo failed dina ember chen grove
grove amber cobalt delta amber juniper juniper fable indigo indigo cobalt harbor grove indigo
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055653-p1
Extract and print the sixth field followed by the first field.
{print $6, $1}
grove active hana indigo kim indigo indigo failed ivan harbor kim ember juniper failed bruno delta chen grove ember ready bruno juniper lina amber fable paused alice amber hana juniper cobalt active chen grove jules amber birch active lina fable hana ember
indigo grove ember indigo grove juniper amber ember juniper fable amber cobalt ember birch
amber failed alice ember kim grove delta closed ivan harbor alice cobalt juniper failed bruno amber eli amber fable paused chen grove bruno juniper indigo paused farah delta ivan indigo harbor pending chen delta eli cobalt indigo failed dina ember chen grove
grove amber cobalt delta amber juniper juniper fable indigo indigo cobalt harbor grove indigo
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055653
qwen/qwen3.7-plus
awkweave-0055654
Print the last field of every input line.
{print $NF}
indigo indigo closed juniper ember delta grove pending fable amber grove amber ready ember birch grove grove active indigo grove juniper grove active ember delta indigo grove paused indigo amber cobalt harbor paused fable delta
ember amber birch grove delta amber delta
grove amber ready amber birch birch indigo active cobalt indigo grove juniper closed cobalt ember amber harbor ready birch fable fable ember ready grove amber fable harbor paused harbor indigo birch grove pending birch fable ember grove paused indigo harbor cobalt fable paused amber fable cobalt grove failed cobalt bir...
birch indigo ember fable amber indigo fable harbor fable birch
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055654-p1
Output the final field from every line of input.
{print $NF}
indigo indigo closed juniper ember delta grove pending fable amber grove amber ready ember birch grove grove active indigo grove juniper grove active ember delta indigo grove paused indigo amber cobalt harbor paused fable delta
ember amber birch grove delta amber delta
grove amber ready amber birch birch indigo active cobalt indigo grove juniper closed cobalt ember amber harbor ready birch fable fable ember ready grove amber fable harbor paused harbor indigo birch grove pending birch fable ember grove paused indigo harbor cobalt fable paused amber fable cobalt grove failed cobalt bir...
birch indigo ember fable amber indigo fable harbor fable birch
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055654
qwen/qwen3.7-plus
awkweave-0055655
Print the complete records where column 1 is at most 47.
$1 <= 47
35 grove amber birch 61 grove grove ember 26 fable juniper indigo 92 grove delta fable 27 delta juniper ember 9 grove grove juniper
35 grove amber birch 26 fable juniper indigo 27 delta juniper ember 9 grove grove juniper
67 juniper grove amber 40 juniper indigo juniper 29 cobalt ember harbor 103 amber cobalt harbor 30 fable ember fable 104 ember grove amber 80 indigo juniper delta 26 grove fable birch
40 juniper indigo juniper 29 cobalt ember harbor 30 fable ember fable 26 grove fable birch
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055655-p1
Print full records where the value in the first column is less than or equal to 47.
$1 <= 47
35 grove amber birch 61 grove grove ember 26 fable juniper indigo 92 grove delta fable 27 delta juniper ember 9 grove grove juniper
35 grove amber birch 26 fable juniper indigo 27 delta juniper ember 9 grove grove juniper
67 juniper grove amber 40 juniper indigo juniper 29 cobalt ember harbor 103 amber cobalt harbor 30 fable ember fable 104 ember grove amber 80 indigo juniper delta 26 grove fable birch
40 juniper indigo juniper 29 cobalt ember harbor 30 fable ember fable 26 grove fable birch
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055655
qwen/qwen3.7-plus
awkweave-0055656
Show whole lines whose 2nd field is between 12 and 25, inclusive.
$2 >= 12 && $2 <= 25
active 17 ember ember failed 26 cobalt amber failed 16 harbor ember paused 1 fable fable pending 6 cobalt birch failed 4 birch amber failed 7 amber juniper paused 14 birch delta paused 27 harbor ember active 7 indigo fable
active 17 ember ember failed 16 harbor ember paused 14 birch delta
closed 21 delta fable active 3 birch ember active 17 juniper juniper ready 7 fable juniper failed 13 juniper juniper paused 1 juniper grove ready 7 birch juniper failed 27 grove juniper
closed 21 delta fable active 17 juniper juniper failed 13 juniper juniper
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055656-p1
Display entire lines where the second field falls within the inclusive range of 12 to 25.
$2 >= 12 && $2 <= 25
active 17 ember ember failed 26 cobalt amber failed 16 harbor ember paused 1 fable fable pending 6 cobalt birch failed 4 birch amber failed 7 amber juniper paused 14 birch delta paused 27 harbor ember active 7 indigo fable
active 17 ember ember failed 16 harbor ember paused 14 birch delta
closed 21 delta fable active 3 birch ember active 17 juniper juniper ready 7 fable juniper failed 13 juniper juniper paused 1 juniper grove ready 7 birch juniper failed 27 grove juniper
closed 21 delta fable active 17 juniper juniper failed 13 juniper juniper
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055656
qwen/qwen3.7-plus
awkweave-0055657
Print column 4 only for rows where column 1 is exactly ready.
$1 == "ready"{print $4}
ready 84 fable lina failed 80 juniper alice failed 0 grove jules ready 0 amber bruno paused 0 delta jules closed 62 birch jules ready 97 ember ivan active 87 birch hana
lina bruno ivan
paused 50 fable eli pending 95 cobalt farah pending 44 cobalt bruno failed 1 ember farah pending 98 grove bruno active 76 ember alice paused 1 cobalt dina active 61 grove bruno
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055657-p1
Output only the fourth column for rows where the first column is exactly 'ready'.
$1 == "ready"{print $4}
ready 84 fable lina failed 80 juniper alice failed 0 grove jules ready 0 amber bruno paused 0 delta jules closed 62 birch jules ready 97 ember ivan active 87 birch hana
lina bruno ivan
paused 50 fable eli pending 95 cobalt farah pending 44 cobalt bruno failed 1 ember farah pending 98 grove bruno active 76 ember alice paused 1 cobalt dina active 61 grove bruno
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055657
qwen/qwen3.7-plus
awkweave-0055658
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
juniper ERROR 104 cobalt DEBUG 92 birch WARN 90 cobalt DEBUG 38 harbor INFO 39 indigo WARN 71 birch WARN 83 indigo WARN 84 indigo DEBUG 84
juniper ERROR 104
indigo ERROR 42 delta ERROR 46 birch ERROR 39 harbor ERROR 52 fable ERROR 60 fable WARN 35
indigo ERROR 42 delta ERROR 46 birch ERROR 39 harbor ERROR 52 fable ERROR 60
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055658-p1
Print all fields from any line where the second field starts with the string 'ERROR'.
$2 ~ /^ERROR/
juniper ERROR 104 cobalt DEBUG 92 birch WARN 90 cobalt DEBUG 38 harbor INFO 39 indigo WARN 71 birch WARN 83 indigo WARN 84 indigo DEBUG 84
juniper ERROR 104
indigo ERROR 42 delta ERROR 46 birch ERROR 39 harbor ERROR 52 fable ERROR 60 fable WARN 35
indigo ERROR 42 delta ERROR 46 birch ERROR 39 harbor ERROR 52 fable ERROR 60
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055658
qwen/qwen3.7-plus
awkweave-0055659
Print every line except those containing the exact text birch.
$0 !~ /birch/
delta 50 active ember 38 active indigo 49 failed ember 56 ready harbor 94 closed delta 37 closed indigo 93 closed birch 999 active
delta 50 active ember 38 active indigo 49 failed ember 56 ready harbor 94 closed delta 37 closed indigo 93 closed
ember 19 pending birch 108 failed cobalt 115 active cobalt 64 active juniper 50 failed harbor 57 failed birch 999 active
ember 19 pending cobalt 115 active cobalt 64 active juniper 50 failed harbor 57 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055659-p1
Print every line that does not contain the exact string 'birch'.
$0 !~ /birch/
delta 50 active ember 38 active indigo 49 failed ember 56 ready harbor 94 closed delta 37 closed indigo 93 closed birch 999 active
delta 50 active ember 38 active indigo 49 failed ember 56 ready harbor 94 closed delta 37 closed indigo 93 closed
ember 19 pending birch 108 failed cobalt 115 active cobalt 64 active juniper 50 failed harbor 57 failed birch 999 active
ember 19 pending cobalt 115 active cobalt 64 active juniper 50 failed harbor 57 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055659
qwen/qwen3.7-plus
awkweave-0055660
Print lines 2 through 5, including both endpoints.
NR >= 2 && NR <= 5
kim amber 26 dina harbor 21 hana ember 15 kim amber 105 ivan fable 47 farah birch 43 dina indigo 0 alice birch 25
dina harbor 21 hana ember 15 kim amber 105 ivan fable 47
jules delta 2 jules grove 26 kim harbor 33 alice grove 116 gus birch 84 eli cobalt 77 farah indigo 51 kim fable 57 chen ember 21 dina ember 35
jules grove 26 kim harbor 33 alice grove 116 gus birch 84
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055660-p1
Display lines 2 to 5, inclusive of both the start and end lines.
NR >= 2 && NR <= 5
kim amber 26 dina harbor 21 hana ember 15 kim amber 105 ivan fable 47 farah birch 43 dina indigo 0 alice birch 25
dina harbor 21 hana ember 15 kim amber 105 ivan fable 47
jules delta 2 jules grove 26 kim harbor 33 alice grove 116 gus birch 84 eli cobalt 77 farah indigo 51 kim fable 57 chen ember 21 dina ember 35
jules grove 26 kim harbor 33 alice grove 116 gus birch 84
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055660
qwen/qwen3.7-plus
awkweave-0055661
Output only the first 4 records.
NR <= 4
bruno 75 juniper ivan 50 juniper chen 42 birch dina 75 ember ivan 8 amber dina 9 amber dina 4 birch eli 63 cobalt hana 39 cobalt
bruno 75 juniper ivan 50 juniper chen 42 birch dina 75 ember
ivan 23 cobalt eli 109 delta hana 70 birch dina 12 amber alice 47 delta chen 66 indigo
ivan 23 cobalt eli 109 delta hana 70 birch dina 12 amber
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055661-p1
Output just the initial 4 records.
NR <= 4
bruno 75 juniper ivan 50 juniper chen 42 birch dina 75 ember ivan 8 amber dina 9 amber dina 4 birch eli 63 cobalt hana 39 cobalt
bruno 75 juniper ivan 50 juniper chen 42 birch dina 75 ember
ivan 23 cobalt eli 109 delta hana 70 birch dina 12 amber alice 47 delta chen 66 indigo
ivan 23 cobalt eli 109 delta hana 70 birch dina 12 amber
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055661
qwen/qwen3.7-plus
awkweave-0055662
Skip the first line and print every remaining line unchanged.
NR > 1
alice 85 juniper jules 30 ember farah 7 cobalt bruno 74 grove alice 84 amber gus 80 birch gus 87 indigo farah 85 juniper alice 65 indigo chen 33 amber
jules 30 ember farah 7 cobalt bruno 74 grove alice 84 amber gus 80 birch gus 87 indigo farah 85 juniper alice 65 indigo chen 33 amber
jules 79 cobalt gus 54 juniper dina 37 grove dina 5 harbor farah 119 fable kim 115 amber lina 23 birch eli 35 amber
gus 54 juniper dina 37 grove dina 5 harbor farah 119 fable kim 115 amber lina 23 birch eli 35 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0055662-p1
Omit the first line and output all subsequent lines as they are.
NR > 1
alice 85 juniper jules 30 ember farah 7 cobalt bruno 74 grove alice 84 amber gus 80 birch gus 87 indigo farah 85 juniper alice 65 indigo chen 33 amber
jules 30 ember farah 7 cobalt bruno 74 grove alice 84 amber gus 80 birch gus 87 indigo farah 85 juniper alice 65 indigo chen 33 amber
jules 79 cobalt gus 54 juniper dina 37 grove dina 5 harbor farah 119 fable kim 115 amber lina 23 birch eli 35 amber
gus 54 juniper dina 37 grove dina 5 harbor farah 119 fable kim 115 amber lina 23 birch eli 35 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0055662
qwen/qwen3.7-plus