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-0007270-p1
Eliminate exact duplicate lines while keeping the first occurrence and maintaining the original order.
!seen[$0]++
eli grove 56 lina amber 68 jules amber 104 gus delta 107 chen birch 33 bruno birch 7 farah fable 24 gus delta 107 alice fable 4 gus amber 38 ivan birch 75
eli grove 56 lina amber 68 jules amber 104 gus delta 107 chen birch 33 bruno birch 7 farah fable 24 alice fable 4 gus amber 38 ivan birch 75
ivan delta 67 dina delta 52 chen harbor 16 bruno delta 113 farah harbor 91 chen fable 97 farah amber 34 ivan grove 109 ivan grove 13 chen harbor 16 dina cobalt 96
ivan delta 67 dina delta 52 chen harbor 16 bruno delta 113 farah harbor 91 chen fable 97 farah amber 34 ivan grove 109 ivan grove 13 dina cobalt 96
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007270
qwen/qwen3.7-plus
awkweave-0007271
Keep only the first line for each distinct value in column 3; preserve input order.
!seen[$3]++
gus fable 55 gus amber 16 farah indigo 119 lina juniper 93 farah birch 38 chen grove 58 jules ember 104 farah ember 49 gus grove 87
gus fable 55 gus amber 16 farah indigo 119 lina juniper 93 farah birch 38 chen grove 58 jules ember 104 farah ember 49 gus grove 87
gus birch 117 ivan amber 84 jules ember 22 dina harbor 112 hana indigo 10 bruno ember 84 dina ember 116 chen cobalt 98 alice indigo 68 gus juniper 23
gus birch 117 ivan amber 84 jules ember 22 dina harbor 112 hana indigo 10 dina ember 116 chen cobalt 98 alice indigo 68 gus juniper 23
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007271-p1
Retain only the first line for each unique value in column 3, preserving the input sequence.
!seen[$3]++
gus fable 55 gus amber 16 farah indigo 119 lina juniper 93 farah birch 38 chen grove 58 jules ember 104 farah ember 49 gus grove 87
gus fable 55 gus amber 16 farah indigo 119 lina juniper 93 farah birch 38 chen grove 58 jules ember 104 farah ember 49 gus grove 87
gus birch 117 ivan amber 84 jules ember 22 dina harbor 112 hana indigo 10 bruno ember 84 dina ember 116 chen cobalt 98 alice indigo 68 gus juniper 23
gus birch 117 ivan amber 84 jules ember 22 dina harbor 112 hana indigo 10 dina ember 116 chen cobalt 98 alice indigo 68 gus juniper 23
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007271
qwen/qwen3.7-plus
awkweave-0007272
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
lina 8 birch kim 4 cobalt eli 18 cobalt alice 4 juniper jules 4 birch chen 2 grove jules 15 delta hana 5 cobalt jules 27 grove chen 20 fable
lina 8 kim 12 eli 30 alice 34 jules 38 chen 40 jules 55 hana 60 jules 87 chen 107
farah 10 birch ivan 2 fable chen 14 amber jules 18 ember lina 18 grove chen 12 delta
farah 10 ivan 12 chen 26 jules 44 lina 62 chen 74
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007272-p1
Output the first column and the cumulative total of the second column for each record, using a space as the delimiter.
{s+=$2;print $1,s}
lina 8 birch kim 4 cobalt eli 18 cobalt alice 4 juniper jules 4 birch chen 2 grove jules 15 delta hana 5 cobalt jules 27 grove chen 20 fable
lina 8 kim 12 eli 30 alice 34 jules 38 chen 40 jules 55 hana 60 jules 87 chen 107
farah 10 birch ivan 2 fable chen 14 amber jules 18 ember lina 18 grove chen 12 delta
farah 10 ivan 12 chen 26 jules 44 lina 62 chen 74
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007272
qwen/qwen3.7-plus
awkweave-0007273
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
eli 22 23 fable kim 16 23 harbor hana 14 7 grove gus 25 5 grove alice 17 11 cobalt hana 5 19 grove gus 15 17 fable dina 7 17 delta kim 13 25 grove
eli 45 kim 39 hana 21 gus 30 alice 28 hana 24 gus 32 dina 24 kim 38
ivan 27 12 ember eli 2 20 amber kim 15 2 indigo alice 4 10 delta hana 23 5 birch dina 2 3 indigo lina 10 18 birch hana 30 20 ember
ivan 39 eli 22 kim 17 alice 14 hana 28 dina 5 lina 28 hana 50
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007273-p1
For every row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
eli 22 23 fable kim 16 23 harbor hana 14 7 grove gus 25 5 grove alice 17 11 cobalt hana 5 19 grove gus 15 17 fable dina 7 17 delta kim 13 25 grove
eli 45 kim 39 hana 21 gus 30 alice 28 hana 24 gus 32 dina 24 kim 38
ivan 27 12 ember eli 2 20 amber kim 15 2 indigo alice 4 10 delta hana 23 5 birch dina 2 3 indigo lina 10 18 birch hana 30 20 ember
ivan 39 eli 22 kim 17 alice 14 hana 28 dina 5 lina 28 hana 50
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007273
qwen/qwen3.7-plus
awkweave-0007274
Print column 1 and pass when column 2 is at least 24; otherwise print fail.
{print $1,($2>=24?"pass":"fail")}
alice 8 ivan 8 dina 28 kim 1 eli 8 gus 11 dina 17 farah 29 alice 16 hana 10
alice fail ivan fail dina pass kim fail eli fail gus fail dina fail farah pass alice fail hana fail
farah 5 farah 12 alice 10 alice 26 farah 27 alice 18 bruno 29 alice 26 bruno 27
farah fail farah fail alice fail alice pass farah pass alice fail bruno pass alice pass bruno pass
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007274-p1
Print the value in column 1; if column 2 is 24 or greater, append 'pass', otherwise append 'fail'.
{print $1,($2>=24?"pass":"fail")}
alice 8 ivan 8 dina 28 kim 1 eli 8 gus 11 dina 17 farah 29 alice 16 hana 10
alice fail ivan fail dina pass kim fail eli fail gus fail dina fail farah pass alice fail hana fail
farah 5 farah 12 alice 10 alice 26 farah 27 alice 18 bruno 29 alice 26 bruno 27
farah fail farah fail alice fail alice pass farah pass alice fail bruno pass alice pass bruno pass
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007274
qwen/qwen3.7-plus
awkweave-0007275
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
chen cobalt 24 chen indigo 108 chen birch 56 hana delta 74 ivan amber 66 chen ember 37 dina cobalt 20 lina harbor 0 chen amber 39 dina fable 119
CHEN CHEN CHEN HANA IVAN CHEN DINA LINA CHEN DINA
kim birch 81 ivan birch 68 hana ember 10 alice amber 39 bruno fable 83 eli harbor 109
KIM IVAN HANA ALICE BRUNO ELI
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007275-p1
Transform the content of column 1 to uppercase and output only that modified column.
{print toupper($1)}
chen cobalt 24 chen indigo 108 chen birch 56 hana delta 74 ivan amber 66 chen ember 37 dina cobalt 20 lina harbor 0 chen amber 39 dina fable 119
CHEN CHEN CHEN HANA IVAN CHEN DINA LINA CHEN DINA
kim birch 81 ivan birch 68 hana ember 10 alice amber 39 bruno fable 83 eli harbor 109
KIM IVAN HANA ALICE BRUNO ELI
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007275
qwen/qwen3.7-plus
awkweave-0007276
From column 1, print 3 characters starting at character 3.
{print substr($1,3,3)}
juniper 85 birch 79 grove 96 ember 28 fable 3 amber 39 grove 28 birch 88 delta 3
nip rch ove ber ble ber ove rch lta
cobalt 46 amber 92 grove 119 amber 96 birch 6 delta 106
bal ber ove ber rch lta
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007276-p1
Extract and print a substring of length 3 from column 1, beginning at the 3rd character.
{print substr($1,3,3)}
juniper 85 birch 79 grove 96 ember 28 fable 3 amber 39 grove 28 birch 88 delta 3
nip rch ove ber ble ber ove rch lta
cobalt 46 amber 92 grove 119 amber 96 birch 6 delta 106
bal ber ove ber rch lta
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007276
qwen/qwen3.7-plus
awkweave-0007277
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
delta_fable 32 ember_juniper 66 ember_juniper 96 amber_grove 84 ember_grove 88 delta_indigo 7
delta fable ember juniper ember juniper amber grove ember grove delta indigo
delta_birch 57 harbor_delta 6 delta_amber 51 harbor_grove 62 fable_fable 18 birch_ember 29 ember_amber 67 ember_indigo 31 juniper_grove 68 juniper_cobalt 54
delta birch harbor delta delta amber harbor grove fable fable birch ember ember amber ember indigo juniper grove juniper cobalt
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007277-p1
Substitute all underscores in column 1 with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
delta_fable 32 ember_juniper 66 ember_juniper 96 amber_grove 84 ember_grove 88 delta_indigo 7
delta fable ember juniper ember juniper amber grove ember grove delta indigo
delta_birch 57 harbor_delta 6 delta_amber 51 harbor_grove 62 fable_fable 18 birch_ember 29 ember_amber 67 ember_indigo 31 juniper_grove 68 juniper_cobalt 54
delta birch harbor delta delta amber harbor grove fable fable birch ember ember amber ember indigo juniper grove juniper cobalt
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007277
qwen/qwen3.7-plus
awkweave-0007278
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 delta 0 closed hana juniper 54 closed ivan delta 111 failed eli harbor 86 paused alice harbor 96 paused chen juniper 70 active dina harbor 114 pending chen juniper 44 active
closed 0 delta bruno closed 54 juniper hana failed 111 delta ivan paused 86 harbor eli paused 96 harbor alice active 70 juniper chen pending 114 harbor dina active 44 juniper chen
kim juniper 91 active alice birch 4 ready chen cobalt 35 closed dina fable 83 ready dina ember 15 closed gus harbor 24 active eli ember 68 closed alice delta 31 pending bruno ember 11 closed bruno amber 62 paused
active 91 juniper kim ready 4 birch alice closed 35 cobalt chen ready 83 fable dina closed 15 ember dina active 24 harbor gus closed 68 ember eli pending 31 delta alice closed 11 ember bruno paused 62 amber bruno
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007278-p1
Reverse the sequence of fields on each line and output all fields in the new order.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
bruno delta 0 closed hana juniper 54 closed ivan delta 111 failed eli harbor 86 paused alice harbor 96 paused chen juniper 70 active dina harbor 114 pending chen juniper 44 active
closed 0 delta bruno closed 54 juniper hana failed 111 delta ivan paused 86 harbor eli paused 96 harbor alice active 70 juniper chen pending 114 harbor dina active 44 juniper chen
kim juniper 91 active alice birch 4 ready chen cobalt 35 closed dina fable 83 ready dina ember 15 closed gus harbor 24 active eli ember 68 closed alice delta 31 pending bruno ember 11 closed bruno amber 62 paused
active 91 juniper kim ready 4 birch alice closed 35 cobalt chen ready 83 fable dina closed 15 ember dina active 24 harbor gus closed 68 ember eli pending 31 delta alice closed 11 ember bruno paused 62 amber bruno
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007278
qwen/qwen3.7-plus
awkweave-0007279
Print the number of whitespace-separated fields on each line.
{print NF}
eli delta 102 paused dina birch 27 closed gus grove 59 pending dina delta 75 closed bruno harbor 76 closed chen grove 30 active hana harbor 77 failed
4 4 4 4 4 4 4
jules grove 73 failed dina ember 40 pending farah indigo 63 paused ivan birch 85 closed bruno ember 19 active eli harbor 51 failed eli indigo 32 paused hana fable 63 failed farah grove 92 failed hana cobalt 35 active
4 4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007279-p1
Display the count of whitespace-delimited fields present on each line.
{print NF}
eli delta 102 paused dina birch 27 closed gus grove 59 pending dina delta 75 closed bruno harbor 76 closed chen grove 30 active hana harbor 77 failed
4 4 4 4 4 4 4
jules grove 73 failed dina ember 40 pending farah indigo 63 paused ivan birch 85 closed bruno ember 19 active eli harbor 51 failed eli indigo 32 paused hana fable 63 failed farah grove 92 failed hana cobalt 35 active
4 4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007279
qwen/qwen3.7-plus
awkweave-0007280
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]]}
bruno beta 45 jules beta 12 gus beta 117 gus delta 109 bruno delta 51 dina delta 100 hana delta 40 chen gamma 80 lina gamma 97 eli alpha 10
beta 3 delta 4 gamma 2 alpha 1
bruno delta 36 hana delta 91 ivan beta 8 bruno beta 9 farah gamma 72 dina gamma 63 ivan beta 14 alice beta 88
delta 2 beta 4 gamma 2
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007280-p1
Tally the number of records for each unique value in column 2, printing the value and 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]]}
bruno beta 45 jules beta 12 gus beta 117 gus delta 109 bruno delta 51 dina delta 100 hana delta 40 chen gamma 80 lina gamma 97 eli alpha 10
beta 3 delta 4 gamma 2 alpha 1
bruno delta 36 hana delta 91 ivan beta 8 bruno beta 9 farah gamma 72 dina gamma 63 ivan beta 14 alice beta 88
delta 2 beta 4 gamma 2
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007280
qwen/qwen3.7-plus
awkweave-0007281
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]]}
gus alpha 11 kim alpha 14 hana delta 19 chen beta 14 ivan gamma 11 hana delta 13
alpha 25 delta 32 beta 14 gamma 11
kim alpha 18 kim delta 18 farah alpha 30 kim beta 6 gus alpha 2 chen beta 9
alpha 50 delta 18 beta 15
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007281-p1
Calculate the sum of column 3 grouped by column 2 categories, listing 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]]}
gus alpha 11 kim alpha 14 hana delta 19 chen beta 14 ivan gamma 11 hana delta 13
alpha 25 delta 32 beta 14 gamma 11
kim alpha 18 kim delta 18 farah alpha 30 kim beta 6 gus alpha 2 chen beta 9
alpha 50 delta 18 beta 15
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007281
qwen/qwen3.7-plus
awkweave-0007282
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]]}
gamma ember 61 alpha ember 91 beta juniper 112 delta harbor 87 delta birch 115 alpha indigo 55 delta harbor 60 alpha harbor 61 alpha birch 108
alpha 4 delta 3
gamma grove 16 gamma amber 110 gamma harbor 17 gamma juniper 105 alpha grove 65 gamma birch 1 delta juniper 91 delta birch 72
gamma 5 delta 2
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007282-p1
List each duplicate value from column 1 along with its frequency, ordered 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]]}
gamma ember 61 alpha ember 91 beta juniper 112 delta harbor 87 delta birch 115 alpha indigo 55 delta harbor 60 alpha harbor 61 alpha birch 108
alpha 4 delta 3
gamma grove 16 gamma amber 110 gamma harbor 17 gamma juniper 105 alpha grove 65 gamma birch 1 delta juniper 91 delta birch 72
gamma 5 delta 2
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007282
qwen/qwen3.7-plus
awkweave-0007283
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"]}
record_id region note score r001 eli 9 paused r002 lina 2 ready r003 ivan 18 closed r004 jules 7 pending r005 ivan 3 paused r006 hana 14 failed r007 eli 9 closed r008 eli 1 failed
9 2 18 7 3 14 9 1
record_id region note score r001 jules 27 closed r002 alice 24 pending r003 eli 16 ready r004 chen 17 paused r005 chen 14 active r006 lina 1 pending r007 ivan 21 paused r008 dina 29 failed r009 gus 21 ready r010 gus 16 paused
27 24 16 17 14 1 21 29 21 16
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007283-p1
Skip the header row and print the contents of the note column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["note"]}
record_id region note score r001 eli 9 paused r002 lina 2 ready r003 ivan 18 closed r004 jules 7 pending r005 ivan 3 paused r006 hana 14 failed r007 eli 9 closed r008 eli 1 failed
9 2 18 7 3 14 9 1
record_id region note score r001 jules 27 closed r002 alice 24 pending r003 eli 16 ready r004 chen 17 paused r005 chen 14 active r006 lina 1 pending r007 ivan 21 paused r008 dina 29 failed r009 gus 21 ready r010 gus 16 paused
27 24 16 17 14 1 21 29 21 16
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007283
qwen/qwen3.7-plus
awkweave-0007284
The first row is a header. Print display_name for data rows whose score is greater than 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 kim 30 closed r002 gus 10 failed r003 dina 14 ready r004 ivan 11 ready r005 gus 20 closed r006 alice 2 pending r007 lina 25 paused r008 gus 10 closed r009 farah 16 active
kim gus lina
record_id display_name score state r001 jules 15 paused r002 lina 17 closed r003 farah 30 active r004 bruno 15 paused r005 eli 16 paused r006 chen 27 failed r007 chen 6 active r008 eli 28 ready r009 lina 3 closed r010 kim 29 closed
farah chen eli kim
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007284-p1
Treat the initial row as a header and output the display_name field for all subsequent rows where the score exceeds 18.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>18{print $h["display_name"]}
record_id display_name score state r001 kim 30 closed r002 gus 10 failed r003 dina 14 ready r004 ivan 11 ready r005 gus 20 closed r006 alice 2 pending r007 lina 25 paused r008 gus 10 closed r009 farah 16 active
kim gus lina
record_id display_name score state r001 jules 15 paused r002 lina 17 closed r003 farah 30 active r004 bruno 15 paused r005 eli 16 paused r006 chen 27 failed r007 chen 6 active r008 eli 28 ready r009 lina 3 closed r010 kim 29 closed
farah chen eli kim
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007284
qwen/qwen3.7-plus
awkweave-0007285
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 29 pending gus 26 pending gus 28 paused ivan 19 closed kim 24 closed alice 12 ready farah 25 active lina 6 paused
bruno gus gus ivan kim alice farah lina
alice 28 active farah 22 pending farah 18 ready chen 25 pending kim 8 ready dina 7 active bruno 18 failed dina 10 failed farah 2 closed
alice farah farah chen kim dina bruno dina farah
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007285-p1
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
bruno 29 pending gus 26 pending gus 28 paused ivan 19 closed kim 24 closed alice 12 ready farah 25 active lina 6 paused
bruno gus gus ivan kim alice farah lina
alice 28 active farah 22 pending farah 18 ready chen 25 pending kim 8 ready dina 7 active bruno 18 failed dina 10 failed farah 2 closed
alice farah farah chen kim dina bruno dina farah
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0007285
qwen/qwen3.7-plus
awkweave-0007286
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 13.
BEGIN{FS=OFS=","}$2>13{print $1}
ivan,10,closed bruno,3,pending dina,16,active dina,4,closed chen,5,active gus,1,paused ivan,19,active farah,10,failed dina,17,failed
dina ivan dina
bruno,3,ready farah,3,active hana,14,closed hana,30,active eli,1,paused hana,21,failed farah,24,ready
hana hana hana farah
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007286-p1
For simple CSV data without quoted commas, output the first column only if the second column's value is greater than 13.
BEGIN{FS=OFS=","}$2>13{print $1}
ivan,10,closed bruno,3,pending dina,16,active dina,4,closed chen,5,active gus,1,paused ivan,19,active farah,10,failed dina,17,failed
dina ivan dina
bruno,3,ready farah,3,active hana,14,closed hana,30,active eli,1,paused hana,21,failed farah,24,ready
hana hana hana farah
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007286
qwen/qwen3.7-plus
awkweave-0007287
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
jules indigo 110 bruno ember 38 ivan ember 34 alice juniper 111 lina fable 120 hana harbor 114 eli delta 82
jules indigo 110 bruno ember 38 ivan ember 34 alice juniper 111 lina fable 120 hana harbor 114 eli delta 82
dina ember 102 jules birch 32 alice cobalt 13 farah amber 5 alice birch 103 gus harbor 81
dina ember 102 jules birch 32 alice cobalt 13 farah amber 5 alice birch 103 gus harbor 81
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007287-p1
Remove leading and trailing whitespace, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
jules indigo 110 bruno ember 38 ivan ember 34 alice juniper 111 lina fable 120 hana harbor 114 eli delta 82
jules indigo 110 bruno ember 38 ivan ember 34 alice juniper 111 lina fable 120 hana harbor 114 eli delta 82
dina ember 102 jules birch 32 alice cobalt 13 farah amber 5 alice birch 103 gus harbor 81
dina ember 102 jules birch 32 alice cobalt 13 farah amber 5 alice birch 103 gus harbor 81
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007287
qwen/qwen3.7-plus
awkweave-0007288
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
alice ember 96 closed farah grove 34 paused jules harbor 116 closed bruno juniper 48 closed dina cobalt 12 closed hana indigo 99 active eli indigo 32 ready alice grove 48 failed
jules harbor 116 closed
chen amber 76 ready ivan amber 94 closed chen amber 33 closed jules cobalt 29 ready eli cobalt 93 ready jules birch 7 active
jules cobalt 29 ready
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007288-p1
Identify and output the longest line in the input; in case of a tie in length, select the one that appears first.
{if(length($0)>length(best))best=$0}END{print best}
alice ember 96 closed farah grove 34 paused jules harbor 116 closed bruno juniper 48 closed dina cobalt 12 closed hana indigo 99 active eli indigo 32 ready alice grove 48 failed
jules harbor 116 closed
chen amber 76 ready ivan amber 94 closed chen amber 33 closed jules cobalt 29 ready eli cobalt 93 ready jules birch 7 active
jules cobalt 29 ready
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007288
qwen/qwen3.7-plus
awkweave-0007289
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
kim 95 gus 109 dina 59 farah 102 kim 117 lina 26 ivan 111 ivan 60
gus 109 farah 102 lina 26 ivan 60
alice 64 alice 41 lina 70 lina 23 ivan 11 hana 30 chen 38 hana 29 kim 42
alice 41 lina 23 hana 30 hana 29
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007289-p1
Output every second line of the input, beginning with line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
kim 95 gus 109 dina 59 farah 102 kim 117 lina 26 ivan 111 ivan 60
gus 109 farah 102 lina 26 ivan 60
alice 64 alice 41 lina 70 lina 23 ivan 11 hana 30 chen 38 hana 29 kim 42
alice 41 lina 23 hana 30 hana 29
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007289
qwen/qwen3.7-plus
awkweave-0007300
Print lines 3 through 5, including both endpoints.
NR >= 3 && NR <= 5
gus ember 107 ivan ember 85 alice ember 24 alice fable 36 farah ember 72 gus harbor 115 dina ember 82 ivan cobalt 51 jules indigo 53 dina ember 11
alice ember 24 alice fable 36 farah ember 72
ivan harbor 21 bruno fable 118 farah harbor 98 hana ember 53 kim delta 45 jules amber 30 dina delta 50 farah grove 45
farah harbor 98 hana ember 53 kim delta 45
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007300-p1
Print lines 3, 4, and 5 inclusive.
NR >= 3 && NR <= 5
gus ember 107 ivan ember 85 alice ember 24 alice fable 36 farah ember 72 gus harbor 115 dina ember 82 ivan cobalt 51 jules indigo 53 dina ember 11
alice ember 24 alice fable 36 farah ember 72
ivan harbor 21 bruno fable 118 farah harbor 98 hana ember 53 kim delta 45 jules amber 30 dina delta 50 farah grove 45
farah harbor 98 hana ember 53 kim delta 45
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007300
qwen/qwen3.7-plus
awkweave-0007301
Output only the first 5 records.
NR <= 5
hana 23 delta alice 9 juniper kim 81 harbor farah 18 harbor lina 70 birch bruno 117 delta alice 46 juniper chen 39 juniper kim 73 harbor kim 96 delta
hana 23 delta alice 9 juniper kim 81 harbor farah 18 harbor lina 70 birch
hana 35 harbor chen 90 cobalt kim 96 amber jules 27 fable kim 115 cobalt jules 102 delta jules 23 delta
hana 35 harbor chen 90 cobalt kim 96 amber jules 27 fable kim 115 cobalt
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007301-p1
Restrict the output to the first 5 records only.
NR <= 5
hana 23 delta alice 9 juniper kim 81 harbor farah 18 harbor lina 70 birch bruno 117 delta alice 46 juniper chen 39 juniper kim 73 harbor kim 96 delta
hana 23 delta alice 9 juniper kim 81 harbor farah 18 harbor lina 70 birch
hana 35 harbor chen 90 cobalt kim 96 amber jules 27 fable kim 115 cobalt jules 102 delta jules 23 delta
hana 35 harbor chen 90 cobalt kim 96 amber jules 27 fable kim 115 cobalt
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007301
qwen/qwen3.7-plus
awkweave-0007302
Skip the first line and print every remaining line unchanged.
NR > 1
gus 45 cobalt farah 46 juniper gus 76 fable dina 35 juniper lina 41 harbor farah 77 grove ivan 87 fable
farah 46 juniper gus 76 fable dina 35 juniper lina 41 harbor farah 77 grove ivan 87 fable
gus 81 ember lina 114 cobalt dina 36 harbor hana 100 fable lina 47 amber ivan 76 indigo eli 7 harbor bruno 83 cobalt jules 55 grove
lina 114 cobalt dina 36 harbor hana 100 fable lina 47 amber ivan 76 indigo eli 7 harbor bruno 83 cobalt jules 55 grove
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007302-p1
Ignore the first line and print all remaining lines exactly as they appear.
NR > 1
gus 45 cobalt farah 46 juniper gus 76 fable dina 35 juniper lina 41 harbor farah 77 grove ivan 87 fable
farah 46 juniper gus 76 fable dina 35 juniper lina 41 harbor farah 77 grove ivan 87 fable
gus 81 ember lina 114 cobalt dina 36 harbor hana 100 fable lina 47 amber ivan 76 indigo eli 7 harbor bruno 83 cobalt jules 55 grove
lina 114 cobalt dina 36 harbor hana 100 fable lina 47 amber ivan 76 indigo eli 7 harbor bruno 83 cobalt jules 55 grove
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007302
qwen/qwen3.7-plus
awkweave-0007303
Count how many records have pending in column 2. Print 0 if there are none.
$2 == "pending"{n++}END{print n+0}
alice pending 55 eli active 67 chen ready 95 chen closed 102 bruno active 103 chen active 99 hana active 108 farah pending 48 gus failed 16
2
gus paused 79 hana failed 88 gus ready 99 kim paused 14 jules active 42 gus paused 11 ivan pending 44 hana active 78
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007303-p1
Count the number of records where the second column contains 'pending' and print the result; output 0 if no such records exist.
$2 == "pending"{n++}END{print n+0}
alice pending 55 eli active 67 chen ready 95 chen closed 102 bruno active 103 chen active 99 hana active 108 farah pending 48 gus failed 16
2
gus paused 79 hana failed 88 gus ready 99 kim paused 14 jules active 42 gus paused 11 ivan pending 44 hana active 78
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007303
qwen/qwen3.7-plus
awkweave-0007304
Calculate and print the sum of the integers in column 3.
{s+=$3}END{print s+0}
grove farah 18 birch eli 1 juniper chen 26 delta dina 3 fable eli 29 delta kim 14 amber chen 28 delta hana 3
122
harbor dina 30 indigo dina 21 cobalt eli 5 harbor kim 2 grove dina 6 harbor jules 15 birch chen 26 juniper hana 12 juniper kim 3 juniper jules 30
150
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007304-p1
Compute and print the total sum of all integer values found in the third column.
{s+=$3}END{print s+0}
grove farah 18 birch eli 1 juniper chen 26 delta dina 3 fable eli 29 delta kim 14 amber chen 28 delta hana 3
122
harbor dina 30 indigo dina 21 cobalt eli 5 harbor kim 2 grove dina 6 harbor jules 15 birch chen 26 juniper hana 12 juniper kim 3 juniper jules 30
150
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007304
qwen/qwen3.7-plus
awkweave-0007305
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
ivan fable 27 hana harbor 22 chen birch 11 chen indigo 21 farah fable 30 chen birch 24 alice fable 2 kim delta 13
18.75
kim juniper 28 bruno indigo 22 eli indigo 19 lina juniper 4 farah delta 18 ivan cobalt 1 bruno grove 3 chen ember 26 jules delta 7
14.22
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007305-p1
Calculate the arithmetic mean of the values in the third column and print it rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
ivan fable 27 hana harbor 22 chen birch 11 chen indigo 21 farah fable 30 chen birch 24 alice fable 2 kim delta 13
18.75
kim juniper 28 bruno indigo 22 eli indigo 19 lina juniper 4 farah delta 18 ivan cobalt 1 bruno grove 3 chen ember 26 jules delta 7
14.22
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007305
qwen/qwen3.7-plus
awkweave-0007306
Find and print the smallest numeric value in column 3.
NR==1||$3<extreme{extreme=$3}END{print extreme}
eli fable 5 ivan ember 27 lina delta 14 kim juniper 9 alice amber 25 alice amber 6 farah fable 5
5
hana harbor 2 gus delta 27 bruno indigo 1 bruno fable 10 ivan birch 19 gus grove 15 chen fable 18 kim grove 24
1
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007306-p1
Identify and output the minimum number found in the third column.
NR==1||$3<extreme{extreme=$3}END{print extreme}
eli fable 5 ivan ember 27 lina delta 14 kim juniper 9 alice amber 25 alice amber 6 farah fable 5
5
hana harbor 2 gus delta 27 bruno indigo 1 bruno fable 10 ivan birch 19 gus grove 15 chen fable 18 kim grove 24
1
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007306
qwen/qwen3.7-plus
awkweave-0007307
Find and print the largest numeric value in column 1.
NR==1||$1>extreme{extreme=$1}END{print extreme}
7 harbor kim 28 ember gus 1 harbor jules 4 cobalt gus 6 grove hana 26 harbor farah 25 delta bruno
28
2 delta jules 21 indigo farah 1 birch kim 11 harbor gus 23 ember gus 4 indigo chen
23
max_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007307-p1
Locate and display the maximum numeric value within the first column.
NR==1||$1>extreme{extreme=$1}END{print extreme}
7 harbor kim 28 ember gus 1 harbor jules 4 cobalt gus 6 grove hana 26 harbor farah 25 delta bruno
28
2 delta jules 21 indigo farah 1 birch kim 11 harbor gus 23 ember gus 4 indigo chen
23
max_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007307
qwen/qwen3.7-plus
awkweave-0007308
Count all input records and print the total.
END{print NR}
kim 78 kim 107 kim 116 farah 45 bruno 55 eli 60 kim 107 chen 77
8
gus 109 bruno 51 gus 103 bruno 6 lina 78 chen 27 ivan 4 gus 111 hana 98
9
count_records
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007308-p1
Calculate the total number of input records and print the count.
END{print NR}
kim 78 kim 107 kim 116 farah 45 bruno 55 eli 60 kim 107 chen 77
8
gus 109 bruno 51 gus 103 bruno 6 lina 78 chen 27 ivan 4 gus 111 hana 98
9
count_records
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007308
qwen/qwen3.7-plus
awkweave-0007309
Remove exact duplicate lines, preserving the first occurrence and original order.
!seen[$0]++
eli grove 98 kim fable 104 eli delta 24 kim indigo 57 chen birch 40 eli grove 98 gus delta 75
eli grove 98 kim fable 104 eli delta 24 kim indigo 57 chen birch 40 gus delta 75
lina amber 78 lina delta 70 dina indigo 93 chen harbor 91 lina grove 107 farah juniper 12 hana fable 4 dina indigo 93
lina amber 78 lina delta 70 dina indigo 93 chen harbor 91 lina grove 107 farah juniper 12 hana fable 4
dedup_lines
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007309-p1
Eliminate exact duplicate lines while keeping the first instance and maintaining the original sequence.
!seen[$0]++
eli grove 98 kim fable 104 eli delta 24 kim indigo 57 chen birch 40 eli grove 98 gus delta 75
eli grove 98 kim fable 104 eli delta 24 kim indigo 57 chen birch 40 gus delta 75
lina amber 78 lina delta 70 dina indigo 93 chen harbor 91 lina grove 107 farah juniper 12 hana fable 4 dina indigo 93
lina amber 78 lina delta 70 dina indigo 93 chen harbor 91 lina grove 107 farah juniper 12 hana fable 4
dedup_lines
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007309
qwen/qwen3.7-plus
awkweave-0007310
Keep only the first line for each distinct value in column 1; preserve input order.
!seen[$1]++
eli harbor 7 lina indigo 25 bruno harbor 21 farah harbor 20 lina ember 64 eli cobalt 6 ivan grove 43 jules cobalt 32 chen cobalt 42
eli harbor 7 lina indigo 25 bruno harbor 21 farah harbor 20 ivan grove 43 jules cobalt 32 chen cobalt 42
kim indigo 11 chen delta 119 ivan birch 97 dina grove 6 alice delta 56 hana delta 12
kim indigo 11 chen delta 119 ivan birch 97 dina grove 6 alice delta 56 hana delta 12
dedup_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007310-p1
Retain only the initial line for every unique value in the first column, preserving the input order.
!seen[$1]++
eli harbor 7 lina indigo 25 bruno harbor 21 farah harbor 20 lina ember 64 eli cobalt 6 ivan grove 43 jules cobalt 32 chen cobalt 42
eli harbor 7 lina indigo 25 bruno harbor 21 farah harbor 20 ivan grove 43 jules cobalt 32 chen cobalt 42
kim indigo 11 chen delta 119 ivan birch 97 dina grove 6 alice delta 56 hana delta 12
kim indigo 11 chen delta 119 ivan birch 97 dina grove 6 alice delta 56 hana delta 12
dedup_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007310
qwen/qwen3.7-plus
awkweave-0007311
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
bruno 7 indigo kim 1 fable kim 25 fable bruno 9 juniper ivan 19 harbor hana 24 indigo ivan 8 juniper dina 29 delta
bruno 7 kim 8 kim 33 bruno 42 ivan 61 hana 85 ivan 93 dina 122
hana 13 grove chen 17 ember alice 1 juniper alice 1 ember lina 9 fable farah 25 grove
hana 13 chen 30 alice 31 alice 32 lina 41 farah 66
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007311-p1
Output the first column alongside the cumulative sum of the second column for each record, separated by a space.
{s+=$2;print $1,s}
bruno 7 indigo kim 1 fable kim 25 fable bruno 9 juniper ivan 19 harbor hana 24 indigo ivan 8 juniper dina 29 delta
bruno 7 kim 8 kim 33 bruno 42 ivan 61 hana 85 ivan 93 dina 122
hana 13 grove chen 17 ember alice 1 juniper alice 1 ember lina 9 fable farah 25 grove
hana 13 chen 30 alice 31 alice 32 lina 41 farah 66
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007311
qwen/qwen3.7-plus
awkweave-0007312
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
alice 5 6 juniper lina 25 5 fable jules 18 26 cobalt alice 18 6 grove ivan 28 10 delta farah 20 26 delta gus 15 12 birch alice 18 30 juniper kim 14 25 harbor alice 1 5 fable
alice 11 lina 30 jules 44 alice 24 ivan 38 farah 46 gus 27 alice 48 kim 39 alice 6
eli 24 30 indigo gus 25 22 juniper gus 27 2 amber ivan 23 19 grove dina 18 16 ember alice 25 24 ember gus 5 1 delta
eli 54 gus 47 gus 29 ivan 42 dina 34 alice 49 gus 6
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007312-p1
For each row, display the first field followed by the sum of the second and third fields.
{print $1,$2+$3}
alice 5 6 juniper lina 25 5 fable jules 18 26 cobalt alice 18 6 grove ivan 28 10 delta farah 20 26 delta gus 15 12 birch alice 18 30 juniper kim 14 25 harbor alice 1 5 fable
alice 11 lina 30 jules 44 alice 24 ivan 38 farah 46 gus 27 alice 48 kim 39 alice 6
eli 24 30 indigo gus 25 22 juniper gus 27 2 amber ivan 23 19 grove dina 18 16 ember alice 25 24 ember gus 5 1 delta
eli 54 gus 47 gus 29 ivan 42 dina 34 alice 49 gus 6
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007312
qwen/qwen3.7-plus
awkweave-0007313
Print column 1 and pass when column 2 is at least 21; otherwise print fail.
{print $1,($2>=21?"pass":"fail")}
bruno 21 bruno 12 ivan 22 kim 5 hana 4 farah 8 gus 28 bruno 7 alice 3
bruno pass bruno fail ivan pass kim fail hana fail farah fail gus pass bruno fail alice fail
gus 16 farah 19 alice 14 ivan 20 chen 29 gus 5
gus fail farah fail alice fail ivan fail chen pass gus fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007313-p1
Print the first column and output 'pass' if the second column is 21 or greater; otherwise, output 'fail'.
{print $1,($2>=21?"pass":"fail")}
bruno 21 bruno 12 ivan 22 kim 5 hana 4 farah 8 gus 28 bruno 7 alice 3
bruno pass bruno fail ivan pass kim fail hana fail farah fail gus pass bruno fail alice fail
gus 16 farah 19 alice 14 ivan 20 chen 29 gus 5
gus fail farah fail alice fail ivan fail chen pass gus fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007313
qwen/qwen3.7-plus
awkweave-0007314
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
kim indigo 93 chen ember 51 hana indigo 97 eli ember 46 ivan birch 89 bruno juniper 116 hana cobalt 54
KIM CHEN HANA ELI IVAN BRUNO HANA
farah fable 8 bruno harbor 78 hana harbor 16 gus juniper 51 hana birch 49 alice indigo 96
FARAH BRUNO HANA GUS HANA ALICE
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007314-p1
Transform the first column to uppercase and print only that column.
{print toupper($1)}
kim indigo 93 chen ember 51 hana indigo 97 eli ember 46 ivan birch 89 bruno juniper 116 hana cobalt 54
KIM CHEN HANA ELI IVAN BRUNO HANA
farah fable 8 bruno harbor 78 hana harbor 16 gus juniper 51 hana birch 49 alice indigo 96
FARAH BRUNO HANA GUS HANA ALICE
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007314
qwen/qwen3.7-plus
awkweave-0007315
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
ember 48 harbor 21 harbor 0 harbor 6 cobalt 118 grove 42 cobalt 37 indigo 22 harbor 69 amber 120
mbe arb arb arb oba rov oba ndi arb mbe
amber 91 amber 118 harbor 25 birch 1 grove 45 birch 76 juniper 18 birch 27 fable 45
mbe mbe arb irc rov irc uni irc abl
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007315-p1
Extract and print a 3-character substring from the first column, starting at the second character.
{print substr($1,2,3)}
ember 48 harbor 21 harbor 0 harbor 6 cobalt 118 grove 42 cobalt 37 indigo 22 harbor 69 amber 120
mbe arb arb arb oba rov oba ndi arb mbe
amber 91 amber 118 harbor 25 birch 1 grove 45 birch 76 juniper 18 birch 27 fable 45
mbe mbe arb irc rov irc uni irc abl
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007315
qwen/qwen3.7-plus
awkweave-0007316
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
grove_fable 70 delta_harbor 39 juniper_amber 8 delta_birch 33 fable_indigo 19 grove_indigo 16 grove_delta 55 birch_fable 20 delta_harbor 108
grove fable delta harbor juniper amber delta birch fable indigo grove indigo grove delta birch fable delta harbor
indigo_harbor 89 amber_amber 92 grove_birch 109 harbor_harbor 16 fable_ember 96 amber_ember 97 delta_ember 62 birch_cobalt 49 amber_juniper 36 juniper_harbor 108
indigo harbor amber amber grove birch harbor harbor fable ember amber ember delta ember birch cobalt amber juniper juniper harbor
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007316-p1
Substitute all underscores in the first column with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
grove_fable 70 delta_harbor 39 juniper_amber 8 delta_birch 33 fable_indigo 19 grove_indigo 16 grove_delta 55 birch_fable 20 delta_harbor 108
grove fable delta harbor juniper amber delta birch fable indigo grove indigo grove delta birch fable delta harbor
indigo_harbor 89 amber_amber 92 grove_birch 109 harbor_harbor 16 fable_ember 96 amber_ember 97 delta_ember 62 birch_cobalt 49 amber_juniper 36 juniper_harbor 108
indigo harbor amber amber grove birch harbor harbor fable ember amber ember delta ember birch cobalt amber juniper juniper harbor
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007316
qwen/qwen3.7-plus
awkweave-0007317
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)}
kim indigo 86 active eli harbor 104 ready chen harbor 20 paused eli ember 64 ready jules cobalt 14 ready dina indigo 43 pending chen indigo 62 ready ivan cobalt 60 closed gus fable 90 closed
active 86 indigo kim ready 104 harbor eli paused 20 harbor chen ready 64 ember eli ready 14 cobalt jules pending 43 indigo dina ready 62 indigo chen closed 60 cobalt ivan closed 90 fable gus
bruno juniper 45 closed bruno ember 54 ready bruno fable 5 active ivan juniper 8 failed farah ember 95 pending ivan harbor 106 pending
closed 45 juniper bruno ready 54 ember bruno active 5 fable bruno failed 8 juniper ivan pending 95 ember farah pending 106 harbor ivan
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007317-p1
Reverse the sequence of fields for every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
kim indigo 86 active eli harbor 104 ready chen harbor 20 paused eli ember 64 ready jules cobalt 14 ready dina indigo 43 pending chen indigo 62 ready ivan cobalt 60 closed gus fable 90 closed
active 86 indigo kim ready 104 harbor eli paused 20 harbor chen ready 64 ember eli ready 14 cobalt jules pending 43 indigo dina ready 62 indigo chen closed 60 cobalt ivan closed 90 fable gus
bruno juniper 45 closed bruno ember 54 ready bruno fable 5 active ivan juniper 8 failed farah ember 95 pending ivan harbor 106 pending
closed 45 juniper bruno ready 54 ember bruno active 5 fable bruno failed 8 juniper ivan pending 95 ember farah pending 106 harbor ivan
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007317
qwen/qwen3.7-plus
awkweave-0007318
Print the number of whitespace-separated fields on each line.
{print NF}
lina delta 95 active chen harbor 44 failed chen delta 26 active lina juniper 49 active alice harbor 9 active ivan ember 26 active ivan grove 114 pending kim juniper 66 ready ivan amber 88 closed
4 4 4 4 4 4 4 4 4
lina harbor 45 failed lina fable 15 closed chen indigo 50 ready jules ember 41 pending lina delta 117 ready gus grove 13 ready gus juniper 88 failed
4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007318-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
lina delta 95 active chen harbor 44 failed chen delta 26 active lina juniper 49 active alice harbor 9 active ivan ember 26 active ivan grove 114 pending kim juniper 66 ready ivan amber 88 closed
4 4 4 4 4 4 4 4 4
lina harbor 45 failed lina fable 15 closed chen indigo 50 ready jules ember 41 pending lina delta 117 ready gus grove 13 ready gus juniper 88 failed
4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007318
qwen/qwen3.7-plus
awkweave-0007319
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]]}
alice delta 3 farah alpha 90 chen delta 102 dina delta 57 dina beta 91 eli beta 96
delta 3 alpha 1 beta 2
ivan gamma 3 ivan delta 75 chen gamma 112 alice beta 23 chen alpha 75 chen delta 40
gamma 2 delta 2 beta 1 alpha 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007319-p1
Tally the occurrences of each unique value in the second column and display the value alongside its count, maintaining the order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
alice delta 3 farah alpha 90 chen delta 102 dina delta 57 dina beta 91 eli beta 96
delta 3 alpha 1 beta 2
ivan gamma 3 ivan delta 75 chen gamma 112 alice beta 23 chen alpha 75 chen delta 40
gamma 2 delta 2 beta 1 alpha 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007319
qwen/qwen3.7-plus
awkweave-0007320
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]]}
kim beta 22 bruno gamma 9 chen gamma 16 chen alpha 12 bruno beta 13 jules gamma 24 kim gamma 20 jules gamma 12
beta 35 gamma 81 alpha 12
lina beta 8 lina gamma 21 hana delta 30 dina beta 3 bruno gamma 25 gus alpha 25
beta 11 gamma 46 delta 30 alpha 25
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007320-p1
Calculate the sum of values in column 3 grouped by column 2, presenting the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
kim beta 22 bruno gamma 9 chen gamma 16 chen alpha 12 bruno beta 13 jules gamma 24 kim gamma 20 jules gamma 12
beta 35 gamma 81 alpha 12
lina beta 8 lina gamma 21 hana delta 30 dina beta 3 bruno gamma 25 gus alpha 25
beta 11 gamma 46 delta 30 alpha 25
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007320
qwen/qwen3.7-plus
awkweave-0007321
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]]}
gamma ember 19 beta harbor 115 alpha delta 109 beta delta 118 alpha fable 6 delta juniper 29
beta 2 alpha 2
delta birch 62 beta amber 7 alpha amber 61 alpha cobalt 92 delta fable 25 alpha fable 88
delta 2 alpha 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007321-p1
List each duplicate value from the first column along with its frequency, ordered by when they first appear.
{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]]}
gamma ember 19 beta harbor 115 alpha delta 109 beta delta 118 alpha fable 6 delta juniper 29
beta 2 alpha 2
delta birch 62 beta amber 7 alpha amber 61 alpha cobalt 92 delta fable 25 alpha fable 88
delta 2 alpha 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007321
qwen/qwen3.7-plus
awkweave-0007322
The first row is a header. Print the display_name column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
state display_name note record_id r001 jules 29 closed r002 jules 20 closed r003 alice 17 closed r004 hana 23 paused r005 farah 14 failed r006 chen 5 pending r007 kim 21 failed r008 alice 22 ready r009 eli 11 pending
jules jules alice hana farah chen kim alice eli
state display_name note record_id r001 gus 3 closed r002 farah 11 ready r003 lina 9 closed r004 dina 26 closed r005 chen 27 failed r006 alice 14 closed r007 hana 1 active
gus farah lina dina chen alice hana
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007322-p1
Treating the initial row as a header, output the values from the display_name column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
state display_name note record_id r001 jules 29 closed r002 jules 20 closed r003 alice 17 closed r004 hana 23 paused r005 farah 14 failed r006 chen 5 pending r007 kim 21 failed r008 alice 22 ready r009 eli 11 pending
jules jules alice hana farah chen kim alice eli
state display_name note record_id r001 gus 3 closed r002 farah 11 ready r003 lina 9 closed r004 dina 26 closed r005 chen 27 failed r006 alice 14 closed r007 hana 1 active
gus farah lina dina chen alice hana
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007322
qwen/qwen3.7-plus
awkweave-0007323
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 ivan 8 failed r002 lina 27 ready r003 hana 14 active r004 hana 27 ready r005 jules 25 paused r006 lina 17 closed r007 eli 10 failed
lina hana jules lina
record_id display_name score state r001 hana 6 paused r002 lina 17 paused r003 bruno 23 ready r004 gus 27 pending r005 kim 27 closed r006 chen 13 paused r007 jules 2 pending r008 eli 17 failed r009 kim 3 failed
lina bruno gus kim eli
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007323-p1
With the first line as a header, print the display_name for any data row 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 ivan 8 failed r002 lina 27 ready r003 hana 14 active r004 hana 27 ready r005 jules 25 paused r006 lina 17 closed r007 eli 10 failed
lina hana jules lina
record_id display_name score state r001 hana 6 paused r002 lina 17 paused r003 bruno 23 ready r004 gus 27 pending r005 kim 27 closed r006 chen 13 paused r007 jules 2 pending r008 eli 17 failed r009 kim 3 failed
lina bruno gus kim eli
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007323
qwen/qwen3.7-plus
awkweave-0007324
The input is tab-separated. Print column 1 from every record.
BEGIN{FS=OFS="\t"}{print $1}
kim 28 paused dina 9 active hana 15 closed lina 2 paused alice 15 failed jules 11 pending
kim dina hana lina alice jules
ivan 22 ready chen 18 pending bruno 8 pending farah 8 pending dina 22 closed gus 5 active kim 14 closed alice 7 closed farah 12 ready ivan 22 closed
ivan chen bruno farah dina gus kim alice farah ivan
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007324-p1
Given tab-separated input, extract and print the first field from each record.
BEGIN{FS=OFS="\t"}{print $1}
kim 28 paused dina 9 active hana 15 closed lina 2 paused alice 15 failed jules 11 pending
kim dina hana lina alice jules
ivan 22 ready chen 18 pending bruno 8 pending farah 8 pending dina 22 closed gus 5 active kim 14 closed alice 7 closed farah 12 ready ivan 22 closed
ivan chen bruno farah dina gus kim alice farah ivan
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007324
qwen/qwen3.7-plus
awkweave-0007325
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 11.
BEGIN{FS=OFS=","}$2>11{print $1}
dina,11,ready bruno,4,active gus,7,failed farah,17,active eli,28,ready farah,3,paused kim,17,closed bruno,26,pending hana,19,pending
farah eli kim bruno hana
bruno,20,paused eli,5,active lina,17,closed hana,27,ready gus,1,paused chen,9,failed
bruno lina hana
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007325-p1
For simple comma-separated input without quoted commas, print the first column if the second column's value is greater than 11.
BEGIN{FS=OFS=","}$2>11{print $1}
dina,11,ready bruno,4,active gus,7,failed farah,17,active eli,28,ready farah,3,paused kim,17,closed bruno,26,pending hana,19,pending
farah eli kim bruno hana
bruno,20,paused eli,5,active lina,17,closed hana,27,ready gus,1,paused chen,9,failed
bruno lina hana
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007325
qwen/qwen3.7-plus
awkweave-0007326
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice birch 112 eli birch 71 dina cobalt 10 jules ember 119 alice delta 107 dina cobalt 54
alice birch 112 eli birch 71 dina cobalt 10 jules ember 119 alice delta 107 dina cobalt 54
ivan indigo 1 farah grove 8 alice ember 18 dina indigo 54 alice fable 41 eli harbor 46 farah harbor 46
ivan indigo 1 farah grove 8 alice ember 18 dina indigo 54 alice fable 41 eli harbor 46 farah harbor 46
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007326-p1
Remove leading and trailing whitespace and replace sequences of internal whitespace with a single space.
{$1=$1;print}
alice birch 112 eli birch 71 dina cobalt 10 jules ember 119 alice delta 107 dina cobalt 54
alice birch 112 eli birch 71 dina cobalt 10 jules ember 119 alice delta 107 dina cobalt 54
ivan indigo 1 farah grove 8 alice ember 18 dina indigo 54 alice fable 41 eli harbor 46 farah harbor 46
ivan indigo 1 farah grove 8 alice ember 18 dina indigo 54 alice fable 41 eli harbor 46 farah harbor 46
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007326
qwen/qwen3.7-plus
awkweave-0007327
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
ivan delta 52 paused lina fable 60 ready alice grove 88 failed eli ember 33 ready chen delta 115 closed ivan amber 48 closed kim grove 63 failed chen fable 35 active jules birch 55 pending alice ember 83 ready
jules birch 55 pending
eli fable 57 paused kim grove 113 paused gus ember 90 failed gus juniper 52 ready chen delta 14 failed farah ember 85 paused alice cobalt 1 failed lina grove 28 pending farah cobalt 32 closed ivan birch 2 failed
farah cobalt 32 closed
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007327-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}
ivan delta 52 paused lina fable 60 ready alice grove 88 failed eli ember 33 ready chen delta 115 closed ivan amber 48 closed kim grove 63 failed chen fable 35 active jules birch 55 pending alice ember 83 ready
jules birch 55 pending
eli fable 57 paused kim grove 113 paused gus ember 90 failed gus juniper 52 ready chen delta 14 failed farah ember 85 paused alice cobalt 1 failed lina grove 28 pending farah cobalt 32 closed ivan birch 2 failed
farah cobalt 32 closed
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007327
qwen/qwen3.7-plus
awkweave-0007328
Print every 2nd line starting at line 2 (then line 4, and so on).
NR%2==0
hana 31 hana 85 ivan 99 jules 85 alice 109 bruno 3 lina 19 farah 67 jules 8
hana 85 jules 85 bruno 3 farah 67
jules 118 jules 118 ivan 92 farah 21 bruno 0 lina 36 ivan 100
jules 118 farah 21 lina 36
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007328-p1
Print every second line of the input, beginning with line 2 (i.e., lines 2, 4, 6, etc.).
NR%2==0
hana 31 hana 85 ivan 99 jules 85 alice 109 bruno 3 lina 19 farah 67 jules 8
hana 85 jules 85 bruno 3 farah 67
jules 118 jules 118 ivan 92 farah 21 bruno 0 lina 36 ivan 100
jules 118 farah 21 lina 36
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007328
qwen/qwen3.7-plus
awkweave-0007329
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha juniper 2 delta grove 75 alpha delta 117 beta grove 91 gamma harbor 11 beta harbor 25 beta grove 72 alpha indigo 25 gamma grove 87 beta juniper 55
5
delta indigo 112 alpha harbor 83 gamma juniper 113 gamma fable 104 alpha cobalt 63 beta cobalt 114 alpha grove 23 delta fable 26 delta grove 70 alpha cobalt 90
6
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0007329-p1
Determine the number of unique values in the second column and output only that total count.
{if(!seen[$2]++)n++}END{print n+0}
alpha juniper 2 delta grove 75 alpha delta 117 beta grove 91 gamma harbor 11 beta harbor 25 beta grove 72 alpha indigo 25 gamma grove 87 beta juniper 55
5
delta indigo 112 alpha harbor 83 gamma juniper 113 gamma fable 104 alpha cobalt 63 beta cobalt 114 alpha grove 23 delta fable 26 delta grove 70 alpha cobalt 90
6
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0007329
qwen/qwen3.7-plus
awkweave-0007330
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}
hana 19 0 hana 12 30 chen 21 22 alice 20 15 eli 19 21 ivan 7 25 chen 7 11
hana 0.40 chen 0.95 alice 1.33 eli 0.90 ivan 0.28 chen 0.64
gus 3 0 hana 2 6 dina 16 3 hana 16 1 dina 23 3 kim 26 16 bruno 25 6 bruno 8 28 jules 13 7
hana 0.33 dina 5.33 hana 16.00 dina 7.67 kim 1.62 bruno 4.17 bruno 0.29 jules 1.86
ratio
2
train
original-grammar
CC-BY-4.0
null
null