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-0020941
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}
eli 19 0 kim 10 23 chen 22 16 farah 13 12 farah 30 26 gus 9 16 kim 28 22 hana 24 9
kim 0.43 chen 1.38 farah 1.08 farah 1.15 gus 0.56 kim 1.27 hana 2.67
jules 13 0 alice 13 8 gus 29 26 bruno 16 26 alice 5 3 alice 6 1 hana 25 19 bruno 3 25 gus 26 14 jules 6 21
alice 1.62 gus 1.12 bruno 0.62 alice 1.67 alice 6.00 hana 1.32 bruno 0.12 gus 1.86 jules 0.29
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020941-p1
For each row where the third column is non-zero, print the first column followed by the result of dividing the second column by the third, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
eli 19 0 kim 10 23 chen 22 16 farah 13 12 farah 30 26 gus 9 16 kim 28 22 hana 24 9
kim 0.43 chen 1.38 farah 1.08 farah 1.15 gus 0.56 kim 1.27 hana 2.67
jules 13 0 alice 13 8 gus 29 26 bruno 16 26 alice 5 3 alice 6 1 hana 25 19 bruno 3 25 gus 26 14 jules 6 21
alice 1.62 gus 1.12 bruno 0.62 alice 1.67 alice 6.00 hana 1.32 bruno 0.12 gus 1.86 jules 0.29
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020941
qwen/qwen3.7-plus
awkweave-0020942
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]}
eli indigo 24 kim indigo 29 chen fable 18 gus grove 17 alice indigo 11 bruno delta 18 kim cobalt 24 eli fable 15 farah harbor 25
kim indigo 29 farah harbor 25 eli indigo 24
gus fable 24 bruno ember 11 alice juniper 14 lina cobalt 2 ivan harbor 20 chen harbor 16 gus ember 18 alice ember 1 lina amber 21
gus fable 24 lina amber 21 ivan harbor 20
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020942-p1
Output the top three records with the greatest values in column 3, sorted in descending order, while 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]}
eli indigo 24 kim indigo 29 chen fable 18 gus grove 17 alice indigo 11 bruno delta 18 kim cobalt 24 eli fable 15 farah harbor 25
kim indigo 29 farah harbor 25 eli indigo 24
gus fable 24 bruno ember 11 alice juniper 14 lina cobalt 2 ivan harbor 20 chen harbor 16 gus ember 18 alice ember 1 lina amber 21
gus fable 24 lina amber 21 ivan harbor 20
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020942
qwen/qwen3.7-plus
awkweave-0020943
Select the 3rd and 1st fields in that order.
{print $3, $1}
closed paused closed 97 grove active pending closed 25 fable closed failed closed 39 indigo paused pending ready 63 indigo ready ready paused 52 birch pending paused ready 88 birch closed closed closed 22 indigo pending failed ready 69 grove paused closed failed 83 birch
closed closed closed active closed closed ready paused paused ready ready pending closed closed ready pending failed paused
failed pending active 115 ember active failed paused 119 cobalt active active ready 44 grove paused pending ready 45 ember closed closed active 42 cobalt paused active pending 75 cobalt ready closed failed 101 juniper closed active ready 14 birch paused pending pending 30 grove
active failed paused active ready active ready paused active closed pending paused failed ready ready closed pending paused
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020943-p1
Extract and display the 3rd field followed by the 1st field.
{print $3, $1}
closed paused closed 97 grove active pending closed 25 fable closed failed closed 39 indigo paused pending ready 63 indigo ready ready paused 52 birch pending paused ready 88 birch closed closed closed 22 indigo pending failed ready 69 grove paused closed failed 83 birch
closed closed closed active closed closed ready paused paused ready ready pending closed closed ready pending failed paused
failed pending active 115 ember active failed paused 119 cobalt active active ready 44 grove paused pending ready 45 ember closed closed active 42 cobalt paused active pending 75 cobalt ready closed failed 101 juniper closed active ready 14 birch paused pending pending 30 grove
active failed paused active ready active ready paused active closed pending paused failed ready ready closed pending paused
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020943
qwen/qwen3.7-plus
awkweave-0020944
Print the last field of every input line.
{print $NF}
indigo 62 indigo hana ready delta 33 birch 97 delta jules active grove 98 delta 87 cobalt dina pending fable 86 grove 66 delta farah pending juniper 73 fable 94 grove ivan failed harbor 14 juniper 82 cobalt farah paused fable 49 fable 120 amber eli pending indigo 31 grove 31 delta lina failed harbor 62
33 98 86 73 14 49 31 62
ember 83 amber hana failed indigo 27 ember 81 birch dina pending grove 33 grove 109 grove hana closed harbor 120 indigo 69 birch lina paused indigo 11 juniper 116 cobalt kim paused indigo 70 ember 36 juniper lina paused juniper 81 birch 37 birch ivan pending harbor 113
27 33 120 11 70 81 113
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020944-p1
Print the final field from each line of input.
{print $NF}
indigo 62 indigo hana ready delta 33 birch 97 delta jules active grove 98 delta 87 cobalt dina pending fable 86 grove 66 delta farah pending juniper 73 fable 94 grove ivan failed harbor 14 juniper 82 cobalt farah paused fable 49 fable 120 amber eli pending indigo 31 grove 31 delta lina failed harbor 62
33 98 86 73 14 49 31 62
ember 83 amber hana failed indigo 27 ember 81 birch dina pending grove 33 grove 109 grove hana closed harbor 120 indigo 69 birch lina paused indigo 11 juniper 116 cobalt kim paused indigo 70 ember 36 juniper lina paused juniper 81 birch 37 birch ivan pending harbor 113
27 33 120 11 70 81 113
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020944
qwen/qwen3.7-plus
awkweave-0020945
Print the complete records where column 2 is at most 61.
$2 <= 61
fable 114 pending indigo 9 pending ember 105 active grove 103 failed harbor 12 failed delta 89 ready juniper 39 ready grove 49 paused
indigo 9 pending harbor 12 failed juniper 39 ready grove 49 paused
grove 101 active harbor 11 closed delta 27 active delta 34 failed cobalt 119 failed juniper 52 active grove 17 failed fable 24 pending
harbor 11 closed delta 27 active delta 34 failed juniper 52 active grove 17 failed fable 24 pending
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020945-p1
Display full records where the value in column 2 is less than or equal to 61.
$2 <= 61
fable 114 pending indigo 9 pending ember 105 active grove 103 failed harbor 12 failed delta 89 ready juniper 39 ready grove 49 paused
indigo 9 pending harbor 12 failed juniper 39 ready grove 49 paused
grove 101 active harbor 11 closed delta 27 active delta 34 failed cobalt 119 failed juniper 52 active grove 17 failed fable 24 pending
harbor 11 closed delta 27 active delta 34 failed juniper 52 active grove 17 failed fable 24 pending
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020945
qwen/qwen3.7-plus
awkweave-0020946
Show whole lines whose 1st field is between 11 and 23, inclusive.
$1 >= 11 && $1 <= 23
20 active jules alice 3 active kim chen 14 active chen bruno 30 active chen eli 4 active farah alice 2 failed dina kim
20 active jules alice 14 active chen bruno
16 active alice eli 7 paused dina lina 7 active eli jules 15 failed jules alice 10 ready eli chen 2 paused dina alice
16 active alice eli 15 failed jules alice
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020946-p1
Show entire lines where the first field falls within the inclusive range of 11 to 23.
$1 >= 11 && $1 <= 23
20 active jules alice 3 active kim chen 14 active chen bruno 30 active chen eli 4 active farah alice 2 failed dina kim
20 active jules alice 14 active chen bruno
16 active alice eli 7 paused dina lina 7 active eli jules 15 failed jules alice 10 ready eli chen 2 paused dina alice
16 active alice eli 15 failed jules alice
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020946
qwen/qwen3.7-plus
awkweave-0020947
Print column 1 only for rows where column 4 is exactly ready.
$4 == "ready"{print $1}
bruno amber 54 closed jules ember 10 active lina cobalt 99 ready farah indigo 43 ready dina amber 55 ready ivan grove 17 failed
lina farah dina
kim indigo 7 paused dina cobalt 71 failed chen indigo 24 ready bruno fable 30 ready kim birch 15 closed eli juniper 42 pending eli harbor 34 active
chen bruno
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020947-p1
Output only column 1 for rows where column 4 contains the exact value ready.
$4 == "ready"{print $1}
bruno amber 54 closed jules ember 10 active lina cobalt 99 ready farah indigo 43 ready dina amber 55 ready ivan grove 17 failed
lina farah dina
kim indigo 7 paused dina cobalt 71 failed chen indigo 24 ready bruno fable 30 ready kim birch 15 closed eli juniper 42 pending eli harbor 34 active
chen bruno
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020947
qwen/qwen3.7-plus
awkweave-0020948
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
WARN 11 ember DEBUG 28 juniper WARN 106 cobalt ERROR 40 cobalt ERROR 42 grove INFO 104 amber ERROR 18 cobalt DEBUG 56 harbor
ERROR 40 cobalt ERROR 42 grove ERROR 18 cobalt
WARN 64 amber DEBUG 18 delta INFO 0 juniper ERROR 114 cobalt WARN 37 amber ERROR 12 juniper DEBUG 113 indigo WARN 92 cobalt WARN 105 grove ERROR 101 cobalt
ERROR 114 cobalt ERROR 12 juniper ERROR 101 cobalt
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020948-p1
Print all fields from lines where the first field starts with ERROR.
$1 ~ /^ERROR/
WARN 11 ember DEBUG 28 juniper WARN 106 cobalt ERROR 40 cobalt ERROR 42 grove INFO 104 amber ERROR 18 cobalt DEBUG 56 harbor
ERROR 40 cobalt ERROR 42 grove ERROR 18 cobalt
WARN 64 amber DEBUG 18 delta INFO 0 juniper ERROR 114 cobalt WARN 37 amber ERROR 12 juniper DEBUG 113 indigo WARN 92 cobalt WARN 105 grove ERROR 101 cobalt
ERROR 114 cobalt ERROR 12 juniper ERROR 101 cobalt
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020948
qwen/qwen3.7-plus
awkweave-0020949
Print every line except those containing the exact text indigo.
$0 !~ /indigo/
amber 97 paused grove 72 active harbor 107 paused amber 66 failed fable 57 closed juniper 24 ready grove 53 ready indigo 999 active
amber 97 paused grove 72 active harbor 107 paused amber 66 failed fable 57 closed juniper 24 ready grove 53 ready
delta 86 failed amber 26 paused fable 93 ready indigo 46 paused amber 13 pending indigo 1 pending grove 0 pending cobalt 3 active indigo 999 active
delta 86 failed amber 26 paused fable 93 ready amber 13 pending grove 0 pending cobalt 3 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020949-p1
Print every line that does not contain the exact string indigo.
$0 !~ /indigo/
amber 97 paused grove 72 active harbor 107 paused amber 66 failed fable 57 closed juniper 24 ready grove 53 ready indigo 999 active
amber 97 paused grove 72 active harbor 107 paused amber 66 failed fable 57 closed juniper 24 ready grove 53 ready
delta 86 failed amber 26 paused fable 93 ready indigo 46 paused amber 13 pending indigo 1 pending grove 0 pending cobalt 3 active indigo 999 active
delta 86 failed amber 26 paused fable 93 ready amber 13 pending grove 0 pending cobalt 3 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020949
qwen/qwen3.7-plus
awkweave-0020950
Print lines 4 through 6, including both endpoints.
NR >= 4 && NR <= 6
eli ember 17 hana cobalt 56 lina delta 71 farah delta 64 ivan fable 118 hana indigo 108 chen birch 61 farah amber 97
farah delta 64 ivan fable 118 hana indigo 108
kim birch 85 hana harbor 115 dina fable 42 kim indigo 64 chen indigo 16 lina fable 70 gus birch 99 bruno harbor 60 jules birch 85 ivan harbor 78
kim indigo 64 chen indigo 16 lina fable 70
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020950-p1
Output lines 4 through 6, inclusive of both endpoints.
NR >= 4 && NR <= 6
eli ember 17 hana cobalt 56 lina delta 71 farah delta 64 ivan fable 118 hana indigo 108 chen birch 61 farah amber 97
farah delta 64 ivan fable 118 hana indigo 108
kim birch 85 hana harbor 115 dina fable 42 kim indigo 64 chen indigo 16 lina fable 70 gus birch 99 bruno harbor 60 jules birch 85 ivan harbor 78
kim indigo 64 chen indigo 16 lina fable 70
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020950
qwen/qwen3.7-plus
awkweave-0020951
Output only the first 3 records.
NR <= 3
gus 63 indigo farah 106 delta farah 73 ember farah 13 juniper alice 40 harbor ivan 28 juniper
gus 63 indigo farah 106 delta farah 73 ember
farah 96 ember chen 66 juniper jules 11 fable kim 55 juniper chen 113 cobalt kim 13 grove jules 113 indigo dina 1 fable bruno 72 indigo
farah 96 ember chen 66 juniper jules 11 fable
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020951-p1
Display only the first 3 records.
NR <= 3
gus 63 indigo farah 106 delta farah 73 ember farah 13 juniper alice 40 harbor ivan 28 juniper
gus 63 indigo farah 106 delta farah 73 ember
farah 96 ember chen 66 juniper jules 11 fable kim 55 juniper chen 113 cobalt kim 13 grove jules 113 indigo dina 1 fable bruno 72 indigo
farah 96 ember chen 66 juniper jules 11 fable
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020951
qwen/qwen3.7-plus
awkweave-0020952
Skip the first line and print every remaining line unchanged.
NR > 1
chen 109 birch gus 45 grove lina 63 delta eli 54 ember eli 10 birch eli 37 delta farah 97 cobalt ivan 18 amber
gus 45 grove lina 63 delta eli 54 ember eli 10 birch eli 37 delta farah 97 cobalt ivan 18 amber
chen 39 cobalt farah 118 amber lina 82 delta chen 54 indigo eli 45 amber alice 47 indigo chen 106 delta alice 66 juniper
farah 118 amber lina 82 delta chen 54 indigo eli 45 amber alice 47 indigo chen 106 delta alice 66 juniper
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020952-p1
Omit the first line and print all subsequent lines exactly as they appear.
NR > 1
chen 109 birch gus 45 grove lina 63 delta eli 54 ember eli 10 birch eli 37 delta farah 97 cobalt ivan 18 amber
gus 45 grove lina 63 delta eli 54 ember eli 10 birch eli 37 delta farah 97 cobalt ivan 18 amber
chen 39 cobalt farah 118 amber lina 82 delta chen 54 indigo eli 45 amber alice 47 indigo chen 106 delta alice 66 juniper
farah 118 amber lina 82 delta chen 54 indigo eli 45 amber alice 47 indigo chen 106 delta alice 66 juniper
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020952
qwen/qwen3.7-plus
awkweave-0020953
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
chen failed 5 kim ready 88 ivan ready 3 lina ready 83 hana ready 51 chen closed 26 kim failed 66
0
dina active 47 hana closed 71 ivan ready 64 chen paused 93 hana paused 20 eli paused 4 ivan ready 89 eli active 24 lina paused 4
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020953-p1
Count the number of records containing active in column 2, outputting 0 if no such records exist.
$2 == "active"{n++}END{print n+0}
chen failed 5 kim ready 88 ivan ready 3 lina ready 83 hana ready 51 chen closed 26 kim failed 66
0
dina active 47 hana closed 71 ivan ready 64 chen paused 93 hana paused 20 eli paused 4 ivan ready 89 eli active 24 lina paused 4
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020953
qwen/qwen3.7-plus
awkweave-0020954
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
1 amber kim 18 cobalt alice 27 delta eli 18 indigo eli 24 delta kim 15 ember ivan 16 cobalt alice
119
13 amber jules 27 birch farah 11 fable jules 16 birch kim 5 ember gus 14 delta hana
86
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020954-p1
Compute the total of all integer values in the first column and output the result.
{s+=$1}END{print s+0}
1 amber kim 18 cobalt alice 27 delta eli 18 indigo eli 24 delta kim 15 ember ivan 16 cobalt alice
119
13 amber jules 27 birch farah 11 fable jules 16 birch kim 5 ember gus 14 delta hana
86
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020954
qwen/qwen3.7-plus
awkweave-0020955
Print the arithmetic mean of column 2, rounded to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
juniper 28 lina harbor 26 kim indigo 1 hana indigo 19 alice amber 17 farah birch 17 jules amber 22 farah grove 9 hana indigo 27 lina
18.44
fable 7 ivan ember 15 chen delta 14 kim fable 29 bruno juniper 24 hana birch 19 alice
18.00
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020955-p1
Output the average of the values in the second column, formatted to exactly two decimal places.
{s+=$2;n++}END{printf "%.2f\n",s/n}
juniper 28 lina harbor 26 kim indigo 1 hana indigo 19 alice amber 17 farah birch 17 jules amber 22 farah grove 9 hana indigo 27 lina
18.44
fable 7 ivan ember 15 chen delta 14 kim fable 29 bruno juniper 24 hana birch 19 alice
18.00
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020955
qwen/qwen3.7-plus
awkweave-0020956
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
amber 5 dina delta 19 bruno fable 22 farah amber 3 alice harbor 29 gus grove 3 jules
3
indigo 11 gus grove 4 kim indigo 26 gus indigo 4 alice amber 18 lina ember 30 gus amber 29 chen fable 2 hana
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020956-p1
Identify and display the minimum numeric value found in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
amber 5 dina delta 19 bruno fable 22 farah amber 3 alice harbor 29 gus grove 3 jules
3
indigo 11 gus grove 4 kim indigo 26 gus indigo 4 alice amber 18 lina ember 30 gus amber 29 chen fable 2 hana
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020956
qwen/qwen3.7-plus
awkweave-0020957
Find and print the largest numeric value in column 2.
NR==1||$2>extreme{extreme=$2}END{print extreme}
gus 18 fable hana 19 grove chen 30 juniper bruno 21 amber alice 27 ember dina 16 fable jules 7 harbor jules 8 amber alice 7 juniper
30
farah 10 amber jules 24 harbor eli 2 birch bruno 11 fable ivan 18 delta gus 10 birch ivan 21 grove hana 19 delta
24
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020957-p1
Identify and display the maximum numeric value found in the second column.
NR==1||$2>extreme{extreme=$2}END{print extreme}
gus 18 fable hana 19 grove chen 30 juniper bruno 21 amber alice 27 ember dina 16 fable jules 7 harbor jules 8 amber alice 7 juniper
30
farah 10 amber jules 24 harbor eli 2 birch bruno 11 fable ivan 18 delta gus 10 birch ivan 21 grove hana 19 delta
24
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020957
qwen/qwen3.7-plus
awkweave-0020958
Count all input records and print the total.
END{print NR}
eli 21 farah 39 chen 57 bruno 51 kim 67 alice 42 gus 67
7
hana 65 ivan 65 gus 43 farah 55 farah 107 kim 19
6
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020958-p1
Count the total number of input records and print this count.
END{print NR}
eli 21 farah 39 chen 57 bruno 51 kim 67 alice 42 gus 67
7
hana 65 ivan 65 gus 43 farah 55 farah 107 kim 19
6
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020958
qwen/qwen3.7-plus
awkweave-0020959
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
alice fable 82 chen indigo 119 dina amber 25 gus grove 0 bruno fable 102 farah grove 120 gus grove 0 kim delta 53 gus indigo 85 lina harbor 12 dina cobalt 69
alice fable 82 chen indigo 119 dina amber 25 gus grove 0 bruno fable 102 farah grove 120 kim delta 53 gus indigo 85 lina harbor 12 dina cobalt 69
farah ember 50 ivan fable 27 eli juniper 18 jules indigo 105 alice indigo 14 eli harbor 109 alice ember 11 eli juniper 18 farah harbor 14 kim amber 0
farah ember 50 ivan fable 27 eli juniper 18 jules indigo 105 alice indigo 14 eli harbor 109 alice ember 11 farah harbor 14 kim amber 0
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020959-p1
Eliminate duplicate lines while keeping the first instance of each and maintaining the original sequence.
!seen[$0]++
alice fable 82 chen indigo 119 dina amber 25 gus grove 0 bruno fable 102 farah grove 120 gus grove 0 kim delta 53 gus indigo 85 lina harbor 12 dina cobalt 69
alice fable 82 chen indigo 119 dina amber 25 gus grove 0 bruno fable 102 farah grove 120 kim delta 53 gus indigo 85 lina harbor 12 dina cobalt 69
farah ember 50 ivan fable 27 eli juniper 18 jules indigo 105 alice indigo 14 eli harbor 109 alice ember 11 eli juniper 18 farah harbor 14 kim amber 0
farah ember 50 ivan fable 27 eli juniper 18 jules indigo 105 alice indigo 14 eli harbor 109 alice ember 11 farah harbor 14 kim amber 0
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020959
qwen/qwen3.7-plus
awkweave-0020960
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
hana grove 59 chen grove 72 dina delta 54 jules indigo 84 eli indigo 58 hana birch 45 farah grove 26 hana fable 115
hana grove 59 chen grove 72 dina delta 54 jules indigo 84 eli indigo 58 farah grove 26
ivan birch 83 eli ember 76 lina harbor 16 alice grove 48 ivan indigo 0 chen ember 71 farah cobalt 49 kim grove 62 hana grove 11
ivan birch 83 eli ember 76 lina harbor 16 alice grove 48 chen ember 71 farah cobalt 49 kim grove 62 hana grove 11
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020960-p1
Retain only the initial line for every unique value in the first column, keeping the original order intact.
!seen[$1]++
hana grove 59 chen grove 72 dina delta 54 jules indigo 84 eli indigo 58 hana birch 45 farah grove 26 hana fable 115
hana grove 59 chen grove 72 dina delta 54 jules indigo 84 eli indigo 58 farah grove 26
ivan birch 83 eli ember 76 lina harbor 16 alice grove 48 ivan indigo 0 chen ember 71 farah cobalt 49 kim grove 62 hana grove 11
ivan birch 83 eli ember 76 lina harbor 16 alice grove 48 chen ember 71 farah cobalt 49 kim grove 62 hana grove 11
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020960
qwen/qwen3.7-plus
awkweave-0020961
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
chen 11 grove eli 30 indigo bruno 3 indigo chen 9 cobalt hana 27 delta jules 18 juniper jules 18 grove kim 18 amber eli 9 harbor
chen 11 eli 41 bruno 44 chen 53 hana 80 jules 98 jules 116 kim 134 eli 143
chen 21 juniper gus 18 juniper alice 7 amber jules 25 indigo farah 29 cobalt ivan 4 amber
chen 21 gus 39 alice 46 jules 71 farah 100 ivan 104
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020961-p1
For each entry, output the first column and the cumulative sum of the second column, separated by a space.
{s+=$2;print $1,s}
chen 11 grove eli 30 indigo bruno 3 indigo chen 9 cobalt hana 27 delta jules 18 juniper jules 18 grove kim 18 amber eli 9 harbor
chen 11 eli 41 bruno 44 chen 53 hana 80 jules 98 jules 116 kim 134 eli 143
chen 21 juniper gus 18 juniper alice 7 amber jules 25 indigo farah 29 cobalt ivan 4 amber
chen 21 gus 39 alice 46 jules 71 farah 100 ivan 104
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020961
qwen/qwen3.7-plus
awkweave-0020962
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
alice 11 14 ember gus 19 28 grove kim 24 29 juniper jules 9 7 fable bruno 7 20 indigo alice 1 14 fable ivan 16 2 harbor farah 12 30 cobalt kim 18 8 harbor farah 23 5 ember
alice 25 gus 47 kim 53 jules 16 bruno 27 alice 15 ivan 18 farah 42 kim 26 farah 28
chen 3 21 fable chen 24 7 amber farah 15 11 ember kim 18 8 grove gus 6 27 juniper dina 25 27 cobalt
chen 24 chen 31 farah 26 kim 26 gus 33 dina 52
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020962-p1
For each row, output the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
alice 11 14 ember gus 19 28 grove kim 24 29 juniper jules 9 7 fable bruno 7 20 indigo alice 1 14 fable ivan 16 2 harbor farah 12 30 cobalt kim 18 8 harbor farah 23 5 ember
alice 25 gus 47 kim 53 jules 16 bruno 27 alice 15 ivan 18 farah 42 kim 26 farah 28
chen 3 21 fable chen 24 7 amber farah 15 11 ember kim 18 8 grove gus 6 27 juniper dina 25 27 cobalt
chen 24 chen 31 farah 26 kim 26 gus 33 dina 52
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020962
qwen/qwen3.7-plus
awkweave-0020963
Print column 1 and pass when column 2 is at least 25; otherwise print fail.
{print $1,($2>=25?"pass":"fail")}
eli 25 hana 8 alice 24 kim 4 chen 27 farah 10 alice 1 bruno 3
eli pass hana fail alice fail kim fail chen pass farah fail alice fail bruno fail
gus 1 kim 12 farah 23 bruno 7 lina 15 jules 14 jules 7 gus 1
gus fail kim fail farah fail bruno fail lina fail jules fail jules fail gus fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020963-p1
Output the first column along with 'pass' if the second column is 25 or greater, otherwise output 'fail'.
{print $1,($2>=25?"pass":"fail")}
eli 25 hana 8 alice 24 kim 4 chen 27 farah 10 alice 1 bruno 3
eli pass hana fail alice fail kim fail chen pass farah fail alice fail bruno fail
gus 1 kim 12 farah 23 bruno 7 lina 15 jules 14 jules 7 gus 1
gus fail kim fail farah fail bruno fail lina fail jules fail jules fail gus fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020963
qwen/qwen3.7-plus
awkweave-0020964
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
hana grove 35 farah cobalt 40 dina harbor 50 eli harbor 15 kim delta 114 gus ember 67 lina fable 118
HANA FARAH DINA ELI KIM GUS LINA
hana birch 26 ivan amber 55 dina indigo 43 farah delta 29 lina amber 73 bruno cobalt 70 lina indigo 81 gus ember 6 gus grove 11 dina cobalt 53
HANA IVAN DINA FARAH LINA BRUNO LINA GUS GUS DINA
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020964-p1
Transform the first column to uppercase letters and print only that column.
{print toupper($1)}
hana grove 35 farah cobalt 40 dina harbor 50 eli harbor 15 kim delta 114 gus ember 67 lina fable 118
HANA FARAH DINA ELI KIM GUS LINA
hana birch 26 ivan amber 55 dina indigo 43 farah delta 29 lina amber 73 bruno cobalt 70 lina indigo 81 gus ember 6 gus grove 11 dina cobalt 53
HANA IVAN DINA FARAH LINA BRUNO LINA GUS GUS DINA
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020964
qwen/qwen3.7-plus
awkweave-0020965
From column 1, print 4 characters starting at character 3.
{print substr($1,3,4)}
fable 92 indigo 104 harbor 39 indigo 79 indigo 94 cobalt 66 delta 105 harbor 20 grove 59 delta 31
ble digo rbor digo digo balt lta rbor ove lta
birch 7 cobalt 74 harbor 95 cobalt 78 birch 102 delta 48
rch balt rbor balt rch lta
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020965-p1
Extract and print a substring of 4 characters from the first column, starting at the third character.
{print substr($1,3,4)}
fable 92 indigo 104 harbor 39 indigo 79 indigo 94 cobalt 66 delta 105 harbor 20 grove 59 delta 31
ble digo rbor digo digo balt lta rbor ove lta
birch 7 cobalt 74 harbor 95 cobalt 78 birch 102 delta 48
rch balt rbor balt rch lta
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020965
qwen/qwen3.7-plus
awkweave-0020966
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
cobalt_harbor 82 indigo_grove 114 harbor_indigo 33 cobalt_harbor 69 cobalt_cobalt 116 juniper_ember 82 juniper_cobalt 22 harbor_grove 105 birch_ember 70
cobalt harbor indigo grove harbor indigo cobalt harbor cobalt cobalt juniper ember juniper cobalt harbor grove birch ember
ember_birch 30 indigo_indigo 84 harbor_delta 75 grove_ember 43 harbor_juniper 56 amber_indigo 26 ember_birch 115 harbor_amber 28 indigo_indigo 30
ember birch indigo indigo harbor delta grove ember harbor juniper amber indigo ember birch harbor amber indigo indigo
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020966-p1
Substitute all underscores in the first column with spaces and output the modified values.
{gsub(/_/," ",$1);print $1}
cobalt_harbor 82 indigo_grove 114 harbor_indigo 33 cobalt_harbor 69 cobalt_cobalt 116 juniper_ember 82 juniper_cobalt 22 harbor_grove 105 birch_ember 70
cobalt harbor indigo grove harbor indigo cobalt harbor cobalt cobalt juniper ember juniper cobalt harbor grove birch ember
ember_birch 30 indigo_indigo 84 harbor_delta 75 grove_ember 43 harbor_juniper 56 amber_indigo 26 ember_birch 115 harbor_amber 28 indigo_indigo 30
ember birch indigo indigo harbor delta grove ember harbor juniper amber indigo ember birch harbor amber indigo indigo
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020966
qwen/qwen3.7-plus
awkweave-0020967
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)}
bruno grove 54 ready eli birch 67 active jules ember 77 failed alice harbor 55 closed gus juniper 8 failed jules birch 3 pending lina fable 108 failed bruno indigo 40 pending
ready 54 grove bruno active 67 birch eli failed 77 ember jules closed 55 harbor alice failed 8 juniper gus pending 3 birch jules failed 108 fable lina pending 40 indigo bruno
gus indigo 8 closed eli ember 99 closed ivan birch 61 closed gus delta 56 paused dina delta 0 ready hana birch 29 pending eli grove 42 ready jules amber 60 pending
closed 8 indigo gus closed 99 ember eli closed 61 birch ivan paused 56 delta gus ready 0 delta dina pending 29 birch hana ready 42 grove eli pending 60 amber jules
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020967-p1
Reverse the sequence of fields for each line and display every field.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
bruno grove 54 ready eli birch 67 active jules ember 77 failed alice harbor 55 closed gus juniper 8 failed jules birch 3 pending lina fable 108 failed bruno indigo 40 pending
ready 54 grove bruno active 67 birch eli failed 77 ember jules closed 55 harbor alice failed 8 juniper gus pending 3 birch jules failed 108 fable lina pending 40 indigo bruno
gus indigo 8 closed eli ember 99 closed ivan birch 61 closed gus delta 56 paused dina delta 0 ready hana birch 29 pending eli grove 42 ready jules amber 60 pending
closed 8 indigo gus closed 99 ember eli closed 61 birch ivan paused 56 delta gus ready 0 delta dina pending 29 birch hana ready 42 grove eli pending 60 amber jules
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020967
qwen/qwen3.7-plus
awkweave-0020968
Print the number of whitespace-separated fields on each line.
{print NF}
chen fable 48 closed bruno delta 107 ready chen birch 113 active alice amber 10 ready farah harbor 4 pending hana ember 43 active
4 4 4 4 4 4
alice harbor 25 pending lina cobalt 4 ready eli indigo 10 failed farah birch 109 closed eli grove 27 closed jules fable 104 ready dina birch 33 failed alice harbor 20 failed chen harbor 119 ready farah amber 36 ready
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020968-p1
Output the count of whitespace-delimited fields present on each line.
{print NF}
chen fable 48 closed bruno delta 107 ready chen birch 113 active alice amber 10 ready farah harbor 4 pending hana ember 43 active
4 4 4 4 4 4
alice harbor 25 pending lina cobalt 4 ready eli indigo 10 failed farah birch 109 closed eli grove 27 closed jules fable 104 ready dina birch 33 failed alice harbor 20 failed chen harbor 119 ready farah amber 36 ready
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020968
qwen/qwen3.7-plus
awkweave-0020969
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]]}
farah alpha 13 bruno alpha 31 dina beta 95 hana delta 18 lina alpha 6 bruno alpha 6 hana delta 35
alpha 4 beta 1 delta 2
alice delta 49 kim alpha 49 alice beta 61 alice beta 11 jules beta 97 hana delta 43 lina gamma 104 kim gamma 82 jules alpha 96 hana gamma 1
delta 2 alpha 2 beta 3 gamma 3
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020969-p1
Tally the records for each unique value in the second column, then print each value alongside its count 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]]}
farah alpha 13 bruno alpha 31 dina beta 95 hana delta 18 lina alpha 6 bruno alpha 6 hana delta 35
alpha 4 beta 1 delta 2
alice delta 49 kim alpha 49 alice beta 61 alice beta 11 jules beta 97 hana delta 43 lina gamma 104 kim gamma 82 jules alpha 96 hana gamma 1
delta 2 alpha 2 beta 3 gamma 3
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020969
qwen/qwen3.7-plus
awkweave-0020970
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]]}
jules delta 2 eli beta 18 bruno delta 14 ivan gamma 28 jules alpha 21 alice beta 16 hana delta 7
delta 23 beta 34 gamma 28 alpha 21
farah alpha 9 farah delta 19 hana beta 7 ivan alpha 12 lina gamma 27 lina delta 19 eli alpha 30 kim beta 14
alpha 51 delta 38 beta 21 gamma 27
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020970-p1
Calculate the sum of the third column grouped by the second column's categories, displaying the results in the 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]]}
jules delta 2 eli beta 18 bruno delta 14 ivan gamma 28 jules alpha 21 alice beta 16 hana delta 7
delta 23 beta 34 gamma 28 alpha 21
farah alpha 9 farah delta 19 hana beta 7 ivan alpha 12 lina gamma 27 lina delta 19 eli alpha 30 kim beta 14
alpha 51 delta 38 beta 21 gamma 27
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020970
qwen/qwen3.7-plus
awkweave-0020971
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta juniper 39 alpha cobalt 67 beta harbor 37 beta amber 55 alpha cobalt 119 alpha cobalt 59
beta 3 alpha 3
alpha birch 18 beta grove 35 beta amber 96 delta cobalt 25 gamma grove 108 beta birch 72 beta cobalt 82 delta fable 108 beta grove 6
beta 5 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020971-p1
List each duplicate value from the first column along with its occurrence count, sorted by first appearance.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
beta juniper 39 alpha cobalt 67 beta harbor 37 beta amber 55 alpha cobalt 119 alpha cobalt 59
beta 3 alpha 3
alpha birch 18 beta grove 35 beta amber 96 delta cobalt 25 gamma grove 108 beta birch 72 beta cobalt 82 delta fable 108 beta grove 6
beta 5 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020971
qwen/qwen3.7-plus
awkweave-0020972
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"]}
region display_name state note r001 chen 10 active r002 kim 7 paused r003 hana 24 pending r004 hana 18 pending r005 jules 19 pending r006 gus 12 failed r007 bruno 26 pending r008 dina 10 ready
active paused pending pending pending failed pending ready
region display_name state note r001 chen 14 active r002 farah 21 paused r003 farah 13 closed r004 dina 22 closed r005 dina 18 pending r006 eli 5 closed r007 farah 9 paused r008 jules 15 pending r009 ivan 30 pending
active paused closed closed pending closed paused pending pending
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020972-p1
Treating the first row 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"]}
region display_name state note r001 chen 10 active r002 kim 7 paused r003 hana 24 pending r004 hana 18 pending r005 jules 19 pending r006 gus 12 failed r007 bruno 26 pending r008 dina 10 ready
active paused pending pending pending failed pending ready
region display_name state note r001 chen 14 active r002 farah 21 paused r003 farah 13 closed r004 dina 22 closed r005 dina 18 pending r006 eli 5 closed r007 farah 9 paused r008 jules 15 pending r009 ivan 30 pending
active paused closed closed pending closed paused pending pending
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020972
qwen/qwen3.7-plus
awkweave-0020973
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 dina 22 pending r002 farah 9 ready r003 lina 4 paused r004 lina 15 failed r005 farah 30 pending r006 ivan 15 paused
dina lina farah ivan
record_id display_name score state r001 ivan 27 paused r002 chen 28 ready r003 eli 10 active r004 hana 21 active r005 lina 30 failed r006 ivan 5 paused
ivan chen hana lina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020973-p1
With the first row as a header, print the display_name field for data rows where the score is strictly 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 dina 22 pending r002 farah 9 ready r003 lina 4 paused r004 lina 15 failed r005 farah 30 pending r006 ivan 15 paused
dina lina farah ivan
record_id display_name score state r001 ivan 27 paused r002 chen 28 ready r003 eli 10 active r004 hana 21 active r005 lina 30 failed r006 ivan 5 paused
ivan chen hana lina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020973
qwen/qwen3.7-plus
awkweave-0020974
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
hana 14 ready chen 20 active ivan 22 failed hana 16 pending hana 23 active jules 6 closed
14 20 22 16 23 6
jules 16 failed eli 3 failed chen 5 paused alice 19 paused eli 30 ready alice 15 failed alice 30 pending alice 8 paused
16 3 5 19 30 15 30 8
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020974-p1
Given tab-separated input, extract and print the second column from every record.
BEGIN{FS=OFS="\t"}{print $2}
hana 14 ready chen 20 active ivan 22 failed hana 16 pending hana 23 active jules 6 closed
14 20 22 16 23 6
jules 16 failed eli 3 failed chen 5 paused alice 19 paused eli 30 ready alice 15 failed alice 30 pending alice 8 paused
16 3 5 19 30 15 30 8
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020974
qwen/qwen3.7-plus
awkweave-0020975
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 10.
BEGIN{FS=OFS=","}$2>10{print $1}
farah,20,paused kim,17,closed lina,28,ready chen,27,active gus,8,pending dina,3,failed chen,5,active chen,30,pending
farah kim lina chen chen
hana,20,failed ivan,25,closed bruno,29,paused gus,8,paused lina,12,failed kim,12,failed chen,4,ready
hana ivan bruno lina kim
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020975-p1
For simple comma-separated input without quoted commas, print the first column whenever the second column value is greater than 10.
BEGIN{FS=OFS=","}$2>10{print $1}
farah,20,paused kim,17,closed lina,28,ready chen,27,active gus,8,pending dina,3,failed chen,5,active chen,30,pending
farah kim lina chen chen
hana,20,failed ivan,25,closed bruno,29,paused gus,8,paused lina,12,failed kim,12,failed chen,4,ready
hana ivan bruno lina kim
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020975
qwen/qwen3.7-plus
awkweave-0020976
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan grove 70 lina fable 104 ivan juniper 1 lina birch 58 jules birch 115 lina amber 41
ivan grove 70 lina fable 104 ivan juniper 1 lina birch 58 jules birch 115 lina amber 41
eli birch 47 gus harbor 117 chen delta 89 kim amber 76 farah ember 106 gus amber 117 bruno harbor 43
eli birch 47 gus harbor 117 chen delta 89 kim amber 76 farah ember 106 gus amber 117 bruno harbor 43
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020976-p1
Remove leading and trailing whitespace, and reduce any internal whitespace sequences to a single space.
{$1=$1;print}
ivan grove 70 lina fable 104 ivan juniper 1 lina birch 58 jules birch 115 lina amber 41
ivan grove 70 lina fable 104 ivan juniper 1 lina birch 58 jules birch 115 lina amber 41
eli birch 47 gus harbor 117 chen delta 89 kim amber 76 farah ember 106 gus amber 117 bruno harbor 43
eli birch 47 gus harbor 117 chen delta 89 kim amber 76 farah ember 106 gus amber 117 bruno harbor 43
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020976
qwen/qwen3.7-plus
awkweave-0020977
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
dina birch 72 ready bruno juniper 72 pending lina fable 97 active gus ember 75 failed kim fable 109 paused hana amber 1 pending eli cobalt 77 paused eli birch 8 paused kim harbor 47 closed farah delta 116 ready
bruno juniper 72 pending
lina birch 51 ready chen harbor 14 paused farah harbor 83 ready bruno juniper 90 paused kim amber 71 active hana indigo 117 pending alice amber 44 pending jules indigo 87 failed dina ember 87 pending eli amber 40 active
bruno juniper 90 paused
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020977-p1
Identify and print the longest line from the input; if multiple lines share the maximum length, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
dina birch 72 ready bruno juniper 72 pending lina fable 97 active gus ember 75 failed kim fable 109 paused hana amber 1 pending eli cobalt 77 paused eli birch 8 paused kim harbor 47 closed farah delta 116 ready
bruno juniper 72 pending
lina birch 51 ready chen harbor 14 paused farah harbor 83 ready bruno juniper 90 paused kim amber 71 active hana indigo 117 pending alice amber 44 pending jules indigo 87 failed dina ember 87 pending eli amber 40 active
bruno juniper 90 paused
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020977
qwen/qwen3.7-plus
awkweave-0020978
Print every 4th line starting at line 3 (then line 7, and so on).
NR%4==3
chen 23 kim 25 dina 35 kim 90 jules 10 dina 51 chen 86 lina 4 alice 52 dina 33
dina 35 chen 86
eli 24 ivan 97 bruno 30 hana 61 kim 71 chen 116
bruno 30
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020978-p1
Output every fourth line beginning with the third line (i.e., lines 3, 7, 11, etc.).
NR%4==3
chen 23 kim 25 dina 35 kim 90 jules 10 dina 51 chen 86 lina 4 alice 52 dina 33
dina 35 chen 86
eli 24 ivan 97 bruno 30 hana 61 kim 71 chen 116
bruno 30
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020978
qwen/qwen3.7-plus
awkweave-0020979
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
delta delta 54 beta juniper 66 gamma indigo 7 alpha birch 75 delta juniper 10 gamma indigo 115 alpha grove 60 delta amber 86 delta harbor 31
4
beta delta 96 alpha cobalt 57 alpha harbor 109 alpha grove 24 gamma fable 51 delta indigo 60 beta birch 71
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020979-p1
Calculate and display only the number of unique values found in the first column.
{if(!seen[$1]++)n++}END{print n+0}
delta delta 54 beta juniper 66 gamma indigo 7 alpha birch 75 delta juniper 10 gamma indigo 115 alpha grove 60 delta amber 86 delta harbor 31
4
beta delta 96 alpha cobalt 57 alpha harbor 109 alpha grove 24 gamma fable 51 delta indigo 60 beta birch 71
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020979
qwen/qwen3.7-plus
awkweave-0020980
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 19 0 chen 12 26 bruno 13 10 hana 24 23 chen 23 2 bruno 18 14
chen 0.46 bruno 1.30 hana 1.04 chen 11.50 bruno 1.29
alice 14 0 chen 8 20 ivan 25 12 jules 3 11 farah 30 18 lina 29 3 bruno 12 27 alice 8 28 alice 2 10 ivan 23 13
chen 0.40 ivan 2.08 jules 0.27 farah 1.67 lina 9.67 bruno 0.44 alice 0.29 alice 0.20 ivan 1.77
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020980-p1
For each row where the third column is not zero, output the first column and the result of dividing the second column by the third column, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 19 0 chen 12 26 bruno 13 10 hana 24 23 chen 23 2 bruno 18 14
chen 0.46 bruno 1.30 hana 1.04 chen 11.50 bruno 1.29
alice 14 0 chen 8 20 ivan 25 12 jules 3 11 farah 30 18 lina 29 3 bruno 12 27 alice 8 28 alice 2 10 ivan 23 13
chen 0.40 ivan 2.08 jules 0.27 farah 1.67 lina 9.67 bruno 0.44 alice 0.29 alice 0.20 ivan 1.77
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020980
qwen/qwen3.7-plus
awkweave-0020981
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]}
chen harbor 30 alice delta 5 lina fable 30 dina fable 7 gus ember 27 gus amber 19 hana birch 11
chen harbor 30 lina fable 30 gus ember 27
bruno harbor 17 hana indigo 2 eli grove 13 gus fable 14 ivan grove 20 lina fable 19 ivan juniper 30 gus ember 25 gus amber 22
ivan juniper 30 gus ember 25 gus amber 22
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020981-p1
Display the three full records with the largest numeric values in the third column, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
chen harbor 30 alice delta 5 lina fable 30 dina fable 7 gus ember 27 gus amber 19 hana birch 11
chen harbor 30 lina fable 30 gus ember 27
bruno harbor 17 hana indigo 2 eli grove 13 gus fable 14 ivan grove 20 lina fable 19 ivan juniper 30 gus ember 25 gus amber 22
ivan juniper 30 gus ember 25 gus amber 22
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020981
qwen/qwen3.7-plus
awkweave-0020982
Print column 2 followed by column 1 for every record.
{print $2, $1}
delta fable closed 35 ready amber juniper ember paused 15 ready ember juniper fable pending 13 closed grove harbor fable paused 79 failed harbor indigo ember pending 31 ready birch juniper indigo pending 85 ready cobalt amber birch closed 6 failed delta grove birch closed 10 pending birch
fable delta ember juniper fable juniper fable harbor ember indigo indigo juniper birch amber birch grove
juniper harbor pending 55 closed cobalt amber juniper failed 67 active birch cobalt cobalt ready 90 closed birch grove amber paused 22 failed harbor birch ember pending 98 paused cobalt amber grove ready 89 ready harbor fable amber active 115 closed birch amber amber closed 120 active delta indigo grove ready 41 closed...
harbor juniper juniper amber cobalt cobalt amber grove ember birch grove amber amber fable amber amber grove indigo
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020982-p1
Output the second column followed by the first column for every record.
{print $2, $1}
delta fable closed 35 ready amber juniper ember paused 15 ready ember juniper fable pending 13 closed grove harbor fable paused 79 failed harbor indigo ember pending 31 ready birch juniper indigo pending 85 ready cobalt amber birch closed 6 failed delta grove birch closed 10 pending birch
fable delta ember juniper fable juniper fable harbor ember indigo indigo juniper birch amber birch grove
juniper harbor pending 55 closed cobalt amber juniper failed 67 active birch cobalt cobalt ready 90 closed birch grove amber paused 22 failed harbor birch ember pending 98 paused cobalt amber grove ready 89 ready harbor fable amber active 115 closed birch amber amber closed 120 active delta indigo grove ready 41 closed...
harbor juniper juniper amber cobalt cobalt amber grove ember birch grove amber amber fable amber amber grove indigo
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020982
qwen/qwen3.7-plus
awkweave-0020983
Print the last field of every input line.
{print $NF}
indigo failed 2 pending 20 juniper ready 103 closed 2 cobalt paused 52 active 83 harbor active 119 failed 98 ember pending 25 pending 60 birch pending 85 pending 55
20 2 83 98 60 55
grove paused 24 failed 55 amber paused 89 closed 102 birch paused 57 ready 112 harbor closed 58 ready 74 juniper ready 92 ready 35 harbor closed 95 pending 38 cobalt ready 8 active 9 amber ready 87 active 89 ember failed 68 closed 57 ember active 48 active 63
55 102 112 74 35 38 9 89 57 63
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020983-p1
Print the final field from each input line.
{print $NF}
indigo failed 2 pending 20 juniper ready 103 closed 2 cobalt paused 52 active 83 harbor active 119 failed 98 ember pending 25 pending 60 birch pending 85 pending 55
20 2 83 98 60 55
grove paused 24 failed 55 amber paused 89 closed 102 birch paused 57 ready 112 harbor closed 58 ready 74 juniper ready 92 ready 35 harbor closed 95 pending 38 cobalt ready 8 active 9 amber ready 87 active 89 ember failed 68 closed 57 ember active 48 active 63
55 102 112 74 35 38 9 89 57 63
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020983
qwen/qwen3.7-plus
awkweave-0020984
Print the complete records where column 1 is at most 38.
$1 <= 38
0 ember eli cobalt 45 amber hana amber 101 delta bruno ember 75 fable dina cobalt 80 ember kim amber 93 ember bruno harbor 94 harbor gus harbor 76 cobalt kim fable 2 juniper eli ember
0 ember eli cobalt 2 juniper eli ember
67 cobalt hana indigo 61 delta ivan harbor 85 juniper hana ember 95 ember bruno birch 98 harbor eli delta 8 grove alice cobalt 30 amber bruno birch
8 grove alice cobalt 30 amber bruno birch
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020984-p1
Output the full records where the value in the first column is less than or equal to 38.
$1 <= 38
0 ember eli cobalt 45 amber hana amber 101 delta bruno ember 75 fable dina cobalt 80 ember kim amber 93 ember bruno harbor 94 harbor gus harbor 76 cobalt kim fable 2 juniper eli ember
0 ember eli cobalt 2 juniper eli ember
67 cobalt hana indigo 61 delta ivan harbor 85 juniper hana ember 95 ember bruno birch 98 harbor eli delta 8 grove alice cobalt 30 amber bruno birch
8 grove alice cobalt 30 amber bruno birch
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020984
qwen/qwen3.7-plus
awkweave-0020985
Show whole lines whose 1st field is between 3 and 28, inclusive.
$1 >= 3 && $1 <= 28
7 active eli paused 20 failed alice pending 4 paused chen active 7 paused bruno closed 12 active bruno paused 15 closed dina ready 25 paused hana active 20 active jules pending
7 active eli paused 20 failed alice pending 4 paused chen active 7 paused bruno closed 12 active bruno paused 15 closed dina ready 25 paused hana active 20 active jules pending
18 paused dina closed 1 ready jules paused 14 paused jules paused 18 ready jules closed 3 closed bruno closed 2 closed farah paused 22 paused eli failed 13 paused hana pending
18 paused dina closed 14 paused jules paused 18 ready jules closed 3 closed bruno closed 22 paused eli failed 13 paused hana pending
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020985-p1
Display entire lines where the first field falls within the inclusive range of 3 to 28.
$1 >= 3 && $1 <= 28
7 active eli paused 20 failed alice pending 4 paused chen active 7 paused bruno closed 12 active bruno paused 15 closed dina ready 25 paused hana active 20 active jules pending
7 active eli paused 20 failed alice pending 4 paused chen active 7 paused bruno closed 12 active bruno paused 15 closed dina ready 25 paused hana active 20 active jules pending
18 paused dina closed 1 ready jules paused 14 paused jules paused 18 ready jules closed 3 closed bruno closed 2 closed farah paused 22 paused eli failed 13 paused hana pending
18 paused dina closed 14 paused jules paused 18 ready jules closed 3 closed bruno closed 22 paused eli failed 13 paused hana pending
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020985
qwen/qwen3.7-plus
awkweave-0020986
Print column 1 only for rows where column 4 is exactly active.
$4 == "active"{print $1}
alice 13 amber closed bruno 115 cobalt paused bruno 64 cobalt active jules 30 cobalt pending farah 74 fable active hana 71 amber ready lina 38 juniper failed bruno 79 grove ready lina 67 cobalt active
bruno farah lina
jules 67 delta ready farah 74 delta closed hana 44 ember closed chen 49 indigo paused dina 24 indigo ready alice 107 cobalt ready gus 92 delta closed jules 7 birch active hana 12 harbor ready dina 2 amber closed
jules
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020986-p1
Print only the first column for rows where the fourth column is exactly 'active'.
$4 == "active"{print $1}
alice 13 amber closed bruno 115 cobalt paused bruno 64 cobalt active jules 30 cobalt pending farah 74 fable active hana 71 amber ready lina 38 juniper failed bruno 79 grove ready lina 67 cobalt active
bruno farah lina
jules 67 delta ready farah 74 delta closed hana 44 ember closed chen 49 indigo paused dina 24 indigo ready alice 107 cobalt ready gus 92 delta closed jules 7 birch active hana 12 harbor ready dina 2 amber closed
jules
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020986
qwen/qwen3.7-plus
awkweave-0020987
Print all fields from lines where field 1 begins with INFO.
$1 ~ /^INFO/
INFO 56 fable DEBUG 41 ember ERROR 98 birch ERROR 108 juniper INFO 23 indigo ERROR 16 cobalt INFO 108 juniper ERROR 77 grove
INFO 56 fable INFO 23 indigo INFO 108 juniper
ERROR 68 ember WARN 85 amber WARN 37 harbor INFO 105 harbor DEBUG 38 cobalt DEBUG 34 harbor
INFO 105 harbor
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020987-p1
Output all fields from lines where the first field starts with 'INFO'.
$1 ~ /^INFO/
INFO 56 fable DEBUG 41 ember ERROR 98 birch ERROR 108 juniper INFO 23 indigo ERROR 16 cobalt INFO 108 juniper ERROR 77 grove
INFO 56 fable INFO 23 indigo INFO 108 juniper
ERROR 68 ember WARN 85 amber WARN 37 harbor INFO 105 harbor DEBUG 38 cobalt DEBUG 34 harbor
INFO 105 harbor
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020987
qwen/qwen3.7-plus
awkweave-0020988
Print every line except those containing the exact text delta.
$0 !~ /delta/
cobalt 3 ready grove 35 active cobalt 61 closed cobalt 4 paused indigo 10 failed harbor 34 ready delta 86 closed delta 999 active
cobalt 3 ready grove 35 active cobalt 61 closed cobalt 4 paused indigo 10 failed harbor 34 ready
juniper 68 failed harbor 101 ready indigo 92 failed grove 82 ready birch 120 closed cobalt 13 active delta 999 active
juniper 68 failed harbor 101 ready indigo 92 failed grove 82 ready birch 120 closed cobalt 13 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020988-p1
Print every line that does not contain the exact string 'delta'.
$0 !~ /delta/
cobalt 3 ready grove 35 active cobalt 61 closed cobalt 4 paused indigo 10 failed harbor 34 ready delta 86 closed delta 999 active
cobalt 3 ready grove 35 active cobalt 61 closed cobalt 4 paused indigo 10 failed harbor 34 ready
juniper 68 failed harbor 101 ready indigo 92 failed grove 82 ready birch 120 closed cobalt 13 active delta 999 active
juniper 68 failed harbor 101 ready indigo 92 failed grove 82 ready birch 120 closed cobalt 13 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020988
qwen/qwen3.7-plus
awkweave-0020989
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
jules juniper 69 alice indigo 16 hana cobalt 21 chen amber 10 ivan birch 59 bruno indigo 49 jules birch 10 kim cobalt 106
chen amber 10 ivan birch 59 bruno indigo 49 jules birch 10
ivan fable 91 farah cobalt 114 farah birch 73 ivan ember 43 dina cobalt 92 dina indigo 53 dina harbor 74 lina delta 2 dina harbor 11 alice delta 92
ivan ember 43 dina cobalt 92 dina indigo 53 dina harbor 74
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0020989-p1
Output lines 4 through 7, inclusive.
NR >= 4 && NR <= 7
jules juniper 69 alice indigo 16 hana cobalt 21 chen amber 10 ivan birch 59 bruno indigo 49 jules birch 10 kim cobalt 106
chen amber 10 ivan birch 59 bruno indigo 49 jules birch 10
ivan fable 91 farah cobalt 114 farah birch 73 ivan ember 43 dina cobalt 92 dina indigo 53 dina harbor 74 lina delta 2 dina harbor 11 alice delta 92
ivan ember 43 dina cobalt 92 dina indigo 53 dina harbor 74
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0020989
qwen/qwen3.7-plus
awkweave-0021000
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
lina 13 fable farah 23 harbor ivan 8 delta ivan 6 amber gus 28 ember dina 19 amber
lina 13 farah 36 ivan 44 ivan 50 gus 78 dina 97
gus 17 cobalt jules 2 cobalt eli 9 harbor kim 26 fable lina 29 birch ivan 25 fable hana 5 juniper hana 29 fable
gus 17 jules 19 eli 28 kim 54 lina 83 ivan 108 hana 113 hana 142
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0021000-p1
Output the first column and the cumulative total of the second column for each record, separated by a space.
{s+=$2;print $1,s}
lina 13 fable farah 23 harbor ivan 8 delta ivan 6 amber gus 28 ember dina 19 amber
lina 13 farah 36 ivan 44 ivan 50 gus 78 dina 97
gus 17 cobalt jules 2 cobalt eli 9 harbor kim 26 fable lina 29 birch ivan 25 fable hana 5 juniper hana 29 fable
gus 17 jules 19 eli 28 kim 54 lina 83 ivan 108 hana 113 hana 142
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0021000
qwen/qwen3.7-plus