Miller
1 program
Added 2026-02-10T14:30:00Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: mlr
Provenance: commit 4f3db62338 · authored 2026-02-10T22:16:07+01:00 · agent claude-code · model sonnet
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Category Statistics Calculator
Provenance: commit 4f3db62338 · authored 2026-02-10T22:16:07+01:00 · agent claude-code · model sonnet · WebSearch disabled
# Calculate average and sum of values by category
# This Miller script processes CSV data
begin {
@total_sum = 0;
@total_count = 0;
}
{
@sum_by_category[$category] += $value;
@count_by_category[$category] += 1;
@total_sum += $value;
@total_count += 1;
}
end {
for (category, sum in @sum_by_category) {
count = @count_by_category[category];
avg = sum / count;
print "Category: " . category;
print " Sum: " . sum;
print " Count: " . count;
print " Average: " . avg;
print "";
}
print "Overall sum: " . @total_sum;
print "Overall count: " . @total_count;
print "Overall average: " . (@total_sum / @total_count);
}