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-0057443
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
ivan 52 jules 33 dina 26 eli 4 dina 108 dina 1
jules 33 dina 108
hana 93 farah 117 chen 53 chen 117 chen 55 bruno 51 dina 78 dina 11 eli 12 hana 83
farah 117 chen 55 dina 11
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057443-p1
Output every third line beginning with line 2 (i.e., lines 2, 5, 8, etc.).
NR%3==2
ivan 52 jules 33 dina 26 eli 4 dina 108 dina 1
jules 33 dina 108
hana 93 farah 117 chen 53 chen 117 chen 55 bruno 51 dina 78 dina 11 eli 12 hana 83
farah 117 chen 55 dina 11
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057443
qwen/qwen3.7-plus
awkweave-0057444
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta fable 40 gamma birch 38 beta ember 61 beta juniper 31 gamma grove 43 gamma grove 31 alpha indigo 108 beta amber 65 beta cobalt 57
8
delta indigo 114 delta delta 95 beta cobalt 108 beta cobalt 8 gamma harbor 8 delta juniper 37
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057444-p1
Calculate the number of unique values in the second column and print only this total count.
{if(!seen[$2]++)n++}END{print n+0}
beta fable 40 gamma birch 38 beta ember 61 beta juniper 31 gamma grove 43 gamma grove 31 alpha indigo 108 beta amber 65 beta cobalt 57
8
delta indigo 114 delta delta 95 beta cobalt 108 beta cobalt 8 gamma harbor 8 delta juniper 37
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057444
qwen/qwen3.7-plus
awkweave-0057445
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 8 0 ivan 3 14 farah 28 7 eli 4 14 kim 16 10 gus 16 3
ivan 0.21 farah 4.00 eli 0.29 kim 1.60 gus 5.33
hana 3 0 gus 2 2 chen 16 15 eli 9 21 kim 22 20 gus 18 3 gus 29 21 lina 3 25
gus 1.00 chen 1.07 eli 0.43 kim 1.10 gus 6.00 gus 1.38 lina 0.12
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057445-p1
For each row, output the first column and the result of dividing the second column by the third (rounded to two decimal places), omitting rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
ivan 8 0 ivan 3 14 farah 28 7 eli 4 14 kim 16 10 gus 16 3
ivan 0.21 farah 4.00 eli 0.29 kim 1.60 gus 5.33
hana 3 0 gus 2 2 chen 16 15 eli 9 21 kim 22 20 gus 18 3 gus 29 21 lina 3 25
gus 1.00 chen 1.07 eli 0.43 kim 1.10 gus 6.00 gus 1.38 lina 0.12
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057445
qwen/qwen3.7-plus
awkweave-0057446
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]}
gus grove 19 bruno delta 26 lina delta 19 farah cobalt 29 lina fable 18 hana harbor 23
farah cobalt 29 bruno delta 26 hana harbor 23
jules indigo 17 bruno juniper 7 jules fable 19 jules cobalt 20 dina delta 17 ivan cobalt 20
jules cobalt 20 ivan cobalt 20 jules fable 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057446-p1
Select 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]}
gus grove 19 bruno delta 26 lina delta 19 farah cobalt 29 lina fable 18 hana harbor 23
farah cobalt 29 bruno delta 26 hana harbor 23
jules indigo 17 bruno juniper 7 jules fable 19 jules cobalt 20 dina delta 17 ivan cobalt 20
jules cobalt 20 ivan cobalt 20 jules fable 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057446
qwen/qwen3.7-plus
awkweave-0057447
For each line, output fields 5 and 1, in that order.
{print $5, $1}
40 active 17 dina gus pending 46 closed 15 eli kim ready 40 active 90 gus alice paused 10 paused 42 kim farah ready 16 closed 7 gus kim ready 97 active 1 jules lina pending
gus 40 kim 46 alice 40 farah 10 kim 16 lina 97
14 pending 30 gus ivan failed 120 active 86 bruno farah closed 99 ready 100 gus ivan ready 80 failed 82 bruno hana failed 12 closed 51 ivan alice failed 111 pending 116 alice hana closed 104 closed 44 bruno jules closed 3 pending 6 alice bruno pending 12 ready 34 chen gus pending
ivan 14 farah 120 ivan 99 hana 80 alice 12 hana 111 jules 104 bruno 3 gus 12
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057447-p1
For every line, print the fifth field followed by the first field.
{print $5, $1}
40 active 17 dina gus pending 46 closed 15 eli kim ready 40 active 90 gus alice paused 10 paused 42 kim farah ready 16 closed 7 gus kim ready 97 active 1 jules lina pending
gus 40 kim 46 alice 40 farah 10 kim 16 lina 97
14 pending 30 gus ivan failed 120 active 86 bruno farah closed 99 ready 100 gus ivan ready 80 failed 82 bruno hana failed 12 closed 51 ivan alice failed 111 pending 116 alice hana closed 104 closed 44 bruno jules closed 3 pending 6 alice bruno pending 12 ready 34 chen gus pending
ivan 14 farah 120 ivan 99 hana 80 alice 12 hana 111 jules 104 bruno 3 gus 12
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057447
qwen/qwen3.7-plus
awkweave-0057448
Print the last field of every input line.
{print $NF}
grove chen 85 indigo grove gus 10 fable ember chen 14 delta ember lina 81 delta fable bruno 109 fable ember eli 115 amber juniper alice 88 grove delta chen 110 delta indigo eli 96 cobalt cobalt eli 101 ember
indigo fable delta delta fable amber grove delta cobalt ember
cobalt bruno 7 ember amber dina 119 delta amber lina 49 harbor fable gus 64 fable amber bruno 45 grove harbor jules 60 ember birch jules 78 amber delta lina 44 harbor fable dina 107 juniper
ember delta harbor fable grove ember amber harbor juniper
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057448-p1
Output the final field from each input line.
{print $NF}
grove chen 85 indigo grove gus 10 fable ember chen 14 delta ember lina 81 delta fable bruno 109 fable ember eli 115 amber juniper alice 88 grove delta chen 110 delta indigo eli 96 cobalt cobalt eli 101 ember
indigo fable delta delta fable amber grove delta cobalt ember
cobalt bruno 7 ember amber dina 119 delta amber lina 49 harbor fable gus 64 fable amber bruno 45 grove harbor jules 60 ember birch jules 78 amber delta lina 44 harbor fable dina 107 juniper
ember delta harbor fable grove ember amber harbor juniper
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057448
qwen/qwen3.7-plus
awkweave-0057449
Print the complete records where column 1 is at least 75.
$1 >= 75
30 ready active 101 paused paused 40 pending active 10 failed ready 56 paused active 16 failed pending 9 paused pending 77 closed closed 51 ready active
101 paused paused 77 closed closed
77 failed paused 46 pending closed 28 failed ready 25 active ready 88 active paused 5 pending active 80 closed failed 83 paused closed
77 failed paused 88 active paused 80 closed failed 83 paused closed
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057449-p1
Display full records where the value in the first column is greater than or equal to 75.
$1 >= 75
30 ready active 101 paused paused 40 pending active 10 failed ready 56 paused active 16 failed pending 9 paused pending 77 closed closed 51 ready active
101 paused paused 77 closed closed
77 failed paused 46 pending closed 28 failed ready 25 active ready 88 active paused 5 pending active 80 closed failed 83 paused closed
77 failed paused 88 active paused 80 closed failed 83 paused closed
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057449
qwen/qwen3.7-plus
awkweave-0057450
Show whole lines whose 2nd field is between 9 and 18, inclusive.
$2 >= 9 && $2 <= 18
juniper 3 fable hana delta 22 cobalt lina birch 15 birch farah harbor 13 fable kim ember 8 ember chen indigo 5 amber gus birch 4 cobalt chen
birch 15 birch farah harbor 13 fable kim
fable 22 grove jules harbor 20 juniper chen harbor 6 grove chen ember 4 cobalt chen cobalt 13 juniper hana amber 27 cobalt kim ember 5 juniper bruno harbor 29 grove hana
cobalt 13 juniper hana
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057450-p1
Show entire lines where the second field falls within the range of 9 to 18, inclusive.
$2 >= 9 && $2 <= 18
juniper 3 fable hana delta 22 cobalt lina birch 15 birch farah harbor 13 fable kim ember 8 ember chen indigo 5 amber gus birch 4 cobalt chen
birch 15 birch farah harbor 13 fable kim
fable 22 grove jules harbor 20 juniper chen harbor 6 grove chen ember 4 cobalt chen cobalt 13 juniper hana amber 27 cobalt kim ember 5 juniper bruno harbor 29 grove hana
cobalt 13 juniper hana
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057450
qwen/qwen3.7-plus
awkweave-0057451
Print column 3 only for rows where column 1 is exactly ready.
$1 == "ready"{print $3}
failed 11 hana fable ready 92 lina ember pending 91 gus grove closed 65 bruno fable ready 106 dina indigo pending 31 gus ember
lina dina
closed 86 farah harbor failed 69 chen harbor failed 31 ivan birch pending 58 bruno harbor closed 79 alice delta failed 114 farah harbor paused 63 gus amber
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057451-p1
Output only the third column for rows where the first column matches 'ready' exactly.
$1 == "ready"{print $3}
failed 11 hana fable ready 92 lina ember pending 91 gus grove closed 65 bruno fable ready 106 dina indigo pending 31 gus ember
lina dina
closed 86 farah harbor failed 69 chen harbor failed 31 ivan birch pending 58 bruno harbor closed 79 alice delta failed 114 farah harbor paused 63 gus amber
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057451
qwen/qwen3.7-plus
awkweave-0057452
Print all fields from lines where field 2 begins with INFO.
$2 ~ /^INFO/
amber DEBUG 61 cobalt WARN 40 harbor DEBUG 104 harbor DEBUG 65 amber ERROR 93 indigo DEBUG 96 indigo INFO 73
indigo INFO 73
birch INFO 53 harbor ERROR 74 grove DEBUG 33 amber WARN 98 grove WARN 109 harbor WARN 2 cobalt DEBUG 115
birch INFO 53
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057452-p1
Print all fields from lines where the second field starts with 'INFO'.
$2 ~ /^INFO/
amber DEBUG 61 cobalt WARN 40 harbor DEBUG 104 harbor DEBUG 65 amber ERROR 93 indigo DEBUG 96 indigo INFO 73
indigo INFO 73
birch INFO 53 harbor ERROR 74 grove DEBUG 33 amber WARN 98 grove WARN 109 harbor WARN 2 cobalt DEBUG 115
birch INFO 53
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057452
qwen/qwen3.7-plus
awkweave-0057453
Print every line except those containing the exact text juniper.
$0 !~ /juniper/
birch 31 ready delta 109 closed cobalt 1 active amber 93 failed delta 30 paused ember 9 active juniper 19 paused birch 46 active ember 115 failed cobalt 64 pending juniper 999 active
birch 31 ready delta 109 closed cobalt 1 active amber 93 failed delta 30 paused ember 9 active birch 46 active ember 115 failed cobalt 64 pending
indigo 9 ready birch 108 active grove 37 closed ember 64 ready delta 87 ready birch 19 paused juniper 999 active
indigo 9 ready birch 108 active grove 37 closed ember 64 ready delta 87 ready birch 19 paused
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057453-p1
Output every line that does not contain the exact string 'juniper'.
$0 !~ /juniper/
birch 31 ready delta 109 closed cobalt 1 active amber 93 failed delta 30 paused ember 9 active juniper 19 paused birch 46 active ember 115 failed cobalt 64 pending juniper 999 active
birch 31 ready delta 109 closed cobalt 1 active amber 93 failed delta 30 paused ember 9 active birch 46 active ember 115 failed cobalt 64 pending
indigo 9 ready birch 108 active grove 37 closed ember 64 ready delta 87 ready birch 19 paused juniper 999 active
indigo 9 ready birch 108 active grove 37 closed ember 64 ready delta 87 ready birch 19 paused
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057453
qwen/qwen3.7-plus
awkweave-0057454
Print lines 3 through 5, including both endpoints.
NR >= 3 && NR <= 5
ivan fable 117 bruno birch 111 bruno harbor 31 eli amber 23 alice amber 73 hana grove 107 chen amber 19 kim juniper 22
bruno harbor 31 eli amber 23 alice amber 73
alice delta 14 farah amber 0 lina juniper 40 alice juniper 9 dina ember 50 hana indigo 47 hana grove 72
lina juniper 40 alice juniper 9 dina ember 50
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057454-p1
Print lines 3 to 5, inclusive of both the start and end lines.
NR >= 3 && NR <= 5
ivan fable 117 bruno birch 111 bruno harbor 31 eli amber 23 alice amber 73 hana grove 107 chen amber 19 kim juniper 22
bruno harbor 31 eli amber 23 alice amber 73
alice delta 14 farah amber 0 lina juniper 40 alice juniper 9 dina ember 50 hana indigo 47 hana grove 72
lina juniper 40 alice juniper 9 dina ember 50
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057454
qwen/qwen3.7-plus
awkweave-0057455
Output only the first 3 records.
NR <= 3
kim 85 cobalt dina 10 ember bruno 80 ember ivan 73 grove alice 88 indigo dina 79 delta chen 38 juniper farah 9 harbor lina 49 amber
kim 85 cobalt dina 10 ember bruno 80 ember
bruno 44 amber farah 108 birch bruno 94 grove hana 99 birch lina 13 grove hana 18 ember kim 62 indigo kim 18 indigo
bruno 44 amber farah 108 birch bruno 94 grove
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057455-p1
Output only the first 3 records.
NR <= 3
kim 85 cobalt dina 10 ember bruno 80 ember ivan 73 grove alice 88 indigo dina 79 delta chen 38 juniper farah 9 harbor lina 49 amber
kim 85 cobalt dina 10 ember bruno 80 ember
bruno 44 amber farah 108 birch bruno 94 grove hana 99 birch lina 13 grove hana 18 ember kim 62 indigo kim 18 indigo
bruno 44 amber farah 108 birch bruno 94 grove
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0057455
qwen/qwen3.7-plus
awkweave-0057456
Skip the first line and print every remaining line unchanged.
NR > 1
ivan 12 ember kim 52 delta jules 70 indigo lina 29 indigo gus 51 fable lina 0 delta jules 72 grove
kim 52 delta jules 70 indigo lina 29 indigo gus 51 fable lina 0 delta jules 72 grove
gus 61 cobalt eli 60 cobalt gus 73 fable farah 118 birch alice 34 delta chen 48 indigo alice 87 birch dina 8 amber chen 81 indigo
eli 60 cobalt gus 73 fable farah 118 birch alice 34 delta chen 48 indigo alice 87 birch dina 8 amber chen 81 indigo
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057456-p1
Omit the first line and print all subsequent lines as they are.
NR > 1
ivan 12 ember kim 52 delta jules 70 indigo lina 29 indigo gus 51 fable lina 0 delta jules 72 grove
kim 52 delta jules 70 indigo lina 29 indigo gus 51 fable lina 0 delta jules 72 grove
gus 61 cobalt eli 60 cobalt gus 73 fable farah 118 birch alice 34 delta chen 48 indigo alice 87 birch dina 8 amber chen 81 indigo
eli 60 cobalt gus 73 fable farah 118 birch alice 34 delta chen 48 indigo alice 87 birch dina 8 amber chen 81 indigo
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057456
qwen/qwen3.7-plus
awkweave-0057457
Count how many records have closed in column 2. Print 0 if there are none.
$2 == "closed"{n++}END{print n+0}
kim pending 109 hana closed 99 kim failed 34 gus closed 28 hana paused 112 eli active 34 kim ready 2 chen closed 66 gus paused 116 jules pending 36
3
farah active 11 kim paused 7 eli pending 64 chen active 26 dina failed 44 dina failed 93
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057457-p1
Count the number of records where the second column is 'closed'. Output 0 if no such records exist.
$2 == "closed"{n++}END{print n+0}
kim pending 109 hana closed 99 kim failed 34 gus closed 28 hana paused 112 eli active 34 kim ready 2 chen closed 66 gus paused 116 jules pending 36
3
farah active 11 kim paused 7 eli pending 64 chen active 26 dina failed 44 dina failed 93
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057457
qwen/qwen3.7-plus
awkweave-0057458
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
27 fable alice 3 juniper bruno 5 ember hana 24 cobalt kim 11 indigo gus 16 delta lina 8 harbor lina
94
7 ember gus 25 birch farah 5 cobalt farah 25 ember farah 5 harbor alice 5 harbor alice 8 grove hana 20 harbor eli
100
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057458-p1
Compute and display the sum of integer values found in the first column.
{s+=$1}END{print s+0}
27 fable alice 3 juniper bruno 5 ember hana 24 cobalt kim 11 indigo gus 16 delta lina 8 harbor lina
94
7 ember gus 25 birch farah 5 cobalt farah 25 ember farah 5 harbor alice 5 harbor alice 8 grove hana 20 harbor eli
100
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057458
qwen/qwen3.7-plus
awkweave-0057459
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
birch 20 bruno cobalt 7 jules delta 13 hana amber 11 eli amber 23 jules indigo 16 bruno grove 16 alice cobalt 2 chen delta 3 kim delta 20 ivan
13.10
birch 10 eli amber 18 lina cobalt 10 lina juniper 25 chen ember 19 kim cobalt 2 farah
14.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057459-p1
Calculate and print the average of the second column, rounded to precisely two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
birch 20 bruno cobalt 7 jules delta 13 hana amber 11 eli amber 23 jules indigo 16 bruno grove 16 alice cobalt 2 chen delta 3 kim delta 20 ivan
13.10
birch 10 eli amber 18 lina cobalt 10 lina juniper 25 chen ember 19 kim cobalt 2 farah
14.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057459
qwen/qwen3.7-plus
awkweave-0057460
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
hana juniper 27 eli cobalt 19 kim fable 1 chen juniper 6 ivan cobalt 18 farah indigo 2 gus juniper 16 farah amber 7 alice grove 19
1
hana birch 2 eli fable 11 chen birch 8 alice delta 8 lina cobalt 15 dina grove 20 lina amber 8 lina amber 4
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057460-p1
Identify and output the minimum number found in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
hana juniper 27 eli cobalt 19 kim fable 1 chen juniper 6 ivan cobalt 18 farah indigo 2 gus juniper 16 farah amber 7 alice grove 19
1
hana birch 2 eli fable 11 chen birch 8 alice delta 8 lina cobalt 15 dina grove 20 lina amber 8 lina amber 4
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057460
qwen/qwen3.7-plus
awkweave-0057461
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
8 ember ivan 16 amber eli 3 harbor dina 21 fable alice 15 birch eli 13 cobalt ivan 1 juniper lina
21
13 ember eli 9 juniper bruno 20 indigo gus 30 juniper ivan 16 harbor eli 17 juniper ivan
30
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057461-p1
Locate and display the maximum numeric value within the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
8 ember ivan 16 amber eli 3 harbor dina 21 fable alice 15 birch eli 13 cobalt ivan 1 juniper lina
21
13 ember eli 9 juniper bruno 20 indigo gus 30 juniper ivan 16 harbor eli 17 juniper ivan
30
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057461
qwen/qwen3.7-plus
awkweave-0057462
Count all input records and print the total.
END{print NR}
ivan 71 alice 57 farah 18 jules 93 ivan 93 bruno 113 kim 116
7
dina 119 ivan 100 gus 71 gus 111 ivan 46 bruno 29 alice 8 lina 41 farah 99
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057462-p1
Calculate the total number of input records and print the count.
END{print NR}
ivan 71 alice 57 farah 18 jules 93 ivan 93 bruno 113 kim 116
7
dina 119 ivan 100 gus 71 gus 111 ivan 46 bruno 29 alice 8 lina 41 farah 99
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057462
qwen/qwen3.7-plus
awkweave-0057463
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
eli birch 39 gus delta 89 alice harbor 80 bruno cobalt 22 kim delta 41 kim delta 41 dina grove 72 eli indigo 27 dina ember 35 kim harbor 28 farah indigo 91
eli birch 39 gus delta 89 alice harbor 80 bruno cobalt 22 kim delta 41 dina grove 72 eli indigo 27 dina ember 35 kim harbor 28 farah indigo 91
hana delta 15 hana grove 23 kim harbor 34 hana delta 15 jules amber 26 farah amber 42 alice fable 99 lina delta 5 eli ember 75
hana delta 15 hana grove 23 kim harbor 34 jules amber 26 farah amber 42 alice fable 99 lina delta 5 eli ember 75
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057463-p1
Eliminate duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
eli birch 39 gus delta 89 alice harbor 80 bruno cobalt 22 kim delta 41 kim delta 41 dina grove 72 eli indigo 27 dina ember 35 kim harbor 28 farah indigo 91
eli birch 39 gus delta 89 alice harbor 80 bruno cobalt 22 kim delta 41 dina grove 72 eli indigo 27 dina ember 35 kim harbor 28 farah indigo 91
hana delta 15 hana grove 23 kim harbor 34 hana delta 15 jules amber 26 farah amber 42 alice fable 99 lina delta 5 eli ember 75
hana delta 15 hana grove 23 kim harbor 34 jules amber 26 farah amber 42 alice fable 99 lina delta 5 eli ember 75
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057463
qwen/qwen3.7-plus
awkweave-0057464
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
ivan delta 111 kim ember 68 ivan fable 45 lina fable 69 chen indigo 89 alice harbor 37 eli indigo 99
ivan delta 111 kim ember 68 ivan fable 45 lina fable 69 chen indigo 89 alice harbor 37 eli indigo 99
kim fable 91 kim amber 17 kim indigo 82 hana birch 7 alice ember 118 chen fable 95 jules harbor 9 eli grove 80
kim fable 91 kim amber 17 kim indigo 82 hana birch 7 alice ember 118 chen fable 95 jules harbor 9 eli grove 80
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057464-p1
Retain only the initial line for every unique value in column 3, keeping the input order intact.
!seen[$3]++
ivan delta 111 kim ember 68 ivan fable 45 lina fable 69 chen indigo 89 alice harbor 37 eli indigo 99
ivan delta 111 kim ember 68 ivan fable 45 lina fable 69 chen indigo 89 alice harbor 37 eli indigo 99
kim fable 91 kim amber 17 kim indigo 82 hana birch 7 alice ember 118 chen fable 95 jules harbor 9 eli grove 80
kim fable 91 kim amber 17 kim indigo 82 hana birch 7 alice ember 118 chen fable 95 jules harbor 9 eli grove 80
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057464
qwen/qwen3.7-plus
awkweave-0057465
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
gus 3 cobalt ivan 7 harbor farah 17 fable gus 27 indigo farah 6 juniper kim 2 amber ivan 14 birch
gus 3 ivan 10 farah 27 gus 54 farah 60 kim 62 ivan 76
ivan 20 delta jules 18 grove bruno 24 juniper bruno 23 juniper alice 2 amber ivan 1 fable eli 13 ember ivan 15 amber alice 20 fable hana 6 juniper
ivan 20 jules 38 bruno 62 bruno 85 alice 87 ivan 88 eli 101 ivan 116 alice 136 hana 142
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057465-p1
Output column 1 alongside the cumulative sum of column 2 for each record, using a space as the delimiter.
{s+=$2;print $1,s}
gus 3 cobalt ivan 7 harbor farah 17 fable gus 27 indigo farah 6 juniper kim 2 amber ivan 14 birch
gus 3 ivan 10 farah 27 gus 54 farah 60 kim 62 ivan 76
ivan 20 delta jules 18 grove bruno 24 juniper bruno 23 juniper alice 2 amber ivan 1 fable eli 13 ember ivan 15 amber alice 20 fable hana 6 juniper
ivan 20 jules 38 bruno 62 bruno 85 alice 87 ivan 88 eli 101 ivan 116 alice 136 hana 142
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057465
qwen/qwen3.7-plus
awkweave-0057466
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
jules 18 3 harbor hana 2 21 cobalt gus 21 16 harbor jules 8 4 harbor dina 10 22 delta ivan 14 19 amber farah 2 27 indigo
jules 21 hana 23 gus 37 jules 12 dina 32 ivan 33 farah 29
alice 26 17 delta kim 1 27 birch farah 17 24 delta eli 28 24 grove gus 5 15 juniper chen 7 14 birch hana 17 20 cobalt kim 3 15 juniper jules 15 16 juniper bruno 9 10 cobalt
alice 43 kim 28 farah 41 eli 52 gus 20 chen 21 hana 37 kim 18 jules 31 bruno 19
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057466-p1
For each row, display field 1 followed by the total of fields 2 and 3.
{print $1,$2+$3}
jules 18 3 harbor hana 2 21 cobalt gus 21 16 harbor jules 8 4 harbor dina 10 22 delta ivan 14 19 amber farah 2 27 indigo
jules 21 hana 23 gus 37 jules 12 dina 32 ivan 33 farah 29
alice 26 17 delta kim 1 27 birch farah 17 24 delta eli 28 24 grove gus 5 15 juniper chen 7 14 birch hana 17 20 cobalt kim 3 15 juniper jules 15 16 juniper bruno 9 10 cobalt
alice 43 kim 28 farah 41 eli 52 gus 20 chen 21 hana 37 kim 18 jules 31 bruno 19
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057466
qwen/qwen3.7-plus
awkweave-0057467
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
jules 19 chen 20 alice 12 kim 4 gus 1 hana 9 alice 25 alice 12
jules fail chen fail alice fail kim fail gus fail hana fail alice pass alice fail
jules 16 hana 16 alice 29 jules 30 farah 17 eli 18 jules 8
jules fail hana fail alice pass jules pass farah fail eli fail jules fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057467-p1
Output column 1 with 'pass' if column 2 is 25 or greater, otherwise output 'fail'.
{print $1,($2>=25?"pass":"fail")}
jules 19 chen 20 alice 12 kim 4 gus 1 hana 9 alice 25 alice 12
jules fail chen fail alice fail kim fail gus fail hana fail alice pass alice fail
jules 16 hana 16 alice 29 jules 30 farah 17 eli 18 jules 8
jules fail hana fail alice pass jules pass farah fail eli fail jules fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057467
qwen/qwen3.7-plus
awkweave-0057468
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
kim ember 27 alice amber 48 lina cobalt 117 chen indigo 78 lina amber 102 dina juniper 76 chen birch 34
EMBER AMBER COBALT INDIGO AMBER JUNIPER BIRCH
chen birch 81 eli birch 58 jules cobalt 44 dina harbor 109 ivan harbor 72 ivan birch 104 dina cobalt 73 hana cobalt 106 kim birch 109 eli cobalt 71
BIRCH BIRCH COBALT HARBOR HARBOR BIRCH COBALT COBALT BIRCH COBALT
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057468-p1
Transform column 2 to uppercase letters and print only that specific column.
{print toupper($2)}
kim ember 27 alice amber 48 lina cobalt 117 chen indigo 78 lina amber 102 dina juniper 76 chen birch 34
EMBER AMBER COBALT INDIGO AMBER JUNIPER BIRCH
chen birch 81 eli birch 58 jules cobalt 44 dina harbor 109 ivan harbor 72 ivan birch 104 dina cobalt 73 hana cobalt 106 kim birch 109 eli cobalt 71
BIRCH BIRCH COBALT HARBOR HARBOR BIRCH COBALT COBALT BIRCH COBALT
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057468
qwen/qwen3.7-plus
awkweave-0057469
From column 1, print 3 characters starting at character 1.
{print substr($1,1,3)}
birch 82 cobalt 14 indigo 79 juniper 89 grove 91 grove 59
bir cob ind jun gro gro
grove 75 grove 80 ember 57 birch 50 indigo 37 amber 71 amber 8
gro gro emb bir ind amb amb
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057469-p1
Extract and print the first 3 characters from column 1, starting at position 1.
{print substr($1,1,3)}
birch 82 cobalt 14 indigo 79 juniper 89 grove 91 grove 59
bir cob ind jun gro gro
grove 75 grove 80 ember 57 birch 50 indigo 37 amber 71 amber 8
gro gro emb bir ind amb amb
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057469
qwen/qwen3.7-plus
awkweave-0057470
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
birch_grove 98 fable_birch 98 ember_birch 97 fable_fable 27 cobalt_harbor 41 grove_delta 23
birch grove fable birch ember birch fable fable cobalt harbor grove delta
amber_juniper 110 indigo_cobalt 5 indigo_grove 53 fable_harbor 76 birch_birch 20 birch_birch 108 harbor_amber 97 indigo_fable 34
amber juniper indigo cobalt indigo grove fable harbor birch birch birch birch harbor amber indigo fable
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057470-p1
Substitute all underscores in column 1 with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
birch_grove 98 fable_birch 98 ember_birch 97 fable_fable 27 cobalt_harbor 41 grove_delta 23
birch grove fable birch ember birch fable fable cobalt harbor grove delta
amber_juniper 110 indigo_cobalt 5 indigo_grove 53 fable_harbor 76 birch_birch 20 birch_birch 108 harbor_amber 97 indigo_fable 34
amber juniper indigo cobalt indigo grove fable harbor birch birch birch birch harbor amber indigo fable
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057470
qwen/qwen3.7-plus
awkweave-0057471
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana birch 79 paused gus grove 14 pending chen delta 52 paused farah fable 54 paused gus delta 62 failed dina amber 79 closed gus grove 39 failed
paused 79 birch hana pending 14 grove gus paused 52 delta chen paused 54 fable farah failed 62 delta gus closed 79 amber dina failed 39 grove gus
gus grove 64 failed hana birch 71 paused ivan grove 56 pending kim delta 58 pending alice ember 6 ready eli ember 86 closed bruno juniper 117 closed bruno harbor 83 failed lina delta 95 active lina delta 116 paused
failed 64 grove gus paused 71 birch hana pending 56 grove ivan pending 58 delta kim ready 6 ember alice closed 86 ember eli closed 117 juniper bruno failed 83 harbor bruno active 95 delta lina paused 116 delta lina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057471-p1
Invert the sequence of fields for every line and print all resulting fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
hana birch 79 paused gus grove 14 pending chen delta 52 paused farah fable 54 paused gus delta 62 failed dina amber 79 closed gus grove 39 failed
paused 79 birch hana pending 14 grove gus paused 52 delta chen paused 54 fable farah failed 62 delta gus closed 79 amber dina failed 39 grove gus
gus grove 64 failed hana birch 71 paused ivan grove 56 pending kim delta 58 pending alice ember 6 ready eli ember 86 closed bruno juniper 117 closed bruno harbor 83 failed lina delta 95 active lina delta 116 paused
failed 64 grove gus paused 71 birch hana pending 56 grove ivan pending 58 delta kim ready 6 ember alice closed 86 ember eli closed 117 juniper bruno failed 83 harbor bruno active 95 delta lina paused 116 delta lina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057471
qwen/qwen3.7-plus
awkweave-0057472
Print the number of whitespace-separated fields on each line.
{print NF}
kim juniper 95 closed lina fable 9 closed eli juniper 24 ready farah amber 52 failed alice delta 75 ready alice birch 89 active gus amber 14 closed chen amber 68 pending kim harbor 52 paused
4 4 4 4 4 4 4 4 4
alice amber 31 paused bruno indigo 92 paused jules cobalt 48 pending eli cobalt 41 paused eli delta 101 paused alice harbor 9 active bruno cobalt 32 ready
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057472-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
kim juniper 95 closed lina fable 9 closed eli juniper 24 ready farah amber 52 failed alice delta 75 ready alice birch 89 active gus amber 14 closed chen amber 68 pending kim harbor 52 paused
4 4 4 4 4 4 4 4 4
alice amber 31 paused bruno indigo 92 paused jules cobalt 48 pending eli cobalt 41 paused eli delta 101 paused alice harbor 9 active bruno cobalt 32 ready
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057472
qwen/qwen3.7-plus
awkweave-0057473
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
dina gamma 92 bruno beta 70 lina delta 12 jules alpha 35 chen delta 42 dina gamma 102 alice delta 82
gamma 2 beta 1 delta 3 alpha 1
lina alpha 45 chen beta 59 bruno alpha 23 kim gamma 31 farah gamma 90 lina gamma 93 ivan beta 43
alpha 2 beta 2 gamma 3
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057473-p1
Tally records by each unique value in the second column, displaying the value and its total in the order they first appear.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
dina gamma 92 bruno beta 70 lina delta 12 jules alpha 35 chen delta 42 dina gamma 102 alice delta 82
gamma 2 beta 1 delta 3 alpha 1
lina alpha 45 chen beta 59 bruno alpha 23 kim gamma 31 farah gamma 90 lina gamma 93 ivan beta 43
alpha 2 beta 2 gamma 3
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057473
qwen/qwen3.7-plus
awkweave-0057474
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]]}
chen delta 20 dina gamma 26 lina delta 25 alice beta 4 eli beta 12 hana beta 20 dina beta 9 hana beta 29 gus gamma 22 bruno beta 14
delta 45 gamma 48 beta 88
jules alpha 26 chen gamma 11 hana alpha 20 alice beta 7 eli delta 28 chen alpha 2 farah delta 20
alpha 48 gamma 11 beta 7 delta 48
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057474-p1
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]]}
chen delta 20 dina gamma 26 lina delta 25 alice beta 4 eli beta 12 hana beta 20 dina beta 9 hana beta 29 gus gamma 22 bruno beta 14
delta 45 gamma 48 beta 88
jules alpha 26 chen gamma 11 hana alpha 20 alice beta 7 eli delta 28 chen alpha 2 farah delta 20
alpha 48 gamma 11 beta 7 delta 48
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0057474
qwen/qwen3.7-plus
awkweave-0057475
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]]}
alpha amber 44 beta amber 120 delta delta 114 gamma amber 6 gamma delta 43 gamma cobalt 49
gamma 3
delta juniper 62 gamma birch 85 delta amber 100 beta cobalt 47 delta birch 82 delta birch 1
delta 4
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057475-p1
List each duplicate entry from the first column alongside its frequency, 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]]}
alpha amber 44 beta amber 120 delta delta 114 gamma amber 6 gamma delta 43 gamma cobalt 49
gamma 3
delta juniper 62 gamma birch 85 delta amber 100 beta cobalt 47 delta birch 82 delta birch 1
delta 4
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057475
qwen/qwen3.7-plus
awkweave-0057476
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 record_id score state r001 hana 24 paused r002 kim 9 closed r003 bruno 24 active r004 jules 1 closed r005 jules 23 pending r006 lina 11 ready
paused closed active closed pending ready
display_name record_id score state r001 hana 7 failed r002 alice 5 pending r003 chen 15 paused r004 farah 7 ready r005 eli 3 failed r006 ivan 1 paused r007 eli 8 failed
failed pending paused ready failed paused failed
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057476-p1
Skip the header row and output the state field for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
display_name record_id score state r001 hana 24 paused r002 kim 9 closed r003 bruno 24 active r004 jules 1 closed r005 jules 23 pending r006 lina 11 ready
paused closed active closed pending ready
display_name record_id score state r001 hana 7 failed r002 alice 5 pending r003 chen 15 paused r004 farah 7 ready r005 eli 3 failed r006 ivan 1 paused r007 eli 8 failed
failed pending paused ready failed paused failed
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057476
qwen/qwen3.7-plus
awkweave-0057477
The first row is a header. Print display_name for data rows whose score is greater than 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 ivan 26 closed r002 lina 28 pending r003 gus 24 paused r004 alice 23 active r005 hana 20 failed r006 jules 28 paused r007 dina 2 paused r008 kim 16 pending
ivan lina gus alice hana jules
record_id display_name score state r001 chen 26 active r002 jules 27 active r003 ivan 3 closed r004 lina 16 ready r005 jules 23 ready r006 lina 8 pending r007 alice 22 active r008 gus 5 ready r009 eli 29 pending
chen jules jules alice eli
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057477-p1
Ignoring the header, print the display_name for any row where the score is above 16.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>16{print $h["display_name"]}
record_id display_name score state r001 ivan 26 closed r002 lina 28 pending r003 gus 24 paused r004 alice 23 active r005 hana 20 failed r006 jules 28 paused r007 dina 2 paused r008 kim 16 pending
ivan lina gus alice hana jules
record_id display_name score state r001 chen 26 active r002 jules 27 active r003 ivan 3 closed r004 lina 16 ready r005 jules 23 ready r006 lina 8 pending r007 alice 22 active r008 gus 5 ready r009 eli 29 pending
chen jules jules alice eli
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057477
qwen/qwen3.7-plus
awkweave-0057478
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
ivan 19 ready dina 22 pending ivan 17 ready hana 24 active ivan 23 closed chen 24 ready kim 12 ready farah 16 pending
ivan dina ivan hana ivan chen kim farah
dina 26 closed eli 12 failed jules 17 ready farah 2 closed gus 8 closed hana 7 pending ivan 5 active
dina eli jules farah gus hana ivan
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057478-p1
Extract and print the first field from each tab-separated record.
BEGIN{FS=OFS="\t"}{print $1}
ivan 19 ready dina 22 pending ivan 17 ready hana 24 active ivan 23 closed chen 24 ready kim 12 ready farah 16 pending
ivan dina ivan hana ivan chen kim farah
dina 26 closed eli 12 failed jules 17 ready farah 2 closed gus 8 closed hana 7 pending ivan 5 active
dina eli jules farah gus hana ivan
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057478
qwen/qwen3.7-plus
awkweave-0057479
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 15.
BEGIN{FS=OFS=","}$2>15{print $1}
farah,27,closed ivan,2,pending eli,18,paused bruno,19,pending hana,2,active ivan,4,failed
farah eli bruno
dina,27,closed bruno,8,closed eli,12,ready dina,1,paused eli,21,paused ivan,27,failed alice,11,failed
dina eli ivan
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057479-p1
For simple CSV input without quoted commas, output the first column if the second column's value is greater than 15.
BEGIN{FS=OFS=","}$2>15{print $1}
farah,27,closed ivan,2,pending eli,18,paused bruno,19,pending hana,2,active ivan,4,failed
farah eli bruno
dina,27,closed bruno,8,closed eli,12,ready dina,1,paused eli,21,paused ivan,27,failed alice,11,failed
dina eli ivan
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057479
qwen/qwen3.7-plus
awkweave-0057480
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice grove 3 farah harbor 72 chen fable 17 bruno fable 51 dina harbor 53 eli birch 84 alice indigo 0 alice ember 9 farah amber 93 chen juniper 81
alice grove 3 farah harbor 72 chen fable 17 bruno fable 51 dina harbor 53 eli birch 84 alice indigo 0 alice ember 9 farah amber 93 chen juniper 81
jules delta 37 kim ember 67 hana delta 34 dina grove 16 hana delta 41 gus delta 71
jules delta 37 kim ember 67 hana delta 34 dina grove 16 hana delta 41 gus delta 71
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057480-p1
Remove leading and trailing spaces and replace sequences of internal whitespace with a single space.
{$1=$1;print}
alice grove 3 farah harbor 72 chen fable 17 bruno fable 51 dina harbor 53 eli birch 84 alice indigo 0 alice ember 9 farah amber 93 chen juniper 81
alice grove 3 farah harbor 72 chen fable 17 bruno fable 51 dina harbor 53 eli birch 84 alice indigo 0 alice ember 9 farah amber 93 chen juniper 81
jules delta 37 kim ember 67 hana delta 34 dina grove 16 hana delta 41 gus delta 71
jules delta 37 kim ember 67 hana delta 34 dina grove 16 hana delta 41 gus delta 71
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057480
qwen/qwen3.7-plus
awkweave-0057481
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
farah amber 24 paused chen juniper 57 failed farah birch 95 ready farah harbor 12 pending gus ember 114 ready kim fable 18 pending kim grove 56 paused eli harbor 41 ready lina harbor 76 pending
farah harbor 12 pending
jules cobalt 0 active dina ember 118 active kim fable 96 ready hana cobalt 10 paused dina indigo 60 closed alice ember 100 paused chen delta 32 paused kim juniper 111 pending ivan cobalt 90 ready chen grove 93 pending
kim juniper 111 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057481-p1
Identify and output the longest line from the input, selecting the first one encountered in case of a tie.
{if(length($0)>length(best))best=$0}END{print best}
farah amber 24 paused chen juniper 57 failed farah birch 95 ready farah harbor 12 pending gus ember 114 ready kim fable 18 pending kim grove 56 paused eli harbor 41 ready lina harbor 76 pending
farah harbor 12 pending
jules cobalt 0 active dina ember 118 active kim fable 96 ready hana cobalt 10 paused dina indigo 60 closed alice ember 100 paused chen delta 32 paused kim juniper 111 pending ivan cobalt 90 ready chen grove 93 pending
kim juniper 111 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057481
qwen/qwen3.7-plus
awkweave-0057482
Print every 3rd line starting at line 2 (then line 5, and so on).
NR%3==2
eli 91 alice 118 gus 1 hana 71 farah 54 lina 51 gus 2
alice 118 farah 54
kim 108 lina 87 alice 31 bruno 30 jules 107 gus 26
lina 87 jules 107
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057482-p1
Print lines 2, 5, 8, and so on, effectively selecting every third line starting from the second.
NR%3==2
eli 91 alice 118 gus 1 hana 71 farah 54 lina 51 gus 2
alice 118 farah 54
kim 108 lina 87 alice 31 bruno 30 jules 107 gus 26
lina 87 jules 107
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057482
qwen/qwen3.7-plus
awkweave-0057483
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
gamma cobalt 114 beta cobalt 4 gamma cobalt 83 delta delta 89 gamma birch 53 gamma amber 99
4
gamma grove 3 beta fable 14 beta cobalt 115 gamma birch 116 alpha cobalt 17 alpha harbor 20 alpha indigo 21 gamma delta 12
7
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057483-p1
Determine the number of unique values in the second column and output only that total.
{if(!seen[$2]++)n++}END{print n+0}
gamma cobalt 114 beta cobalt 4 gamma cobalt 83 delta delta 89 gamma birch 53 gamma amber 99
4
gamma grove 3 beta fable 14 beta cobalt 115 gamma birch 116 alpha cobalt 17 alpha harbor 20 alpha indigo 21 gamma delta 12
7
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057483
qwen/qwen3.7-plus
awkweave-0057484
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}
jules 10 0 alice 18 11 gus 8 26 ivan 21 4 hana 5 28 dina 17 10 alice 22 29 lina 27 18
alice 1.64 gus 0.31 ivan 5.25 hana 0.18 dina 1.70 alice 0.76 lina 1.50
chen 1 0 eli 1 1 gus 9 23 alice 4 26 lina 3 7 bruno 6 20 gus 2 27 lina 16 26
eli 1.00 gus 0.39 alice 0.15 lina 0.43 bruno 0.30 gus 0.07 lina 0.62
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057484-p1
Output the first and second columns divided by the third, formatted to two decimal places, while ignoring any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 10 0 alice 18 11 gus 8 26 ivan 21 4 hana 5 28 dina 17 10 alice 22 29 lina 27 18
alice 1.64 gus 0.31 ivan 5.25 hana 0.18 dina 1.70 alice 0.76 lina 1.50
chen 1 0 eli 1 1 gus 9 23 alice 4 26 lina 3 7 bruno 6 20 gus 2 27 lina 16 26
eli 1.00 gus 0.39 alice 0.15 lina 0.43 bruno 0.30 gus 0.07 lina 0.62
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057484
qwen/qwen3.7-plus
awkweave-0057485
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]}
gus cobalt 13 lina fable 2 kim indigo 1 gus juniper 21 jules amber 18 farah grove 3 alice ember 17
gus juniper 21 jules amber 18 alice ember 17
eli indigo 28 hana fable 2 ivan amber 21 lina ember 19 kim juniper 11 farah ember 6 hana harbor 12 chen fable 19 ivan indigo 16 bruno grove 7
eli indigo 28 ivan amber 21 lina ember 19
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057485-p1
Display the top three records based on the highest numeric values in column 3, sorted in descending order, maintaining the original input sequence 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]}
gus cobalt 13 lina fable 2 kim indigo 1 gus juniper 21 jules amber 18 farah grove 3 alice ember 17
gus juniper 21 jules amber 18 alice ember 17
eli indigo 28 hana fable 2 ivan amber 21 lina ember 19 kim juniper 11 farah ember 6 hana harbor 12 chen fable 19 ivan indigo 16 bruno grove 7
eli indigo 28 ivan amber 21 lina ember 19
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057485
qwen/qwen3.7-plus
awkweave-0057486
Print column 3 followed by column 1 for every record.
{print $3, $1}
ready farah jules alice 67 paused chen jules farah 113 pending alice hana gus 32 failed gus lina kim 68 pending ivan lina farah 109 closed alice bruno ivan 110 active farah farah alice 72
jules ready jules paused hana pending lina failed lina pending bruno closed farah active
failed chen dina jules 105 closed farah gus alice 75 paused eli chen farah 67 paused ivan gus chen 61 paused eli kim eli 111 closed gus ivan hana 111 closed ivan lina jules 38 closed alice dina hana 43 closed ivan hana lina 23
dina failed gus closed chen paused gus paused kim paused ivan closed lina closed dina closed hana closed
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057486-p1
For every record, output column 3 followed by column 1.
{print $3, $1}
ready farah jules alice 67 paused chen jules farah 113 pending alice hana gus 32 failed gus lina kim 68 pending ivan lina farah 109 closed alice bruno ivan 110 active farah farah alice 72
jules ready jules paused hana pending lina failed lina pending bruno closed farah active
failed chen dina jules 105 closed farah gus alice 75 paused eli chen farah 67 paused ivan gus chen 61 paused eli kim eli 111 closed gus ivan hana 111 closed ivan lina jules 38 closed alice dina hana 43 closed ivan hana lina 23
dina failed gus closed chen paused gus paused kim paused ivan closed lina closed dina closed hana closed
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057486
qwen/qwen3.7-plus
awkweave-0057487
Print the last field of every input line.
{print $NF}
cobalt alice delta failed paused delta chen indigo pending pending birch gus harbor closed failed birch eli indigo active pending delta jules birch pending ready cobalt gus birch active active juniper gus fable ready paused juniper jules juniper paused pending
paused pending failed pending ready active paused pending
delta alice cobalt closed failed grove alice delta closed paused delta ivan cobalt paused paused birch bruno cobalt ready paused amber chen delta pending closed ember ivan fable failed paused juniper gus grove closed pending harbor dina fable closed pending
failed paused paused paused closed paused pending pending
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057487-p1
Print the final field from each line of input.
{print $NF}
cobalt alice delta failed paused delta chen indigo pending pending birch gus harbor closed failed birch eli indigo active pending delta jules birch pending ready cobalt gus birch active active juniper gus fable ready paused juniper jules juniper paused pending
paused pending failed pending ready active paused pending
delta alice cobalt closed failed grove alice delta closed paused delta ivan cobalt paused paused birch bruno cobalt ready paused amber chen delta pending closed ember ivan fable failed paused juniper gus grove closed pending harbor dina fable closed pending
failed paused paused paused closed paused pending pending
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057487
qwen/qwen3.7-plus
awkweave-0057488
Print the complete records where column 3 is greater than 23.
$3 > 23
dina fable 87 ember jules ember 73 indigo farah juniper 93 birch lina juniper 111 fable chen indigo 20 amber lina fable 6 delta dina birch 57 harbor farah birch 49 harbor gus delta 37 birch
dina fable 87 ember jules ember 73 indigo farah juniper 93 birch lina juniper 111 fable dina birch 57 harbor farah birch 49 harbor gus delta 37 birch
bruno birch 33 indigo eli birch 102 indigo kim grove 57 juniper gus harbor 65 delta kim fable 18 ember chen ember 23 fable bruno amber 63 fable chen birch 91 ember hana delta 34 juniper
bruno birch 33 indigo eli birch 102 indigo kim grove 57 juniper gus harbor 65 delta bruno amber 63 fable chen birch 91 ember hana delta 34 juniper
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057488-p1
Output full records where the value in column 3 exceeds 23.
$3 > 23
dina fable 87 ember jules ember 73 indigo farah juniper 93 birch lina juniper 111 fable chen indigo 20 amber lina fable 6 delta dina birch 57 harbor farah birch 49 harbor gus delta 37 birch
dina fable 87 ember jules ember 73 indigo farah juniper 93 birch lina juniper 111 fable dina birch 57 harbor farah birch 49 harbor gus delta 37 birch
bruno birch 33 indigo eli birch 102 indigo kim grove 57 juniper gus harbor 65 delta kim fable 18 ember chen ember 23 fable bruno amber 63 fable chen birch 91 ember hana delta 34 juniper
bruno birch 33 indigo eli birch 102 indigo kim grove 57 juniper gus harbor 65 delta bruno amber 63 fable chen birch 91 ember hana delta 34 juniper
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057488
qwen/qwen3.7-plus
awkweave-0057489
Show whole lines whose 1st field is between 12 and 25, inclusive.
$1 >= 12 && $1 <= 25
19 ember jules hana 9 harbor hana dina 20 ember chen bruno 19 juniper bruno kim 15 fable dina jules 8 amber lina farah 4 harbor chen lina 4 grove gus chen 1 amber alice dina
19 ember jules hana 20 ember chen bruno 19 juniper bruno kim 15 fable dina jules
28 grove hana bruno 15 grove farah gus 23 grove gus eli 13 birch dina alice 11 grove alice kim 4 delta lina chen 23 delta bruno alice
15 grove farah gus 23 grove gus eli 13 birch dina alice 23 delta bruno alice
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057489-p1
Display entire lines where the first field falls within the inclusive range of 12 to 25.
$1 >= 12 && $1 <= 25
19 ember jules hana 9 harbor hana dina 20 ember chen bruno 19 juniper bruno kim 15 fable dina jules 8 amber lina farah 4 harbor chen lina 4 grove gus chen 1 amber alice dina
19 ember jules hana 20 ember chen bruno 19 juniper bruno kim 15 fable dina jules
28 grove hana bruno 15 grove farah gus 23 grove gus eli 13 birch dina alice 11 grove alice kim 4 delta lina chen 23 delta bruno alice
15 grove farah gus 23 grove gus eli 13 birch dina alice 23 delta bruno alice
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057489
qwen/qwen3.7-plus
awkweave-0057500
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
18 birch dina 1 ember hana 30 indigo gus 10 delta bruno 22 cobalt bruno 24 juniper jules
30
11 amber hana 14 ember dina 23 fable ivan 26 cobalt bruno 12 juniper alice 26 grove hana
26
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057500-p1
Identify and print the maximum numeric value found in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
18 birch dina 1 ember hana 30 indigo gus 10 delta bruno 22 cobalt bruno 24 juniper jules
30
11 amber hana 14 ember dina 23 fable ivan 26 cobalt bruno 12 juniper alice 26 grove hana
26
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057500
qwen/qwen3.7-plus
awkweave-0057501
Count all input records and print the total.
END{print NR}
gus 19 kim 114 kim 41 bruno 4 farah 92 gus 34 lina 11 alice 69
8
chen 38 alice 113 lina 17 chen 34 lina 28 gus 14 ivan 53 dina 13 farah 24 kim 86
10
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057501-p1
Count the total number of input records and print the result.
END{print NR}
gus 19 kim 114 kim 41 bruno 4 farah 92 gus 34 lina 11 alice 69
8
chen 38 alice 113 lina 17 chen 34 lina 28 gus 14 ivan 53 dina 13 farah 24 kim 86
10
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057501
qwen/qwen3.7-plus
awkweave-0057502
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
lina delta 51 hana fable 90 eli fable 47 jules juniper 43 eli cobalt 59 alice ember 52 eli fable 47 hana ember 14 ivan ember 80 gus amber 4 alice fable 45
lina delta 51 hana fable 90 eli fable 47 jules juniper 43 eli cobalt 59 alice ember 52 hana ember 14 ivan ember 80 gus amber 4 alice fable 45
bruno harbor 102 dina grove 38 gus cobalt 6 kim juniper 119 jules delta 110 dina delta 78 jules cobalt 0 gus juniper 64 jules cobalt 0 hana harbor 30 gus birch 46
bruno harbor 102 dina grove 38 gus cobalt 6 kim juniper 119 jules delta 110 dina delta 78 jules cobalt 0 gus juniper 64 hana harbor 30 gus birch 46
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0057502-p1
Eliminate exact duplicate lines while keeping the first occurrence and maintaining the original order.
!seen[$0]++
lina delta 51 hana fable 90 eli fable 47 jules juniper 43 eli cobalt 59 alice ember 52 eli fable 47 hana ember 14 ivan ember 80 gus amber 4 alice fable 45
lina delta 51 hana fable 90 eli fable 47 jules juniper 43 eli cobalt 59 alice ember 52 hana ember 14 ivan ember 80 gus amber 4 alice fable 45
bruno harbor 102 dina grove 38 gus cobalt 6 kim juniper 119 jules delta 110 dina delta 78 jules cobalt 0 gus juniper 64 jules cobalt 0 hana harbor 30 gus birch 46
bruno harbor 102 dina grove 38 gus cobalt 6 kim juniper 119 jules delta 110 dina delta 78 jules cobalt 0 gus juniper 64 hana harbor 30 gus birch 46
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0057502
qwen/qwen3.7-plus