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-0002220-p1
Calculate the number of unique entries in the first column and output just that total count.
{if(!seen[$1]++)n++}END{print n+0}
gamma fable 110 delta harbor 24 gamma juniper 26 alpha fable 119 delta juniper 104 beta indigo 115 beta ember 1 gamma indigo 68 beta fable 106
4
alpha delta 109 gamma harbor 77 delta amber 35 delta fable 84 beta fable 7 delta indigo 5
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002220
qwen/qwen3.7-plus
awkweave-0002221
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}
chen 5 0 dina 1 9 gus 14 5 chen 27 9 chen 5 30 hana 23 23 jules 17 18
dina 0.11 gus 2.80 chen 3.00 chen 0.17 hana 1.00 jules 0.94
alice 20 0 kim 18 7 hana 28 26 bruno 13 30 lina 20 23 gus 30 2 eli 1 17 lina 3 30
kim 2.57 hana 1.08 bruno 0.43 lina 0.87 gus 15.00 eli 0.06 lina 0.10
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002221-p1
For each row where the third column is not zero, print the first column and the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
chen 5 0 dina 1 9 gus 14 5 chen 27 9 chen 5 30 hana 23 23 jules 17 18
dina 0.11 gus 2.80 chen 3.00 chen 0.17 hana 1.00 jules 0.94
alice 20 0 kim 18 7 hana 28 26 bruno 13 30 lina 20 23 gus 30 2 eli 1 17 lina 3 30
kim 2.57 hana 1.08 bruno 0.43 lina 0.87 gus 15.00 eli 0.06 lina 0.10
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002221
qwen/qwen3.7-plus
awkweave-0002222
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 ember 7 lina delta 11 farah juniper 25 chen birch 28 chen delta 10 jules indigo 1 alice grove 15 ivan cobalt 19 gus fable 16 gus ember 22
chen birch 28 farah juniper 25 gus ember 22
chen grove 25 bruno ember 22 farah amber 24 ivan cobalt 22 farah birch 15 chen amber 3
chen grove 25 farah amber 24 bruno ember 22
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002222-p1
Output the top three records based on the highest numeric values in column 3, sorted in descending order; maintain 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 ember 7 lina delta 11 farah juniper 25 chen birch 28 chen delta 10 jules indigo 1 alice grove 15 ivan cobalt 19 gus fable 16 gus ember 22
chen birch 28 farah juniper 25 gus ember 22
chen grove 25 bruno ember 22 farah amber 24 ivan cobalt 22 farah birch 15 chen amber 3
chen grove 25 farah amber 24 bruno ember 22
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002222
qwen/qwen3.7-plus
awkweave-0002223
Print column 6 followed by column 1 for every record.
{print $6, $1}
hana cobalt chen 97 41 failed kim delta kim 87 29 active ivan ember chen 11 12 pending hana ember farah 5 72 active alice delta dina 16 61 active gus birch ivan 106 20 ready ivan cobalt farah 100 15 pending hana grove hana 20 76 ready hana fable hana 80 112 failed bruno harbor hana 21 76 ready
failed hana active kim pending ivan active hana active alice ready gus pending ivan ready hana failed hana ready bruno
ivan fable gus 6 40 failed farah grove farah 31 56 ready alice juniper chen 31 84 active farah fable kim 114 58 pending hana juniper alice 47 117 active ivan birch kim 87 67 paused alice ember farah 108 103 paused farah juniper lina 39 32 closed
failed ivan ready farah active alice pending farah active hana paused ivan paused alice closed farah
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002223-p1
For every record, print the sixth column followed by the first column.
{print $6, $1}
hana cobalt chen 97 41 failed kim delta kim 87 29 active ivan ember chen 11 12 pending hana ember farah 5 72 active alice delta dina 16 61 active gus birch ivan 106 20 ready ivan cobalt farah 100 15 pending hana grove hana 20 76 ready hana fable hana 80 112 failed bruno harbor hana 21 76 ready
failed hana active kim pending ivan active hana active alice ready gus pending ivan ready hana failed hana ready bruno
ivan fable gus 6 40 failed farah grove farah 31 56 ready alice juniper chen 31 84 active farah fable kim 114 58 pending hana juniper alice 47 117 active ivan birch kim 87 67 paused alice ember farah 108 103 paused farah juniper lina 39 32 closed
failed ivan ready farah active alice pending farah active hana paused ivan paused alice closed farah
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002223
qwen/qwen3.7-plus
awkweave-0002224
Print the last field of every input line.
{print $NF}
94 jules hana 81 eli pending closed 84 gus jules 42 gus pending closed 71 alice chen 75 alice ready failed 33 gus bruno 9 eli paused active 47 hana bruno 117 dina paused closed 73 ivan farah 71 kim closed failed 70 farah chen 43 farah pending active 40 bruno lina 36 jules ready active 55 chen farah 95 dina ready ready
closed closed failed active closed failed active active ready
15 jules eli 18 gus paused failed 81 lina farah 118 bruno failed pending 82 lina kim 69 lina failed paused 94 bruno jules 55 lina closed paused 109 kim kim 119 hana closed failed 5 jules jules 0 bruno ready ready
failed pending paused paused failed ready
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002224-p1
Output the final field from each input line.
{print $NF}
94 jules hana 81 eli pending closed 84 gus jules 42 gus pending closed 71 alice chen 75 alice ready failed 33 gus bruno 9 eli paused active 47 hana bruno 117 dina paused closed 73 ivan farah 71 kim closed failed 70 farah chen 43 farah pending active 40 bruno lina 36 jules ready active 55 chen farah 95 dina ready ready
closed closed failed active closed failed active active ready
15 jules eli 18 gus paused failed 81 lina farah 118 bruno failed pending 82 lina kim 69 lina failed paused 94 bruno jules 55 lina closed paused 109 kim kim 119 hana closed failed 5 jules jules 0 bruno ready ready
failed pending paused paused failed ready
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002224
qwen/qwen3.7-plus
awkweave-0002225
Print the complete records where column 2 is less than 48.
$2 < 48
failed 43 dina alice active 116 eli dina pending 76 kim farah pending 95 lina dina paused 104 dina jules closed 55 farah chen paused 2 chen kim paused 64 farah chen
failed 43 dina alice paused 2 chen kim
failed 102 gus chen ready 118 hana kim paused 79 eli gus paused 78 chen lina closed 107 eli hana pending 86 dina jules
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002225-p1
Display full records where the value in the second column is strictly less than 48.
$2 < 48
failed 43 dina alice active 116 eli dina pending 76 kim farah pending 95 lina dina paused 104 dina jules closed 55 farah chen paused 2 chen kim paused 64 farah chen
failed 43 dina alice paused 2 chen kim
failed 102 gus chen ready 118 hana kim paused 79 eli gus paused 78 chen lina closed 107 eli hana pending 86 dina jules
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002225
qwen/qwen3.7-plus
awkweave-0002226
Show whole lines whose 2nd field is between 9 and 19, inclusive.
$2 >= 9 && $2 <= 19
paused 10 paused paused active 8 paused closed active 21 closed failed failed 27 paused active active 2 active closed failed 24 pending closed failed 29 pending active paused 21 pending ready paused 8 active ready closed 29 failed failed
paused 10 paused paused
active 22 ready paused ready 22 active closed active 2 paused paused pending 14 paused active active 16 paused pending paused 14 pending closed paused 7 paused ready
pending 14 paused active active 16 paused pending paused 14 pending closed
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002226-p1
Show entire lines where the second field falls within the inclusive range of 9 to 19.
$2 >= 9 && $2 <= 19
paused 10 paused paused active 8 paused closed active 21 closed failed failed 27 paused active active 2 active closed failed 24 pending closed failed 29 pending active paused 21 pending ready paused 8 active ready closed 29 failed failed
paused 10 paused paused
active 22 ready paused ready 22 active closed active 2 paused paused pending 14 paused active active 16 paused pending paused 14 pending closed paused 7 paused ready
pending 14 paused active active 16 paused pending paused 14 pending closed
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002226
qwen/qwen3.7-plus
awkweave-0002227
Print column 4 only for rows where column 2 is exactly closed.
$2 == "closed"{print $4}
44 paused fable lina 12 paused cobalt chen 45 active juniper lina 37 active amber alice 96 closed indigo eli 37 pending indigo ivan 78 active grove jules 119 closed juniper hana
eli hana
45 closed birch chen 85 pending fable gus 17 failed juniper kim 7 pending delta bruno 26 failed birch bruno 117 ready grove alice 67 pending delta bruno
chen
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002227-p1
Print only the fourth column for rows where the second column equals 'closed'.
$2 == "closed"{print $4}
44 paused fable lina 12 paused cobalt chen 45 active juniper lina 37 active amber alice 96 closed indigo eli 37 pending indigo ivan 78 active grove jules 119 closed juniper hana
eli hana
45 closed birch chen 85 pending fable gus 17 failed juniper kim 7 pending delta bruno 26 failed birch bruno 117 ready grove alice 67 pending delta bruno
chen
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002227
qwen/qwen3.7-plus
awkweave-0002228
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
ERROR 2 harbor DEBUG 119 harbor DEBUG 12 amber WARN 52 ember INFO 58 harbor INFO 66 indigo WARN 19 ember WARN 100 birch INFO 90 delta ERROR 55 juniper
ERROR 2 harbor ERROR 55 juniper
DEBUG 33 delta DEBUG 69 cobalt DEBUG 117 amber WARN 112 ember ERROR 39 cobalt INFO 90 fable
ERROR 39 cobalt
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002228-p1
Output all fields from lines where the first field starts with 'ERROR'.
$1 ~ /^ERROR/
ERROR 2 harbor DEBUG 119 harbor DEBUG 12 amber WARN 52 ember INFO 58 harbor INFO 66 indigo WARN 19 ember WARN 100 birch INFO 90 delta ERROR 55 juniper
ERROR 2 harbor ERROR 55 juniper
DEBUG 33 delta DEBUG 69 cobalt DEBUG 117 amber WARN 112 ember ERROR 39 cobalt INFO 90 fable
ERROR 39 cobalt
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002228
qwen/qwen3.7-plus
awkweave-0002229
Print every line except those containing the exact text indigo.
$0 !~ /indigo/
fable 106 pending harbor 84 ready birch 106 active fable 7 pending fable 109 failed cobalt 16 ready fable 65 closed fable 86 pending indigo 999 active
fable 106 pending harbor 84 ready birch 106 active fable 7 pending fable 109 failed cobalt 16 ready fable 65 closed fable 86 pending
juniper 8 paused birch 70 failed grove 10 pending birch 112 active grove 77 ready amber 47 failed indigo 999 active
juniper 8 paused birch 70 failed grove 10 pending birch 112 active grove 77 ready amber 47 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002229-p1
Print every line that does not contain the exact string 'indigo'.
$0 !~ /indigo/
fable 106 pending harbor 84 ready birch 106 active fable 7 pending fable 109 failed cobalt 16 ready fable 65 closed fable 86 pending indigo 999 active
fable 106 pending harbor 84 ready birch 106 active fable 7 pending fable 109 failed cobalt 16 ready fable 65 closed fable 86 pending
juniper 8 paused birch 70 failed grove 10 pending birch 112 active grove 77 ready amber 47 failed indigo 999 active
juniper 8 paused birch 70 failed grove 10 pending birch 112 active grove 77 ready amber 47 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002229
qwen/qwen3.7-plus
awkweave-0002230
Print lines 2 through 5, including both endpoints.
NR >= 2 && NR <= 5
lina ember 11 dina delta 17 lina indigo 108 gus amber 72 lina amber 64 gus juniper 54
dina delta 17 lina indigo 108 gus amber 72 lina amber 64
jules juniper 85 dina delta 112 ivan fable 35 farah juniper 48 gus grove 103 farah delta 111 alice grove 6 ivan fable 25 lina indigo 40 dina harbor 107
dina delta 112 ivan fable 35 farah juniper 48 gus grove 103
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002230-p1
Output lines 2 through 5, inclusive of both endpoints.
NR >= 2 && NR <= 5
lina ember 11 dina delta 17 lina indigo 108 gus amber 72 lina amber 64 gus juniper 54
dina delta 17 lina indigo 108 gus amber 72 lina amber 64
jules juniper 85 dina delta 112 ivan fable 35 farah juniper 48 gus grove 103 farah delta 111 alice grove 6 ivan fable 25 lina indigo 40 dina harbor 107
dina delta 112 ivan fable 35 farah juniper 48 gus grove 103
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002230
qwen/qwen3.7-plus
awkweave-0002231
Output only the first 5 records.
NR <= 5
eli 17 harbor jules 120 harbor alice 101 indigo farah 109 cobalt chen 40 birch eli 84 birch
eli 17 harbor jules 120 harbor alice 101 indigo farah 109 cobalt chen 40 birch
lina 67 fable farah 63 birch kim 79 harbor ivan 34 ember ivan 20 birch chen 20 fable farah 114 fable ivan 25 delta bruno 48 harbor bruno 5 delta
lina 67 fable farah 63 birch kim 79 harbor ivan 34 ember ivan 20 birch
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002231-p1
Display only the first 5 records.
NR <= 5
eli 17 harbor jules 120 harbor alice 101 indigo farah 109 cobalt chen 40 birch eli 84 birch
eli 17 harbor jules 120 harbor alice 101 indigo farah 109 cobalt chen 40 birch
lina 67 fable farah 63 birch kim 79 harbor ivan 34 ember ivan 20 birch chen 20 fable farah 114 fable ivan 25 delta bruno 48 harbor bruno 5 delta
lina 67 fable farah 63 birch kim 79 harbor ivan 34 ember ivan 20 birch
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002231
qwen/qwen3.7-plus
awkweave-0002232
Skip the first line and print every remaining line unchanged.
NR > 1
ivan 45 fable hana 4 fable chen 72 delta lina 107 indigo lina 110 delta chen 6 birch lina 98 harbor chen 78 birch ivan 38 fable
hana 4 fable chen 72 delta lina 107 indigo lina 110 delta chen 6 birch lina 98 harbor chen 78 birch ivan 38 fable
dina 10 fable kim 90 indigo eli 70 grove eli 35 ember alice 79 delta gus 64 delta hana 101 birch
kim 90 indigo eli 70 grove eli 35 ember alice 79 delta gus 64 delta hana 101 birch
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002232-p1
Ignore the first line and print all subsequent lines exactly as they appear.
NR > 1
ivan 45 fable hana 4 fable chen 72 delta lina 107 indigo lina 110 delta chen 6 birch lina 98 harbor chen 78 birch ivan 38 fable
hana 4 fable chen 72 delta lina 107 indigo lina 110 delta chen 6 birch lina 98 harbor chen 78 birch ivan 38 fable
dina 10 fable kim 90 indigo eli 70 grove eli 35 ember alice 79 delta gus 64 delta hana 101 birch
kim 90 indigo eli 70 grove eli 35 ember alice 79 delta gus 64 delta hana 101 birch
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002232
qwen/qwen3.7-plus
awkweave-0002233
Count how many records have paused in column 2. Print 0 if there are none.
$2 == "paused"{n++}END{print n+0}
hana closed 4 bruno closed 93 lina ready 63 kim pending 100 gus closed 38 dina closed 33 bruno failed 86 hana closed 30 ivan closed 117
0
chen failed 37 gus paused 88 jules ready 41 jules active 42 dina paused 72 jules failed 112 lina ready 113
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002233-p1
Count the number of records where the second column is 'paused', outputting 0 if no such records exist.
$2 == "paused"{n++}END{print n+0}
hana closed 4 bruno closed 93 lina ready 63 kim pending 100 gus closed 38 dina closed 33 bruno failed 86 hana closed 30 ivan closed 117
0
chen failed 37 gus paused 88 jules ready 41 jules active 42 dina paused 72 jules failed 112 lina ready 113
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002233
qwen/qwen3.7-plus
awkweave-0002234
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
1 hana ember 19 kim fable 24 ivan juniper 25 dina birch 14 dina harbor 30 alice juniper 16 ivan cobalt 13 farah delta 12 farah indigo
154
10 hana birch 4 chen amber 23 ivan harbor 20 bruno grove 19 bruno juniper 1 chen grove 9 farah birch 20 hana amber 6 chen grove 24 gus cobalt
136
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002234-p1
Compute and print the total sum of integer values found in the first column.
{s+=$1}END{print s+0}
1 hana ember 19 kim fable 24 ivan juniper 25 dina birch 14 dina harbor 30 alice juniper 16 ivan cobalt 13 farah delta 12 farah indigo
154
10 hana birch 4 chen amber 23 ivan harbor 20 bruno grove 19 bruno juniper 1 chen grove 9 farah birch 20 hana amber 6 chen grove 24 gus cobalt
136
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002234
qwen/qwen3.7-plus
awkweave-0002235
Print the arithmetic mean of column 1, rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
1 jules delta 1 bruno delta 27 kim delta 18 chen juniper 2 chen harbor 22 gus delta
11.83
18 dina grove 15 alice ember 16 eli grove 13 farah cobalt 22 alice cobalt 24 eli fable 8 chen cobalt 25 chen birch
17.62
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002235-p1
Calculate the average of the values in the first column and print it rounded to exactly two decimal places.
{s+=$1;n++}END{printf "%.2f\n",s/n}
1 jules delta 1 bruno delta 27 kim delta 18 chen juniper 2 chen harbor 22 gus delta
11.83
18 dina grove 15 alice ember 16 eli grove 13 farah cobalt 22 alice cobalt 24 eli fable 8 chen cobalt 25 chen birch
17.62
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002235
qwen/qwen3.7-plus
awkweave-0002236
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
dina 18 ember chen 24 juniper chen 6 amber dina 23 grove kim 19 birch bruno 3 fable
3
chen 21 grove farah 8 delta ivan 10 birch lina 10 grove dina 20 cobalt eli 2 grove alice 27 harbor gus 15 amber lina 7 indigo lina 20 cobalt
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002236-p1
Identify and output the minimum number found in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
dina 18 ember chen 24 juniper chen 6 amber dina 23 grove kim 19 birch bruno 3 fable
3
chen 21 grove farah 8 delta ivan 10 birch lina 10 grove dina 20 cobalt eli 2 grove alice 27 harbor gus 15 amber lina 7 indigo lina 20 cobalt
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002236
qwen/qwen3.7-plus
awkweave-0002237
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
1 kim cobalt 11 ivan juniper 5 dina cobalt 14 alice birch 16 gus juniper 11 dina fable 1 chen juniper
16
11 eli harbor 18 chen birch 1 eli ember 9 eli delta 17 jules indigo 24 chen juniper 22 ivan cobalt 25 lina amber 28 alice amber 12 alice indigo
28
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002237-p1
Locate and display the maximum numeric value within the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
1 kim cobalt 11 ivan juniper 5 dina cobalt 14 alice birch 16 gus juniper 11 dina fable 1 chen juniper
16
11 eli harbor 18 chen birch 1 eli ember 9 eli delta 17 jules indigo 24 chen juniper 22 ivan cobalt 25 lina amber 28 alice amber 12 alice indigo
28
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002237
qwen/qwen3.7-plus
awkweave-0002238
Count all input records and print the total.
END{print NR}
lina 99 ivan 9 farah 88 jules 34 alice 43 dina 59 eli 79 bruno 50 hana 16 hana 31
10
ivan 2 alice 61 bruno 13 gus 76 farah 117 alice 49 gus 63 hana 51 bruno 99
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002238-p1
Calculate the total number of input records and print the count.
END{print NR}
lina 99 ivan 9 farah 88 jules 34 alice 43 dina 59 eli 79 bruno 50 hana 16 hana 31
10
ivan 2 alice 61 bruno 13 gus 76 farah 117 alice 49 gus 63 hana 51 bruno 99
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002238
qwen/qwen3.7-plus
awkweave-0002239
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
kim ember 17 ivan juniper 61 lina indigo 0 alice indigo 78 alice harbor 93 bruno delta 85 farah indigo 31 chen grove 115 hana harbor 105 farah indigo 31 chen fable 23
kim ember 17 ivan juniper 61 lina indigo 0 alice indigo 78 alice harbor 93 bruno delta 85 farah indigo 31 chen grove 115 hana harbor 105 chen fable 23
ivan ember 117 farah harbor 100 alice ember 71 ivan ember 117 alice harbor 35 ivan cobalt 84 eli fable 85
ivan ember 117 farah harbor 100 alice ember 71 alice harbor 35 ivan cobalt 84 eli fable 85
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002239-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
kim ember 17 ivan juniper 61 lina indigo 0 alice indigo 78 alice harbor 93 bruno delta 85 farah indigo 31 chen grove 115 hana harbor 105 farah indigo 31 chen fable 23
kim ember 17 ivan juniper 61 lina indigo 0 alice indigo 78 alice harbor 93 bruno delta 85 farah indigo 31 chen grove 115 hana harbor 105 chen fable 23
ivan ember 117 farah harbor 100 alice ember 71 ivan ember 117 alice harbor 35 ivan cobalt 84 eli fable 85
ivan ember 117 farah harbor 100 alice ember 71 alice harbor 35 ivan cobalt 84 eli fable 85
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002239
qwen/qwen3.7-plus
awkweave-0002240
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
eli birch 115 bruno juniper 115 lina birch 54 alice grove 9 eli fable 26 farah ember 12 eli juniper 29 dina birch 25
eli birch 115 bruno juniper 115 lina birch 54 alice grove 9 farah ember 12 dina birch 25
hana birch 32 eli grove 98 chen juniper 80 jules cobalt 114 hana cobalt 19 bruno grove 51 dina cobalt 113 eli indigo 14 bruno amber 66 lina delta 23
hana birch 32 eli grove 98 chen juniper 80 jules cobalt 114 bruno grove 51 dina cobalt 113 lina delta 23
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002240-p1
Retain only the initial line for every unique value in the first column, preserving the input order.
!seen[$1]++
eli birch 115 bruno juniper 115 lina birch 54 alice grove 9 eli fable 26 farah ember 12 eli juniper 29 dina birch 25
eli birch 115 bruno juniper 115 lina birch 54 alice grove 9 farah ember 12 dina birch 25
hana birch 32 eli grove 98 chen juniper 80 jules cobalt 114 hana cobalt 19 bruno grove 51 dina cobalt 113 eli indigo 14 bruno amber 66 lina delta 23
hana birch 32 eli grove 98 chen juniper 80 jules cobalt 114 bruno grove 51 dina cobalt 113 lina delta 23
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002240
qwen/qwen3.7-plus
awkweave-0002241
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
eli 16 cobalt hana 24 grove chen 5 delta chen 26 delta chen 5 juniper ivan 12 birch
eli 16 hana 40 chen 45 chen 71 chen 76 ivan 88
gus 11 grove kim 14 indigo farah 12 cobalt bruno 11 delta jules 11 grove gus 14 cobalt kim 26 fable
gus 11 kim 25 farah 37 bruno 48 jules 59 gus 73 kim 99
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002241-p1
Output the first column alongside the cumulative sum of the second column for each record, using a space as the delimiter.
{s+=$2;print $1,s}
eli 16 cobalt hana 24 grove chen 5 delta chen 26 delta chen 5 juniper ivan 12 birch
eli 16 hana 40 chen 45 chen 71 chen 76 ivan 88
gus 11 grove kim 14 indigo farah 12 cobalt bruno 11 delta jules 11 grove gus 14 cobalt kim 26 fable
gus 11 kim 25 farah 37 bruno 48 jules 59 gus 73 kim 99
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002241
qwen/qwen3.7-plus
awkweave-0002242
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
eli 30 13 indigo chen 28 8 delta kim 12 2 birch chen 23 27 grove kim 19 29 delta dina 10 19 delta bruno 29 14 birch bruno 26 2 grove
eli 43 chen 36 kim 14 chen 50 kim 48 dina 29 bruno 43 bruno 28
eli 15 14 harbor bruno 27 25 indigo chen 21 6 birch bruno 29 18 juniper jules 18 2 harbor bruno 9 7 juniper
eli 29 bruno 52 chen 27 bruno 47 jules 20 bruno 16
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002242-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
eli 30 13 indigo chen 28 8 delta kim 12 2 birch chen 23 27 grove kim 19 29 delta dina 10 19 delta bruno 29 14 birch bruno 26 2 grove
eli 43 chen 36 kim 14 chen 50 kim 48 dina 29 bruno 43 bruno 28
eli 15 14 harbor bruno 27 25 indigo chen 21 6 birch bruno 29 18 juniper jules 18 2 harbor bruno 9 7 juniper
eli 29 bruno 52 chen 27 bruno 47 jules 20 bruno 16
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002242
qwen/qwen3.7-plus
awkweave-0002243
Print column 1 and pass when column 2 is at least 22; otherwise print fail.
{print $1,($2>=22?"pass":"fail")}
bruno 8 ivan 5 eli 18 hana 1 kim 24 alice 30 hana 17 lina 8
bruno fail ivan fail eli fail hana fail kim pass alice pass hana fail lina fail
kim 1 farah 11 dina 9 chen 4 ivan 8 dina 24 eli 18 gus 13 gus 30
kim fail farah fail dina fail chen fail ivan fail dina pass eli fail gus fail gus pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002243-p1
Output the first column and print 'pass' if the second column is 22 or greater; otherwise, print 'fail'.
{print $1,($2>=22?"pass":"fail")}
bruno 8 ivan 5 eli 18 hana 1 kim 24 alice 30 hana 17 lina 8
bruno fail ivan fail eli fail hana fail kim pass alice pass hana fail lina fail
kim 1 farah 11 dina 9 chen 4 ivan 8 dina 24 eli 18 gus 13 gus 30
kim fail farah fail dina fail chen fail ivan fail dina pass eli fail gus fail gus pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002243
qwen/qwen3.7-plus
awkweave-0002244
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
jules amber 95 gus indigo 63 eli harbor 44 chen indigo 48 bruno cobalt 109 gus harbor 38 chen indigo 79 kim grove 112
JULES GUS ELI CHEN BRUNO GUS CHEN KIM
hana juniper 75 lina amber 29 jules ember 43 jules ember 102 ivan cobalt 82 farah cobalt 39 chen cobalt 62 lina fable 58
HANA LINA JULES JULES IVAN FARAH CHEN LINA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002244-p1
Transform the first column to uppercase and output only that column.
{print toupper($1)}
jules amber 95 gus indigo 63 eli harbor 44 chen indigo 48 bruno cobalt 109 gus harbor 38 chen indigo 79 kim grove 112
JULES GUS ELI CHEN BRUNO GUS CHEN KIM
hana juniper 75 lina amber 29 jules ember 43 jules ember 102 ivan cobalt 82 farah cobalt 39 chen cobalt 62 lina fable 58
HANA LINA JULES JULES IVAN FARAH CHEN LINA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002244
qwen/qwen3.7-plus
awkweave-0002245
From column 1, print 2 characters starting at character 1.
{print substr($1,1,2)}
indigo 51 juniper 76 birch 119 cobalt 30 cobalt 29 birch 31 cobalt 0 harbor 94
in ju bi co co bi co ha
amber 106 amber 62 indigo 114 delta 114 juniper 33 ember 28 fable 38 cobalt 80
am am in de ju em fa co
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002245-p1
Extract and print the first two characters from the first column.
{print substr($1,1,2)}
indigo 51 juniper 76 birch 119 cobalt 30 cobalt 29 birch 31 cobalt 0 harbor 94
in ju bi co co bi co ha
amber 106 amber 62 indigo 114 delta 114 juniper 33 ember 28 fable 38 cobalt 80
am am in de ju em fa co
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002245
qwen/qwen3.7-plus
awkweave-0002246
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
cobalt_amber 32 grove_indigo 4 cobalt_juniper 98 amber_ember 117 harbor_cobalt 58 harbor_indigo 116 indigo_cobalt 87 juniper_ember 32 birch_juniper 94
cobalt amber grove indigo cobalt juniper amber ember harbor cobalt harbor indigo indigo cobalt juniper ember birch juniper
indigo_fable 5 ember_ember 91 ember_cobalt 85 cobalt_indigo 67 indigo_indigo 106 delta_ember 35
indigo fable ember ember ember cobalt cobalt indigo indigo indigo delta ember
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002246-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
cobalt_amber 32 grove_indigo 4 cobalt_juniper 98 amber_ember 117 harbor_cobalt 58 harbor_indigo 116 indigo_cobalt 87 juniper_ember 32 birch_juniper 94
cobalt amber grove indigo cobalt juniper amber ember harbor cobalt harbor indigo indigo cobalt juniper ember birch juniper
indigo_fable 5 ember_ember 91 ember_cobalt 85 cobalt_indigo 67 indigo_indigo 106 delta_ember 35
indigo fable ember ember ember cobalt cobalt indigo indigo indigo delta ember
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002246
qwen/qwen3.7-plus
awkweave-0002247
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)}
eli fable 64 ready alice ember 35 ready farah cobalt 98 pending jules harbor 91 failed farah ember 13 active farah delta 64 active lina juniper 0 active
ready 64 fable eli ready 35 ember alice pending 98 cobalt farah failed 91 harbor jules active 13 ember farah active 64 delta farah active 0 juniper lina
eli birch 36 pending ivan amber 78 closed alice ember 9 failed kim amber 32 closed gus ember 55 ready gus delta 10 paused dina indigo 18 closed
pending 36 birch eli closed 78 amber ivan failed 9 ember alice closed 32 amber kim ready 55 ember gus paused 10 delta gus closed 18 indigo dina
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002247-p1
Invert the sequence of fields on each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
eli fable 64 ready alice ember 35 ready farah cobalt 98 pending jules harbor 91 failed farah ember 13 active farah delta 64 active lina juniper 0 active
ready 64 fable eli ready 35 ember alice pending 98 cobalt farah failed 91 harbor jules active 13 ember farah active 64 delta farah active 0 juniper lina
eli birch 36 pending ivan amber 78 closed alice ember 9 failed kim amber 32 closed gus ember 55 ready gus delta 10 paused dina indigo 18 closed
pending 36 birch eli closed 78 amber ivan failed 9 ember alice closed 32 amber kim ready 55 ember gus paused 10 delta gus closed 18 indigo dina
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002247
qwen/qwen3.7-plus
awkweave-0002248
Print the number of whitespace-separated fields on each line.
{print NF}
kim juniper 5 ready hana grove 97 ready hana amber 75 pending dina ember 9 ready jules grove 111 closed farah harbor 119 closed farah grove 19 closed gus juniper 24 paused jules birch 110 ready ivan delta 101 closed
4 4 4 4 4 4 4 4 4 4
jules grove 35 paused alice grove 80 failed jules grove 93 pending kim cobalt 66 pending chen fable 95 closed farah cobalt 104 ready dina juniper 0 paused lina juniper 41 closed alice cobalt 50 active gus amber 10 paused
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002248-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
kim juniper 5 ready hana grove 97 ready hana amber 75 pending dina ember 9 ready jules grove 111 closed farah harbor 119 closed farah grove 19 closed gus juniper 24 paused jules birch 110 ready ivan delta 101 closed
4 4 4 4 4 4 4 4 4 4
jules grove 35 paused alice grove 80 failed jules grove 93 pending kim cobalt 66 pending chen fable 95 closed farah cobalt 104 ready dina juniper 0 paused lina juniper 41 closed alice cobalt 50 active gus amber 10 paused
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002248
qwen/qwen3.7-plus
awkweave-0002249
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]]}
kim beta 36 eli beta 83 kim delta 117 alice delta 24 farah alpha 30 alice beta 118 hana beta 53 chen delta 114 dina gamma 43 farah gamma 37
beta 4 delta 3 alpha 1 gamma 2
kim alpha 3 hana gamma 79 farah gamma 69 farah beta 17 hana alpha 9 chen delta 23 hana gamma 119 gus beta 17 jules beta 5 gus beta 62
alpha 2 gamma 3 beta 4 delta 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002249-p1
Tally the occurrences of each unique value in the second column and display them alongside their counts, maintaining the order in which 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]]}
kim beta 36 eli beta 83 kim delta 117 alice delta 24 farah alpha 30 alice beta 118 hana beta 53 chen delta 114 dina gamma 43 farah gamma 37
beta 4 delta 3 alpha 1 gamma 2
kim alpha 3 hana gamma 79 farah gamma 69 farah beta 17 hana alpha 9 chen delta 23 hana gamma 119 gus beta 17 jules beta 5 gus beta 62
alpha 2 gamma 3 beta 4 delta 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002249
qwen/qwen3.7-plus
awkweave-0002250
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
farah delta 21 eli beta 5 lina alpha 15 ivan gamma 19 ivan delta 24 hana beta 4 gus delta 18 farah delta 24 ivan alpha 22
delta 87 beta 9 alpha 37 gamma 19
gus alpha 21 lina gamma 26 kim gamma 27 farah alpha 25 lina delta 17 hana beta 6 dina alpha 5 dina alpha 28
alpha 79 gamma 53 delta 17 beta 6
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002250-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]]}
farah delta 21 eli beta 5 lina alpha 15 ivan gamma 19 ivan delta 24 hana beta 4 gus delta 18 farah delta 24 ivan alpha 22
delta 87 beta 9 alpha 37 gamma 19
gus alpha 21 lina gamma 26 kim gamma 27 farah alpha 25 lina delta 17 hana beta 6 dina alpha 5 dina alpha 28
alpha 79 gamma 53 delta 17 beta 6
sum_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0002250
qwen/qwen3.7-plus
awkweave-0002251
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]]}
delta amber 108 gamma indigo 61 gamma harbor 106 delta birch 105 beta amber 77 alpha harbor 28 delta birch 62 beta cobalt 115 gamma amber 54
delta 3 gamma 3 beta 2
beta cobalt 9 gamma delta 75 beta fable 39 delta birch 60 delta grove 55 gamma fable 70
beta 2 gamma 2 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002251-p1
List each duplicate entry from the first column along with its frequency, sorted by the order of 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]]}
delta amber 108 gamma indigo 61 gamma harbor 106 delta birch 105 beta amber 77 alpha harbor 28 delta birch 62 beta cobalt 115 gamma amber 54
delta 3 gamma 3 beta 2
beta cobalt 9 gamma delta 75 beta fable 39 delta birch 60 delta grove 55 gamma fable 70
beta 2 gamma 2 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002251
qwen/qwen3.7-plus
awkweave-0002252
The first row is a header. Print the note column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
score state display_name note r001 dina 29 closed r002 chen 15 active r003 hana 29 active r004 ivan 27 ready r005 chen 19 active r006 gus 19 failed r007 bruno 11 closed
closed active active ready active failed closed
score state display_name note r001 chen 11 failed r002 hana 2 active r003 jules 18 active r004 alice 18 ready r005 gus 30 pending r006 chen 14 ready r007 bruno 9 pending
failed active active ready pending ready pending
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002252-p1
Treating the initial line as a header, output the contents of the note column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
score state display_name note r001 dina 29 closed r002 chen 15 active r003 hana 29 active r004 ivan 27 ready r005 chen 19 active r006 gus 19 failed r007 bruno 11 closed
closed active active ready active failed closed
score state display_name note r001 chen 11 failed r002 hana 2 active r003 jules 18 active r004 alice 18 ready r005 gus 30 pending r006 chen 14 ready r007 bruno 9 pending
failed active active ready pending ready pending
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002252
qwen/qwen3.7-plus
awkweave-0002253
The first row is a header. Print display_name for data rows whose score is greater than 14.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>14{print $h["display_name"]}
record_id display_name score state r001 farah 23 active r002 hana 6 failed r003 hana 3 pending r004 jules 9 closed r005 hana 25 paused r006 eli 11 closed r007 lina 13 closed r008 kim 7 active
farah hana
record_id display_name score state r001 alice 15 active r002 farah 24 active r003 gus 11 pending r004 dina 9 ready r005 bruno 5 pending r006 hana 11 closed r007 bruno 1 failed
alice farah
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002253-p1
Ignoring the header row, print the display_name field for any record where the score exceeds 14.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>14{print $h["display_name"]}
record_id display_name score state r001 farah 23 active r002 hana 6 failed r003 hana 3 pending r004 jules 9 closed r005 hana 25 paused r006 eli 11 closed r007 lina 13 closed r008 kim 7 active
farah hana
record_id display_name score state r001 alice 15 active r002 farah 24 active r003 gus 11 pending r004 dina 9 ready r005 bruno 5 pending r006 hana 11 closed r007 bruno 1 failed
alice farah
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002253
qwen/qwen3.7-plus
awkweave-0002254
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
jules 26 pending alice 12 ready bruno 19 closed eli 7 pending gus 8 active eli 3 failed
jules alice bruno eli gus eli
dina 22 failed lina 28 failed kim 26 paused bruno 5 ready ivan 21 paused bruno 28 active jules 1 closed hana 9 pending chen 21 ready kim 2 paused
dina lina kim bruno ivan bruno jules hana chen kim
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002254-p1
Given tab-separated input, extract and print the first field from each record.
BEGIN{FS=OFS="\t"}{print $1}
jules 26 pending alice 12 ready bruno 19 closed eli 7 pending gus 8 active eli 3 failed
jules alice bruno eli gus eli
dina 22 failed lina 28 failed kim 26 paused bruno 5 ready ivan 21 paused bruno 28 active jules 1 closed hana 9 pending chen 21 ready kim 2 paused
dina lina kim bruno ivan bruno jules hana chen kim
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002254
qwen/qwen3.7-plus
awkweave-0002255
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 14.
BEGIN{FS=OFS=","}$2>14{print $1}
bruno,10,ready jules,5,paused bruno,24,paused gus,21,closed lina,7,paused bruno,2,paused
bruno gus
kim,25,closed ivan,28,paused alice,2,ready ivan,8,ready jules,29,paused jules,20,failed alice,14,closed farah,27,paused bruno,13,pending
kim ivan jules jules farah
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002255-p1
For simple comma-separated values without quoting, output the first column whenever the second column's value is greater than 14.
BEGIN{FS=OFS=","}$2>14{print $1}
bruno,10,ready jules,5,paused bruno,24,paused gus,21,closed lina,7,paused bruno,2,paused
bruno gus
kim,25,closed ivan,28,paused alice,2,ready ivan,8,ready jules,29,paused jules,20,failed alice,14,closed farah,27,paused bruno,13,pending
kim ivan jules jules farah
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002255
qwen/qwen3.7-plus
awkweave-0002256
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina grove 40 eli cobalt 5 jules grove 58 jules delta 61 ivan harbor 31 kim grove 46
lina grove 40 eli cobalt 5 jules grove 58 jules delta 61 ivan harbor 31 kim grove 46
eli cobalt 5 chen fable 31 bruno indigo 57 kim fable 55 farah delta 106 chen amber 38
eli cobalt 5 chen fable 31 bruno indigo 57 kim fable 55 farah delta 106 chen amber 38
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002256-p1
Remove leading and trailing spaces and replace sequences of internal whitespace with a single space.
{$1=$1;print}
lina grove 40 eli cobalt 5 jules grove 58 jules delta 61 ivan harbor 31 kim grove 46
lina grove 40 eli cobalt 5 jules grove 58 jules delta 61 ivan harbor 31 kim grove 46
eli cobalt 5 chen fable 31 bruno indigo 57 kim fable 55 farah delta 106 chen amber 38
eli cobalt 5 chen fable 31 bruno indigo 57 kim fable 55 farah delta 106 chen amber 38
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002256
qwen/qwen3.7-plus
awkweave-0002257
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli indigo 89 closed bruno delta 112 active ivan grove 28 pending alice delta 32 closed hana grove 13 ready lina amber 54 closed kim grove 36 active ivan grove 112 pending kim amber 73 paused kim harbor 68 paused
bruno delta 112 active
dina fable 107 ready kim juniper 26 active ivan grove 54 paused gus harbor 29 closed eli cobalt 72 pending chen ember 18 ready
kim juniper 26 active
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002257-p1
Identify and output the longest line from the input; in case of a tie in length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
eli indigo 89 closed bruno delta 112 active ivan grove 28 pending alice delta 32 closed hana grove 13 ready lina amber 54 closed kim grove 36 active ivan grove 112 pending kim amber 73 paused kim harbor 68 paused
bruno delta 112 active
dina fable 107 ready kim juniper 26 active ivan grove 54 paused gus harbor 29 closed eli cobalt 72 pending chen ember 18 ready
kim juniper 26 active
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002257
qwen/qwen3.7-plus
awkweave-0002258
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
eli 76 dina 106 hana 41 kim 113 ivan 39 dina 118 chen 20 kim 97 jules 3 gus 107
eli 76 hana 41 ivan 39 chen 20 jules 3
hana 118 ivan 70 ivan 1 alice 120 bruno 83 lina 96 ivan 72
hana 118 ivan 1 bruno 83 ivan 72
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002258-p1
Print lines 1, 3, 5, and so on, effectively selecting every second line starting from the first.
NR%2==1
eli 76 dina 106 hana 41 kim 113 ivan 39 dina 118 chen 20 kim 97 jules 3 gus 107
eli 76 hana 41 ivan 39 chen 20 jules 3
hana 118 ivan 70 ivan 1 alice 120 bruno 83 lina 96 ivan 72
hana 118 ivan 1 bruno 83 ivan 72
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002258
qwen/qwen3.7-plus
awkweave-0002259
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
gamma ember 27 gamma harbor 75 delta juniper 11 delta birch 12 delta juniper 5 alpha birch 15 beta fable 54 delta fable 6 delta birch 93
5
gamma juniper 86 delta cobalt 44 alpha indigo 58 gamma birch 38 gamma juniper 91 delta birch 47 alpha juniper 120 gamma ember 90 gamma juniper 102 beta amber 18
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002259-p1
Determine the number of unique values present in the second column and output only that total count.
{if(!seen[$2]++)n++}END{print n+0}
gamma ember 27 gamma harbor 75 delta juniper 11 delta birch 12 delta juniper 5 alpha birch 15 beta fable 54 delta fable 6 delta birch 93
5
gamma juniper 86 delta cobalt 44 alpha indigo 58 gamma birch 38 gamma juniper 91 delta birch 47 alpha juniper 120 gamma ember 90 gamma juniper 102 beta amber 18
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002259
qwen/qwen3.7-plus
awkweave-0002260
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}
gus 27 0 gus 27 19 jules 4 23 bruno 17 16 dina 25 24 alice 21 6 bruno 6 5 hana 26 28
gus 1.42 jules 0.17 bruno 1.06 dina 1.04 alice 3.50 bruno 1.20 hana 0.93
alice 12 0 kim 8 24 alice 28 4 gus 2 20 dina 27 30 chen 6 17 ivan 6 28 hana 19 4 bruno 4 15
kim 0.33 alice 7.00 gus 0.10 dina 0.90 chen 0.35 ivan 0.21 hana 4.75 bruno 0.27
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002260-p1
For each row, output column 1 and the result of column 2 divided by column 3 rounded to two decimal places, omitting any rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 27 0 gus 27 19 jules 4 23 bruno 17 16 dina 25 24 alice 21 6 bruno 6 5 hana 26 28
gus 1.42 jules 0.17 bruno 1.06 dina 1.04 alice 3.50 bruno 1.20 hana 0.93
alice 12 0 kim 8 24 alice 28 4 gus 2 20 dina 27 30 chen 6 17 ivan 6 28 hana 19 4 bruno 4 15
kim 0.33 alice 7.00 gus 0.10 dina 0.90 chen 0.35 ivan 0.21 hana 4.75 bruno 0.27
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002260
qwen/qwen3.7-plus
awkweave-0002261
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
bruno cobalt 23 alice grove 18 alice delta 12 bruno harbor 12 kim cobalt 2 bruno juniper 27 hana cobalt 19 chen fable 10
bruno juniper 27 bruno cobalt 23 hana cobalt 19
farah grove 10 dina ember 11 dina grove 18 farah ember 9 kim ember 23 alice amber 27 kim indigo 7
alice amber 27 kim ember 23 dina grove 18
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002261-p1
Display the three full records with the largest numeric values in column 3, sorted in descending order, while maintaining the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
bruno cobalt 23 alice grove 18 alice delta 12 bruno harbor 12 kim cobalt 2 bruno juniper 27 hana cobalt 19 chen fable 10
bruno juniper 27 bruno cobalt 23 hana cobalt 19
farah grove 10 dina ember 11 dina grove 18 farah ember 9 kim ember 23 alice amber 27 kim indigo 7
alice amber 27 kim ember 23 dina grove 18
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002261
qwen/qwen3.7-plus
awkweave-0002262
Print column 3 followed by column 1 for every record.
{print $3, $1}
delta 10 bruno ready birch 44 alice active birch 21 kim closed juniper 73 alice ready delta 55 jules failed birch 24 ivan failed grove 50 chen ready juniper 20 farah closed
bruno delta alice birch kim birch alice juniper jules delta ivan birch chen grove farah juniper
juniper 52 ivan paused ember 88 farah closed indigo 59 jules closed fable 120 dina active delta 85 dina ready birch 81 alice ready
ivan juniper farah ember jules indigo dina fable dina delta alice birch
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002262-p1
Output column 3 followed by column 1 for every record.
{print $3, $1}
delta 10 bruno ready birch 44 alice active birch 21 kim closed juniper 73 alice ready delta 55 jules failed birch 24 ivan failed grove 50 chen ready juniper 20 farah closed
bruno delta alice birch kim birch alice juniper jules delta ivan birch chen grove farah juniper
juniper 52 ivan paused ember 88 farah closed indigo 59 jules closed fable 120 dina active delta 85 dina ready birch 81 alice ready
ivan juniper farah ember jules indigo dina fable dina delta alice birch
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002262
qwen/qwen3.7-plus
awkweave-0002263
Print the last field of every input line.
{print $NF}
juniper ready delta fable indigo indigo ember pending birch ember indigo juniper delta active juniper indigo juniper cobalt ember ready cobalt grove harbor grove indigo pending birch harbor ember grove fable pending juniper indigo indigo birch indigo pending birch juniper harbor juniper juniper pending indigo fable cob...
indigo juniper cobalt grove grove birch juniper grove
grove closed ember fable amber grove amber pending amber harbor amber harbor amber paused amber harbor juniper amber harbor failed fable cobalt cobalt indigo delta pending birch harbor indigo fable harbor paused grove juniper cobalt cobalt grove closed cobalt fable fable birch birch paused juniper fable fable juniper c...
grove harbor amber indigo fable cobalt birch juniper harbor
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002263-p1
Print the final field from each input line.
{print $NF}
juniper ready delta fable indigo indigo ember pending birch ember indigo juniper delta active juniper indigo juniper cobalt ember ready cobalt grove harbor grove indigo pending birch harbor ember grove fable pending juniper indigo indigo birch indigo pending birch juniper harbor juniper juniper pending indigo fable cob...
indigo juniper cobalt grove grove birch juniper grove
grove closed ember fable amber grove amber pending amber harbor amber harbor amber paused amber harbor juniper amber harbor failed fable cobalt cobalt indigo delta pending birch harbor indigo fable harbor paused grove juniper cobalt cobalt grove closed cobalt fable fable birch birch paused juniper fable fable juniper c...
grove harbor amber indigo fable cobalt birch juniper harbor
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002263
qwen/qwen3.7-plus
awkweave-0002264
Print the complete records where column 3 is greater than 25.
$3 > 25
eli chen 80 amber juniper dina alice 29 amber indigo jules ivan 96 ember cobalt hana dina 45 fable amber farah chen 82 juniper grove farah ivan 47 birch grove ivan lina 21 fable juniper farah gus 63 amber cobalt chen farah 77 juniper harbor
eli chen 80 amber juniper dina alice 29 amber indigo jules ivan 96 ember cobalt hana dina 45 fable amber farah chen 82 juniper grove farah ivan 47 birch grove farah gus 63 amber cobalt chen farah 77 juniper harbor
bruno farah 47 delta delta jules eli 21 fable delta bruno eli 16 ember birch alice farah 38 indigo ember bruno bruno 110 ember birch chen kim 87 fable ember farah lina 36 grove cobalt lina dina 113 harbor juniper hana ivan 50 grove fable
bruno farah 47 delta delta alice farah 38 indigo ember bruno bruno 110 ember birch chen kim 87 fable ember farah lina 36 grove cobalt lina dina 113 harbor juniper hana ivan 50 grove fable
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002264-p1
Output the full records where the value in column 3 exceeds 25.
$3 > 25
eli chen 80 amber juniper dina alice 29 amber indigo jules ivan 96 ember cobalt hana dina 45 fable amber farah chen 82 juniper grove farah ivan 47 birch grove ivan lina 21 fable juniper farah gus 63 amber cobalt chen farah 77 juniper harbor
eli chen 80 amber juniper dina alice 29 amber indigo jules ivan 96 ember cobalt hana dina 45 fable amber farah chen 82 juniper grove farah ivan 47 birch grove farah gus 63 amber cobalt chen farah 77 juniper harbor
bruno farah 47 delta delta jules eli 21 fable delta bruno eli 16 ember birch alice farah 38 indigo ember bruno bruno 110 ember birch chen kim 87 fable ember farah lina 36 grove cobalt lina dina 113 harbor juniper hana ivan 50 grove fable
bruno farah 47 delta delta alice farah 38 indigo ember bruno bruno 110 ember birch chen kim 87 fable ember farah lina 36 grove cobalt lina dina 113 harbor juniper hana ivan 50 grove fable
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002264
qwen/qwen3.7-plus
awkweave-0002265
Show whole lines whose 2nd field is between 8 and 19, inclusive.
$2 >= 8 && $2 <= 19
dina 6 closed fable kim 1 failed indigo ivan 20 ready birch farah 14 pending indigo farah 8 failed ember dina 2 paused juniper alice 19 paused indigo eli 4 active fable
farah 14 pending indigo farah 8 failed ember alice 19 paused indigo
hana 13 active amber alice 27 closed indigo dina 6 pending birch alice 24 failed amber farah 8 paused birch gus 19 active delta
hana 13 active amber farah 8 paused birch gus 19 active delta
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002265-p1
Display entire lines where the second field falls within the inclusive range of 8 to 19.
$2 >= 8 && $2 <= 19
dina 6 closed fable kim 1 failed indigo ivan 20 ready birch farah 14 pending indigo farah 8 failed ember dina 2 paused juniper alice 19 paused indigo eli 4 active fable
farah 14 pending indigo farah 8 failed ember alice 19 paused indigo
hana 13 active amber alice 27 closed indigo dina 6 pending birch alice 24 failed amber farah 8 paused birch gus 19 active delta
hana 13 active amber farah 8 paused birch gus 19 active delta
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002265
qwen/qwen3.7-plus
awkweave-0002266
Print column 2 only for rows where column 3 is exactly closed.
$3 == "closed"{print $2}
93 bruno closed cobalt 52 eli pending harbor 62 alice pending cobalt 12 ivan ready delta 71 hana active juniper 8 hana ready delta
bruno
83 bruno active grove 77 lina pending juniper 7 jules failed amber 29 eli active delta 77 hana pending amber 6 hana closed harbor 76 lina active harbor 88 lina active cobalt
hana
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002266-p1
Print only column 2 for rows where column 3 is exactly 'closed'.
$3 == "closed"{print $2}
93 bruno closed cobalt 52 eli pending harbor 62 alice pending cobalt 12 ivan ready delta 71 hana active juniper 8 hana ready delta
bruno
83 bruno active grove 77 lina pending juniper 7 jules failed amber 29 eli active delta 77 hana pending amber 6 hana closed harbor 76 lina active harbor 88 lina active cobalt
hana
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002266
qwen/qwen3.7-plus
awkweave-0002267
Print all fields from lines where field 3 begins with ERROR.
$3 ~ /^ERROR/
105 harbor DEBUG 99 grove WARN 68 indigo INFO 60 cobalt DEBUG 98 grove DEBUG 39 birch WARN 95 delta ERROR 35 indigo ERROR 72 cobalt WARN
95 delta ERROR 35 indigo ERROR
73 juniper DEBUG 95 ember WARN 90 indigo INFO 93 delta ERROR 35 fable DEBUG 84 grove WARN
93 delta ERROR
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002267-p1
Output all fields from lines where the third field starts with 'ERROR'.
$3 ~ /^ERROR/
105 harbor DEBUG 99 grove WARN 68 indigo INFO 60 cobalt DEBUG 98 grove DEBUG 39 birch WARN 95 delta ERROR 35 indigo ERROR 72 cobalt WARN
95 delta ERROR 35 indigo ERROR
73 juniper DEBUG 95 ember WARN 90 indigo INFO 93 delta ERROR 35 fable DEBUG 84 grove WARN
93 delta ERROR
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002267
qwen/qwen3.7-plus
awkweave-0002268
Print every line except those containing the exact text juniper.
$0 !~ /juniper/
grove 17 closed ember 72 active birch 94 ready delta 68 pending birch 14 active cobalt 23 active amber 103 pending fable 63 active birch 16 pending cobalt 91 failed juniper 999 active
grove 17 closed ember 72 active birch 94 ready delta 68 pending birch 14 active cobalt 23 active amber 103 pending fable 63 active birch 16 pending cobalt 91 failed
delta 40 closed cobalt 64 ready birch 111 failed fable 109 failed amber 52 paused juniper 83 pending juniper 55 pending indigo 63 paused grove 105 pending juniper 999 active
delta 40 closed cobalt 64 ready birch 111 failed fable 109 failed amber 52 paused indigo 63 paused grove 105 pending
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002268-p1
Print every line that does not contain the exact string 'juniper'.
$0 !~ /juniper/
grove 17 closed ember 72 active birch 94 ready delta 68 pending birch 14 active cobalt 23 active amber 103 pending fable 63 active birch 16 pending cobalt 91 failed juniper 999 active
grove 17 closed ember 72 active birch 94 ready delta 68 pending birch 14 active cobalt 23 active amber 103 pending fable 63 active birch 16 pending cobalt 91 failed
delta 40 closed cobalt 64 ready birch 111 failed fable 109 failed amber 52 paused juniper 83 pending juniper 55 pending indigo 63 paused grove 105 pending juniper 999 active
delta 40 closed cobalt 64 ready birch 111 failed fable 109 failed amber 52 paused indigo 63 paused grove 105 pending
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002268
qwen/qwen3.7-plus
awkweave-0002269
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
jules ember 62 hana ember 79 kim harbor 16 dina grove 35 alice ember 76 kim amber 88 farah harbor 58
dina grove 35 alice ember 76
alice indigo 108 ivan juniper 87 ivan ember 73 gus juniper 83 jules ember 24 alice delta 36 kim birch 104 dina ember 42
gus juniper 83 jules ember 24
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0002269-p1
Output lines 4 through 5, inclusive.
NR >= 4 && NR <= 5
jules ember 62 hana ember 79 kim harbor 16 dina grove 35 alice ember 76 kim amber 88 farah harbor 58
dina grove 35 alice ember 76
alice indigo 108 ivan juniper 87 ivan ember 73 gus juniper 83 jules ember 24 alice delta 36 kim birch 104 dina ember 42
gus juniper 83 jules ember 24
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0002269
qwen/qwen3.7-plus
awkweave-0002270
Output only the first 5 records.
NR <= 5
bruno 118 delta gus 30 delta lina 68 ember jules 48 indigo dina 81 ember lina 11 cobalt kim 88 indigo eli 100 amber alice 73 grove
bruno 118 delta gus 30 delta lina 68 ember jules 48 indigo dina 81 ember
jules 18 harbor lina 113 delta kim 15 ember hana 46 harbor farah 115 juniper ivan 27 birch jules 59 ember
jules 18 harbor lina 113 delta kim 15 ember hana 46 harbor farah 115 juniper
first_n
1
train
original-grammar
CC-BY-4.0
null
null